:root {
    --primary-color: #5d745d;
    /* Sage Green */
    --secondary-color: #d4a373;
    /* Gold/Terracotta */
    --accent-coral: #ef8a6d;
    --accent-olive: #8b9d77;
    --bg-light: #f9f7f2;
    --white: #ffffff;
    --text-dark: #2d2d2d;
    --serif-font: 'Playfair Display', serif;
    --sans-font: 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--sans-font);
    background-color: var(--white);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

h1,
h2,
h3,
.serif {
    font-family: var(--serif-font);
    font-weight: 400;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Stripes decoration */
.stripes {
    height: 15px;
    display: flex;
    width: 100%;
}

.stripe-coral {
    background: var(--accent-coral);
    flex: 1;
}

.stripe-green {
    background: var(--primary-color);
    flex: 1;
}

.stripe-terracotta {
    background: var(--secondary-color);
    flex: 1;
}

/* Navigation */
header {
    padding: 15px 0;
    /* Header más pequeño/compacto */
    background: var(--white);
    position: relative;
    z-index: 100;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 100%;
    margin: 0;
    padding: 0 100px 0 40px;
    /* Menos espacio a la izquierda para el logo */
}

.nav-logo img {
    height: 150px;
}

.nav-links {
    display: flex;
    gap: 40px;
}

.nav-links a {
    text-decoration: none;
    color: var(--primary-color);
    font-family: var(--serif-font);
    font-size: 1.4rem;
    font-weight: 400;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 32px;
    height: 22px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1000;
}

.menu-toggle span {
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
    border-radius: 4px;
    transition: all 0.3s;
}

.menu-toggle.open span:nth-child(1) {
    transform: translateY(10px) rotate(45deg);
}

.menu-toggle.open span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.open span:nth-child(3) {
    transform: translateY(-10px) rotate(-45deg);
}

/* Hero */
.section-label {
    text-align: center;
    color: #8b2d2d;
    /* Reddish brown seen in ref */
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 2px;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.hero-img-container {
    position: relative;
    width: 100%;
    margin: 0;
    padding: 0;
    overflow: visible;
    /* Permitir que se note el redondeado completo */
    display: block;
}

.hero-img-wrapper {
    position: relative;
    border-radius: 60px;
    /* Redondeado idéntico y parejo */
    margin: 0;
    width: 100%;
    padding: 0;
    overflow: hidden;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.08);
}

.hero-img-wrapper img {
    width: 100%;
    height: 120vh;
    /* Aumentado para tener margen para el efecto parallax */
    object-fit: cover;
    object-position: center top;
    display: block;
    margin: 0;
    transition: filter 1.2s cubic-bezier(0.2, 0.8, 0.2, 1);
    will-change: transform;
    /* Optimización para parallax */
}

.vertical-line-decor {
    display: none;
    /* Eliminado para el diseño sin marcos */
}

.vertical-line-decor::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    background: url('../img/floral.png') center/contain no-repeat;
    filter: sepia(100%) saturate(300%) hue-rotate(350deg);
    /* Adjust to match gold flower */
}

/* Quote Section */
.quote-section {
    padding: 80px 0;
    text-align: center;
    overflow: hidden;
    /* Prevents quotes from pushing out of screen */
}

.quote-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.quote-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    /* No gap for maximum closeness */
    margin: 60px auto;
    max-width: 100%;
}

.quote-icon {
    width: 45vw;
    max-width: 700px;
    height: auto;
    opacity: 1;
    flex-shrink: 1;
    margin: 0 -9vw;
    /* Even closer */
}

.quote-text-content {
    flex: 0 1 auto;
    text-align: center;
    padding: 0;
    /* Removed padding to close gap */
}

.quote-text-content h2 {
    font-size: 3rem;
    color: #2c3e50;
    margin: 20px 0;
    line-height: 1.2;
    font-weight: 300;
    white-space: nowrap;
}

.quote-text-content h2.italic {
    font-style: italic;
    font-size: 2.8rem;
}

.quote-section p.author {
    margin-top: 60px;
    font-size: 1.6rem;
    text-align: right;
    padding-right: 50px;
    color: #2c3e50;
    font-weight: 300;
}


/* Countdown Section Styling */
.countdown-section {
    padding: 100px 0;
    background-color: #f7f6f2;
    /* Color crema suave del fondo */
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.countdown-stripes {
    position: absolute;
    top: 40%;
    /* Movidas significativamente más arriba */
    left: 0;
    width: 100%;
    height: 550px;
    /* Tamaño para que se vean bien las 3 líneas */
    transform: translateY(-50%);
    background: url('../img/countdown_stripes.png') center/contain repeat-x;
    opacity: 1;
    z-index: 1;
}

.countdown-container {
    position: relative;
    z-index: 10;
    width: 90%;
    max-width: 800px;
    /* Tamaño cuadrado */
}

.countdown-image-wrapper {
    position: relative;
    border-radius: 40px;
    overflow: hidden;
    background: transparent;
    /* Eliminado el fondo negro */
    aspect-ratio: 1 / 1;
    /* Forzar formato cuadrado */
}

.couple-img {
    width: 100%;
    height: 125%;
    /* Extra height para el efecto parallax */
    object-fit: cover;
    /* Asegura que llene el cuadrado sin deformarse */
    display: block;
    filter: brightness(0.7) contrast(1.1);
    transform: translateY(-12.5%);
    /* Centrar el sobrante para empezar */
    will-change: transform;
}

.countdown-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    text-align: center;
    padding: 40px;
}

.save-the-date {
    font-size: 3.5rem;
    letter-spacing: 0.2em;
    margin-bottom: 40px;
    font-weight: 400;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
}

.timer-display {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 15px;
}

.timer-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 110px;
}

.timer-block span {
    font-size: 6rem;
    font-weight: 400;
    line-height: 1;
    text-shadow: 2px 2px 15px rgba(0, 0, 0, 0.4);
}

.timer-block p {
    font-size: 1.3rem;
    margin-top: 10px;
    text-transform: capitalize;
    font-weight: 300;
    opacity: 1;
}

.colon {
    font-size: 4rem;
    padding-top: 15px;
    font-weight: 300;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .save-the-date {
        font-size: 3rem;
    }

    .timer-block span {
        font-size: 5rem;
    }

    .timer-block {
        min-width: 90px;
    }
}

@media (max-width: 768px) {
    .countdown-section {
        padding: 80px 0;
    }

    .save-the-date {
        font-size: 2.2rem;
        letter-spacing: 0.15em;
        margin-bottom: 40px;
    }

    .timer-block span {
        font-size: 3rem;
    }

    .timer-display {
        gap: 5px;
    }

    .timer-block {
        min-width: 60px;
    }

    .timer-block p {
        font-size: 1rem;
    }

    .colon {
        font-size: 2rem;
        padding-top: 8px;
    }

    .countdown-image-wrapper {
        border-radius: 30px;
        aspect-ratio: auto;
        min-height: 600px;
    }
}

@media (max-width: 480px) {
    .countdown-overlay {
        padding: 20px 10px;
        justify-content: center;
    }

    .save-the-date {
        font-size: 1.8rem;
        margin-bottom: 25px;
    }

    .timer-block span {
        font-size: 2.2rem;
    }

    .timer-block {
        min-width: 50px;
    }

    .timer-block p {
        font-size: 0.85rem;
        margin-top: 5px;
    }

    .colon {
        font-size: 1.8rem;
        padding-top: 5px;
    }

    .countdown-image-wrapper {
        aspect-ratio: auto;
        min-height: 550px;
        height: 70vh;
    }
}

/* Details Section Rediseñada */
.details-section {
    padding: 120px 0;
    position: relative;
    text-align: center;
    background-color: var(--white);
    overflow: hidden;
    /* Importante para que las flores no causen scroll lateral */
}

.decor-leaf {
    position: absolute;
    top: -180px;
    /* Bajada de nuevo un poquito para mejorar el encuadre */
    left: -570px;
    /* Metida milimétricamente más hacia la derecha */
    width: 1350px;
    pointer-events: none;
    z-index: 1;
}

.decor-leaf img {
    width: 100%;
    opacity: 0.9;
}

.decor-flower {
    position: absolute;
    top: 60%;
    /* Bajada levemente para mejor encuadre lateral */
    right: -450px;
    /* Empujada mucho más hacia el borde exterior derecho */
    transform: translateY(-50%);
    width: 1150px;
    pointer-events: none;
    z-index: 1;
}

.decor-flower img {
    width: 100%;
}

.details-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 50px;
}

.center-monogram {
    width: 180px;
    /* Logo JJ más grande para mayor impacto */
    margin-bottom: 40px;
}

.details-section h2 {
    font-size: 3.2rem;
    letter-spacing: 0.15em;
    font-weight: 400;
    color: #34495e;
    /* Color oscuro refinado para el título */
}

.details-content p {
    max-width: 850px;
    margin: 0 auto;
    font-size: 1.8rem;
    line-height: 1.4;
    color: #4a4a4a;
    /* Suavizar el contraste del texto para que se sienta elegante */
    font-weight: 400;
    padding: 0 40px;
}

.container-details {
    max-width: 1100px;
    position: relative;
    z-index: 10;
}

/* Events Section & Reception Card */
.events-section {
    padding: 80px 0 140px;
    /* Extra bottom padding for the floating button */
    background-color: var(--white);
    display: flex;
    justify-content: center;
}

.event-card {
    border: 3px solid #f8c460;
    /* Color dorado suave del marco */
    border-radius: 20px;
    padding: 70px 80px;
    /* Mas aire lateral JJ */
    max-width: 1300px;
    /* Cuadro mucho más grande para el título JJ */
    width: 95%;
    margin: 0 auto;
    text-align: center;
    position: relative;
    background: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    /* Centrado perfecto de elementos JJ */
}

.event-card h2 {
    font-size: 2.2rem;
    margin-bottom: 50px;
    color: #2c3e50;
    letter-spacing: 0.1em;
    white-space: nowrap;
    /* Título en una sola línea JJ */
}

.event-info {
    display: flex;
    flex-direction: column;
    gap: 50px;
}

.info-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.info-icon {
    margin-bottom: 20px;
    color: #3d4a3d;
    /* Tono verde oliva de los iconos */
}

.info-item .time,
.info-item .venue {
    font-size: 1.6rem;
    margin-bottom: 5px;
    color: #34495e;
}

.info-item .date,
.info-item .address {
    font-size: 1.4rem;
    color: #34495e;
    opacity: 0.9;
}

.event-footer {
    position: absolute;
    bottom: -30px;
    /* Overlap effect */
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
}

.btn-location-card {
    background-color: #f8c460;
    color: white;
    padding: 18px 60px;
    border-radius: 40px;
    font-size: 1.8rem;
    font-weight: 500;
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 6px;
    letter-spacing: 0.1em;
    display: inline-block;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(248, 196, 96, 0.3);
}

.btn-location-card:hover {
    background-color: #f5b041;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(248, 196, 96, 0.4);
}

.adults-only-note {
    margin-top: 160px;
    /* Mas espacio entre el cuadro y el texto JJ */
    text-align: center;
    padding: 0 20px;
}

.adults-only-note p {
    font-size: 1.6rem;
    color: #4a4a4a;
    font-weight: 400;
    line-height: 1.6;
}

/* Dress Code Section */
/* Dress Code Section Rediseñada */
.dress-code {
    padding: 100px 0;
    text-align: center;
    background-color: var(--white);
    position: relative;
    overflow: hidden;
}

.decor-branch-top {
    position: absolute;
    top: -140px;
    /* Elevada de nuevo un poco más JJ */
    right: -250px;
    /* Metida milimétricamente hacia la izquierda */
    width: 700px;
    /* Un cuarto más de tamaño JJ */
    pointer-events: none;
    z-index: 1;
}

.decor-branch-top img {
    width: 100%;
}

.dress-code h2 {
    font-size: 2.2rem;
    margin-bottom: 60px;
    color: #2c3e50;
    letter-spacing: 0.15em;
    font-weight: 500;
    /* Negritas muy suaves JJ */
}

.dress-code-items {
    margin-bottom: 60px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.dress-code-items p {
    font-size: 1.6rem;
    margin-bottom: 25px;
    color: #34495e;
    line-height: 1.6;
}

.dress-code-items .label {
    font-weight: 500;
    /* Negritas muy suaves para las etiquetas JJ */
    letter-spacing: 0.05em;
}

.forbidden-swatches {
    display: flex;
    justify-content: center;
    gap: 50px;
    margin-bottom: 80px;
}

.swatch-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.swatch {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
}

.swatch.white {
    background-color: #f9f8f4;
    border: 1px solid #f0f0f0;
}

.swatch.menta {
    background-color: #bdc9b8;
}

.swatch.olivo {
    background-color: #8e946a;
}

.swatch-item p {
    font-size: 1.4rem;
    color: #555;
    margin: 0;
}

.btn-inspiracion-link {
    display: inline-block;
    transition: all 0.3s ease;
    margin-top: -210px;
    /* Subido otros 2 espacios JJ */
    text-align: center;
}

.btn-img-inspiracion {
    width: 800px;
    /* Tamaño aumentado para mayor presencia JJ */
    height: auto;
    display: block;
    margin: 0 auto;
}

.btn-inspiracion-link:hover {
    transform: translateY(-5px);
    filter: brightness(1.05);
    /* Efecto sutil de brillo JJ */
}


/* Gifts Section */
.gifts-section {
    padding: 120px 0;
    text-align: center;
    background-color: var(--white);
    position: relative;
}

.relative {
    position: relative;
}

.gifts-card {
    border: 2px solid #fbcb5d;
    /* Borde dorado según imagen JJ */
    border-radius: 12px;
    /* Esquinas redondeadas según nueva referencia JJ */
    padding: 80px 100px;
    max-width: 800px;
    margin: 40px auto;
    position: relative;
    z-index: 2;
    background-color: var(--white);
}

.gifts-card h2 {
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: #2c3e50;
    font-weight: 500;
}

.gifts-content p {
    font-size: 1.6rem;
    line-height: 1.8;
    color: #4a4a4a;
    margin-bottom: 50px;
}

.gifts-content strong {
    font-weight: 700;
}

.gifts-actions {
    text-align: center;
    margin-top: 30px;
}

.btn-mesa-regalos {
    background-color: #fbcb5d;
    color: white;
    padding: 12px 50px;
    border-radius: 30px;
    text-decoration: none;
    font-size: 1.6rem;
    font-weight: 600;
    display: inline-block;
    transition: background-color 0.3s ease;
    /* Solo transicion de color JJ */
    position: relative;
    z-index: 5;
}

.btn-mesa-regalos:hover {
    background-color: #f8c460;
    /* Sin transform scale para evitar movimiento JJ */
}

/* Decoraciones Regalos */
.gifts-decor-flower {
    position: absolute;
    top: -300px;
    /* Subida medio espacio para el ajuste perfecto JJ */
    left: -5%;
    /* Movida 1 espacio a la derecha JJ */
    /* Posicionada para enmarcar a gran escala JJ */
    width: 720px;
    /* Tamaño triplicado nuevamente para un efecto spectacular JJ */
    z-index: 3;
    pointer-events: none;
}

.gifts-decor-monogram {
    position: absolute;
    bottom: -120px;
    /* Bajada para que no toque al boton JJ */
    left: 50%;
    transform: translateX(-50%);
    width: 280px;
    /* Monograma aún más grande JJ */
    padding: 0 40px;
    background-color: var(--white);
    /* Mascara para el borde JJ */
    z-index: 4;
    pointer-events: none;
}

/* Hotels */
#hospedaje {
    padding: 120px 0;
    text-align: center;
    background-color: var(--white);
}

#hospedaje .container {
    max-width: none !important;
    /* Desbloqueado total de ancho PJ */
    width: 100% !important;
    padding: 0;
}

#hospedaje h2 {
    margin-bottom: 50px;
    font-size: 3rem;
    /* Tamaño original elegante PJ */
    letter-spacing: 3px;
    color: #2c3e50;
    text-transform: uppercase;
    text-align: center;
}

.hotel-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    margin-top: 20px;
    /* Reducido para que el click no empiece mas arriba de lo visual PJ */
    width: 100%;
    max-width: none;
    padding: 0;
}

.hotel-card {
    display: block;
    text-decoration: none;
    overflow: hidden;
    line-height: 0;
    /* Elimina espacio extra debajo/arriba por ser elemento de texto PJ */
    height: 100%;
}

.hotel-img-wrapper {
    width: 100%;
    min-height: 800px;
    /* Altura monumental PJ */
    height: 80vh;
    /* Se adapta a la pantalla PJ */
    overflow: hidden;
    /* Recorte interno PJ */
    background-color: transparent;
    /* Limpieza total de cuadros residuales PJ */
}

.hotel-img-wrapper img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    border-radius: 0 !important;
    /* Asegurar que no haya redondeado PJ */
    transition: transform 0.8s cubic-bezier(0.2, 1, 0.3, 1);
}

/* Solo zoom cinematográfico PJ */
.hotel-card:hover .hotel-img-wrapper img {
    transform: scale(1.08);
}

/* New Photo Gallery Section */
.photo-gallery-section {
    position: relative;
    padding: 100px 0;
    overflow: hidden;
    background-color: var(--white);
    display: flex;
    justify-content: center;
}

.gallery-container {
    position: relative;
    width: 100%;
    max-width: 1200px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 500px;
}

.gallery-stripes-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100vw;
    display: flex;
    flex-direction: column;
    gap: 25px;
    /* Espacio blanco entre franjas */
    z-index: 1;
}

.gallery-stripes-bg .stripe {
    height: 60px;
    /* Grosor de franjas */
    width: 100%;
}

.s-orange {
    background-color: #fe982b;
    /* Naranja */
}

.s-green {
    background-color: #556c4d;
    /* Verde olivo */
}

.s-pink {
    background-color: #f79ab6;
    /* Rosa */
}

.gallery-images {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    /* Espacio entre fotos */
    width: 100%;
    padding: 0 20px;
}

.gallery-images .img-wrapper {
    overflow: hidden;
    border-radius: 20px;
    /* Bordes muy redondeados como en la imagen */
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.gallery-images .img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Tamaños proporcionales por cada imagen */
.img-1 {
    width: 320px;
    height: 480px;
}

.img-2 {
    width: 250px;
    height: 380px;
}

.img-3 {
    width: 200px;
    height: 300px;
}

@media (max-width: 900px) {
    .gallery-images {
        flex-direction: column;
        gap: 30px;
    }

    .img-1,
    .img-2,
    .img-3 {
        width: 80%;
        height: auto;
        aspect-ratio: 3/4;
    }
}

/* RSVP Section */
.rsvp-section {
    padding: 100px 0;
    background-color: var(--white);
    display: flex;
    justify-content: center;
}

.rsvp-container {
    max-width: 800px;
    width: 100%;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.rsvp-section h2 {
    font-size: 3.5rem;
    color: #4a5d4e;
    letter-spacing: 0.1em;
    margin-bottom: 50px;
}

.rsvp-desc {
    font-size: 1.8rem;
    color: #4a4a4a;
    line-height: 1.8;
    margin-bottom: 60px;
    text-align: left;
    width: 100%;
    padding-left: 20px;
}

.rsvp-contact {
    align-self: flex-start;
    text-align: left;
    margin-bottom: 60px;
    padding-left: 20px;
}

.rsvp-contact p {
    font-size: 1.8rem;
    color: #4a4a4a;
    margin-bottom: 15px;
}

.btn-confirmar {
    background-color: #556c4d;
    /* Verde olivo */
    color: white;
    padding: 12px 100px;
    /* Más ancho */
    border-radius: 15px;
    /* Bordes no tan redondeados */
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 5px;
    font-size: 2.2rem;
    font-family: var(--serif-font);
    /* Fuente serif */
    font-weight: 600;
    display: inline-block;
    transition: all 0.3s ease;
    letter-spacing: 0.05em;
}

.btn-confirmar:hover {
    background-color: #4a5d4e;
    color: white;
    transform: translateY(-2px);
}

/* Final Footer */
.footer-hands {
    background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), url('../img/footer_hands.png') center/cover;
    height: 500px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: var(--white);
    text-align: center;
    padding: 40px;
}

.footer-hands h2 {
    font-size: 1.5rem;
    max-width: 600px;
    font-style: italic;
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }

    .nav-container {
        flex-direction: row;
        padding: 10px 20px;
        justify-content: space-between;
        align-items: center;
        background: var(--white);
        position: relative;
    }

    .nav-logo img {
        height: 95px;
        /* Aumentamos el tamaño del logo */
    }

    .menu-toggle {
        display: flex;
    }

    .nav-links {
        display: flex;
        flex-direction: column;
        width: 100%;
        background-color: var(--white);
        position: absolute;
        top: 100%;
        left: 0;
        padding: 0;
        box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
        z-index: 999;
        text-align: center;
        gap: 0;
        /* Toggle visibility */
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease-out, padding 0.4s ease-out;
    }

    .nav-links.active {
        max-height: 400px;
        padding: 15px 0;
    }

    .nav-links a {
        font-size: 1.1rem;
        padding: 15px;
        display: block;
        width: 100%;
        white-space: normal;
        border-bottom: 1px solid #f0f0f0;
    }

    .nav-links a:last-child {
        border-bottom: none;
    }

    .hero-img-wrapper {
        border-radius: 30px;
    }

    .hero-img-wrapper img {
        height: 70vh;
    }

    .quote-section {
        padding: 40px 0;
    }

    .quote-wrapper {
        flex-direction: column;
        margin: 20px auto;
    }

    .quote-icon {
        width: 80px;
        margin: 10px 0;
    }

    .quote-icon.close-quote {
        margin-top: 20px;
    }

    .quote-text-content h2 {
        font-size: 1.3rem;
        white-space: normal;
        padding: 0 15px;
        /* Added horizontal padding to prevent text touching borders */
    }

    .quote-text-content h2.italic {
        font-size: 1.25rem;
    }

    .quote-section p.author {
        margin-top: 25px;
        font-size: 1.1rem;
        padding-right: 0;
        text-align: center;
    }

    .decor-leaf,
    .decor-flower,
    .decor-branch-top,
    .gifts-decor-flower,
    .gifts-decor-monogram {
        display: none !important;
        /* Esconder elementos absolutos que rompen el layout en movil */
    }

    .details-section {
        padding: 60px 0;
    }

    .details-section h2 {
        font-size: 2.2rem;
    }

    .details-content p {
        font-size: 1.2rem;
        padding: 0 15px;
    }

    .events-section {
        padding: 40px 0 80px;
    }

    .event-card {
        padding: 40px 20px;
    }

    .event-card h2 {
        font-size: 1.5rem;
        white-space: normal;
        margin-bottom: 30px;
    }

    .info-item .time,
    .info-item .venue {
        font-size: 1.3rem;
    }

    .info-item .date,
    .info-item .address {
        font-size: 1.1rem;
    }

    .btn-location-card {
        padding: 14px 40px;
        font-size: 1.2rem;
    }

    .adults-only-note {
        margin-top: 60px;
    }

    .adults-only-note p {
        font-size: 1.2rem;
    }

    .dress-code h2 {
        font-size: 1.8rem;
    }

    .dress-code-items p {
        font-size: 1.2rem;
    }

    .forbidden-swatches {
        gap: 20px;
    }

    .swatch {
        width: 50px;
        height: 50px;
    }

    .swatch-item p {
        font-size: 1.1rem;
    }

    .btn-inspiracion-link {
        display: block;
        margin-top: -30px;
        text-align: center;
        width: 100%;
        padding: 0;
    }

    .btn-img-inspiracion {
        width: 100%;
        max-width: 100%;
        margin: 0 auto;
        transform: scale(1.6);
        /* Hacemos el botón visualmente del mismo tamaño que el de confirmación */
    }

    .gifts-section {
        padding: 60px 0;
    }

    .gifts-card {
        padding: 40px 20px;
        margin: 20px auto;
    }

    .gifts-card h2 {
        font-size: 1.8rem;
    }

    .gifts-content p {
        font-size: 1.2rem;
    }

    .btn-mesa-regalos {
        padding: 12px 20px;
        font-size: 1rem;
        width: auto;
    }

    #hospedaje {
        padding: 40px 0;
    }

    #hospedaje h2 {
        font-size: 1.8rem;
        margin-bottom: 20px;
        letter-spacing: 1px;
    }

    .hotel-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px 15px;
        padding: 0 15px;
        margin-top: 0;
    }

    .hotel-card {
        height: auto;
        margin-bottom: -80px;
        /* Reduce significativamente el espacio vertical invisible entre filas de tarjetas */
        display: block;
        overflow: hidden;
        border-radius: 12px;
    }

    .hotel-img-wrapper {
        min-height: 320px;
        height: 75vw;
        /* Altura controlada alta para recuperar su tamaño enorme */
        aspect-ratio: auto;
        background-color: transparent;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .hotel-img-wrapper img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
        transform: scale(1.35);
        /* Redirigimos el tamaño gigante internamente para que no empuje otras secciones */
    }

    .hospedaje-note {
        margin-top: 40px !important;
        /* Separación más limpia ajustada por las tarjetas altas */
        position: relative;
        z-index: 10;
    }

    .hospedaje-note p {
        font-size: 0.95rem !important;
        padding: 0 15px;
        line-height: 1.4 !important;
    }

    .rsvp-section {
        padding: 60px 0;
    }

    .rsvp-section h2 {
        font-size: 1.8rem;
    }

    .rsvp-desc {
        font-size: 1.1rem;
        margin-bottom: 30px;
        padding-left: 0;
        text-align: center;
        line-height: 1.5;
    }

    .rsvp-contact {
        padding-left: 0;
        text-align: center;
        align-self: center;
        margin-bottom: 40px;
    }

    .rsvp-contact p {
        font-size: 1rem;
        margin-bottom: 10px;
    }

    .btn-confirmar {
        padding: 10px 40px;
        font-size: 1.2rem;
        width: 85%;
        border-radius: 10px;
        text-decoration-thickness: 1.5px;
        text-underline-offset: 4px;
    }
}

/* =========================================
   PRELOADER
   ========================================= */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-light);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

#preloader.fade-out {
    opacity: 0;
    visibility: hidden;
}

.preloader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.preloader-logo {
    width: 180px;
    height: auto;
    animation: pulseLogo 2s infinite cubic-bezier(0.4, 0, 0.2, 1);
}

.preloader-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(93, 116, 93, 0.2);
    /* using primary-color */
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes pulseLogo {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }

    50% {
        transform: scale(1.05);
        opacity: 1;
    }

    100% {
        transform: scale(1);
        opacity: 0.8;
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* =========================================
   SCROLL ANIMATIONS
   ========================================= */
.anim-elem {
    opacity: 0;
    transition: opacity 1.2s cubic-bezier(0.2, 0.8, 0.2, 1), transform 1.2s cubic-bezier(0.2, 0.8, 0.2, 1), filter 1.2s cubic-bezier(0.2, 0.8, 0.2, 1);
    will-change: opacity, transform, filter;
}

/* Tipos de animaciones */
.fade-in {
    transform: none;
}

.blur-in {
    transform: scale(1.05);
    /* Ligeramente más grande para que el blur no revele bordes cortados */
    filter: blur(20px);
}

.slide-up {
    transform: translateY(40px);
}

.scale-up {
    transform: scale(0.95);
}

.slide-right {
    transform: translateX(-40px);
}

.slide-left {
    transform: translateX(40px);
}

/* Retrasos */
.delay-1 {
    transition-delay: 0.2s;
}

.delay-2 {
    transition-delay: 0.4s;
}

.delay-3 {
    transition-delay: 0.6s;
}

/* Cuando es visible en pantalla */
.anim-elem.visible {
    opacity: 1;
    transform: translateY(0) scale(1) translateX(0);
}

.blur-in.visible {
    filter: blur(0px);
}