/* -----------------------------------------
   SISTEMA DE DISEÑO GLOBAL & VARIABLES
-------------------------------------------- */
:root {
    --bg-primary: #F9F6F0;       /* Off-white crema cálido */
    --text-primary: #1A1A1A;     /* Negro carbón / grafito */
    --text-secondary: #6E6A64;   /* Café grisáceo */
    --accent-sage: #5B6E58;      /* Verde salvia orgánico */
    --accent-ochre: #C49A76;     /* Ocre / tierra */
    --ui-dark: #2C2523;          /* Marrón profundo / negro mate */
    --ui-light-card: rgba(255, 255, 255, 0.7);
    
    /* Fuentes */
    --font-serif-title: 'Cormorant Garamond', serif;
    --font-serif-body: 'Fraunces', serif;
    --font-sans: 'Plus Jakarta Sans', sans-serif;
    
    /* Transiciones */
    --transition-smooth: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    
    /* Sombras */
    --shadow-soft: 0 10px 30px rgba(44, 37, 35, 0.05);
    --shadow-polaroid: 0 15px 35px rgba(44, 37, 35, 0.1);
}

/* -----------------------------------------
   RESET & ESTILOS BASE
-------------------------------------------- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    /* scroll-behavior: smooth; Desactivado por conflicto con ScrollTrigger Pinning */
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

body {
    overflow-x: hidden;
    min-height: 100vh;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

button, input, select, textarea {
    font-family: inherit;
    background: none;
    border: none;
    outline: none;
}

button {
    cursor: pointer;
}

/* Scrollbar personalizado */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
    background: var(--accent-ochre);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent-sage);
}

/* -----------------------------------------
   1. SPLASH SCREEN (PANTALLA DE CARGA)
-------------------------------------------- */
.splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #000000;
    z-index: 9999;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), visibility 1s;
}

.splash-screen.fade-out {
    opacity: 0;
    visibility: hidden;
}

.splash-video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Asegura pantalla completa */
    transform: translate(-50%, -50%);
    z-index: 1;
}

.splash-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.2); /* Sutil velo oscuro para mejorar contraste */
    z-index: 2;
}

.splash-content {
    position: relative;
    z-index: 3;
    display: flex;
    justify-content: center;
    align-items: center;
}

.btn-enter {
    font-family: var(--font-serif-title);
    font-size: 1.1rem;
    letter-spacing: 0.2em;
    color: #FFFFFF;
    background-color: rgba(0, 0, 0, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.4);
    padding: 1.2rem 3rem;
    border-radius: 50px;
    cursor: pointer;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.4s ease;
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px);
}

.btn-enter.visible-btn {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.btn-enter:hover {
    background-color: #FFFFFF;
    color: #000000;
    border-color: #FFFFFF;
    box-shadow: 0 8px 30px rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.btn-unmute {
    position: absolute;
    bottom: 40px;
    right: 40px;
    z-index: 10;
    background-color: rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #FFFFFF;
    font-family: var(--font-sans);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    padding: 0.7rem 1.4rem;
    border-radius: 30px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: all 0.3s ease;
}

.btn-unmute:hover {
    background-color: #FFFFFF;
    color: #000000;
    border-color: #FFFFFF;
}

.btn-unmute.fade-out {
    opacity: 0;
    pointer-events: none;
}

/* -----------------------------------------
   NAVIGATION BAR
-------------------------------------------- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 90px;
    z-index: 100;
    display: flex;
    align-items: center;
    background-color: transparent;
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
    border-bottom: 1px solid transparent;
    opacity: 0;
    transform: translateY(-20px);
    transition: background-color 0.4s ease, border-color 0.4s ease, backdrop-filter 0.4s ease, opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.navbar.visible {
    opacity: 1;
    transform: translateY(0);
}

.nav-container {
    width: 95vw; /* Alinea el navbar exactamente con la anchura de la imagen principal */
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 4vw; /* Añade relleno para colocar el logotipo esquinado sobre la imagen */
}

.nav-logo {
    font-family: var(--font-serif-title);
    font-size: 2.2rem;
    font-weight: 400;
    letter-spacing: 0.05em;
    color: #FFFFFF; /* Inicialmente blanco para resaltar sobre la imagen principal */
    text-transform: uppercase;
    transition: color 0.4s ease;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    transition: opacity 0.5s ease;
}

.nav-link {
    font-size: 0.8rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-secondary);
    position: relative;
    font-weight: 500;
    transition: var(--transition-fast);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--accent-sage);
    transition: var(--transition-fast);
}

.nav-link:hover {
    color: var(--text-primary);
}

.nav-link:hover::after {
    width: 100%;
}

.btn-rsvp-nav {
    background-color: var(--ui-dark);
    color: var(--bg-primary);
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    padding: 0.75rem 1.8rem;
    border-radius: 30px;
    font-weight: 500;
    transition: var(--transition-fast), opacity 0.5s ease;
}

.btn-rsvp-nav:hover {
    background-color: var(--accent-sage);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(91, 110, 88, 0.2);
}

.nav-menu-hidden {
    display: none; /* Oculta físicamente el elemento del flujo flexbox para permitir esquinar el logotipo */
    opacity: 0;
    pointer-events: none;
}

/* Estado del navbar al hacer scroll (scrolled) */
.navbar.scrolled {
    background-color: rgba(249, 246, 240, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(110, 106, 100, 0.08);
}

.navbar.scrolled .nav-logo {
    color: var(--text-primary); /* Pasa a negro carbón al deslizarse */
}

/* -----------------------------------------
   MAIN CONTENT & SECTIONS
-------------------------------------------- */
.main-content {
    opacity: 0;
    transition: opacity 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.main-content.visible {
    opacity: 1;
}

/* -----------------------------------------
   2. HERO SECTION & COLLAGE
-------------------------------------------- */
.hero-section {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--bg-primary);
    overflow: hidden;
}

.hero-main-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px; /* Distancia constante y uniforme entre columnas */
    padding: 0 2.5vw;
}

.hero-center-col {
    position: relative;
    width: 95vw; /* Ocupa el 95% al inicio */
    height: 95vh;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
    transition: width 0.1s ease, height 0.1s ease;
}

.hero-main-container {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 32px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: var(--shadow-polaroid);
    border: 1px solid rgba(226, 211, 193, 0.4);
}

.hero-main-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-main-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.4) 100%);
    z-index: 1;
}

.hero-main-title {
    position: absolute;
    right: 16%; /* Inicialmente más centrado en el espacio libre entre el borde de la foto y sus rostros */
    top: 50%;
    transform: translateY(-50%); /* Centrado verticalmente */
    color: #FFFFFF;
    font-family: 'Great Vibes', cursive; /* Tipografía fluida y elegante de boda */
    font-size: clamp(4.5rem, 10vw, 9.5rem); /* Aumentado para un impacto visual aún mayor en pantalla completa */
    font-weight: 400;
    letter-spacing: 0.02em;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.35);
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 0.95;
    text-align: center;
}

.hero-main-title .ampersand {
    font-family: 'Great Vibes', cursive;
    font-size: clamp(3.5rem, 8vw, 7.5rem); /* Proporcional al nuevo tamaño del título */
    font-weight: 400;
    color: rgba(255, 255, 255, 0.85);
    margin: 0.1rem 0;
    text-shadow: none;
    letter-spacing: 0;
}

/* Columnas laterales de imágenes secundarias */
.hero-side-col {
    display: none; /* Inicialmente ocultas para no alterar el flex inicial de la principal */
    flex-direction: column;
    gap: 24px; /* Distancia constante entre las imágenes de la columna */
    width: 0; /* Crece en scroll */
    opacity: 0;
    z-index: 5;
}

.hero-left-col {
    transform: translateX(-50px) scale(0.9);
}

.hero-right-col {
    transform: translateX(50px) scale(0.9);
}

.hero-side-img {
    width: 100%;
    height: auto; /* Permite que la caja se ajuste a la proporción original de la imagen */
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-polaroid);
    border: 1px solid rgba(226, 211, 193, 0.3);
}

.hero-side-img img {
    width: 100%;
    height: auto; /* Respeta de forma absoluta la proporción original sin recortar ni estirar */
    display: block;
}

/* Sizing and alignment of specific images to stagger the layout */
.hero-side-img.img-01 {
    width: 70%;
    align-self: flex-start; /* Alineada a la izquierda */
}

.hero-side-img.img-02 {
    width: 100%;
    align-self: flex-end; /* Alineada a la derecha */
}

.hero-side-img.img-03 {
    width: 100%;
    align-self: flex-start; /* Alineada a la izquierda */
}

.hero-side-img.img-04 {
    width: 70%;
    align-self: flex-end; /* Alineada a la derecha */
}

/* -----------------------------------------
   2.5. INVITATION LEAD TEXT SECTION
-------------------------------------------- */
.invitation-lead-section {
    position: relative;
    width: 100%;
    padding: 160px 0;
    background-color: var(--bg-primary);
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.invitation-lead-container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.invitation-lead-text {
    font-family: 'Great Vibes', cursive;
    font-size: clamp(3rem, 7.5vw, 6.5rem); /* Tipografía fluida y elegante de boda, muy visible */
    font-weight: 400;
    color: var(--text-primary);
    line-height: 1.3;
    margin: 0;
    
    /* Gradiente para revelado continuo de izquierda a derecha (efecto pincel caligráfico) */
    background: linear-gradient(to right, var(--text-primary) 50%, rgba(26, 26, 26, 0.15) 50%);
    background-size: 200% 100%;
    background-position: 100% 0; /* Al inicio, todo el texto se dibuja en gris clarito (0.15 de opacidad) */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    
    /* Suavizado de bordes tipográficos */
    -webkit-font-smoothing: antialiased;
}

/* -----------------------------------------
   3. OUR STORY SECTION (TIMELINE)
-------------------------------------------- */
.story-section {
    position: relative;
    width: 100%;
    height: 100vh;
    background-color: var(--bg-primary);
    display: flex;
    align-items: center;
    overflow: hidden;
}

.story-container {
    width: 90%;
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    position: relative;
}

.story-column {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
}

.story-column-left {
    width: 30%;
    text-align: left;
}

.story-column-right {
    width: 30%;
    text-align: left;
}

.story-column-center {
    width: 34%;
    align-items: center;
    justify-content: center;
}

.story-header-center {
    position: absolute;
    top: 10%; /* Posicionado arriba en la columna central */
    width: 100%;
    text-align: center;
    z-index: 10;
}

.story-section-title {
    font-family: var(--font-serif-title);
    font-size: clamp(2rem, 3.5vw, 2.8rem); /* Título grande de sección */
    font-weight: 300;
    letter-spacing: 0.15em;
    text-transform: uppercase; /* Uso estricto de mayúsculas */
    color: var(--text-primary);
    margin: 0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.story-text-wrapper {
    position: relative;
    width: 100%;
    height: 380px; /* Altura fija para contener los textos sin empujar */
}

.story-step {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(30px);
    pointer-events: none;
    /* Sin transiciones CSS para evitar conflictos con animaciones GSAP */
}

/* El primer paso se inicializa visible */
.story-step[data-step="1"] {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.story-step-title {
    font-family: var(--font-serif-title);
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    font-weight: 300;
    text-transform: uppercase; /* Uso estricto de mayúsculas */
    letter-spacing: 0.05em;
    color: var(--accent-ochre); /* Color oro/crema de contraste */
    margin: 0 0 1.5rem 0;
    line-height: 1.3;
}

.story-step-desc {
    font-family: var(--font-serif-body); /* Tipografía Cormorant Garamond más editorial */
    font-size: clamp(1.1rem, 1.6vw, 1.25rem); /* Letra más grande y legible */
    line-height: 1.8;
    color: var(--text-secondary);
    font-weight: 300;
    margin: 0;
}

.card-stack-container {
    position: relative;
    width: 290px;
    height: 350px;
    margin-top: 40px; /* Margen para librar el título superior */
}

.polaroid-card {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #FFFFFF;
    padding: 12px 12px 38px 12px; /* Margen rectangular inferior de estilo Polaroid */
    border-radius: 6px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1), 0 5px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.04);
    opacity: 0;
    transform: translateY(100vh) rotate(15deg); /* Inicialmente abajo, vuelan al hacer scroll */
    cursor: pointer;
    z-index: 1;
}

.polaroid-card img {
    width: 100%;
    aspect-ratio: 1 / 1; /* Formato cuadrado clásico de foto Polaroid */
    object-fit: cover;
    border-radius: 2px;
}

.polaroid-inner-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

/* -----------------------------------------
   4. COUNTDOWN SECTION
-------------------------------------------- */
.countdown-section {
    padding: 120px 0;
    background-color: var(--bg-primary);
    border-top: 1px solid rgba(110, 106, 100, 0.05);
    border-bottom: 1px solid rgba(110, 106, 100, 0.05);
    text-align: center;
}

.countdown-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.countdown-intro {
    font-family: var(--font-serif-title);
    font-size: 1.5rem;
    font-style: italic;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.countdown-date-title {
    font-family: var(--font-serif-body);
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 400;
    color: var(--text-primary);
    letter-spacing: -0.01em;
    margin-bottom: 3.5rem;
}

.timer-display {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
}

.timer-segment {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 80px;
}

.timer-num {
    font-family: var(--font-serif-body);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 300;
    line-height: 1;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.timer-colon {
    font-family: var(--font-serif-body);
    font-size: clamp(2rem, 5vw, 3.5rem);
    color: var(--accent-ochre);
    line-height: 1;
    margin-top: -25px;
    opacity: 0.6;
}

.timer-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--text-secondary);
    font-weight: 600;
}

/* -----------------------------------------
   5. VENUE SECTION
-------------------------------------------- */
.venue-section {
    padding: 120px 0;
    background-color: var(--bg-primary);
}

.venue-container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 8%;
}

.venue-image-wrapper {
    width: 45%;
    display: flex;
    justify-content: center;
}

.venue-illustration {
    width: 100%;
    max-width: 480px;
    height: auto;
    filter: drop-shadow(0 15px 30px rgba(44, 37, 35, 0.08));
    border-radius: 20px;
}

.venue-info {
    width: 47%;
}

.venue-tag {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--accent-ochre);
    display: block;
    margin-bottom: 1rem;
}

.venue-title {
    font-family: var(--font-serif-title);
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 300;
    line-height: 1.1;
    text-transform: lowercase;
    margin-bottom: 0.5rem;
}

.venue-location {
    font-size: 1.1rem;
    font-weight: 400;
    color: var(--accent-sage);
    margin-bottom: 2rem;
    letter-spacing: 0.05em;
}

.venue-desc {
    font-size: 0.95rem;
    line-height: 1.8;
    color: var(--text-secondary);
    font-weight: 300;
    margin-bottom: 2.5rem;
}

.btn-map {
    display: inline-block;
    background-color: var(--ui-dark);
    color: var(--bg-primary);
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    padding: 1.1rem 2.5rem;
    border-radius: 40px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition-fast);
}

.btn-map:hover {
    background-color: var(--accent-sage);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(91, 110, 88, 0.2);
}

/* -----------------------------------------
   6. BENTO GRID (DASHBOARD)
-------------------------------------------- */
.dashboard-section {
    padding: 120px 0;
    background-color: var(--bg-primary);
}

.dashboard-intro {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto 4rem auto;
    text-align: center;
}

.dashboard-tag {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--accent-ochre);
    display: block;
    margin-bottom: 1rem;
}

.dashboard-title {
    font-family: var(--font-serif-title);
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 300;
    line-height: 1.1;
    text-transform: lowercase;
    margin-bottom: 1.5rem;
}

.dashboard-desc {
    max-width: 600px;
    margin: 0 auto;
    font-size: 0.95rem;
    line-height: 1.8;
    color: var(--text-secondary);
    font-weight: 300;
}

.bento-grid {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 240px;
    gap: 24px;
}

.bento-card {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(110, 106, 100, 0.05);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s;
}

.bento-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(44, 37, 35, 0.12);
}

.bento-card-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.bento-card:hover .bento-card-bg {
    transform: scale(1.08);
}

.bento-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(26, 26, 26, 0.75) 10%, rgba(26, 26, 26, 0.15) 80%);
    z-index: 1;
    transition: var(--transition-fast);
}

.bento-card:hover .bento-card-overlay {
    background: linear-gradient(to top, rgba(26, 26, 26, 0.85) 15%, rgba(26, 26, 26, 0.25) 80%);
}

.bento-card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 2rem;
    z-index: 2;
    color: #FFFFFF;
}

.bento-card-icon {
    font-size: 1.5rem;
    display: block;
    margin-bottom: 0.5rem;
}

.bento-card-title {
    font-family: var(--font-serif-title);
    font-size: 1.4rem;
    font-weight: 300;
    letter-spacing: 0.02em;
}

/* Bento Grid Spans */
.card-logistics {
    grid-column: span 2;
}

.card-registry {
    grid-column: span 1;
    grid-row: span 2;
}

.card-dresscode {
    grid-column: span 1;
}

.card-menu {
    grid-column: span 1;
}

.card-music {
    grid-column: span 1;
}

.card-bianca {
    grid-column: span 2;
}

/* Bento Modals Overlay */
.bento-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(26, 26, 26, 0.4);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease, visibility 0.5s;
}

.bento-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.bento-modal-content {
    position: relative;
    background-color: var(--bg-primary);
    width: 90%;
    max-width: 650px;
    max-height: 85vh;
    border-radius: 28px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(226, 211, 193, 0.3);
    padding: 3rem;
    overflow-y: auto;
    display: none;
    transform: scale(0.9) translateY(30px);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.bento-modal-content.active {
    display: block;
    transform: scale(1) translateY(0);
}

.bento-modal-close {
    position: absolute;
    top: 24px;
    right: 24px;
    font-size: 2.2rem;
    color: var(--text-secondary);
    line-height: 1;
    transition: var(--transition-fast);
}

.bento-modal-close:hover {
    color: var(--text-primary);
    transform: rotate(90deg);
}

.bento-modal-header {
    margin-bottom: 2rem;
    border-bottom: 1px solid rgba(110, 106, 100, 0.1);
    padding-bottom: 1rem;
}

.bento-modal-header h2 {
    font-family: var(--font-serif-title);
    font-size: 2rem;
    font-weight: 300;
}

.bento-modal-body {
    line-height: 1.8;
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 300;
}

.bento-modal-body h3 {
    font-family: var(--font-serif-title);
    font-size: 1.4rem;
    color: var(--text-primary);
    margin: 1.5rem 0 0.5rem 0;
    font-weight: 400;
}

.bento-modal-body ul {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.bento-modal-body a {
    color: var(--accent-sage);
    font-weight: 500;
    text-decoration: underline;
}

/* Modal Estilos Específicos */
.text-center {
    text-align: center;
}

.bank-account-box {
    background-color: rgba(226, 211, 193, 0.2);
    border: 1px dashed var(--accent-ochre);
    border-radius: 16px;
    padding: 1.5rem;
    margin: 2rem 0 1rem 0;
}

.bank-label {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.bank-number {
    display: block;
    font-family: monospace;
    font-size: clamp(0.9rem, 3.5vw, 1.25rem);
    font-weight: bold;
    color: var(--text-primary);
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.btn-copy-iban {
    background-color: var(--ui-dark);
    color: var(--bg-primary);
    font-size: 0.75rem;
    padding: 0.6rem 1.5rem;
    border-radius: 20px;
    letter-spacing: 0.05em;
    transition: var(--transition-fast);
}

.btn-copy-iban:hover {
    background-color: var(--accent-ochre);
}

.copy-success-msg {
    color: var(--accent-sage);
    font-weight: 500;
    font-size: 0.85rem;
    display: none;
    margin-bottom: 1.5rem;
}

.color-palette-dots {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin: 1rem 0 2rem 0;
}

.color-dot {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 2px solid #FFFFFF;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.modal-bianca-img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 1.5rem auto;
    border: 3px solid #FFFFFF;
    box-shadow: var(--shadow-polaroid);
}

.bianca-facts li {
    list-style-type: '🐾 ';
    margin-bottom: 0.5rem;
    text-align: left;
}

/* Música Form */
.music-form, .rsvp-form {
    margin-top: 1.5rem;
    text-align: left;
}

.form-group {
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-primary);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.form-group input, .form-group select, .form-group textarea {
    background-color: #FFFFFF;
    border: 1px solid rgba(110, 106, 100, 0.2);
    border-radius: 10px;
    padding: 0.85rem 1rem;
    font-size: 0.95rem;
    color: var(--text-primary);
    width: 100%;
    font-family: var(--font-sans);
    transition: var(--transition-fast);
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    border-color: var(--accent-sage);
    box-shadow: 0 0 0 3px rgba(91, 110, 88, 0.1);
}

.btn-submit-song, .btn-rsvp-submit {
    width: 100%;
    background-color: var(--ui-dark);
    color: var(--bg-primary);
    padding: 1rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: var(--transition-fast);
}

.btn-submit-song:hover, .btn-rsvp-submit:hover {
    background-color: var(--accent-sage);
}

.music-success-msg, .rsvp-success-msg {
    background-color: rgba(91, 110, 88, 0.1);
    color: var(--accent-sage);
    border: 1px solid rgba(91, 110, 88, 0.2);
    padding: 1.5rem;
    border-radius: 16px;
    text-align: center;
    display: none;
    margin-top: 1.5rem;
}

/* RSVP Modal Size */
.rsvp-modal-size {
    max-width: 550px;
}

/* -----------------------------------------
   7. MANIFESTO SECTION
-------------------------------------------- */
.manifesto-section {
    padding: 140px 0;
    background-color: var(--bg-primary);
    text-align: center;
}

.manifesto-container {
    width: 90%;
    max-width: 900px;
    margin: 0 auto;
}

.manifesto-text {
    font-family: var(--font-serif-title);
    font-size: clamp(2rem, 4.5vw, 3.5rem);
    font-weight: 300;
    line-height: 1.4;
    font-style: italic;
    color: var(--text-primary);
    text-transform: lowercase;
}

/* -----------------------------------------
   8. FAQ SECTION (QUESTIONS)
-------------------------------------------- */
.faq-section {
    padding: 120px 0;
    background-color: var(--bg-primary);
    border-top: 1px solid rgba(110, 106, 100, 0.05);
}

.faq-container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    gap: 8%;
}

.faq-left {
    width: 35%;
}

.faq-title {
    font-family: var(--font-serif-title);
    font-size: clamp(2rem, 3.5vw, 3.2rem);
    font-weight: 300;
    text-transform: lowercase;
    margin-bottom: 1rem;
}

.faq-subtitle {
    font-size: 0.9rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent-ochre);
    font-weight: 600;
}

.faq-right {
    width: 57%;
}

.accordion {
    width: 100%;
}

.accordion-item {
    border-bottom: 1px solid rgba(110, 106, 100, 0.15);
}

.accordion-header {
    width: 100%;
    text-align: left;
    padding: 1.8rem 0;
    font-family: var(--font-serif-title);
    font-size: 1.35rem;
    font-weight: 400;
    color: var(--text-primary);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition-fast);
}

.accordion-header:hover {
    color: var(--accent-sage);
}

.accordion-icon {
    font-size: 1.2rem;
    font-weight: 300;
    transition: transform 0.4s;
    color: var(--accent-ochre);
}

.accordion-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.accordion-body p {
    padding-bottom: 1.8rem;
    font-size: 0.95rem;
    line-height: 1.8;
    color: var(--text-secondary);
    font-weight: 300;
}

/* Clase activa del acordeón */
.accordion-item.active .accordion-icon {
    transform: rotate(45deg);
}

/* -----------------------------------------
   9. FOOTER SECTION
-------------------------------------------- */
.footer-section {
    position: relative;
    width: 100%;
    height: 70vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    color: #FFFFFF;
}

.footer-bg-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.footer-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.footer-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(26, 26, 26, 0.9) 20%, rgba(26, 26, 26, 0.45) 100%);
    z-index: 2;
}

.footer-content {
    position: relative;
    z-index: 5;
    text-align: center;
    width: 90%;
    max-width: 800px;
}

.footer-quote {
    font-family: var(--font-serif-title);
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 300;
    line-height: 1.4;
    font-style: italic;
    margin-bottom: 2.5rem;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.footer-names {
    font-family: var(--font-serif-title);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 300;
    letter-spacing: 0.05em;
    margin-bottom: 3rem;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.footer-copyright {
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    opacity: 0.6;
}

/* -----------------------------------------
   PHOTO MODAL (PARA HISTORIA & COLLAGE)
-------------------------------------------- */
.photo-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(26, 26, 26, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s;
}

.photo-modal.active {
    opacity: 1;
    visibility: visible;
}

.photo-modal-close {
    position: absolute;
    top: 40px;
    right: 40px;
    font-size: 3rem;
    color: #FFFFFF;
    cursor: pointer;
    transition: var(--transition-fast);
}

.photo-modal-close:hover {
    color: var(--accent-ochre);
    transform: rotate(90deg);
}

.photo-modal-content-wrapper {
    max-width: 90%;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    transform: scale(0.9);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.photo-modal.active .photo-modal-content-wrapper {
    transform: scale(1);
}

.photo-modal-img {
    max-width: 100%;
    max-height: 70vh;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    background-color: #FFFFFF;
    padding: 10px;
}

.photo-modal-caption {
    margin-top: 1.5rem;
    color: #FFFFFF;
    font-family: var(--font-serif-title);
    font-size: 1.4rem;
    font-style: italic;
    text-align: center;
}

/* -----------------------------------------
   MEDIA QUERIES (RESPONSIVE)
-------------------------------------------- */
@media (max-width: 1024px) {
    .nav-links {
        display: none; /* En móvil simplificamos la navegación */
    }
    
    .story-container {
        flex-direction: column;
        gap: 50px;
    }
    
    .story-left, .story-right {
        width: 100%;
    }
    
    .story-left {
        text-align: center;
    }
    
    .story-step {
        padding: 40px 0;
    }
    
    .card-stack-container {
        margin: 0 auto;
    }
    
    .venue-container {
        flex-direction: column;
        gap: 50px;
        text-align: center;
    }
    
    .venue-image-wrapper, .venue-info {
        width: 100%;
    }
    
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 220px;
    }
    
    .card-logistics { grid-column: span 2; }
    .card-registry { grid-column: span 1; grid-row: span 1; }
    .card-bianca { grid-column: span 2; }
    
    .faq-container {
        flex-direction: column;
        gap: 50px;
    }
    
    .faq-left, .faq-right {
        width: 100%;
    }
    
    .faq-left {
        text-align: center;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 14px;
    }
    
    .polaroid-float {
        display: none; /* Ocultamos polaroids flotantes en pantallas pequeñas */
    }
    
    .bento-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: 200px;
        gap: 16px;
    }
    
    .card-logistics, .card-registry, .card-dresscode, .card-menu, .card-music, .card-bianca {
        grid-column: span 1 !important;
        grid-row: span 1 !important;
    }
    
    .bento-modal-content {
        padding: 2rem;
        border-radius: 20px;
    }
    
    .navbar {
        height: 70px;
    }
}
