/*
 * Invitación Revelación de Género - Aldana y Juan
 * Base neutra (crema / beige) con acentos celeste y rosa
 * Adaptada de la plantilla Baby Shower de Momenti
 */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,600;0,700;1,500&family=Raleway:wght@300;400;500;600&family=Parisienne&display=swap');

:root {
    --primary-color: #7A6553;        /* Taupe cálido (títulos, botones) */
    --secondary-color: #FAF6F0;      /* Crema (fondos claros) */
    --text-dark: #3F342B;            /* Marrón muy oscuro (texto) */
    --text-light: #FFFDF9;           /* Blanco cálido */
    --accent-color: #D9C3A5;         /* Beige arena */
    --boy: #8DB9DC;                  /* Celeste */
    --boy-dark: #3F7BAA;
    --boy-soft: #EAF3FA;
    --girl: #EBA6BC;                 /* Rosa */
    --girl-dark: #B9506F;
    --girl-soft: #FCEEF2;
}

/* --- Estilos Base --- */
html, body {
    margin: 0;
    padding: 0;
    line-height: 1.7;
    color: var(--text-dark);
    background-color: var(--secondary-color);
    overflow-x: hidden;
    scroll-behavior: smooth;
}

body {
    font-family: 'Raleway', sans-serif;
    font-weight: 400;
}

*, *::before, *::after {
    box-sizing: border-box;
}

.container {
    width: 90%;
    max-width: 1300px;
    margin: 0 auto;
    padding: 60px 0;
}

/* --- Botón para la Música (CORREGIDO) --- */
.music-toggle-button {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: var(--accent-color);
    color: var(--primary-color);
    border: 3px solid var(--primary-color);
    border-radius: 50%;
    width: 55px;
    height: 55px;
    font-size: 1.6em;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    transition: all 0.3s ease;
    filter: drop-shadow(0 0 5px rgba(217, 195, 165, 0.7));
}

.music-toggle-button:hover {
    background-color: var(--primary-color);
    color: var(--accent-color);
    transform: scale(1.1) rotate(360deg);
    filter: drop-shadow(0 0 10px var(--primary-color));
}

/* --- Sección Hero (Principal) --- */
.hero {
    background-image: url('images/hero-baby.jpg');
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    color: var(--text-light);
    text-align: center;
    padding: 100px 20px;
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.65); /* Overlay más oscuro para mejor contraste */
}

.hero-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 200px);
    width: 100%;
    padding: 0 10px;
}

.hero h1 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 7em;
    margin-bottom: 10px;
    color: var(--text-light);
    letter-spacing: 5px;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.4);
    word-wrap: break-word;
    font-weight: 700;
}

.hero p {
    font-family: 'Raleway', sans-serif;
    font-size: 1.6em;
    margin-bottom: 25px;
    font-weight: 300;
    word-wrap: break-word;
}

.date-location p {
    font-size: 1.4em;
    margin: 8px 0;
    font-weight: 400;
    word-wrap: break-word;
}

.countdown {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 60px;
    flex-wrap: wrap;
}

.countdown-item {
    background-color: rgba(255, 255, 255, 0.1);
    border: 2px solid var(--accent-color);
    padding: 20px 30px;
    border-radius: 10px;
    font-size: 3em;
    font-weight: 700;
    color: var(--text-light);
    backdrop-filter: blur(5px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    min-width: 100px;
    text-align: center;
    text-shadow: none;
}

.countdown-item:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

.countdown-item span:last-child {
    display: block;
    font-size: 0.5em;
    font-weight: 400;
    margin-top: 5px;
    font-family: 'Raleway', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- ESTILO PARA EL MENSAJE "¡ES EL GRAN DÍA!" --- */
#weddingDayMessage {
    font-family: 'Cormorant Garamond', serif;
    font-size: 5em;
    color: var(--text-light);
    text-shadow: 2px 2px 5px rgba(0,0,0,0.5);
    margin-top: 50px;
    word-wrap: break-word;
    text-align: center;
    letter-spacing: 2px;
}

/* --- Secciones Generales --- */
section {
    padding: 100px 0;
    text-align: center;
    width: 100%;
    overflow: hidden;
}

section h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 4em;
    color: var(--primary-color);
    margin-bottom: 30px;
    position: relative;
    display: inline-block;
    word-wrap: break-word;
    font-weight: 700;
    letter-spacing: 1px;
}

section h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 2px;
    background-color: var(--accent-color);
    margin: 15px auto 0;
    border-radius: 1px;
}

.section-intro-text {
    font-size: 1.2em;
    margin-bottom: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 15px;
    word-wrap: break-word;
    font-weight: 300;
    color: var(--text-dark);
}

/* --- Sección de la Historia --- */
.story {
    background-color: #fff;
}

.story-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 60px;
    text-align: center;
    margin-top: 50px;
}

.story-text {
    flex: 1;
    max-width: 700px;
    padding: 0 15px;
    word-wrap: break-word;
}

.story-text p {
    margin-bottom: 25px;
    font-size: 1.2em;
    line-height: 1.8;
    color: var(--text-dark);
}

.story-image {
    flex: 1;
    order: -1;
    width: 90%;
    max-width: 550px;
    margin: 0 auto 30px auto;
}

.story-image img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    border: 3px solid var(--primary-color);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    transition: transform 0.5s ease-in-out, box-shadow 0.5s ease-in-out;
    display: block;
}

.story-image img:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
}

/* --- Sección de Detalles --- */
.details {
    background-color: var(--primary-color);
    color: var(--text-light);
    padding-bottom: 100px;
}

.details h2 {
    color: var(--text-light);
}

.details h2::after {
    background-color: var(--secondary-color);
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 50px;
    margin-top: 60px;
    text-align: center;
    padding: 0 15px;
}

.detail-item {
    background-color: var(--secondary-color); /* Fondo claro para mejor contraste */
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
    border: 1px solid var(--accent-color);
    backdrop-filter: blur(5px);
    color: var(--text-dark); /* Color de texto oscuro para el contraste */
}

.detail-item:hover {
    transform: translateY(-10px);
    background-color: #fff;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
}

.detail-item h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.5em;
    margin-bottom: 15px;
    color: var(--primary-color);
    word-wrap: break-word;
    font-weight: 400;
}

.detail-item p {
    font-size: 1.15em;
    margin-bottom: 10px;
    word-wrap: break-word;
    font-weight: 300;
}

.detail-item i {
    font-size: 3em;
    margin-bottom: 20px;
    color: var(--accent-color);
    transition: color 0.3s ease;
}

.detail-item:hover i {
    color: var(--primary-color);
}

.button-small {
    display: inline-block;
    background-color: var(--accent-color);
    color: var(--text-dark);
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    margin-top: 20px;
    font-size: 1em;
    font-weight: 700;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.button-small:hover {
    background-color: var(--primary-color);
    transform: scale(1.05);
    color: var(--text-light);
}

/* --- Sección de Galería --- */
.gallery {
    background-color: var(--secondary-color);
}

.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 60px;
    padding: 0 15px;
}

.image-grid a {
    display: block;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
    height: 300px;
    position: relative;
    border: 1px solid var(--primary-color);
}

.image-grid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.image-grid a::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(122, 101, 83, 0.25);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.image-grid a:hover::after {
    opacity: 1;
}

.image-grid a:hover img {
    transform: scale(1.1);
}

/* --- Sección de Subir Fotos --- */
.upload-photos {
    background-color: #fff;
}

.upload-form-container {
    background-color: var(--primary-color);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
    max-width: 750px;
    margin: 50px auto 80px auto;
    text-align: left;
    width: calc(100% - 30px);
    color: var(--text-light);
}

.upload-form-container label {
    display: block;
    margin-bottom: 12px;
    font-weight: 500;
    color: var(--secondary-color);
    font-size: 1.2em;
    font-family: 'Raleway', sans-serif;
}

.upload-form-container input[type="file"] {
    width: 100%;
    padding: 15px 12px;
    margin-bottom: 25px;
    border: 1px solid var(--accent-color);
    border-radius: 8px;
    background-color: var(--secondary-color);
    color: var(--text-dark);
    font-family: 'Raleway', sans-serif;
    font-size: 1.1em;
    cursor: pointer;
    box-sizing: border-box;
}

.upload-form-container input[type="file"]::-webkit-file-upload-button {
    background-color: var(--accent-color);
    color: var(--text-dark);
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-right: 20px;
    transition: all 0.3s ease;
    font-weight: 700;
}

.upload-form-container input[type="file"]::-webkit-file-upload-button:hover {
    background-color: var(--secondary-color);
}

.upload-form-container .button-link {
    width: auto;
    margin-left: auto;
    margin-right: auto;
    display: block;
}

/* --- Carrusel de Fotos (Swiper.js) --- */
.uploaded-photos-carousel {
    margin-top: 80px;
    background-color: var(--secondary-color);
    padding: 50px 0;
    border-radius: 20px;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
    width: 100%;
    overflow: hidden;
}

.uploaded-photos-carousel .carousel-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 3.5em;
    color: var(--primary-color);
    margin-bottom: 50px;
}

.swiper {
    width: 95%;
    max-width: 1000px;
    height: 450px;
    margin: 0 auto;
    border-radius: 10px;
}

.swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--text-dark);
}

.swiper-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    margin: auto;
    border-radius: 10px;
}

/* Navegación de Swiper (Flechas) */
.swiper-button-next,
.swiper-button-prev {
    color: var(--accent-color) !important;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    top: 50%;
    transform: translateY(-50%);
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    background-color: var(--primary-color);
    color: var(--accent-color) !important;
    transform: scale(1.1) translateY(-50%);
}

.swiper-button-next::after,
.swiper-button-prev::after {
    font-size: 26px !important;
    font-weight: bold;
}

/* Paginación de Swiper (Puntos) */
.swiper-pagination-bullet {
    background: var(--primary-color) !important;
    opacity: 0.5 !important;
}

.swiper-pagination-bullet-active {
    background: var(--accent-color) !important;
    opacity: 1 !important;
    transform: scale(1.3);
}

.no-photos-message {
    color: var(--text-dark);
    margin-top: 30px;
    font-style: italic;
    font-size: 1.2em;
}

/* Skeleton Loader */
.skeleton-slide {
    background: linear-gradient(90deg, #e0e0e0 25%, #d3d3d3 50%, #e0e0e0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: 10px;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* --- Sección de Regalos --- */
.gifts {
    background-color: #fff;
    padding-bottom: 100px;
}

.gift-options {
    display: flex;
    flex-direction: column;
    gap: 50px;
    margin-top: 60px;
    text-align: left;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 15px;
}

.gift-item {
    background-color: var(--secondary-color);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    color: var(--text-dark);
}

.gift-item h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.2em;
    color: var(--primary-color);
    margin-bottom: 15px;
    word-wrap: break-word;
    font-weight: 400;
}

.gift-item p {
    font-size: 1.2em;
    margin-bottom: 20px;
    word-wrap: break-word;
}

/* --- Sección de Preguntas Frecuentes --- */
.faq {
    background-color: var(--secondary-color);
}

.faq-list {
    max-width: 800px;
    margin: 50px auto 0;
    text-align: left;
    padding: 0 15px;
}

.faq-item {
    background-color: #fff;
    border: 1px solid var(--primary-color);
    border-radius: 10px;
    margin-bottom: 25px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
    color: var(--text-dark);
}

.faq-item:hover {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
    border-color: var(--accent-color);
}

.faq-item summary {
    font-weight: 500;
    font-size: 1.3em;
    padding: 25px;
    cursor: pointer;
    outline: none;
    color: var(--text-dark);
    position: relative;
    user-select: none;
    word-wrap: break-word;
}

.faq-item summary::after {
    content: '→';
    font-family: 'Raleway', sans-serif;
    position: absolute;
    right: 25px;
    font-size: 1.5em;
    font-weight: 300;
    transition: transform 0.3s ease;
}

.faq-item[open] summary::after {
    content: '↓';
    transform: none;
}

.faq-item p {
    padding: 0 25px 25px;
    margin: 0;
    font-size: 1.1em;
    color: var(--text-dark);
    word-wrap: break-word;
}

/* --- Sección de Confirmación (RSVP) --- */
.rsvp {
    background-color: #fff;
    padding-bottom: 100px;
}

.rsvp > p {
    font-size: 1.2em;
    margin-bottom: 40px;
    padding: 0 15px;
    word-wrap: break-word;
    color: var(--text-dark);
}

.rsvp-call-to-action {
    margin-top: 50px;
    padding: 40px;
    border-radius: 15px;
    background-color: var(--secondary-color);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
    width: calc(100% - 30px);
}

.rsvp-call-to-action p {
    text-align: center;
    margin-bottom: 30px;
    font-size: 2.2em;
    color: var(--primary-color);
    font-family: 'Cormorant Garamond', serif;
    word-wrap: break-word;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 500;
    color: var(--text-dark);
    font-size: 1.1em;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="number"],
.form-group textarea {
    width: 100%;
    padding: 15px 12px;
    border: 1px solid #d3d3d3;
    border-radius: 8px;
    font-family: 'Raleway', sans-serif;
    font-size: 1.1em;
    color: var(--text-dark);
    box-sizing: border-box;
    transition: border-color 0.3s ease;
}

.form-group textarea {
    resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 8px rgba(122, 101, 83, 0.4);
}

.button-link {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 18px 35px;
    border-radius: 10px;
    text-decoration: none;
    font-size: 1.3em;
    font-weight: 500;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
    border: none;
    cursor: pointer;
    max-width: 100%;
    text-align: center;
    margin-top: 20px;
}

.button-link:hover {
    background-color: var(--accent-color);
    color: var(--text-dark);
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.button-link.small {
    padding: 12px 25px;
    font-size: 1.1em;
}

.form-message {
    margin-top: 30px;
    font-size: 1.2em;
    font-weight: 500;
    text-align: center;
    color: var(--text-dark);
}

/* --- ESTILO PARA EL MENSAJE DE RSVP CERRADO --- */
#rsvpClosedMessage {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.7em;
    font-weight: 700;
    color: var(--primary-color);
    margin-top: 40px;
    margin-bottom: 40px;
    padding: 25px;
    background-color: var(--secondary-color);
    border-radius: 10px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
    line-height: 1.6;
    text-align: center;
    max-width: 750px;
    margin-left: auto;
    margin-right: auto;
}

/* --- Pie de Página --- */
.footer {
    background-color: var(--primary-color);
    color: var(--text-light);
    text-align: center;
    padding: 30px;
    font-size: 1.1em;
    letter-spacing: 1px;
    width: 100%;
}

/* --- Estilos del Cargador de Página --- */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--secondary-color);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.7s ease-out, visibility 0.7s ease-out;
}

.page-loader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.spinner {
    border: 7px solid var(--primary-color);
    border-top: 7px solid var(--accent-color);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
    margin-bottom: 25px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.page-loader p {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.2em;
    color: var(--text-dark);
}

body.loading-active {
    overflow: hidden;
}

/* --- Ajustes Responsivos para PC (Pantallas grandes) --- */
@media (min-width: 769px) {
    .container {
        width: 85%;
        max-width: 1300px;
    }

    .hero h1 { font-size: 8em; }
    .hero p { font-size: 1.8em; }
    .date-location p { font-size: 1.5em; }
    .countdown-item { font-size: 3.5em; padding: 25px 45px; }
    section h2 { font-size: 5.5em; }
    .section-intro-text { font-size: 1.3em; }
    .story-text p { font-size: 1.2em; }
    .detail-item h3 { font-size: 2.8em; }
    .detail-item p { font-size: 1.25em; }
    .button-link { font-size: 1.4em; padding: 20px 40px; }
    .details-grid { grid-template-columns: repeat(3, 1fr); gap: 60px; padding: 0; }
    .image-grid { grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 35px; padding: 0; }
    .image-grid a { height: 350px; }
    .gift-options { flex-direction: row; padding: 0; }
    .gift-item { flex: 1; }
    .faq-list { max-width: 900px; padding: 0; }

    /* Ajustes específicos para PC en la sección de la historia */
    .story-content {
        flex-direction: row;
        justify-content: center;
        align-items: center;
        text-align: left;
    }

    .story-text {
        padding-right: 50px;
        max-width: 50%;
        padding-left: 0;
    }

    .story-image {
        order: unset;
        max-width: 45%;
        margin: 0;
    }

    .story-image img {
        width: 100%;
        height: auto;
        object-fit: cover;
        max-height: 600px;
    }

    /* Ajustes específicos para PC en el carrusel de fotos */
    .swiper {
        height: 550px;
    }
    .swiper-button-next,
    .swiper-button-prev {
        width: 55px;
        height: 55px;
    }
    .swiper-button-next::after,
    .swiper-button-prev::after {
        font-size: 30px !important;
    }
    
    .upload-form-container, .rsvp-call-to-action {
        width: 100%;
        padding: 40px;
    }
}

/* --- Ajustes Responsivos (Pantallas pequeñas) --- */
@media (max-width: 768px) {
    .hero h1 { font-size: 4.5em; }
    .hero p { font-size: 1.2em; }
    .countdown { flex-wrap: wrap; gap: 20px; }
    .countdown-item { font-size: 2em; padding: 15px 25px; }
    section h2 { font-size: 3.2em; }
    .image-grid a { height: 250px; }
    .image-grid { grid-template-columns: 1fr; }
    .details-grid { grid-template-columns: 1fr; }
    .rsvp-call-to-action { padding: 20px; }
    .button-link { font-size: 1.1em; padding: 15px 30px; }
    .gift-options { flex-direction: column; }
    .gift-item { text-align: center; }
    .faq-list { width: 95%; }

    /* Ajustes específicos para móviles en el carrusel de fotos */
    .swiper {
        height: 350px;
    }
    .swiper-button-next,
    .swiper-button-prev {
        width: 40px;
        height: 40px;
    }
    .swiper-button-next::after,
    .swiper-button-prev::after {
        font-size: 20px !important;
    }
    
    .upload-form-container input[type="file"]::-webkit-file-upload-button {
        padding: 8px 15px;
        font-size: 1em;
    }
    .music-toggle-button {
        bottom: 15px;
        right: 15px;
        width: 50px;
        height: 50px;
        font-size: 1.5em;
    }
    #weddingDayMessage {
        font-size: 3em;
    }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 3.5em; }
    .hero p { font-size: 1em; }
    .countdown-item {
        font-size: 1.5em;
        padding: 8px 12px;
        min-width: 30px;
    }
    .countdown-item span:first-child {
        display: block;
        font-size: 1.8em;
    }
    .countdown-item span:last-child {
        display: block;
        font-size: 0.7em;
    }
    section h2 { font-size: 2.5em; }
    #weddingDayMessage {
        font-size: 2.5em;
    }
}

/* ==========================================================
   REVELACIÓN DE GÉNERO - estilos nuevos y ajustes
   ========================================================== */

/* --- Portada sin foto: fondo crema con manchas celeste y rosa --- */
.hero {
    background: radial-gradient(ellipse at 50% 40%, #fffdf9 0%, #f6efe4 70%, #efe4d3 100%);
    color: var(--text-dark);
}
.hero::before { display: none; }
.hero-blob {
    position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; pointer-events: none;
    width: 55vw; height: 55vw; max-width: 720px; max-height: 720px;
}
.blob-boy  { background: var(--boy);  left: -18vw; top: -12vw; }
.blob-girl { background: var(--girl); right: -18vw; bottom: -14vw; }

.balloon {
    position: absolute; width: 70px; height: 86px; border-radius: 50% 50% 48% 48%;
    opacity: .85; pointer-events: none; animation: floaty 7s ease-in-out infinite;
    box-shadow: inset -10px -12px 0 rgba(0,0,0,.06), inset 10px 10px 18px rgba(255,255,255,.5);
}
.balloon::after {
    content: ''; position: absolute; left: 50%; top: 100%; width: 1px; height: 90px;
    background: rgba(63, 52, 43, .25);
}
.balloon.b1 { background: var(--boy);  left: 8%;  top: 18%; }
.balloon.b2 { background: var(--girl); right: 9%; top: 14%; animation-delay: -2s; width: 58px; height: 72px; }
.balloon.b3 { background: var(--accent-color); left: 14%; bottom: 14%; animation-delay: -4s; width: 50px; height: 62px; }
.balloon.b4 { background: var(--girl); right: 15%; bottom: 20%; animation-delay: -1s; width: 46px; height: 57px; }
@keyframes floaty {
    0%, 100% { transform: translateY(0) rotate(-3deg); }
    50% { transform: translateY(-22px) rotate(3deg); }
}

.hero .hero-kicker {
    font-family: 'Raleway', sans-serif;
    text-transform: uppercase; letter-spacing: 6px; font-weight: 500;
    font-size: 1em; color: var(--primary-color); margin-bottom: 5px;
}
.hero h1 {
    font-family: 'Cormorant Garamond', serif;
    color: var(--text-dark); text-shadow: none; letter-spacing: 1px; font-weight: 600;
    line-height: 1.05; margin: 0 0 10px;
}
.hero h1 .boy  { color: var(--boy-dark); }
.hero h1 .girl { color: var(--girl-dark); }
.hero h1 .o    { font-style: italic; font-weight: 400; color: var(--primary-color); font-size: .7em; }
.hero .names {
    font-family: 'Parisienne', cursive; font-size: 3em;
    color: var(--primary-color); margin-bottom: 15px;
}
.date-location p i { color: var(--primary-color); margin-right: 6px; }

.countdown-item {
    background-color: rgba(255, 255, 255, 0.65);
    color: var(--text-dark);
    border: 2px solid var(--boy);
    box-shadow: 0 6px 18px rgba(63, 52, 43, 0.08);
}
.countdown-item:nth-child(even) { border-color: var(--girl); }
.countdown-item:hover { background-color: rgba(255, 255, 255, 0.9); }
.countdown-item span:last-child { color: var(--primary-color); }

#weddingDayMessage { color: var(--text-dark); text-shadow: none; }
.hero .reveal-result {
    font-family: 'Cormorant Garamond', serif; font-weight: 700;
    font-size: 4.5em; margin-top: 20px;
}
.reveal-result.is-boy  { color: var(--boy-dark); }
.reveal-result.is-girl { color: var(--girl-dark); }

/* --- Títulos de sección --- */
section h2 { font-weight: 600; }
.story-text .signature {
    font-family: 'Parisienne', cursive; font-size: 2.2em; color: var(--primary-color); margin-top: 10px;
}
.story-image img { border-color: var(--accent-color); }

/* --- Detalles --- */
.detail-item i { color: var(--primary-color); }
.detail-item:hover i { color: var(--girl-dark); }
.detail-item p i { font-size: 1em; margin: 0 4px 0 0; }
.swatches { display: flex; justify-content: center; gap: 8px; margin: 5px 0 15px; }
.swatches span {
    width: 30px; height: 30px; border-radius: 50%; border: 1px solid rgba(63, 52, 43, .18);
    box-shadow: 0 2px 6px rgba(0,0,0,.08);
}

/* --- Equipos (regalos) --- */
.teams { background-color: #fff; }
.team-cards {
    display: flex; align-items: center; justify-content: center; gap: 30px;
    max-width: 950px; margin: 50px auto 0; padding: 0 15px;
}
.team-card {
    flex: 1; border-radius: 22px; padding: 40px 30px; text-align: center;
    box-shadow: 0 12px 28px rgba(63, 52, 43, 0.08); transition: transform .35s ease;
}
.team-card:hover { transform: translateY(-8px); }
.team-boy  { background: var(--boy-soft);  border: 2px solid var(--boy); }
.team-girl { background: var(--girl-soft); border: 2px solid var(--girl); }
.team-icon {
    width: 80px; height: 80px; border-radius: 50%; margin: 0 auto 15px;
    display: flex; align-items: center; justify-content: center; font-size: 2.2em; color: #fff;
}
.team-boy .team-icon  { background: var(--boy); }
.team-girl .team-icon { background: var(--girl); }
.team-card h3 {
    font-family: 'Cormorant Garamond', serif; font-size: 2.4em; font-weight: 700; margin: 0 0 10px;
}
.team-boy h3  { color: var(--boy-dark); }
.team-girl h3 { color: var(--girl-dark); }
.team-gift-label { margin: 0; font-size: 1.05em; color: var(--primary-color); }
.team-gift { margin: 6px 0 0; font-size: 1.6em; font-weight: 600; color: var(--text-dark); }
.team-vs {
    font-family: 'Cormorant Garamond', serif; font-size: 2.2em; font-weight: 700; font-style: italic;
    color: var(--primary-color); flex: 0 0 auto;
}

.vote-results {
    max-width: 650px; margin: 60px auto 0; padding: 30px 30px 20px; border-radius: 18px;
    background: var(--secondary-color); box-shadow: 0 8px 20px rgba(63, 52, 43, 0.06);
}
.vote-results h3 {
    font-family: 'Cormorant Garamond', serif; font-size: 2em; color: var(--primary-color); margin: 0 0 20px;
}
.vote-bar { display: flex; height: 26px; border-radius: 13px; overflow: hidden; background: #eee; }
.vote-bar-boy  { background: linear-gradient(90deg, var(--boy-dark), var(--boy)); transition: width 1s ease; }
.vote-bar-girl { background: linear-gradient(90deg, var(--girl), var(--girl-dark)); transition: width 1s ease; }
.vote-labels {
    display: flex; justify-content: space-between; align-items: center; margin-top: 12px; font-size: 1.1em; gap: 10px;
}
.boy-label  { color: var(--boy-dark); }
.girl-label { color: var(--girl-dark); }
.vote-total { font-size: .9em; color: var(--primary-color); }
.vote-hint { margin: 15px 0 0; font-size: .95em; color: var(--primary-color); }

/* --- Formulario: votación y filas --- */
.vote-options { display: flex; gap: 15px; }
.form-group .vote-option { flex: 1; cursor: pointer; margin: 0; position: relative; }
.vote-option input { position: absolute; opacity: 0; pointer-events: none; }
.vote-option span {
    display: block; text-align: center; padding: 16px 10px; border-radius: 12px; font-weight: 600;
    font-size: 1.1em; border: 2px solid transparent; transition: all .25s ease; background: #fff;
}
.vote-option-boy span  { color: var(--boy-dark);  border-color: var(--boy); }
.vote-option-girl span { color: var(--girl-dark); border-color: var(--girl); }
.vote-option-boy input:checked + span  { background: var(--boy);  color: #fff; transform: scale(1.03); }
.vote-option-girl input:checked + span { background: var(--girl); color: #fff; transform: scale(1.03); }
.vote-option input:focus-visible + span { outline: 3px solid var(--accent-color); outline-offset: 2px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }

/* --- Invitación con cupo (?personas=N) --- */
.party-note {
    background: #fff; border: 2px dashed var(--accent-color); border-radius: 12px;
    padding: 12px 15px; text-align: center; color: var(--text-dark); margin: 0 0 15px;
}
.vote-option-neutral span { color: var(--primary-color); border-color: var(--accent-color); font-size: 1em; }
.vote-option-neutral input:checked + span { background: var(--primary-color); color: #fff; border-color: var(--primary-color); transform: scale(1.03); }
.party-less { margin-top: 15px; }

/* --- Título "Revelación de género" (más largo que el original) --- */
.hero h1.title-reveal { font-size: clamp(2.6rem, 11vw, 6.5rem); }
.hero h1.title-reveal .o { font-size: .6em; }

/* --- Cargador y botón de música --- */
.spinner { border-color: var(--boy); border-top-color: var(--girl); }
.music-toggle-button { background-color: #fff; color: var(--primary-color); border-color: var(--accent-color); }

@media (min-width: 769px) {
    .hero h1 { font-size: 7em; }
}
@media (max-width: 768px) {
    .team-cards { flex-direction: column; gap: 15px; }
    .team-card { width: 100%; }
    .team-vs { font-size: 1.8em; }
    .hero .names { font-size: 2.4em; }
    .balloon.b1, .balloon.b3 { left: 3%; }
    .balloon.b2, .balloon.b4 { right: 3%; }
    .hero .reveal-result { font-size: 3em; }
}
@media (max-width: 480px) {
    .hero h1 { font-size: 3.2em; }
    .hero .hero-kicker { letter-spacing: 4px; font-size: .85em; }
    .balloon { transform: scale(.7); }
    .vote-results { padding: 25px 18px 18px; }
    .form-row { grid-template-columns: 1fr; gap: 0; }
}


/* --- Ajustes finos (celular y preguntas) --- */
section h2 { line-height: 1.15; }
.faq-item summary { list-style: none; padding-right: 65px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { top: 50%; transform: translateY(-50%); }
.faq-item[open] summary::after { transform: translateY(-50%); }
.vote-labels span { white-space: nowrap; }

@media (max-width: 768px) {
    .balloon.b1 { top: 5%; }
    .balloon.b2 { top: 3%; }
    .balloon.b3 { bottom: 6%; }
    .balloon.b4 { bottom: 9%; }
}
@media (max-width: 480px) {
    .countdown { gap: 8px; flex-wrap: nowrap; margin-top: 40px; width: 100%; }
    .countdown-item { flex: 1 1 0; min-width: 0; max-width: 82px; padding: 10px 4px; }
    .countdown-item span:first-child { font-size: 1.5em; }
    .countdown-item span:last-child { font-size: .5em; letter-spacing: .5px; }
    .vote-labels { font-size: 1em; }
    .vote-total { font-size: .8em; }
}

/* --- Galería de 2 fotos (caja del anuncio + ecografía) ---
   Las dos tienen fondo negro: se muestran enteras (contain) sobre tarjeta negra. */
.image-grid.gallery-two {
    grid-template-columns: repeat(2, 1fr);
    max-width: 900px; margin-left: auto; margin-right: auto;
}
.image-grid.gallery-two a {
    height: auto; aspect-ratio: 4 / 5;
    background: #000; border-color: var(--accent-color);
}
.image-grid.gallery-two img { object-fit: contain; }
.image-grid.gallery-two a:hover img { transform: scale(1.04); }
@media (max-width: 600px) {
    .image-grid.gallery-two { grid-template-columns: 1fr; gap: 20px; }
    .image-grid.gallery-two a { aspect-ratio: auto; }
    .image-grid.gallery-two img { height: auto; }
}

/* Link a la página de fotos / pantalla gigante */
.photos-page-link { text-align: center; margin: 20px 0 0; }
