@import url('https://fonts.googleapis.com/css2?family=EB+Garamond:ital,wght@0,400;0,600;1,400&family=Nunito:wght@400;600&display=swap');

:root {
    /* Paleta refinada */
    --color-primario: #F5F5F5;   /* Azul noche espiritual */
    --color-hover: #1E3A5F;      /* Azul profundo para hover */
    --color-secundario: #A1A1A1; /* Azul muy suave */
    --color-fondo: #0D0D0D;      /* Fondo principal */
    --color-texto: #E5E5E5;      /* Gris claro para texto */
    --blanco-puro: #FFFFFF;
    --sombra: rgba(47, 58, 86, 0.15);
    --color-tarjeta: #1A1A1A;
    --color-acento: #5FAEDB;
    --color-borde: rgba(95, 174, 219, 0.3);
}

body {
    margin: 0;
    font-family: 'Nunito', sans-serif;
    background: linear-gradient(180deg, #0D0D0D 0%, #111827 100%);
    color: var(--color-texto);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

header {
    padding: 1.5rem 0;
    text-align: center;
}

header h1 {
    font-family: 'EB Garamond', serif;
    letter-spacing: 1px;
    color: var(--color-acento);
    margin: 0;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0 auto 2rem;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

nav a {
    color: var(--color-primario);
    border-radius: 20px;
    transition: all 0.3s ease;
}

nav a:hover {
    background-color: var(--color-hover);
    transform: translateY(-2px);
}

.container {
    width: 92%;
    max-width: 1200px;
    margin: auto;
    padding: 2rem 0;
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.tarjeta {
    background: rgba(20, 20, 20, 0.75);
    backdrop-filter: blur(4px);
    border-radius: 14px;
    border: 1px solid var(--color-borde);
    box-shadow: 0 10px 20px rgba(0,0,0,.35);
    transition: all 0.3s ease;
    overflow: hidden;
    cursor: pointer;
}

.tarjeta:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 30px rgba(0,0,0,.5);
}

.tarjeta h2 {
    margin: 0;
    padding: 12px;
    font-family: 'EB Garamond', serif;
    font-size: 1.3rem;
    text-align: center;
    color: var(--color-acento);
    background: rgba(13, 13, 13, 0.8);
    border-bottom: 1px solid rgba(255,255,255,.1);
}

/* --- Párrafos generales de todas las tarjetas --- */
.tarjeta p {
    text-align: center;
    color: var(--color-texto);
    font-size: 1rem;
    margin: 2px 0;       /* menos espacio entre líneas */
    padding: 0;          /* eliminar padding extra */
}

/* --- Ajuste para dispositivos pequeños --- */
@media (max-width: 600px) {
    header h1 {
        font-size: 1.6rem;
    }

    nav ul {
        flex-direction: column;
        align-items: center;
    }

    .container {
        gap: 1.2rem;
    }
}

footer {
    text-align: center;
    padding: 1.5rem 0;
    color: var(--color-secundario);
    margin-top: 3rem;
    background: transparent;
}

/* --- Tarjeta Amanecer/Anochecer: más compacta --- */


#moon-mini-calendar {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
    margin-top: 10px;
    text-align: center;
}

.moon-day {
    padding: 4px;
    border-radius: 6px;
    background: var(--color-fondo);
    font-size: 0.9rem;
}

.moon-today {
    background: var(--color-hover);
    font-weight: bold;
}

.moon-icon {
    font-size: 1.4rem;
    display: block;
}

#moon-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    margin-top: 10px;
    margin-bottom: 6px;
    text-align: center;
    font-weight: 600;
    color: var(--color-acento);
    font-size: 0.85rem;
}

#moon-weekdays span {
    padding: 4px 0;
    border-bottom: 1px solid var(--color-borde);
}


/* ---------- BULLET JOURNAL SUMMARY ---------- */

#bullet-summary {
    cursor: default;
}

#bullet-summary .bj-resumen {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    padding: 14px;
}

#bullet-summary .bj-item {
    background: rgba(13,13,13,0.8);
    border: 1px solid var(--color-borde);
    border-radius: 10px;
    padding: 10px;
    text-align: center;
    box-shadow: inset 0 0 12px rgba(0,0,0,.4);
}

#bullet-summary .bj-item span {
    display: block;
    font-size: 0.75rem;
    color: var(--color-secundario);
    letter-spacing: .5px;
}

#bullet-summary .bj-item strong {
    font-size: 1.4rem;
    font-family: 'EB Garamond', serif;
    color: var(--color-acento);
}

/* Botón */

#bullet-summary .btn , #weather-card .btn {
    display: block;
    width: 75%;
    margin: 12px auto 14px;
    padding: 10px;
    background: linear-gradient(135deg, #1E3A5F, #111827);
    color: var(--blanco-puro);
    border-radius: 12px;
    text-align: center;
    text-decoration: none;
    font-size: 0.9rem;
    border: 1px solid var(--color-borde);
    transition: all .3s ease;
}

#bullet-summary .btn:hover, #weather-card .btn:hover {
    background: linear-gradient(135deg, #2b4f80, #1E293B);
    transform: translateY(-2px);
}


/* ICONOS */

.termometro {
  width: 48px;
}

.termometro.neutro {
    fill: var(--color-primario);
}

.termometro.frio {
    fill: var(--color-acento);
}

.termometro.calor {
    fill: #f44336;
}

.termometro.templado { fill: #4caf50; }