/* =======================
   RESET
======================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* =======================
   FONDO FIJO
======================= */
body {
    min-height: 100vh;
    font-family: 'Poppins', sans-serif;
    color: #ffffff;

    background-image: url("../img/background.jpg");
    background-repeat: no-repeat;
    background-position: top center;
    background-size: cover;
    background-attachment: fixed;

    background-color: #cfe6ff;
}

/* CAPA SUAVE GLOBAL (NO INTERFIERE CON HOVER) */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(255,255,255,0.08),
        rgba(255,255,255,0.22)
    );
    pointer-events: none;
    z-index: 0;
}

/* =======================
   ESTRUCTURA BASE
======================= */
.header,
.container {
    position: relative;
    z-index: 1;
}

.container {
    max-width: 900px;
    margin: auto;
    padding: 20px;
}

/* =======================
   HEADER GLASS + NEÓN ROSA
======================= */
.header {
    width: 100%;
    padding: 60px 20px 30px;
    display: flex;
    justify-content: center;
}

.header-glass {
    position: relative;
    overflow: hidden;

    background: rgba(255,255,255,0.22);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);

    border-radius: 30px;
    padding: 34px 44px;
    text-align: center;

    max-width: 900px;
    width: 100%;

    /* NEÓN ROSA MODERNO */
    box-shadow:
        0 0 0 1px rgba(255,120,190,0.55),
        0 0 30px rgba(255,120,190,0.35),
        0 0 70px rgba(255,120,190,0.25);

    transition:
        box-shadow 0.3s ease,
        transform 0.3s ease;
}

/* DESTELLOS (SOLO VISUALES) */
.header-glass::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(255,255,255,0.85) 0%, transparent 45%),
        radial-gradient(circle at 70% 40%, rgba(255,255,255,0.65) 0%, transparent 50%);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

/* HOVER — NO BLANQUEA */
.header-glass:hover {
    box-shadow:
        0 0 0 2px rgba(255,120,190,0.85),
        0 0 40px rgba(255,120,190,0.55),
        0 0 90px rgba(255,120,190,0.45);

    transform: translateY(-3px);
}

.header-glass:hover::after {
    opacity: 1;
}

/* =======================
   TEXTO HEADER
======================= */
.header-glass h1 {
    font-family: 'Great Vibes', cursive;
    font-size: 3rem;
    font-weight: 400;
    color: #ff77b7;

    margin-bottom: 8px;

    text-shadow:
        0 0 8px rgba(255,120,190,0.35),
        0 2px 12px rgba(255,120,190,0.25);
}

.subtitle {
    font-size: 1.05rem;
    color: rgba(255,255,255,0.9);
}

/* =======================
   TARJETA DEL DÍA (GLASS)
======================= */
.dia-actual {
    background: rgba(255,255,255,0.28);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);

    border-radius: 30px;
    padding: 50px 40px;
    text-align: center;

    box-shadow:
        0 30px 60px rgba(0,0,0,0.25),
        inset 0 0 0 1px rgba(255,255,255,0.35);
}

.dia-actual h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    margin-bottom: 20px;
}

.dia-actual p {
    font-size: 1.4rem;
    line-height: 1.7;
    margin-bottom: 20px;
}

.icono {
    font-size: 3rem;
}

/* =======================
   IMAGEN DECORATIVA
======================= */
.decoracion {
    position: absolute;
    bottom: 18px;
    right: 22px;
    width: 48px;
    opacity: 0.85;
    pointer-events: none;
    filter: drop-shadow(0 6px 10px rgba(0,0,0,0.25));
}

/* =======================
   RESPONSIVE
======================= */
@media (max-width: 768px) {
    body {
        background-attachment: scroll;
    }

    .header-glass {
        padding: 28px 26px;
        border-radius: 24px;
    }

    .header-glass h1 {
        font-size: 2.4rem;
    }

    .dia-actual {
        padding: 35px 25px;
    }

    .dia-actual p {
        font-size: 1.2rem;
    }

    .decoracion {
        width: 36px;
        bottom: 14px;
        right: 14px;
    }
}
/* =========================
   FIX DEFINITIVO HOVER HEADER
   (NO SE ACLARA JAMÁS)
========================= */

/* Estado normal: glass */
.header-glass {
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

/* Hover: congelamos el glass */
.header-glass:hover {
    /* 🔒 quitamos blur en hover */
    backdrop-filter: none;
    -webkit-backdrop-filter: none;

    /* mantenemos el mismo fondo */
    background: rgba(255,255,255,0.22);

    /* hover solo por neón */
    box-shadow:
        0 0 0 2px rgba(255,120,190,0.9),
        0 0 45px rgba(255,120,190,0.6),
        0 0 90px rgba(255,120,190,0.45);

    transform: translateY(-3px);
}
/* =======================
   AJUSTE TÍTULO HEADER
======================= */
.header-glass h1 {
    color: #ff9ad5; /* rosa más claro y legible */

    text-shadow:
        0 1px 2px rgba(0,0,0,0.25),   /* define letra */
        0 0 6px rgba(255,120,190,0.35), /* glow suave */
        0 0 14px rgba(255,120,190,0.25); /* halo romántico */
}
/* =======================
   TEXTO SOBRE EL HOVER
======================= */

/* Estado normal */
.header-glass h1,
.header-glass .subtitle {
    position: relative;
    z-index: 2; /* ya está sobre el glass */
    transition: 
        color 0.25s ease,
        text-shadow 0.25s ease;
}

/* Hover: el texto se impone */
.header-glass:hover h1 {
    color: #ffb3df; /* rosa más luminoso */

    text-shadow:
        0 2px 4px rgba(0,0,0,0.35),     /* define borde */
        0 0 10px rgba(255,120,190,0.55),/* glow */
        0 0 22px rgba(255,120,190,0.45);/* halo */

    z-index: 3; /* 🔑 POR ENCIMA DEL HOVER */
}

.header-glass:hover .subtitle {
    color: rgba(255,255,255,1);
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
    z-index: 3;
}
/* =======================
   MARCO DE CORAZONES
======================= */

/* Contenedor del título */
.titulo-corazones {
    position: relative;
    display: inline-block;
    padding: 18px 34px;
    z-index: 3;
}

/* Corazones superiores */
.titulo-corazones::before {
    content: "♡  ♡  ♡  ♡  ♡";
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);

    font-size: 1rem;
    letter-spacing: 10px;
    color: #ffc1e6; /* pastel */

    opacity: 0.9;
    pointer-events: none;
}

/* Corazones inferiores */
.titulo-corazones::after {
    content: "♡  ♡  ♡  ♡  ♡";
    position: absolute;
    bottom: -16px;
    left: 50%;
    transform: translateX(-50%);

    font-size: 1rem;
    letter-spacing: 10px;
    color: #ffd1ec; /* pastel más claro */

    opacity: 0.85;
    pointer-events: none;
}
/* =======================
   PULIDO DÍA ACTUAL
======================= */

/* Contenedor principal */
.dia-actual {
    position: relative;
    margin-top: 60px;

    background: rgba(255,255,255,0.26);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);

    border-radius: 32px;
    padding: 60px 50px;
    text-align: center;

    /* Neón rosa SUAVE */
    box-shadow:
        0 0 0 1px rgba(255,120,190,0.25),
        0 20px 50px rgba(0,0,0,0.25);
}

/* TÍTULO DEL DÍA */
.dia-actual h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.1rem;
    font-weight: 600;

    color: #ffd1ec;
    margin-bottom: 22px;

    text-shadow:
        0 1px 3px rgba(0,0,0,0.25);
}

/* TEXTO / MENSAJE */
.dia-actual p {
    font-size: 1.45rem;
    line-height: 1.8;
    color: rgba(255,255,255,0.95);

    max-width: 700px;
    margin: 0 auto 26px;
}

/* ICONO FINAL */
.dia-actual .icono {
    display: block;
    font-size: 3.2rem;
    margin-top: 10px;
    opacity: 0.9;
}

/* PEQUEÑO DETALLE DECORATIVO */
.dia-actual::after {
    content: "♡";
    position: absolute;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%);

    font-size: 1.4rem;
    color: #ffb3df;
    opacity: 0.6;
    pointer-events: none;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .dia-actual {
        padding: 40px 28px;
        margin-top: 40px;
    }

    .dia-actual h2 {
        font-size: 1.8rem;
    }

    .dia-actual p {
        font-size: 1.25rem;
    }
}
/* =======================
   TEXTO PROTAGONISTA - DÍA ACTUAL
======================= */

/* Suavizamos tipografía y jerarquía */
.dia-actual h2 {
    letter-spacing: 0.5px;
}

.dia-actual p {
    font-weight: 400;
    letter-spacing: 0.2px;
    transition:
        color 0.25s ease,
        text-shadow 0.25s ease;
}

/* Preparar el contenedor para hover */
.dia-actual {
    transition:
        box-shadow 0.3s ease,
        transform 0.3s ease;
}

/* HOVER GENERAL DE LA SECCIÓN */
.dia-actual:hover {
    box-shadow:
        0 0 0 1px rgba(255,120,190,0.35),
        0 25px 65px rgba(0,0,0,0.35);

    transform: translateY(-3px);
}

/* HOVER EN EL TEXTO (PROTAGONISTA REAL) */
.dia-actual:hover p {
    color: #fff;

    text-shadow:
        0 2px 4px rgba(0,0,0,0.35),
        0 0 10px rgba(255,120,190,0.35),
        0 0 20px rgba(255,120,190,0.25);
}

/* ICONO ACOMPAÑA (NO ROBA) */
.dia-actual:hover .icono {
    opacity: 1;
}
.titulo-romantico {
    display: block;
    margin-top: 8px;
    color: #ffd1ec;
}
/* =======================
   ÓRBITA DE CORAZONES
======================= */
.orbit-corazones {
    position: absolute;
    inset: -25px; /* rodea el contenedor */
    pointer-events: none;

    animation: girar-corazones 18s linear infinite;
}

/* Corazones individuales */
.orbit-corazones span {
    position: absolute;
    top: 50%;
    left: 50%;

    font-size: 1.1rem;
    color: #ffb3df;
    opacity: 0.75;

    transform-origin: -180px center;
}

/* Distribución circular */
.orbit-corazones span:nth-child(1) { transform: rotate(0deg) translateX(180px); }
.orbit-corazones span:nth-child(2) { transform: rotate(72deg) translateX(180px); }
.orbit-corazones span:nth-child(3) { transform: rotate(144deg) translateX(180px); }
.orbit-corazones span:nth-child(4) { transform: rotate(216deg) translateX(180px); }
.orbit-corazones span:nth-child(5) { transform: rotate(288deg) translateX(180px); }

/* Animación */
@keyframes girar-corazones {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Ajuste móvil */
@media (max-width: 768px) {
    .orbit-corazones {
        inset: -15px;
    }

    .orbit-corazones span {
        transform-origin: -130px center;
        font-size: 0.9rem;
    }
}
/* =======================
   CORAZONES DENTRO DEL DÍA
======================= */
.dia-actual {
    position: relative;
    overflow: hidden; /* CLAVE: nada sale del contenedor */
}

/* Capa de corazones */
.corazones-fondo {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;

    animation: girar-corazones-interno 30s linear infinite;
}

/* Corazones */
.corazones-fondo span {
    position: absolute;
    top: 50%;
    left: 50%;

    font-size: 1.1rem;
    color: #ffb3df;
    opacity: 0.35;

    transform-origin: -120px center;
}

/* Distribución circular */
.corazones-fondo span:nth-child(1) { transform: rotate(0deg) translateX(120px); }
.corazones-fondo span:nth-child(2) { transform: rotate(72deg) translateX(120px); }
.corazones-fondo span:nth-child(3) { transform: rotate(144deg) translateX(120px); }
.corazones-fondo span:nth-child(4) { transform: rotate(216deg) translateX(120px); }
.corazones-fondo span:nth-child(5) { transform: rotate(288deg) translateX(120px); }

/* Animación */
@keyframes girar-corazones-interno {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

/* Asegurar que el texto esté arriba */
.dia-actual > *:not(.corazones-fondo) {
    position: relative;
    z-index: 2;
}

/* Responsive */
@media (max-width: 768px) {
    .corazones-fondo span {
        transform-origin: -90px center;
        font-size: 0.9rem;
    }
}
/* =======================
   AJUSTE DE FONDO EN MÓVIL
======================= */
@media (max-width: 768px) {
    body::before {
        background: linear-gradient(
            180deg,
            rgba(0,0,0,0.15),
            rgba(0,0,0,0.35)
        );
    }
}
/* =======================
   DÍAS ANTERIORES
======================= */
.dias-anteriores {
    margin-top: 70px;
}

.dias-anteriores h3 {
    text-align: center;
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    margin-bottom: 30px;
    color: #ffd1ec;
}

/* GRID */
.dias-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 22px;
}

/* TARJETA */
.dia-card {
    display: flex;
    gap: 16px;
    align-items: flex-start;

    background: rgba(255,255,255,0.22);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);

    border-radius: 22px;
    padding: 22px;

    box-shadow:
        0 0 0 1px rgba(255,120,190,0.25),
        0 15px 35px rgba(0,0,0,0.25);
}

/* ICONO */
.dia-icono {
    font-size: 2.2rem;
    flex-shrink: 0;
}

/* TEXTO */
.dia-info strong {
    display: block;
    color: #ff9ccc;
    margin-bottom: 6px;
}

.dia-info p {
    font-size: 0.95rem;
    line-height: 1.4;
    color: rgba(255,255,255,0.9);
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .dias-anteriores {
        margin-top: 50px;
    }
}
/* =======================
   TÍTULO DÍAS ANTERIORES
======================= */
.titulo-anteriores {
    text-align: center;
    font-family: 'Great Vibes', cursive;
    font-size: 2.6rem;
    font-weight: 400;

    color: #ff9ad5;
    margin-bottom: 36px;

    text-shadow:
        0 0 8px rgba(255,120,190,0.35),
        0 2px 14px rgba(255,120,190,0.25);
}
/* =======================
   TÍTULO DÍAS ANTERIORES
   MISMA TIPOGRAFÍA HEADER
======================= */
.titulo-anteriores {
    text-align: center;
    font-family: 'Great Vibes', cursive;
    font-size: 2.8rem;
    font-weight: 400;

    color: #ff77b7; /* mismo rosa del header */
    margin-bottom: 36px;

    text-shadow:
        0 0 8px rgba(255,120,190,0.35),
        0 2px 12px rgba(255,120,190,0.25);
}
/* =======================
   TÍTULO DÍAS ANTERIORES
   MISMA TIPOGRAFÍA HEADER
======================= */
.titulo-anteriores {
    font-family: 'Great Vibes', cursive;
    font-size: 2.8rem;
    font-weight: 400;

    color: #ff77b7;
    text-align: center;
    margin-bottom: 36px;

    text-shadow:
        0 0 8px rgba(255,120,190,0.35),
        0 2px 12px rgba(255,120,190,0.25);
}
/* =======================
   FOOTER ROMÁNTICO
======================= */
.footer {
    margin-top: 90px;
    padding: 40px 20px 50px;
    display: flex;
    justify-content: center;
}

.footer-glass {
    max-width: 900px;
    width: 100%;

    background: rgba(255,255,255,0.18);
    border-radius: 26px;
    padding: 36px 30px;
    text-align: center;

    box-shadow:
        0 0 0 1px rgba(255,120,190,0.25),
        0 20px 45px rgba(0,0,0,0.25);
}

/* FRASE PRINCIPAL */
.footer-frase {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    color: rgba(255,255,255,0.95);
    margin-bottom: 14px;
}

/* CORAZÓN */
.footer-corazon {
    display: block;
    font-size: 1.8rem;
    color: #ff9ad5;
    margin: 6px 0 10px;
}

/* FIRMA */
.footer-firma {
    font-family: 'Great Vibes', cursive;
    font-size: 2rem;
    color: #ff77b7;

    text-shadow:
        0 0 8px rgba(255,120,190,0.35),
        0 2px 12px rgba(255,120,190,0.25);
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .footer {
        margin-top: 70px;
        padding-bottom: 40px;
    }

    .footer-frase {
        font-size: 1.15rem;
    }

    .footer-firma {
        font-size: 1.7rem;
    }
}
/* =======================
   BOTÓN VER TODOS
======================= */
.ver-todos-wrapper {
    text-align: center;
    margin-top: 25px;
}

#btnVerTodos {
    background: none;
    border: none;
    font-family: 'Great Vibes', cursive;
    font-size: 1.8rem;
    color: #ff9ad5;
    cursor: pointer;

    text-shadow:
        0 0 8px rgba(255,120,190,0.35),
        0 2px 12px rgba(255,120,190,0.25);
}

/* =======================
   MODAL GENERAL
======================= */
.modal-dias {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 999;
}

/* CONTENEDOR */
.modal-glass {
    background: rgba(255,255,255,0.22);
    backdrop-filter: blur(16px);
    border-radius: 30px;
    padding: 40px 30px;
    max-width: 900px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;

    box-shadow:
        0 0 0 1px rgba(255,120,190,0.35),
        0 25px 60px rgba(0,0,0,0.35);
}

/* CERRAR */
.cerrar-modal {
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 2rem;
    cursor: pointer;
    color: #ff9ad5;
}

/* TÍTULO */
.titulo-modal {
    text-align: center;
    font-family: 'Great Vibes', cursive;
    font-size: 2.6rem;
    color: #ff77b7;
    margin-bottom: 30px;
}

/* LISTA */
.modal-lista {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
}

/* REUTILIZA dia-card EXISTENTE */
/* =======================
   HOVER GLASS REUTILIZABLE
   (MISMO QUE HEADER)
======================= */
.glass-hover {
    transition:
        box-shadow 0.3s ease,
        transform 0.3s ease;
}

.glass-hover:hover {
    box-shadow:
        0 0 0 2px rgba(255,120,190,0.9),
        0 0 45px rgba(255,120,190,0.6),
        0 0 90px rgba(255,120,190,0.45);

    transform: translateY(-3px);
}
/* =======================
   CORAZONES GLOBALES
======================= */
.corazones-globales {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0; /* detrás de todo */

    animation: girar-global 90s linear infinite;
}

/* Corazones individuales */
.corazones-globales span {
    position: absolute;
    top: 50%;
    left: 50%;

    font-size: 1.2rem;
    color: #ffb3df;
    opacity: 0.18;

    transform-origin: -400px center;
}

/* Distribución circular amplia */
.corazones-globales span:nth-child(1)  { transform: rotate(0deg)   translateX(400px); }
.corazones-globales span:nth-child(2)  { transform: rotate(36deg)  translateX(400px); }
.corazones-globales span:nth-child(3)  { transform: rotate(72deg)  translateX(400px); }
.corazones-globales span:nth-child(4)  { transform: rotate(108deg) translateX(400px); }
.corazones-globales span:nth-child(5)  { transform: rotate(144deg) translateX(400px); }
.corazones-globales span:nth-child(6)  { transform: rotate(180deg) translateX(400px); }
.corazones-globales span:nth-child(7)  { transform: rotate(216deg) translateX(400px); }
.corazones-globales span:nth-child(8)  { transform: rotate(252deg) translateX(400px); }
.corazones-globales span:nth-child(9)  { transform: rotate(288deg) translateX(400px); }
.corazones-globales span:nth-child(10) { transform: rotate(324deg) translateX(400px); }

/* Animación lenta */
@keyframes girar-global {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

/* Ajuste móvil */
@media (max-width: 768px) {
    .corazones-globales span {
        transform-origin: -260px center;
        font-size: 1rem;
        opacity: 0.15;
    }
}
