/* ===========================
   RESET Y VARIABLES
   =========================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-agua: #8b7355;
    --color-agua-dark: #6b5644;
    --color-agua-light: #a08978;
    --color-white: #ffffff;
    --color-cream: #faf8f5;
    --color-text: #2c2c2c;
    --color-gold: #d4af37;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Montserrat', sans-serif;
}

body {
    font-family: var(--font-body);
    color: var(--color-text);
    background-color: var(--color-white);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===========================
   SECCIÓN HERO
   =========================== */
.hero {
    position: relative;
    min-height: 150vh;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: transparent;
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-image .couple-photo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center center;
    image-rendering: auto;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.5) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: var(--color-white);
    padding: 40px;
    animation: fadeInUp 1.5s ease-out;
}

.couple-names {
    font-family: var(--font-heading);
    font-size: 5rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 3px 3px 8px rgba(0, 0, 0, 0.8);
    letter-spacing: 3px;
    background: rgba(0, 0, 0, 0.4);
    padding: 30px 60px;
    border-radius: 10px;
    display: inline-block;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
}

.wedding-date {
    background: rgba(0, 0, 0, 0.4);
    padding: 20px 40px;
    border-radius: 50px;
    margin-top: 30px;
    display: inline-block;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
}

.date-text {
    font-size: 1.8rem;
    font-weight: 300;
    letter-spacing: 2px;
    color: var(--color-white);
}

.scroll-indicator {
    margin-top: 50px;
    font-size: 2rem;
    animation: bounce 2s infinite;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-20px);
    }
    60% {
        transform: translateY(-10px);
    }
}

/* ===========================
   TÍTULOS DE SECCIÓN
   =========================== */
.section-title {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    text-align: center;
    margin-bottom: 60px;
    color: var(--color-white);
    background: var(--color-agua);
    padding: 25px 50px;
    border-radius: 15px;
    display: inline-block;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

/* ===========================
   SECCIÓN ITINERARIO
   =========================== */
.itinerary {
    padding: 100px 0;
    position: relative;
    overflow: hidden;
    background-image: url('img/itinerario.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

/* Degradado sobre la imagen de fondo para resaltar el contenido */
.itinerary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        linear-gradient(135deg, rgb(255 255 255 / 0%) 0%, rgba(250, 248, 245, 0.88) 50%, rgba(255, 255, 255, 0.92) 100%);
    z-index: 0;
}

.itinerary .container {
    position: relative;
    z-index: 1;
}

.itinerary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.itinerary-item {
    text-align: center;
    padding: 30px;
    background: var(--color-white);
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 3px solid var(--color-agua-light);
}

.itinerary-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(21, 96, 130, 0.3);
}

.time-circle {
    width: 120px;
    height: 120px;
    background: var(--color-agua);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    box-shadow: 0 5px 15px rgba(21, 96, 130, 0.4);
    border: 4px solid var(--color-white);
}

.time {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--color-white);
}

.itinerary-content h3 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--color-agua-dark);
    margin-bottom: 15px;
}

.decorative-line {
    width: 60px;
    height: 2px;
    background: var(--color-gold);
    margin: 15px auto;
}

.itinerary-content p {
    font-style: italic;
    color: #666;
}

.fade-in {
    animation: fadeIn 1s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* ===========================
   SECCIÓN LUGAR (VENUE)
   =========================== */
.venue {
    padding: 100px 0;
    position: relative;
    overflow: hidden;
    background-image: url('img/lugar.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

/* Degradado sobre la imagen de fondo para resaltar el contenido */
.venue::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        linear-gradient(135deg, rgb(255 255 255 / 0%) 0%, rgba(250, 248, 245, 0.88) 50%, rgba(255, 255, 255, 0.92) 100%);
    z-index: 0;
}

.venue .container {
    position: relative;
    z-index: 1;
}

.venue-description {
    text-align: center;
    font-size: 1.3rem;
    max-width: 800px;
    margin: 40px auto;
    line-height: 1.8;
    color: #5a4a3a;
    background: rgba(255, 255, 255, 0.9);
    padding: 30px 40px;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border: 2px solid #d4af37;
    font-style: italic;
}

/* Carrusel */
.carousel-container {
    margin: 60px 0;
}

.carousel {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    border: 5px solid var(--color-agua);
}

.carousel-slides {
    position: relative;
    width: 100%;
    height: 500px;
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--color-agua);
    color: var(--color-white);
    border: none;
    font-size: 2rem;
    padding: 15px 20px;
    cursor: pointer;
    z-index: 10;
    transition: background 0.3s ease;
    border-radius: 5px;
}

.carousel-btn:hover {
    background: var(--color-agua-dark);
}

.carousel-btn.prev {
    left: 20px;
}

.carousel-btn.next {
    right: 20px;
}

.carousel-dots {
    text-align: center;
    margin-top: 20px;
}

.dot {
    display: inline-block;
    width: 15px;
    height: 15px;
    background: #ddd;
    border-radius: 50%;
    margin: 0 8px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.dot.active {
    background: var(--color-agua);
    transform: scale(1.2);
}

/* Mapa */
.map-container {
    margin-top: 80px;
    text-align: center;
}

.venue-name {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: #f5e6d3;
    margin-bottom: 30px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    background: linear-gradient(135deg, #6b5644 0%, #5a4a3a 100%);
    padding: 20px 40px;
    border-radius: 15px;
    border: 2px solid #d4af37;
    display: inline-block;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.map-placeholder {
    max-width: 900px;
    margin: 0 auto;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border: 3px solid var(--color-agua);
}

/* ===========================
   SECCIÓN DRESS CODE
   =========================== */
.dress-code {
    padding: 100px 0;
    position: relative;
    overflow: hidden;
    background-image: url('img/vestimenta.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

/* Degradado sobre la imagen de fondo para resaltar el contenido */
.dress-code::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        linear-gradient(135deg, rgb(255 255 255 / 0%) 0%, rgba(250, 248, 245, 0.88) 50%, rgba(255, 255, 255, 0.92) 100%);;
    z-index: 0;
}

.dress-code .container {
    position: relative;
    z-index: 1;
}

.dress-code-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 50px;
    margin-top: 60px;
}

.dress-code-card {
    background: var(--color-white);
    padding: 50px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 4px solid var(--color-agua-light);
    transition: transform 0.3s ease;
}

.dress-code-card:hover {
    transform: scale(1.05);
}

.dress-icon {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 150px;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.dress-code-card h3 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--color-agua-dark);
    margin-bottom: 30px;
    background: var(--color-agua-light);
    padding: 15px;
    border-radius: 10px;
}

.dress-list {
    list-style: none;
    text-align: left;
    margin: 30px 0;
}

.dress-list li {
    padding: 15px 20px;
    margin: 10px 0;
    background: var(--color-cream);
    border-left: 4px solid var(--color-agua);
    border-radius: 5px;
    font-size: 1.1rem;
}

.dress-note {
    margin-top: 30px;
    font-style: italic;
    color: var(--color-agua-dark);
    font-size: 1.2rem;
    font-weight: 600;
}

/* ===========================
   SECCIÓN MESA DE REGALOS
   =========================== */
.gifts {
    padding: 100px 0;
    position: relative;
    overflow: hidden;
    background-image: url('img/regalos.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

/* Degradado sobre la imagen de fondo para resaltar el contenido */
.gifts::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        linear-gradient(135deg, rgb(255 255 255 / 0%) 0%, rgba(250, 248, 245, 0.88) 50%, rgba(255, 255, 255, 0.92) 100%);
    z-index: 0;
}

.gifts .container {
    position: relative;
    z-index: 1;
}

.gifts-box {
    max-width: 700px;
    margin: 0 auto;
    background: var(--color-white);
    padding: 60px;
    border-radius: 25px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15);
    border: 3px solid var(--color-agua);
}

.gifts-title {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    text-align: center;
    background: linear-gradient(135deg, #8b7355 0%, #6b5644 100%);
    color: #f5e6d3;
    border: 3px solid #d4af37;
    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.5),
        inset 0 2px 0 rgba(255, 255, 255, 0.2);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4);
    padding: 25px 50px;
    border-radius: 15px;
    margin-bottom: 30px;
    display: inline-block;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
}

.gifts-main-text {
    text-align: center;
    font-size: 1.3rem;
    margin: 30px 0;
    line-height: 1.8;
}

.gifts-main-text strong {
    color: var(--color-agua-dark);
    font-size: 1.4rem;
}

.gifts-secondary-text {
    text-align: center;
    font-size: 1.1rem;
    color: #666;
    margin: 30px 0;
    line-height: 1.8;
}

.gifts-transfer-text {
    text-align: center;
    font-size: 1.15rem;
    color: var(--color-agua-dark);
    margin: 35px 0 25px;
    line-height: 1.8;
    font-style: italic;
    font-weight: 500;
}

.account-box {
    background: white;
    padding: 40px;
    border-radius: 20px;
    margin-top: 40px;
    text-align: center;
    border: 2px solid var(--color-agua-light);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.account-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--color-agua-dark);
    margin-bottom: 25px;
}

.bank-logo {
    width: 150px;
    height: 100px;
    margin: 20px auto;
    overflow: hidden;
    border-radius: 10px;
    background: var(--color-white);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.bank-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.account-name {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--color-text);
    margin: 20px 0;
}

.account-details {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    font-size: 1.4rem;
    margin-top: 20px;
    background: var(--color-white);
    padding: 20px;
    border-radius: 10px;
}

.account-label {
    font-weight: 600;
    color: var(--color-agua-dark);
}

.account-number {
    font-family: monospace;
    font-size: 1.5rem;
    color: var(--color-text);
    letter-spacing: 2px;
}

.copy-btn {
    background: transparent;
    border: 2px solid var(--color-agua-light);
    color: var(--color-agua-dark);
    padding: 8px 10px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 10px;
    opacity: 0.7;
}

.copy-btn:hover {
    background: var(--color-agua);
    border-color: var(--color-agua);
    color: var(--color-white);
    opacity: 1;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 115, 85, 0.3);
}

.copy-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(139, 115, 85, 0.2);
}

.copy-btn svg {
    display: block;
}

.copy-feedback {
    margin-top: 15px;
    font-size: 0.95rem;
    color: var(--color-agua-dark);
    font-weight: 600;
    opacity: 0;
    transition: opacity 0.3s ease;
    text-align: center;
}

.copy-feedback.show {
    opacity: 1;
}

/* ===========================
   SECCIÓN ÁLBUM DE FOTOS
   =========================== */
.photo-album {
    padding: 100px 0;
    position: relative;
    overflow: hidden;
    background-image: url('img/album.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

/* Degradado sobre la imagen de fondo para no opacar el álbum */
.photo-album::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        linear-gradient(
            135deg,
            rgba(255, 255, 255, 0.92) 0%,
            rgba(250, 248, 245, 0.88) 50%,
            rgba(255, 255, 255, 0.92) 100%
        );
    z-index: 0;
}

.book-container {
    max-width: 1100px;
    margin: 60px auto;
    perspective: 2500px;
    position: relative;
    z-index: 1;
}

/* Lomo del libro (centro) */
.book::before {
    content: '';
    position: absolute;
    left: 50%;
    top: -20px;
    bottom: -20px;
    width: 40px;
    transform: translateX(-50%);
    background: linear-gradient(to right,
        #4a3f35 0%,
        #6b5644 20%,
        #8b7355 50%,
        #6b5644 80%,
        #4a3f35 100%);
    box-shadow:
        inset 0 0 20px rgba(0, 0, 0, 0.5),
        0 0 30px rgba(0, 0, 0, 0.4);
    border-radius: 5px;
    z-index: 10;
}

.book {
    display: flex;
    gap: 40px;
    margin-bottom: 40px;
    transition: transform 0.6s ease;
    position: relative;
    padding: 40px 0;
}

.page {
    flex: 1;
    background: linear-gradient(to bottom, #fefdfb 0%, #f9f7f3 100%);
    padding: 40px;
    border-radius: 3px;
    min-height: 480px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: transform 0.6s ease;
    position: relative;
    border: 1px solid #d4c5b0;
    transform-style: preserve-3d;
    backface-visibility: hidden;

    /* Efecto de papel antiguo con textura */
    background-image:
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 2px,
            rgba(139, 115, 85, 0.02) 2px,
            rgba(139, 115, 85, 0.02) 4px
        );

    /* Sombras para efecto 3D con capas de hojas */
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.5),
        inset 0 0 50px rgba(139, 115, 85, 0.1),
        inset -5px 0 15px rgba(0, 0, 0, 0.1);
}

.page-left {
    transform-origin: right center;
    border-top-left-radius: 8px;
    border-bottom-left-radius: 8px;

    /* Borde dorado en el lado exterior */
    border-left: 3px solid #d4af37;

    /* Sombra específica del lado izquierdo con múltiples capas para efecto de hojas */
    box-shadow:
        -15px 20px 60px rgba(0, 0, 0, 0.4),
        inset 5px 0 15px rgba(0, 0, 0, 0.1),
        inset 0 0 50px rgba(139, 115, 85, 0.05),
        /* Capas de páginas apiladas */
        -8px 0 0 -2px #f5f3f0,
        -10px 0 0 -2px #f0ede8,
        -12px 0 0 -2px #ebe8e0,
        -14px 0 0 -2px #e6e2d8,
        -16px 0 0 -2px #e1ddd0,
        -18px 2px 8px rgba(0, 0, 0, 0.15);
}

.page-right {
    transform-origin: left center;
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;

    /* Borde dorado en el lado exterior */
    border-right: 3px solid #d4af37;

    /* Sombra específica del lado derecho con múltiples capas para efecto de hojas */
    box-shadow:
        15px 20px 60px rgba(0, 0, 0, 0.4),
        inset -5px 0 15px rgba(0, 0, 0, 0.1),
        inset 0 0 50px rgba(139, 115, 85, 0.05),
        /* Capas de páginas apiladas */
        8px 0 0 -2px #f5f3f0,
        10px 0 0 -2px #f0ede8,
        12px 0 0 -2px #ebe8e0,
        14px 0 0 -2px #e6e2d8,
        16px 0 0 -2px #e1ddd0,
        18px 2px 8px rgba(0, 0, 0, 0.15);
}

/* Efecto de ondulación en los bordes de las páginas */
.page::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 100%;
    pointer-events: none;
    border-radius: inherit;
}

.page-left::after {
    left: 0;
    background: linear-gradient(to right,
        rgba(255, 255, 255, 0.4) 0%,
        transparent 50%);
}

.page-right::after {
    right: 0;
    background: linear-gradient(to left,
        rgba(255, 255, 255, 0.4) 0%,
        transparent 50%);
}

.album-photo {
    max-width: 100%;
    max-height: 320px;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 5px;
    margin-bottom: 15px;

    /* Marco de foto estilo vintage */
    padding: 12px;
    background: white;
    box-shadow:
        0 8px 25px rgba(0, 0, 0, 0.3),
        inset 0 0 10px rgba(0, 0, 0, 0.1);

    /* Efecto de foto pegada en el álbum */
    border: 1px solid #e5d5c0;
    position: relative;
}

/* Esquinas de foto tipo vintage */
.album-photo::before,
.album-photo::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid #d4af37;
    opacity: 0.4;
}

.photo-caption {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-style: italic;
    color: #5a4a3a;
    text-align: center;
    margin-top: 10px;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.5);
    letter-spacing: 1px;
}

/* Botones de navegación en las páginas */
.page-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(135deg, #d4af37 0%, #f5e6d3 50%, #d4af37 100%);
    color: #5a4a3a;
    border: 2px solid #8b7355;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow:
        0 5px 15px rgba(0, 0, 0, 0.3),
        inset 0 2px 5px rgba(255, 255, 255, 0.5);
    z-index: 15;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    opacity: 0.8;
}

.page-nav-btn:hover {
    opacity: 1;
    transform: translateY(-50%) scale(1.15);
    box-shadow:
        0 8px 25px rgba(0, 0, 0, 0.5),
        inset 0 2px 8px rgba(255, 255, 255, 0.6);
    background: linear-gradient(135deg, #f5e6d3 0%, #d4af37 50%, #f5e6d3 100%);
    border-color: #6b5644;
}

.page-nav-btn:active {
    transform: translateY(-50%) scale(1.05);
    box-shadow:
        0 3px 10px rgba(0, 0, 0, 0.4),
        inset 0 1px 3px rgba(255, 255, 255, 0.4);
}

.page-nav-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    transform: translateY(-50%);
}

.prev-btn {
    left: -25px;
}

.next-btn {
    right: -25px;
}

.book-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    margin-top: 50px;
    position: relative;
    z-index: 2;
}

.book-btn {
    background: linear-gradient(135deg, #8b7355 0%, #6b5644 100%);
    color: #f5e6d3;
    border: 2px solid #d4af37;
    padding: 18px 40px;
    font-size: 1.2rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow:
        0 8px 20px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-family: var(--font-heading);
}

.book-btn:hover {
    background: linear-gradient(135deg, #6b5644 0%, #5a4a3a 100%);
    transform: translateY(-3px);
    box-shadow:
        0 12px 30px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    border-color: #f5e6d3;
    color: #d4af37;
}

.book-btn:active {
    transform: translateY(-1px);
    box-shadow:
        0 5px 15px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.book-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.page-counter {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: #f5e6d3;
    min-width: 100px;
    text-align: center;
    background: rgba(107, 86, 68, 0.6);
    padding: 12px 25px;
    border-radius: 30px;
    border: 2px solid #d4af37;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    font-weight: 600;
    letter-spacing: 2px;
}

/* Títulos especiales para secciones con fondo de imagen */
.itinerary .section-title,
.venue .section-title,
.dress-code .section-title,
.gifts .section-title,
.photo-album .section-title,
.faq .section-title {
    background: linear-gradient(135deg, #8b7355 0%, #6b5644 100%);
    color: #f5e6d3;
    border: 3px solid #d4af37;
    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.5),
        inset 0 2px 0 rgba(255, 255, 255, 0.2);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4);
}

/* ===========================
   SECCIÓN FAQ
   =========================== */
.faq {
    padding: 100px 0;
    background: var(--color-white);
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.faq-card {
    background: var(--color-cream);
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border: 3px solid var(--color-agua-light);
    transition: transform 0.3s ease;
}

.faq-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 35px rgba(21, 96, 130, 0.2);
}

.faq-icon {
    font-size: 3.5rem;
    margin-bottom: 20px;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 120px;
}

.faq-question {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--color-agua-dark);
    margin-bottom: 20px;
    background: var(--color-agua-light);
    padding: 15px;
    border-radius: 10px;
}

.faq-answer {
    font-size: 1.1rem;
    color: #666;
    line-height: 1.8;
}

/* ===========================
   SECCIÓN RSVP (FORMULARIO)
   =========================== */
.rsvp {
    padding: 100px 0;
    position: relative;
    overflow: hidden;
    background-image: url('img/asistencia.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

/* Degradado sobre la imagen de fondo para resaltar el contenido */
.rsvp::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        linear-gradient(135deg, rgb(255 255 255 / 0%) 0%, rgba(250, 248, 245, 0.88) 50%, rgba(255, 255, 255, 0.92) 100%);
    z-index: 0;
}

.rsvp .container {
    position: relative;
    z-index: 1;
}

.rsvp-image-container {
    max-width: 600px;
    margin: 40px auto;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    border: 5px solid var(--color-agua);
}

.rsvp-image {
    width: 100%;
    height: auto;
    display: block;
}

.rsvp-intro {
    text-align: center;
    font-size: 1.3rem;
    max-width: 700px;
    margin: 0 auto 50px;
    color: var(--color-text);
    line-height: 1.8;
}

.rsvp-form {
    max-width: 700px;
    margin: 0 auto;
    background: var(--color-white);
    padding: 50px;
    border-radius: 25px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15);
    border: 3px solid var(--color-agua);
    position: relative;
    z-index: 10;
}

.guest-form {
    margin-bottom: 50px;
    padding: 30px;
    background: var(--color-cream);
    border-radius: 15px;
    border-left: 5px solid var(--color-agua);
    position: relative;
    z-index: 20;
}

.guest-number {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--color-agua-dark);
    margin-bottom: 25px;
    text-align: center;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--color-text);
    font-size: 1.1rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid var(--color-agua-light);
    border-radius: 10px;
    font-size: 1rem;
    font-family: var(--font-body);
    transition: border-color 0.3s ease;
    position: relative;
    z-index: 30;
    background: var(--color-white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-agua);
    box-shadow: 0 0 10px rgba(21, 96, 130, 0.2);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.add-guest-btn {
    display: block;
    width: 100%;
    background: var(--color-agua-light);
    color: var(--color-text);
    border: 2px dashed var(--color-agua);
    padding: 15px;
    font-size: 1.1rem;
    border-radius: 10px;
    cursor: pointer;
    margin-bottom: 30px;
    transition: all 0.3s ease;
    font-weight: 600;
}

.add-guest-btn:hover {
    background: var(--color-agua);
    color: var(--color-white);
    border-style: solid;
}

.submit-btn {
    display: block;
    width: 100%;
    background: var(--color-agua);
    color: var(--color-white);
    border: none;
    padding: 20px;
    font-size: 1.3rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(21, 96, 130, 0.3);
}

.submit-btn:hover {
    background: var(--color-agua-dark);
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(21, 96, 130, 0.4);
}

/* ===========================
   LIGHTBOX (PANTALLA COMPLETA)
   =========================== */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    animation: zoomIn 0.3s ease-out;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
}

.lightbox-caption {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--color-white);
    margin-top: 20px;
    text-align: center;
    font-style: italic;
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 40px;
    background: transparent;
    border: none;
    color: var(--color-white);
    font-size: 4rem;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10000;
    line-height: 1;
    padding: 0;
    width: 50px;
    height: 50px;
}

.lightbox-close:hover {
    color: var(--color-gold);
    transform: rotate(90deg);
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(139, 115, 85, 0.8);
    color: var(--color-white);
    border: 2px solid var(--color-gold);
    font-size: 2.5rem;
    padding: 15px 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 10px;
    z-index: 10000;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: var(--color-agua);
    transform: translateY(-50%) scale(1.1);
}

.lightbox-prev {
    left: 30px;
}

.lightbox-next {
    right: 30px;
}

.lightbox-counter {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(139, 115, 85, 0.9);
    color: var(--color-white);
    padding: 10px 25px;
    border-radius: 30px;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    border: 2px solid var(--color-gold);
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ===========================
   FOOTER
   =========================== */
.footer {
    background: var(--color-agua);
    color: var(--color-white);
    padding: 60px 20px;
    text-align: center;
}

.footer-text {
    font-family: var(--font-heading);
    font-size: 2rem;
    margin-bottom: 15px;
}

.footer-date {
    font-size: 1.3rem;
    letter-spacing: 3px;
    margin-bottom: 20px;
}

.footer-heart {
    font-size: 2.5rem;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
}

/* ===========================
   RESPONSIVE
   =========================== */
@media (max-width: 768px) {
    /* Hero responsive */
    .hero {
        min-height: 100vh;
        height: 100vh;
    }

    .hero-image .couple-photo {
        object-fit: cover;
        object-position: center center;
    }

    /* Mejorar calidad de imágenes de fondo en móvil */
    .itinerary {
        background-size: auto 100%;
        background-position: center;
        background-repeat: no-repeat;
    }

    .venue {
        background-size: auto 100%;
        background-position: center;
        background-repeat: no-repeat;
    }

    .dress-code {
        background-size: auto 100%;
        background-position: center;
        background-repeat: no-repeat;
    }

    .gifts {
        background-size: auto 100%;
        background-position: center;
        background-repeat: no-repeat;
    }

    .photo-album {
        background-size: auto 100%;
        background-position: center;
        background-repeat: no-repeat;
    }

    .rsvp {
        background-size: auto 100%;
        background-position: center;
        background-repeat: no-repeat;
    }

    .couple-names {
        font-size: 3rem;
        padding: 20px 30px;
    }

    .date-text {
        font-size: 1.3rem;
    }

    .section-title {
        font-size: 2.5rem;
        padding: 20px 30px;
    }

    .itinerary-grid {
        grid-template-columns: 1fr;
    }

    .carousel-slides {
        height: 300px;
    }

    .carousel-btn {
        font-size: 1.5rem;
        padding: 10px 15px;
    }

    .dress-code-grid {
        grid-template-columns: 1fr;
    }

    .gifts-box {
        padding: 30px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .book {
        flex-direction: row; /* Mantener horizontal */
        gap: 10px; /* Gap más pequeño */
        padding: 10px;
        transform: scale(0.85); /* Escalar para que quepa mejor */
    }

    .book::before {
        width: 20px; /* Lomo más delgado en móvil */
    }

    .page {
        min-height: 400px;
        padding: 20px 15px; /* Padding más pequeño */
    }

    .page-left,
    .page-right {
        border-radius: 8px;
    }

    .album-photo {
        max-height: 250px; /* Más pequeña en móvil */
        max-width: 100%;
    }

    .photo-caption {
        font-size: 1rem; /* Texto más pequeño */
        margin-top: 10px;
    }

    .book-btn {
        padding: 12px 25px;
        font-size: 1rem;
    }

    .page-counter {
        font-size: 1rem;
        padding: 8px 15px;
    }

    .page-nav-btn {
        width: 35px;
        height: 35px;
        font-size: 1.3rem;
    }

    .prev-btn {
        left: -18px;
    }

    .next-btn {
        right: -18px;
    }

    .book-container {
        padding: 0 10px; /* Padding lateral para móvil */
    }

    .faq-grid {
        grid-template-columns: 1fr;
    }

    .rsvp-form {
        padding: 30px 20px;
    }

    /* Lightbox en móvil */
    .lightbox-close {
        top: 10px;
        right: 10px;
        font-size: 3rem;
    }

    .lightbox-prev,
    .lightbox-next {
        font-size: 2rem;
        padding: 10px 15px;
    }

    .lightbox-prev {
        left: 10px;
    }

    .lightbox-next {
        right: 10px;
    }

    .lightbox-caption {
        font-size: 1.2rem;
    }

    .lightbox-counter {
        font-size: 1rem;
        padding: 8px 20px;
        bottom: 20px;
    }
}