@font-face {
    font-family: 'Safira March';
    src: url('../fonts/Safira%20March%20Personal%20Use%20Only.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

: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: 'Source Serif Pro', serif;
    --sans-font: 'Inter', sans-serif;
    --hero-font: 'Safira March', serif;
    --timer-font: 'Playfair Display', 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;
    padding-top: 180px; /* Compensa la altura inicial del header para evitar saltos en el scroll */
}

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: #f5f3f5;
    position: fixed; /* Cambiado de sticky a fixed para evitar layout flicker */
    top: 0;
    left: 0;
    width: 100%;
    z-index: 999;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05); /* Sombra sutil al scroll */
    transition: padding 0.3s ease, box-shadow 0.3s ease;
}

header.scrolled {
    padding: 5px 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.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;
    transition: height 0.3s ease;
}

header.scrolled .nav-logo img {
    height: 70px;
}

.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-section {
    position: relative;
    width: 100%;
    height: calc(100vh - 180px); /* Ajuste dinámico para considerar el header y usar el resto de la pantalla */
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #000;
}

.hero-img-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    /* Blanco y negro sugerido en la imagen de referencia */
    filter: grayscale(100%) brightness(0.85);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    /* Transparencia negra arriba (gradient de negro a transparente) */
    background: linear-gradient(to bottom, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0) 60%);
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 10vh; /* Para balancear el texto que parece flotar a nivel medio/alto */
}

.hero-names {
    font-family: var(--serif-font);
    font-size: clamp(2rem, 5vw, 4rem);
    color: #ffffff;
    font-weight: 300;
    letter-spacing: 0.05em;
    margin-bottom: 5px;
    /* Letras sombreadas */
    text-shadow: 2px 4px 6px rgba(0,0,0,0.8);
    /* Animación sincronizada con la salida del loader */
    opacity: 0;
    transform: translateY(30px);
    animation: textEntrance 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    animation-delay: 1.4s;
}

.hero-date {
    font-family: var(--hero-font);
    font-size: clamp(2.2rem, 10vw, 8rem);
    color: #ffffff;
    font-weight: 300;
    letter-spacing: 0.05em;
    margin: 0;
    line-height: 1;
    white-space: nowrap; /* Fuerza a que todo se mantenga en 1 renglón */
    /* Letras sombreadas para Safira March/Fecha */
    text-shadow: 3px 6px 10px rgba(0,0,0,0.8);
    /* Animación sincronizada retrasada después de los nombres */
    opacity: 0;
    transform: translateY(30px);
    animation: textEntrance 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    animation-delay: 1.7s;
}

@keyframes textEntrance {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Decorative Flower and Lines */
.vertical-flower-container {
    position: absolute;
    bottom: 0; /* Anclado al borde del hero */
    right: 18%; /* Posicionado a la derecha, para alinear visualmente con la zona de quotes */
    width: 60px;
    height: 0;
    display: flex;
    justify-content: center;
    z-index: 15;
}


.vertical-flower-container .flor-amarilla {
    position: absolute;
    /* Esto centra la flor de 70px exactamente dividida a la mitad por el eje X/Y */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px; /* Tamaño de la flor */
    height: auto;
    z-index: 5;
    /* Para darle un toque hiper sutil orgánico acorde la imagen */
    filter: drop-shadow(0px 2px 4px rgba(0,0,0,0.15));
}



/* Ceremony Section */
.ceremony-section {
    background-color: #ffffff;
    position: relative;
    overflow: hidden;
}

.ceremony-container {
    display: flex;
    align-items: center;
    justify-content: flex-start; /* Todo más a la izquierda */
    gap: 30px; /* Menos espacio entre fotos y texto */
    max-width: 950px;
    margin: 0 auto;
}

@media (min-width: 993px) {
    .ceremony-container.reverse-layout {
        flex-direction: row-reverse;
        justify-content: flex-end; /* En reverso, empuja hacia el otro lado */
    }
}

.ceremony-images {
    display: flex;
    gap: 20px;
    flex: 0 0 auto; /* No dejes que las fotos empujen el texto hacia el borde */
    justify-content: center;
}

.ceremony-img {
    border-radius: 15px;
    object-fit: cover;
    filter: grayscale(100%);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    transition: filter 0.8s ease, transform 0.8s ease;
}

.ceremony-img:hover {
    filter: grayscale(0%);
    transform: scale(1.02);
}

.ceremony-img-1 {
    width: 250px; /* Reducidas ligeramente para dar aire al texto */
    height: 380px;
    margin-top: 30px;
}

.ceremony-img-2 {
    width: 250px;
    height: 380px;
}

.ceremony-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* Alineado a la izquierda como pidió */
    text-align: left;
}

.ceremony-text-block {
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* Izquierda */
    width: 100%;
}

.ceremony-title {
    font-family: var(--hero-font);
    font-size: 3rem; /* Un poco más pequeña para que quepa bien */
    color: #464946;
    font-weight: 300;
    margin-bottom: 20px;
    line-height: 1.2;
    text-align: left;
}

.ceremony-address {
    font-family: var(--serif-font);
    font-size: 1.4rem; /* Fino */
    color: #464946;
    line-height: 1.6;
    margin-bottom: 30px;
    width: 100%;
    max-width: 400px; /* Acortado para evitar colisiones */
    text-align: justify;
    text-align-last: left;
}

.ceremony-action {
    display: flex;
    align-items: center;
    justify-content: flex-start; /* Alineado a la izquierda */
}



.ceremony-btn {
    background-color: #626839;
    color: #ffffff;
    font-family: var(--serif-font);
    font-size: 1.4rem;
    text-decoration: none;
    padding: 12px 30px;
    display: inline-block;
}

.ceremony-btn u {
    text-underline-offset: 4px;
}

.ceremony-dash {
    width: 100px;
    height: 1px;
    background-color: #626839;
}

.ceremony-time {
    font-family: var(--serif-font);
    font-size: 1.5rem;
    color: #626839;
    padding-left: 10px;
    white-space: nowrap; /* Evita que el "pm" salte a la siguiente línea */
}

.action-reverse .ceremony-time {
    padding-left: 0;
    padding-right: 10px;
}




#countdown {
    background-color: #F5F3F5;
    padding-bottom: 100px;
}

/* Countdown Section - New Layout */
.countdown-header-area {
    background-color: #F5F3F5;
    padding: 100px 0 60px 0;
    text-align: center;
}

.countdown-intro, .countdown-outro {
    font-family: var(--serif-font);
    font-size: 2.2rem;
    color: #464946; /* Gris carbón según mockup */
    margin: 0;
    line-height: 1.2;
}

.countdown-title {
    font-family: var(--hero-font);
    font-size: 4rem;
    color: #626839; /* Verde según mockup */
    letter-spacing: 0.05em;
    margin: 10px 0;
    line-height: 1;
}

/* Video & Timer Area below the text - Card style */
.countdown-video-section {
    position: relative;
    max-width: 1200px; /* Ancho de la tarjeta */
    margin: 0 auto;
    height: 650px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    border-radius: 25px; /* Bordes redondeados */
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.video-background video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.15); /* Sombra muy sutil */
    z-index: 1;
}

.countdown-container {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #ffffff;
}

.countdown-timer-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.timer-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 120px;
}

.timer-num {
    font-family: var(--timer-font); /* Playfair Display para números */
    font-size: clamp(3.5rem, 10vw, 8rem);
    line-height: 1;
    font-weight: 300;
    text-shadow: 2px 4px 12px rgba(0,0,0,0.4);
}

.timer-label {
    font-family: var(--serif-font); /* Source Serif Pro para etiquetas */
    font-size: 1.4rem;
    margin-top: 15px;
    letter-spacing: 0.1em;
}

.timer-dots {
    font-size: 5rem;
    line-height: 1;
    padding-bottom: 40px;
    opacity: 0.8;
}

@media (max-width: 768px) {
    .countdown-video-section {
        height: 450px;
        width: 92%; /* Mantiene los márgenes laterales en móvil */
        border-radius: 20px;
    }
    .countdown-title {
        font-size: 3rem;
    }
    .countdown-timer-grid {
        gap: 5px; /* Espacio mínimo para que quepa en una línea */
    }
    .timer-item {
        min-width: unset; /* Deja que el contenido del item defina el ancho */
        padding: 0 5px;
    }
    .timer-num {
        font-size: 2.2rem; /* Tamaño compacto para móviles */
    }
    .timer-label {
        font-size: 0.9rem;
        margin-top: 5px;
        letter-spacing: 0.05em;
    }
    .timer-dots {
        font-size: 1.8rem;
        padding-bottom: 25px;
        opacity: 0.6;
    }
}

/* Gift Registry Section */
.registry-section {
    background-color: #F5F3F5;
    padding: 100px 0;
    text-align: center;
}

.registry-card {
    background-color: #ffffff;
    max-width: 1000px;
    margin: 0 auto;
    padding: 80px 60px;
    border-radius: 0; /* Rectangular como en el mockup */
}

.registry-title {
    font-family: var(--hero-font);
    font-size: 4rem;
    color: #464946; /* Gris carbón */
    margin-bottom: 20px;
    font-weight: 300;
}

.registry-text {
    font-family: var(--serif-font);
    font-size: 2.2rem;
    color: #626839; /* Verde según mockup */
    max-width: 750px; /* Ajustado para forzar quiebres de línea del mockup */
    margin: 0 auto 60px;
    line-height: 1.8;
    font-weight: 300;
    text-align: justify;
    text-align-last: left; /* Alineado a la izquierda dentro del justificado */
}

.registry-btn {
    background-color: #54664B; /* Verde botón mockup */
    color: #ffffff;
    font-family: var(--serif-font);
    font-size: 1.8rem;
    text-decoration: none;
    padding: 18px 60px;
    display: inline-block;
    transition: background-color 0.3s ease, transform 0.1s ease;
    animation: soft-vibrate 3s infinite ease-in-out; /* Vibración suave solicitada */
}

@keyframes soft-vibrate {
    0%, 80%, 100% { transform: scale(1) rotate(0deg); }
    82%, 86%, 94% { transform: scale(1.03) rotate(1deg); }
    84%, 90%, 98% { transform: scale(1.03) rotate(-1deg); }
}

.registry-btn:hover {
    background-color: #43523c;
}

.registry-btn u {
    text-underline-offset: 6px;
}

@media (max-width: 768px) {
    .registry-section {
        padding: 60px 20px;
    }
    .registry-card {
        padding: 60px 20px;
        width: 95%;
    }
    .registry-title {
        font-size: 3.2rem;
    }
    .registry-text {
        font-size: 1.5rem;
        margin-bottom: 40px;
    }
    .registry-btn {
        padding: 15px 40px;
        font-size: 1.4rem;
    }
}


/* Dresscode Section */
.dresscode-section {
    background-color: #F5F3F5;
    padding: 20px 0 100px;
}

.dresscode-card {
    background-color: #374116; /* Verde oscuro mockup */
    max-width: 1000px;
    margin: 0 auto;
    padding: 80px 40px;
    text-align: center;
    color: #ffffff;
}

.dresscode-title {
    font-family: var(--hero-font);
    font-size: 4rem;
    margin-bottom: 40px;
    font-weight: 300;
}

.dresscode-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
    max-width: 800px; /* Centra el bloque de texto */
    margin: 0 auto;
    text-align: justify;
    text-align-last: left;
}

.dresscode-text {
    font-family: var(--serif-font);
    font-size: 2.2rem;
    line-height: 1.4;
    font-weight: 300;
}

.dresscode-highlight {
    font-family: var(--serif-font);
    font-size: 2.2rem;
    font-weight: 700; /* Bold/Strong como en el mockup */
    line-height: 1.4;
}

@media (max-width: 768px) {
    .dresscode-card {
        padding: 50px 20px;
        width: 95%;
    }
    .dresscode-title {
        font-size: 3.2rem;
        margin-bottom: 30px;
    }
    .dresscode-text, .dresscode-highlight {
        font-size: 1.5rem;
    }
    .dresscode-content {
        gap: 20px;
    }
}

/* Hospedaje Section */
.hospedaje-section {
    background-color: #F5F3F5;
    padding: 100px 0;
    text-align: center;
}

.hospedaje-card {
    background-color: #ffffff;
    max-width: 1000px;
    margin: 0 auto;
    padding: 80px 60px;
    border-radius: 0;
}

.hospedaje-title {
    font-family: var(--hero-font);
    font-size: 3rem; /* Tamaño más fino solicitado */
    color: #464946; /* Gris carbón */
    margin-bottom: 20px;
    font-weight: 300;
    text-transform: uppercase; /* Como se ve en el screenshot */
}

.hospedaje-text {
    font-family: var(--serif-font);
    font-size: 2.2rem;
    color: #626839; /* Verde según mockup */
    max-width: 750px;
    margin: 0 auto 60px;
    line-height: 1.8;
    font-weight: 300;
    text-align: justify;
    text-align-last: left; /* Alineado a la izquierda dentro del justificado */
}

.hospedaje-btn {
    background-color: #54664B; /* Verde botón mockup */
    color: #ffffff;
    font-family: var(--serif-font);
    font-size: 1.8rem;
    text-decoration: none;
    padding: 18px 60px;
    display: inline-block;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.hospedaje-btn:hover {
    background-color: #43523c;
}

.hospedaje-btn u {
    text-underline-offset: 6px;
}

/* Modal System */
.modal {
    display: none; /* Oculto por defecto */
    position: fixed;
    z-index: 10001; /* Encima de todo, inclusive del header */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9); /* Más oscuro para cubrir todo */
    backdrop-filter: blur(10px);
    overflow-y: auto; /* Permite scroll si el modal es largo */
    padding: 20px 0; /* Espacio para que no se corte arriba/abajo */
}

.modal-content {
    background-color: #374116; /* Verde oscuro mockup */
    margin: 40px auto; /* Menos margen superior */
    padding: 40px 60px; /* Padding cómodo y lateral */
    width: 90%;
    max-width: 850px; /* Recuperamos un ancho elegante */
    border-radius: 0;
    position: relative;
    color: #ffffff;
    box-shadow: 0 35px 70px rgba(0,0,0,0.6);
}

.modal-title-hospedaje {
    font-family: 'Safira March', serif !important;
    font-size: 3.8rem; /* Un poco más chico */
    color: #ffffff !important;
    text-align: center;
    margin-bottom: 30px; /* Menos espacio hacia abajo */
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-weight: 300;
}

.hotel-list-modal {
    display: flex;
    flex-direction: column;
    gap: 20px; /* Espacio reducido entre hoteles */
}

.hotel-item-modal {
    display: flex;
    align-items: center;
    gap: 30px;
}

.hotel-info-img {
    flex: 0 0 90px; /* Fotos más chicas para que quepa todo */
}

.hotel-info-img img {
    width: 90px;
    height: 90px;
    object-fit: cover;
    border-radius: 12px;
}

.hotel-info-text {
    flex: 1;
}

.hotel-info-text h3 {
    font-family: var(--serif-font);
    font-size: 1.6rem; /* Tipografía más fina */
    font-weight: 700;
    margin-bottom: 8px;
    color: #ffffff;
    letter-spacing: 0.02em;
}

.hotel-info-text p {
    font-family: var(--serif-font);
    font-size: 1.4rem;
    margin: 5px 0;
    color: #ffffff;
    line-height: 1.4;
}

.hotel-info-text a {
    color: #ffffff;
    text-decoration: underline;
    word-break: break-all;
}

.close-modal {
    color: #ffffff;
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
    z-index: 10;
}

.close-modal:hover {
    color: #cccccc;
}

.modal-footer-hospedaje {
    text-align: center;
    margin-top: 30px; /* Menos espacio hacia el footer */
}

.ver-mas-modal {
    font-family: var(--serif-font);
    font-size: 1.6rem;
    color: #ffffff;
    text-decoration: none;
    letter-spacing: 0.1em;
}

@media (max-width: 768px) {
    .hospedaje-section {
        padding: 60px 20px;
    }
    .hospedaje-card {
        padding: 60px 20px;
        width: 95%;
    }
    .hospedaje-title {
        font-size: 3.2rem;
    }
    .hospedaje-text {
        font-size: 1.5rem;
        margin-bottom: 40px;
    }
    .hospedaje-btn {
        padding: 15px 40px;
        font-size: 1.4rem;
    }
    .modal-content {
        margin: 20% auto;
        padding: 40px 15px; /* Menos padding lateral para que quepa todo */
        width: 95%;
    }
    .modal-title-hospedaje {
        font-size: 2.5rem !important; /* Más chico para que no se corte */
        margin-bottom: 30px;
    }
    .hotel-item-modal {
        flex-direction: column;
        text-align: center;
        gap: 10px;
        margin-bottom: 30px; /* Separación clara entre hoteles */
    }
    .hotel-info-img {
        flex: 0 0 auto;
    }
    .hotel-info-img img {
        width: 75px; /* Fotos más discretas en móvil */
        height: 75px;
        border-radius: 12px;
    }
    .hotel-info-text h3 {
        font-size: 1.4rem;
        margin-bottom: 5px;
    }
    .hotel-info-text p {
        font-size: 1.1rem;
        word-break: break-all; /* Evita que los enlaces largos rompan el ancho */
    }
    .ver-mas-modal {
        font-size: 1.2rem;
    }
}

/* RSVP Section with Arch Shape */
.rsvp-section {
    padding: 100px 0 0 0; /* Solo padding superior */
    background-color: #F5F3F5;
}

.rsvp-arch {
    background-color: #374116; /* Verde oscuro mockup */
    max-width: 800px;
    margin: 0 auto;
    padding: 200px 40px 250px 40px; /* Figura mucho más larga a petición del usuario */
    border-radius: 400px 400px 0 0; /* Crea el arco perfecto */
    text-align: center;
    color: #ffffff;
    box-shadow: 0 -20px 40px rgba(0,0,0,0.05);
}

.rsvp-title {
    font-family: 'Safira March', serif !important;
    font-size: 4rem; /* Tamaño unificado con las otras secciones */
    color: #ffffff !important;
    margin-bottom: 30px;
    font-weight: 300;
}

.rsvp-content {
    margin-bottom: 40px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.rsvp-text {
    font-family: var(--serif-font);
    font-size: 2rem;
    line-height: 1.6;
    max-width: 600px; /* Reducido ligeramente para balancear */
    margin: 0 auto;
    text-align: justify;
    text-align-last: left;
}

.rsvp-text strong {
    font-weight: 700;
}

.rsvp-btn {
    background-color: #ffffff;
    color: #374116;
    padding: 12px 40px; /* Tamaño mucho más discreto */
    text-decoration: none;
    font-family: var(--serif-font);
    font-size: 1.6rem; /* Fuente más fina solicitada */
    display: inline-block;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.rsvp-btn:hover {
    background-color: #f0f0f0;
    transform: translateY(-3px);
}

.rsvp-btn u {
    text-underline-offset: 6px;
}

/* Footer Gallery Section Styles */
.footer-gallery-section {
    width: 100%;
    margin-top: 50px;
    background-color: white;
}

.footer-gallery-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px; /* Separación entre fotos */
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

.footer-img-item {
    flex: 1;
    transition: transform 0.5s ease;
}

.footer-img-item.side {
    max-width: 250px;
}

.footer-img-item.center {
    max-width: 350px;
    z-index: 2;
}

.bw-rounded {
    width: 100%;
    height: auto;
    border-radius: 30px; /* Redondeado 20-30% como pedido */
    filter: grayscale(100%); /* Efecto Blanco y Negro */
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: filter 0.3s ease, transform 0.3s ease;
    display: block;
}

.bw-rounded:hover {
    filter: grayscale(0%);
    transform: scale(1.03);
}

@media (max-width: 768px) {
    .footer-gallery-container {
        flex-direction: column;
        gap: 25px;
    }
    .footer-img-item.side, .footer-img-item.center {
        max-width: 90% !important;
    }
    .rsvp-arch {
        padding: 80px 20px;
        border-radius: 200px 200px 0 0;
        width: 95%;
    }
    .rsvp-title {
        font-size: 4rem;
    }
    .rsvp-text {
        font-size: 1.6rem;
    }
    .rsvp-btn {
        padding: 15px 40px;
        font-size: 1.6rem;
    }
}
@media (max-width: 992px) {
    .ceremony-container {
        flex-direction: column;
        align-items: flex-start; /* Forzar alineación a la izquierda en móvil solicitado PJ */
        padding: 0 30px; /* Margen para que no se corte la imagen en móvil */
    }
    .ceremony-images {
        margin-bottom: 40px;
        align-self: flex-start;
    }
    .ceremony-info {
        align-items: flex-start;
        text-align: left;
    }
    .reverse-layout {
        flex-direction: column; /* Evitar reverse en móvil para consistencia de fotos arriba */
    }
}

@media (max-width: 768px) {
    .ceremony-title {
        font-size: 2.8rem;
        white-space: normal; /* Permite que el título baje a dos líneas en móviles pequeños */
    }
    .ceremony-address {
        text-align: left;
        text-align-last: left;
        padding: 0;
        max-width: 100%;
    }
    .ceremony-img-1 {
        width: 150px;
        height: 220px;
    }
    .ceremony-img-2 {
        width: 150px;
        height: 220px;
    }
    .ceremony-dash {
        width: 50px;
    }
}

/* Details Section Rediseñada */
.details-section {
    padding: 120px 0 40px 0; /* Reducido el padding inferior para acercar la siguiente sección */
    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: 2.8rem; /* Tamaño ajustado para balance visual PJ */
    letter-spacing: 0.15em;
    font-weight: 500; /* Peso ajustado a 500 PJ */
    color: #464946; /* Color gris específico solicitado PJ */
}

.details-content p {
    max-width: 1000px; /* Ensanchado para que la frase quepa entera y el <br> sea el único responsable del quiebre */
    margin: 0 auto;
    font-size: 1.8rem;
    line-height: 2; /* Interlineado más amplio y relajado */
    color: #4a4a4a;
    /* Suavizar el contraste del texto para que se sienta elegante */
    font-weight: 400;
    padding: 0 40px;
    text-align: left;
}

@media (max-width: 768px) {
    .d-none-mobile {
        display: none; /* Evitamos que el salto de línea forzado rompa la vista en celular */
    }
}

.container-details {
    max-width: 1100px;
    position: relative;
    z-index: 10;
}

/* Events Section & Reception Card */
.events-section {
    padding: 20px 0 140px; /* Reducido el padding superior para subir la sección */
    /* 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 100px; /* Más padding abajo (100px) para separar el botón del texto */
    /* 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: #464946; /* Color gris unificado con el de detalles PJ */
    letter-spacing: 0.1em;
    font-weight: 500; /* Grosor unificado PJ */
    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: 6px 60px; /* Reducido para un look mÃ¡s discreto PJ */
    border-radius: 40px;
    font-family: var(--serif-font);
    font-size: 1.3rem; /* Letra mÃ¡s chica y elegante PJ */
    font-weight: 600; /* Más negritas como en la imagen */
    text-decoration: underline;
    text-decoration-thickness: 1px; /* Línea más fina */
    text-underline-offset: 6px;
    letter-spacing: 0.15em; /* Un poco más de espacio entre letras */
    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.8rem; /* Letra más grande igual al texto de detalles */
    color: #4a4a4a;
    font-weight: 600; /* Letra en negritas como me pediste */
    line-height: 2; /* Interlineado elegante y espacioso */
}

/* Dress Code Section */
/* Dress Code Section Rediseñada */
.dress-code {
    padding: 100px 0 40px 0; /* Reducido el padding inferior JJ */
    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.8rem; /* Tamaño unificado PJ */
    margin-bottom: 60px;
    color: #464946; /* Color unificado PJ */
    letter-spacing: 0.15em;
    font-weight: 500; /* Grosor unificado PJ */
}

.dress-code-items {
    margin-bottom: 60px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    text-align: left; /* Alineado a la izquierda solicitado PJ */
    padding: 0 20px;
}

.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: 0 0 120px 0; /* Eliminado el padding superior PJ */
    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 80px; /* Reducido lateral para dar mÃ¡s espacio al texto PJ */
    max-width: 820px; /* Un pelÃn mÃ¡s ancho PJ */
    margin: 40px auto;
    position: relative;
    z-index: 2;
    background-color: var(--white);
}

.gifts-card h2 {
    font-size: 2.8rem; /* Tamaño unificado PJ */
    margin-bottom: 50px;
    color: #464946; /* Color unificado PJ */
    font-weight: 500; /* Grosor unificado PJ */
}

.gifts-content p {
    font-family: var(--serif-font); /* Aplicamos la tipografía elegante */
    font-size: 1.5rem; /* Un poco mÃ¡s pequeÃ±o para que quepa la frase final PJ */
    line-height: 1.8;
    color: #4a4a4a;
    margin-bottom: 50px;
    text-align: justify; /* Texto justificado */
    text-align-last: center; /* Última línea centrada para elegancia */
}

.gifts-content strong {
    font-weight: 600; /* Negritas moderadas acorde al diseño */
}

.gifts-actions {
    text-align: center;
    margin-top: 30px;
}

.btn-mesa-regalos {
    background-color: #fbcb5d;
    color: white;
    padding: 8px 60px; /* Reducimos el alto y ajustamos el ancho */
    border-radius: 40px;
    font-family: var(--serif-font); /* Tipografía Serif elegante */
    font-size: 1.5rem; /* Letra más chica */
    font-weight: 600; /* Más negritas */
    text-decoration: underline;
    text-decoration-thickness: 1px;
    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);
    position: relative;
    z-index: 5;
}

.btn-mesa-regalos:hover {
    background-color: #f8c460;
}

/* 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: 2.8rem; /* Tamaño unificado PJ */
    letter-spacing: 0.15em; /* Espaciado unificado PJ */
    color: #464946; /* Color unificado PJ */
    font-weight: 500; /* Grosor unificado PJ */
    text-transform: uppercase;
    text-align: center;
}

.hotel-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 columnas */
    gap: 20px; /* Separación entre tarjetas */
    margin: 20px auto 40px auto; /* Centrado y con margen inferior extra para separar el texto */
    width: 95%; /* Ajuste para que tengan espacio lateral */
    max-width: 1400px;
    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%;
    /* Eliminar min-height de 800px y 80vh para que las tarjetas no queden gigantes PJ */
    height: auto;
    aspect-ratio: 1 / 1; /* Las hacemos cuadradas para que todas queden uniformes */
    overflow: hidden;
    background-color: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hotel-img-wrapper img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain; /* Para que la nueva imagen no se recorte por los lados PJ */
    border-radius: 0 !important;
    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); /* Se mantiene el zoom al pasar el mouse */
}

/* 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; /* Regresado a center PJ */
    display: flex;
    flex-direction: column;
    align-items: center; /* Regresado a center PJ */
}

.rsvp-section h2 {
    font-size: 2.8rem; /* Tamaño unificado PJ */
    color: #464946; /* Color unificado PJ */
    font-weight: 500; /* Grosor unificado PJ */
    letter-spacing: 0.15em;
    margin-bottom: 50px;
    text-align: center;
    width: 100%;
}

.rsvp-desc {
    font-size: 1.8rem;
    color: #4a4a4a;
    line-height: 2.2; /* Interlineado elegante PJ */
    margin-bottom: 60px;
    text-align: left; /* Alineado a la izquierda según solicitud PJ */
    text-align-last: left;
    width: 100%;
    max-width: 820px; 
    margin-left: 0; /* Cargado a la izquierda PJ */
    margin-right: auto;
    padding: 0;
}

.rsvp-contact {
    align-self: flex-start; /* Alineado a la izquierda PJ */
    text-align: left; /* Alineado a la izquierda PJ */
    margin-bottom: 60px;
    padding-left: 0;
}

.rsvp-contact p {
    font-size: 1.6rem;
    color: #4a4a4a;
    margin-bottom: 20px;
}

.contact-link {
    color: inherit; /* Hereda el color del padre PJ */
    text-decoration: none; /* Sin subrayado PJ */
    transition: opacity 0.3s ease;
}

.contact-link:hover {
    opacity: 0.7;
}

.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) {
    body {
        padding-top: 80px; /* Ajustado dinámicamente al nuevo tamaño del menú */
    }

    .hero-section {
        height: calc(100vh - 80px); /* Ajuste del espacio para el hero */
    }

    header {
        padding: 5px 0;
    }

    .container {
        padding: 0 15px;
    }

    .nav-container {
        flex-direction: row;
        padding: 5px 20px;
        justify-content: space-between;
        align-items: center;
        background: #f5f3f5;
        position: relative;
    }

    .nav-logo img {
        height: 60px; /* Reducido drásticamente para ocupar menos espacio */
    }

    header.scrolled {
        padding: 2px 0;
    }

    header.scrolled .nav-container {
        padding: 2px 20px;
    }

    header.scrolled .nav-logo img {
        height: 50px;
    }

    .menu-toggle {
        display: flex;
    }

    .nav-links {
        display: flex;
        flex-direction: column;
        width: 100%;
        background-color: #f5f3f5;
        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: row;
        margin: 20px auto;
        align-items: center;
        justify-content: center;
    }

    .quote-icon {
        width: 35px; /* Más pequeño para móviles */
        transform: none; /* Eliminar transformaciones previas */
    }

    .quote-icon:not(.close-quote) {
        top: -8px;
        margin-right: 12px;
    }

    .quote-icon.close-quote {
        bottom: -8px;
        margin-left: 12px;
        margin-top: 0;
    }

    .quote-text-content h2 {
        font-size: 1.3rem;
        white-space: normal;
        padding: 0 15px;
        position: relative; /* En móviles recuperan la asosiación individual a cada renglón */
    }

    .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 {
        display: none !important;
    }

    .gifts-decor-flower {
        display: block !important;
        width: 15rem !important; /* Tamaño proporcional para móvil */
        top: -6rem !important;
        left: -2rem !important;
        opacity: 0.8 !important; /* Más visible */
        z-index: 10;
        pointer-events: none;
    }

    .vertical-flower-container {
        display: none !important; /* Oculta la flor amarilla en móvil solicitado PJ */
    }

    .vertical-flower-container .flor-amarilla {
        width: 100% !important;
        height: auto !important;
        transform: none !important;
        position: relative !important;
        top: 0 !important;
        left: 0 !important;
    }

    .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: 10px 30px; /* MÃ¡s chico en mÃ³vil solicitado PJ */
        font-size: 1rem;
    }

    .adults-only-note {
        margin-top: 60px;
    }

    .adults-only-note p {
        font-size: 1.2rem;
    }

    .dress-code h2 {
        font-size: 2.2rem; /* Tamaño unificado móvil PJ */
        letter-spacing: 0.1em;
    }

    .dress-code-items p {
        font-size: 1.25rem;
        text-align: left; /* Alineado a la izquierda en móvil PJ */
        margin-bottom: 20px;
    }

    .forbidden-swatches {
        gap: 20px;
        margin-bottom: 40px; /* Reducido de 80px PJ */
    }

    .swatch {
        width: 50px;
        height: 50px;
    }

    .swatch-item p {
        font-size: 1.1rem;
    }

    .btn-inspiracion-link {
        display: block;
        margin-top: -80px; /* Más pegado hacia arriba en móvil PJ */
        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: 20px 0 60px 0; /* Reducido aún más el padding superior JJ */
    }

    .dress-code {
        padding: 60px 0 0 0; /* Eliminado el padding inferior JJ */
    }

    .gifts-card {
        padding: 40px 20px 100px; /* Aumentamos mucho más el padding inferior (100px) PJ */
        margin: 0 auto; /* Eliminado el margen superior JJ */
        position: relative; /* Aseguramos contexto para el logo */
    }

    .gifts-card h2 {
        font-size: 2.2rem; /* Tamaño unificado móvil PJ */
        margin-bottom: 30px;
    }

    .gifts-content p {
        font-family: var(--serif-font);
        font-size: 1.25rem;
        text-align: center; /* Cambiado a centrado para evitar huecos en móvil */
        line-height: 1.6;
        padding: 0 10px;
    }

    .btn-mesa-regalos {
        padding: 8px 40px; /* Bajo y estilizado en móvil */
        font-size: 1.1rem;
        width: auto;
        font-family: var(--serif-font);
        font-weight: 600;
        text-decoration: underline;
        text-decoration-thickness: 1px;
        text-underline-offset: 4px;
    }

    .gifts-decor-monogram {
        display: block !important;
        position: absolute;
        bottom: -45px; /* Bajamos más el logo para que no muerda el botón PJ */
        left: 50%;
        transform: translateX(-50%);
        width: 130px; /* Tamaño equilibrado PJ */
        padding: 0 10px;
        background-color: var(--white); /* Parche blanco para la línea dorada PJ */
        z-index: 100;
        pointer-events: none;
    }

    /* Eliminamos el after anterior que se veía mal */
    .gifts-section::after {
        display: none;
    }

    #hospedaje {
        padding: 40px 0;
    }

    #hospedaje h2 {
        font-size: 2.2rem;
        margin-bottom: 20px;
        letter-spacing: 0.1em;
    }

    .hotel-grid {
        grid-template-columns: 1fr; /* 12 columnas / ancho completo en movil */
        gap: 30px;
        padding: 0 15px;
        margin-top: 20px;
        margin-bottom: 30px;
    }

    .hotel-card {
        height: auto;
        margin-bottom: 0; /* Se removió el -80px que hacía que se encimara el texto abajo */
        display: block;
        overflow: hidden;
        border-radius: 12px;
    }

    .hotel-img-wrapper {
        min-height: auto;
        height: auto;
        aspect-ratio: 1 / 1;
        background-color: transparent;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .hotel-img-wrapper img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        transform: none;
        /* Permitir que la tarjeta original quepa entera sin cortarse los nombres abajo */
    }

    .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: 1.35rem !important; /* Texto mÃ¡s grande para lectura cÃ³moda en celular */
        padding: 0 25px; /* MÃ¡s espacio lateral solicitado PJ */
        line-height: 1.5 !important; 
        text-align: justify !important; 
    }

    .rsvp-section {
        padding: 60px 0;
    }



    .rsvp-desc {
        font-size: 1.35rem; /* Aumentamos tamaño movil PJ */
        margin-bottom: 40px;
        padding: 0 15px;
        text-align: left; /* Alineado a la izquierda solicitado PJ */
        text-align-last: left;
        line-height: 1.8;
    }

    .rsvp-section h2 {
        font-size: 2.2rem; /* Tamaño unificado móvil PJ */
        text-align: center;
    }

    .rsvp-contact {
        padding-left: 15px; /* Alineado con el rsvp-desc de arriba PJ */
        text-align: left;
        align-self: flex-start;
        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);
}