:root {
    --tx: 0%;
    --overlay-opacity: 1;
    
    /* Nueva Paleta Terracota */
    --color-bg-light: #fcf8f5;       /* Fondo general cálido */
    --color-terracotta: #c07a62;     /* Terracota principal */
    --color-terracotta-dark: #a25f48;/* Terracota oscuro para texto o hover */
    --color-terracotta-soft: #ebd6ce;/* Terracota claro para fondos/detalles */
    --color-sand: #e6ded8;           /* Tono arena para bordes y sutiles */
    --color-text-dark: #4e4441;      /* Gris marrón oscuro para textos legibles */
    --color-text-muted: #8a7a75;     /* Texto secundario suavizado */
    --color-gold: #d4af37;           /* Toque dorado sutil */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    overflow-x: hidden;
    background-color: var(--color-bg-light);
    color: var(--color-text-dark);
}

/* Contenedor principal de 200vh para dar espacio al scroll */
.hero {
    height: 200vh;
    position: relative;
}

.hero__sticky {
    position: sticky;
    top: 0;
    height: 100vh;
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 1;
}

/* ==========================================================================
   NUEVA ESCENA DE SOBRE (CENTRADO PERFECTO Y APERTURA SIMÉTRICA)
   ========================================================================== */
.door-scene {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh; /* Forzamos a que mida exactamente el alto de la pantalla */
    z-index: 5;
    display: flex;
    overflow: hidden; /* Evita que salgan barras de scroll raras antes de abrir */
    background-color: #f4eae1 !important; /* Fondo crema suave que combina con tu sobre */
}

.door {
    position: absolute !important;
    top: 0 !important;
    width: 50% !important; /* Cada mitad ocupa exactamente la mitad de la pantalla */
    height: 100vh !important; /* Alto completo del celular sin estirarse al 125% */
    object-fit: cover !important; /* Evita que el sobre se deforme */
    
    /* Mantenemos tu frenado absoluto de 4 segundos para la apertura elegante */
    transition: transform 4.0s cubic-bezier(0.1, 0.8, 0.25, 1) !important;
    animation: none !important;
}

.door-left {
    left: 0 !important;
    object-position: right center !important; /* Pega el corte de la mitad izquierda al centro */
}

.door-right {
    right: 0 !important;
    object-position: left center !important;  /* Pega el corte de la mitad derecha al centro */
}

/* Cuando el JavaScript inyecte la clase .open, se abrirán perfectamente alineadas */
.door-left.open {
    transform: translateX(-100%) !important;
}

.door-right.open {
    transform: translateX(100%) !important;
}

/* ==========================================================================
   OVERLAY DE TEXTO E INDICADOR
   ========================================================================== */
.door-overlay {
    position: relative;
    z-index: 10;
    text-align: center;
    opacity: var(--overlay-opacity);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin: auto; /* Centra perfectamente el texto y la flecha sobre el sobre */
    pointer-events: auto; /* Permite que el círculo blanco reciba los toques táctiles */
}

.overlay__title {
    font-family: 'Great Vibes', cursive;
    font-size: 3rem;
    color: var(--color-text-dark);
    text-shadow: 0 2px 4px rgba(255, 255, 255, 0.8);
}

.scroll-indicator {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    color: var(--color-terracotta);
    animation: bounce 2s infinite ease-in-out;
    cursor: pointer;
    touch-action: manipulation !important;
    -webkit-tap-highlight-color: transparent !important;
}

.scroll-indicator svg {
    width: 30px;
    height: 30px;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

/* ==========================================================================
   ADAPTACIÓN PARA MÓVILES (LIMPIA DE ERRORES)
   ========================================================================== */
@media (max-width: 768px) {
    /* Eliminamos el sobreescalado del 125% y el 85% de ancho para que no se descuadre */
    .door {
        width: 50% !important;
        height: 100vh !important;
        top: 0 !important; 
    }

    .overlay__title {
        font-size: 2.2rem;
    }
}

/* BLOQUE 2 - CONTEO REGRESIVO */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600&display=swap');

.cover-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url('../img/fondo2.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 20px;
}

.cover-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(78, 68, 65, 0.25); /* Filtro ligeramente cálido/tierra */
    z-index: 1;
}

.glass-card {
    position: relative;
    z-index: 2;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 20px;
    padding: 60px 40px;
    max-width: 600px;
    width: 100%;
    text-align: center;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.08);
    color: #fff;
}

.glass-card__intro {
    font-family: 'Poppins', sans-serif;
    text-transform: uppercase;
    letter-spacing: 4px;
    font-size: 0.9rem;
    margin-bottom: 10px;
    font-weight: 300;
}

.glass-card__names {
    font-family: 'Great Vibes', cursive;
    font-size: clamp(3.5rem, 8vw, 5rem);
    margin-bottom: 20px;
    font-weight: 400;
    text-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.glass-card__text {
    font-family: 'Poppins', sans-serif;
    font-size: 1.1rem;
    font-weight: 300;
    margin-bottom: 40px;
    line-height: 1.6;
}

.countdown {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-bottom: 40px;
}

.countdown__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(192, 122, 98, 0.25); /* Tono terracota translúcido */
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 15px 5px;
    border-radius: 12px;
}

.countdown__item span {
    font-family: 'Poppins', sans-serif;
    font-size: 1.8rem;
    font-weight: 600;
}

.countdown__item small {
    font-family: 'Poppins', sans-serif;
    font-size: 0.7rem;
    text-transform: uppercase;
    opacity: 0.9;
}

.glass-card__date {
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    padding-top: 25px;
    font-weight: 400;
    letter-spacing: 1px;
}

@media (max-width: 480px) {
    .glass-card { padding: 40px 20px; }
    .countdown { gap: 8px; }
    .countdown__item span { font-size: 1.4rem; }
}

/* BLOQUE 3 - MENCIONES ESPECIALES */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,600;1,600&display=swap');

.special-section {
    padding: 100px 20px;
    background: linear-gradient(135deg, #fdfaf7 0%, #f4eae6 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.special-content {
    max-width: 800px;
    width: 100%;
}

.special__title {
    font-family: 'Poppins', sans-serif;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 1rem;
    color: var(--color-terracotta);
    margin-bottom: 10px;
    font-weight: 600;
}

.special__highlight {
    font-family: 'Great Vibes', cursive;
    font-size: clamp(2.5rem, 6vw, 4rem);
    color: var(--color-terracotta-dark);
    margin-bottom: 15px;
}

.special__text, .special__subtext {
    font-family: 'Poppins', sans-serif;
    color: var(--color-text-dark);
    font-weight: 300;
}

.special__subtext {
    font-size: 0.9rem;
    margin-bottom: 50px;
    font-style: italic;
    color: var(--color-text-muted);
}

.reservation-card {
    background: #fff;
    padding: 15px;
    margin: 0 auto;
    max-width: 450px;
    box-shadow: 0 15px 35px rgba(192, 122, 98, 0.08);
    border-radius: 8px;
    position: relative;
    transition: transform 0.4s ease;
    animation: fadeInUp 1s ease-out;
}

.reservation-card:hover {
    transform: translateY(-10px);
}

.card-border {
    border: 1px solid var(--color-sand);
    padding: 40px 20px;
    border-radius: 4px;
}

.card__label {
    font-family: 'Poppins', sans-serif;
    font-size: 0.75rem;
    letter-spacing: 2px;
    color: var(--color-text-muted);
    margin-bottom: 20px;
}

.card__guest-name {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    color: var(--color-text-dark);
    font-style: italic;
    margin-bottom: 20px;
}

.card__divider {
    width: 50px;
    height: 1px;
    background: var(--color-terracotta);
    margin: 0 auto 20px;
}

.card__footer {
    font-family: 'Poppins', sans-serif;
    font-size: 0.8rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 480px) {
    .card__guest-name { font-size: 1.8rem; }
}

/* BLOQUE 4 - MAPA Y UBICACIÓN */
.map-section {
    position: relative;
    height: 100vh;
    width: 100%;
    overflow: hidden;
}

.map-container {
    width: 100%;
    height: 100%;
    filter: sepia(0.15) grayscale(0.1) contrast(0.95); /* Entona ligeramente el mapa con la temática cálida */
}

.location-card {
    position: absolute;
    top: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    width: 90%;
    max-width: 450px;
    animation: slideDownFade 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.location-card__content {
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(10px);
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 20px 40px rgba(78, 68, 65, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.location-card__label {
    font-family: 'Poppins', sans-serif;
    font-size: 0.75rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--color-terracotta);
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
}

.location-card__title {
    font-family: 'Great Vibes', cursive;
    font-size: 2.8rem;
    color: var(--color-terracotta-dark);
    margin-bottom: 10px;
    line-height: 1.2;
}

.location-card__address {
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    color: var(--color-text-dark);
    margin-bottom: 25px;
    font-weight: 300;
}

.map-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    background: var(--color-terracotta);
    color: #fff;
    text-decoration: none;
    font-family: 'Poppins', sans-serif;
    font-size: 0.85rem;
    font-weight: 400;
    letter-spacing: 1px;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(192, 122, 98, 0.3);
}

.map-btn svg {
    width: 16px;
    height: 16px;
}

.map-btn:hover {
    background: var(--color-terracotta-dark);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 20px rgba(162, 95, 72, 0.4);
}

.map-btn:active {
    transform: translateY(-1px);
}

@keyframes slideDownFade {
    0% {
        opacity: 0;
        transform: translate(-50%, -30px);
    }
    100% {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

@media (max-width: 480px) {
    .location-card { top: 20px; }
    .location-card__content { padding: 30px 20px; }
    .location-card__title { font-size: 2.2rem; }
}

/* BLOQUE 5 - CONFIRMACIÓN */
.confirm-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    padding: 40px 20px;
}

.confirm-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(255, 255, 255, 0.15);
    z-index: 1;
}

.confirm-inner {
    position: relative;
    z-index: 2;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    max-width: 500px;
    width: 100%;
    padding: 50px 30px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 15px 35px rgba(78, 68, 65, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.6);
}

.envelope-wrapper {
    margin-bottom: 20px;
}

.envelope {
    width: 60px;
    height: 60px;
    margin: 0 auto;
    color: var(--color-terracotta);
    animation: float 3s infinite ease-in-out;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.confirm__title {
    font-family: 'Poppins', sans-serif;
    font-size: 1.4rem;
    color: var(--color-text-dark);
    margin-bottom: 5px;
    font-weight: 400;
}

.confirm__subtitle {
    font-family: 'Great Vibes', cursive;
    font-size: 2.5rem;
    color: var(--color-terracotta-dark);
    margin-bottom: 25px;
}

.confirm__invitation-info {
    font-family: 'Poppins', sans-serif;
    background: rgba(192, 122, 98, 0.1);
    padding: 10px;
    border-radius: 10px;
    margin-bottom: 30px;
    color: var(--color-text-dark);
}

.confirm__actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
}

.btn-confirm {
    font-family: 'Poppins', sans-serif;
    padding: 15px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-size: 0.9rem;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    background: var(--color-terracotta);
    color: white;
    box-shadow: 0 4px 15px rgba(192, 122, 98, 0.3);
}

.btn-confirm:hover {
    background: var(--color-terracotta-dark);
    transform: scale(1.03);
}

.btn-less {
    font-family: 'Poppins', sans-serif;
    padding: 15px;
    cursor: pointer;
    font-size: 0.9rem;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    border-radius: 50px;
    background: transparent;
    color: var(--color-terracotta-dark);
    border: 1px solid var(--color-terracotta);
}

.btn-less:hover {
    background: rgba(192, 122, 98, 0.05);
    transform: scale(1.03);
}

.link-decline {
    font-family: 'Poppins', sans-serif;
    color: var(--color-text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.3s;
}

.link-decline:hover {
    color: var(--color-text-dark);
    text-decoration: underline;
}

.confirm__deadline {
    border-top: 1px solid var(--color-sand);
    padding-top: 20px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.75rem;
    letter-spacing: 2px;
    color: var(--color-terracotta-dark);
    font-weight: 600;
}

/* BLOQUE 6 - GALERÍA */
.gallery-section {
    padding: 100px 20px;
    background: linear-gradient(180deg, #fdfaf7 0%, #ffffff 100%);
    text-align: center;
    overflow: hidden;
}

.gallery__title {
    font-family: 'Great Vibes', cursive;
    font-size: clamp(2.5rem, 7vw, 4rem);
    color: var(--color-terracotta-dark);
    margin-bottom: 40px;
}

.carousel {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
    perspective: 1000px;
}

.carousel__frame {
    background: #fff;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 20px 50px rgba(78, 68, 65, 0.08);
    position: relative;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    border: 1px solid var(--color-sand);
}

.carousel__inner {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel__img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transform: scale(1.08);
    transition: opacity 0.8s ease, transform 1.2s ease;
    pointer-events: none;
}

.carousel__img.active {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
}

.carousel__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-terracotta);
    z-index: 10;
    transition: all 0.3s ease;
}

.carousel__nav:hover {
    background: var(--color-terracotta);
    color: white;
}

.carousel__nav.prev { left: -22.5px; }
.carousel__nav.next { right: -22.5px; }

.carousel__counter {
    margin-top: 25px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    letter-spacing: 2px;
    color: var(--color-text-muted);
}

@media (max-width: 768px) {
    .carousel { max-width: 85%; }
    .carousel__nav { width: 40px; height: 40px; }
    .carousel__nav.prev { left: -15px; }
    .carousel__nav.next { right: -15px; }
}

/* BLOQUE 7 - NUESTRA HISTORIA */
.love-story {
    position: relative;
    padding: 100px 20px;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.story-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(253, 248, 245, 0.8); /* Filtro claro terracota sutil */
    z-index: 1;
}

.story-container {
    position: relative;
    z-index: 2;
    max-width: 1000px;
    width: 100%;
    margin: 0 auto;
    text-align: center;
}

.story__quote {
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    font-style: italic;
    color: var(--color-terracotta-dark);
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.story__main-title {
    font-family: 'Great Vibes', cursive;
    font-size: clamp(3rem, 8vw, 4.5rem);
    color: var(--color-text-dark);
    margin-bottom: 60px;
}

.story__display {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    margin-bottom: 80px;
    min-height: 400px;
}

.story__text-col {
    text-align: right;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: all 0.5s ease;
}

.story__year {
    font-family: 'Poppins', sans-serif;
    font-size: 4rem;
    font-weight: 600;
    color: rgba(192, 122, 98, 0.2); /* Año gigante traslúcido en terracota */
    line-height: 1;
    margin-bottom: -10px;
}

.story__moment-title {
    font-family: 'Poppins', sans-serif;
    font-size: 1.8rem;
    color: var(--color-text-dark);
    margin-bottom: 20px;
}

.story__description {
    font-family: 'Poppins', sans-serif;
    font-size: 1.05rem;
    color: var(--color-text-dark);
    line-height: 1.8;
    font-weight: 300;
}

.story__photo-col {
    display: flex;
    justify-content: flex-start;
}

.story__frame {
    width: 100%;
    max-width: 380px;
    aspect-ratio: 4/5;
    background: #fff;
    padding: 12px;
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(78, 68, 65, 0.08);
    transform: rotate(2deg);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid var(--color-sand);
}

.story__img-main {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    transition: opacity 0.5s ease;
}

/* Línea de tiempo */
.timeline-wrapper {
    position: relative;
    padding: 40px 0;
}

.timeline-line {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-terracotta), transparent);
    z-index: 1;
}

.timeline-items {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
    gap: 40px;
}

.timeline-dot {
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease;
}

.dot__circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 3px solid #fff;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    background: #eee;
}

.dot__circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
    transition: all 0.3s ease;
}

.dot__year {
    margin-top: 10px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.8rem;
    color: var(--color-terracotta);
    font-weight: 600;
}

.timeline-dot:hover .dot__circle {
    transform: scale(1.1);
}

.timeline-dot.active .dot__circle {
    transform: scale(1.2);
    border-color: var(--color-terracotta);
    box-shadow: 0 8px 20px rgba(192, 122, 98, 0.3);
}

.timeline-dot.active .dot__circle img {
    filter: grayscale(0%);
}

.fade-out { opacity: 0; transform: translateY(10px); }
.fade-in { opacity: 1; transform: translateY(0); }

@media (max-width: 768px) {
    .story__display {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .story__text-col {
        order: 2;
        text-align: center;
    }
    .story__photo-col {
        order: 1;
        justify-content: center;
    }
    .story__frame { transform: rotate(0); }
    .timeline-items { gap: 15px; }
    .dot__circle { width: 50px; height: 50px; }
}
/* ==========================================================================
   BOTÓN MÚSICA FLOTANTE - POSICIÓN INFERIOR DERECHA (OPTIMIZADO MÓVIL)
   ========================================================================== */
.music-btn {
    position: fixed !important;
    bottom: 30px !important; /* Separación segura de la parte inferior */
    right: 30px !important;  /* Separación de la derecha */
    width: 60px !important;
    height: 60px !important;
    border-radius: 50% !important;
    background-color: #ffffff !important;
    border: 2px solid var(--color-terracotta, #c07a62) !important;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.3) !important;
    cursor: pointer !important;
    z-index: 9999999 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: transform 0.1s ease, background-color 0.1s ease !important;
    
    /* ESTO ES CLAVE: Elimina retrasos de toque y selecciones raras en celular */
    touch-action: manipulation !important;
    -webkit-tap-highlight-color: transparent !important;
    user-select: none !important;
    -webkit-user-select: none !important;
}

.music-btn:active {
    transform: scale(0.9) !important;
    background-color: var(--color-bg-light, #fcf8f5) !important;
}

.music-icon {
    width: 28px !important;
    height: 28px !important;
    color: var(--color-terracotta, #c07a62) !important;
    display: block !important;
    pointer-events: none !important; /* Evita que el dedo toque el icono en vez del botón */
}

.music-icon.hidden {
    display: none !important;
}

/* Ajustes finos para pantallas de celulares */
@media (max-width: 768px) {
    .music-btn {
        bottom: 25px !important; /* Altura perfecta para evitar barras de navegación móviles */
        right: 25px !important;
        width: 55px !important;
        height: 55px !important;
        box-shadow: 0 4px 20px rgba(192, 122, 98, 0.4) !important;
    }
    
    .music-icon {
        width: 24px !important;
        height: 24px !important;
    }
}

/* ==========================================================================
   BOTÓN DE INICIO DE AUDIO EN PORTADA HERO
   ========================================================================== */
.btn-start-audio {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background-color: var(--color-terracotta, #c07a62);
    color: #ffffff;
    border: none;
    border-radius: 50px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.85rem;
    font-weight: 400;
    letter-spacing: 1px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(192, 122, 98, 0.3);
    transition: all 0.3s ease;
    animation: pulse-btn 2s infinite ease-in-out;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.btn-start-audio:active {
    transform: scale(0.95);
    background-color: var(--color-terracotta-dark, #a25f48);
}

@keyframes pulse-btn {
    0%, 100% { transform: scale(1); box-shadow: 0 4px 15px rgba(192, 122, 98, 0.3); }
    50% { transform: scale(1.04); box-shadow: 0 4px 22px rgba(192, 122, 98, 0.5); }
}

/* Alta sensibilidad táctil para el círculo blanco de la portada */
#hero-arrow-trigger {
    touch-action: manipulation !important;
    -webkit-tap-highlight-color: transparent !important;
    user-select: none !important;
    -webkit-user-select: none !important;
}

/* FRENADO ABSOLUTO: Forzamos a que la transición tarde 4 segundos sí o sí */
.door-left, .door-right, .door {
    transition: transform 4.0s cubic-bezier(0.1, 0.8, 0.25, 1) !important;
    animation: none !important; /* Desactiva cualquier animación CSS por segundo plano */
}

/* El botón inyecta esta clase al hacer touch */
.door-left.open {
    transform: translateX(-103%) !important; 
}

.door-right.open {
    transform: translateX(103%) !important;  
}

/* Permite ver la imagen 2.png cuando el sobre se abre */
.door-scene {
    transition: background-color 2.0s ease !important;
}

/* Cuando se activa la apertura, el fondo del contenedor se desvanece */
.door-left.open ~ .door-scene,
.hero__sticky:has(.open) .door-scene {
    background-color: transparent !important;
}
/* ==========================================================================
   SECCIÓN CÓDIGO DE VESTIMENTA (UNIFICADA CON COLOR Y FONDO DE LA PLANTILLA)
   ========================================================================== */
.dress-code-section {
    width: 100%;
    padding: 60px 20px;
    box-sizing: border-box;
    /* Usamos el fondo crema suave idéntico a la sección "Celebra con Nosotros" */
    background-color: #fbf5f0 !important; 
    text-align: center;
}

.dress-code-container {
    max-width: 500px;
    margin: 0 auto;
}

.dress-code__media {
    margin-bottom: 20px;
}

.dress-code__title {
    /* Misma tipografía cursiva y color terracota/marrón de la sección superior */
    font-family: 'Great Vibes', cursive;
    font-size: 3.2rem;
    color: #a66a4e !important; /* El tono exacto de "Celebra con Nosotros!" */
    margin-bottom: 5px;
}

.dress-code__type {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.3rem;
    letter-spacing: 4px;
    color: #a66a4e !important; /* Mismo tono sutil para el subtítulo */
    margin-bottom: 15px;
}

.dress-code__description {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    line-height: 1.6;
    /* Color gris oscuro/marrón suave para los textos descriptivos secundarios */
    color: #555555; 
    margin-bottom: 35px;
}

/* Contenedor de la Paleta de Círculos */
.color-palette {
    display: flex;
    justify-content: space-around;
    align-items: flex-start;
    gap: 15px;
}

.color-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
}

/* Círculos de Color */
.color-circle {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    margin-bottom: 12px;
    box-shadow: 0 4px 12px rgba(166, 106, 78, 0.15); /* Sombra suave con tono terracota */
    position: relative;
}

/* Tonos de las Reservas */
.color-white {
    background-color: #ffffff;
    border: 1px solid #e6ded7; /* Bordecito que combina con el fondo crema */
}

.color-blue {
    background-color: #1d414c; /* Azul Petróleo */
}

.color-hedron {
    background-color: #a84a32; /* Shedrón */
}

/* Textos de las etiquetas de color */
.color-label {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.8rem;
    line-height: 1.4;
    color: #555555;
}

.color-label strong {
    font-size: 0.9rem;
    color: #a66a4e; /* Títulos de los círculos en el color principal */
}

/* Ajuste responsivo para celulares */
@media (max-width: 480px) {
    .color-palette {
        flex-direction: column;
        align-items: center;
        gap: 25px;
    }
    .color-item {
        flex-direction: row;
        width: 100%;
        max-width: 260px;
        justify-content: flex-start;
        text-align: left;
        gap: 20px;
    }
    .color-circle {
        margin-bottom: 0;
    }
}
/* ==========================================================================
   SECCIÓN ITINERARIO (DISEÑO CENTRAL SIMÉTRICO)
   ========================================================================== */
/* ==========================================================================
   SECCIÓN ITINERARIO (CON IMAGEN DE FONDO UNIFICADA ESTILO NUESTRA HISTORIA)
   ========================================================================== */
.itinerary-section {
    width: 100%;
    padding: 60px 20px;
    box-sizing: border-box;
    text-align: center;
    position: relative;
    overflow: hidden;

    /* LLAMADA A LA IMAGEN DE FONDO (Replicando el estilo de Nuestra Historia) */
    background-image: url('../img/fondo4.jpg') !important; /* Asegúrate de que la extensión sea .jpg o .png según tu archivo */
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
}

.itinerary-container {
    max-width: 450px;
    margin: 0 auto;
    position: relative;
    z-index: 2; /* Asegura que el contenido flote por encima del fondo */
}

.itinerary__title {
    font-family: 'Great Vibes', cursive;
    font-size: 3.2rem;
    color: #a66a4e !important; /* Mantiene tu tono terracota premium */
    margin-bottom: 35px;
}

/* Contenedor de la línea de tiempo centrada */
.timeline {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 45px;
    margin-top: 20px;
    align-items: center;
}

/* Hilo conductor sutil que pasa por el centro */
.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 20px;
    bottom: 20px;
    width: 1px;
    background: linear-gradient(to bottom, transparent, #a66a4e 15%, #a66a4e 85%, transparent);
    opacity: 0.25;
    z-index: 1;
}

/* Ítem individual centrado */
.timeline-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    gap: 15px;
    width: 100%;
}

/* Contenedor del Ícono */
.timeline-icon {
    width: 60px;
    height: 60px;
    background: #ffffff; /* Círculo blanco puro para que contrasten tus nuevos iconos */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(166, 106, 78, 0.12);
    z-index: 2;
    border: 1px solid #e6ded7;
}

.timeline-icon img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

/* Textos del Evento Centrados */
.timeline-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    z-index: 2;
}

.timeline-time {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 1.15rem;
    color: #1a1a1a;
    margin: 0;
    letter-spacing: 1px;
}

.timeline-event {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    color: #555555;
    margin: 0;
}

/* ==========================================================================
   SECCIÓN MESA DE REGALOS (ESTILO OTOÑAL PREMIUM)
   ========================================================================== */
.gifts-section {
    width: 100%;
    padding: 60px 20px;
    box-sizing: border-box;
    background-color: #fbf5f0 !important; /* Mismo fondo de la plantilla */
    text-align: center;
}

.gifts-container {
    max-width: 600px;
    margin: 0 auto;
}

.gifts__title {
    font-family: 'Great Vibes', cursive;
    font-size: 3.2rem;
    color: #a66a4e !important;
    margin-bottom: 10px;
}

.gifts__description {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #555555;
    margin-bottom: 40px;
}

/* Distribución de las tarjetas */
.gifts-options {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.gift-card {
    background: #ffffff;
    padding: 30px 20px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(166, 106, 78, 0.06);
    border: 1px solid #e6ded7;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.gift-card__icon {
    color: #a66a4e;
    margin-bottom: 15px;
}

.gift-card__title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 1.25rem;
    color: #1a1a1a;
    margin: 0 0 10px 0;
}

.gift-card__text {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    color: #666666;
    line-height: 1.5;
    margin: 0 0 15px 0;
}

/* Cajas de detalles bancarios o de tienda */
.bank-details, .store-details {
    background-color: #fbf5f0;
    border: 1px dashed #a66a4e;
    padding: 12px 15px;
    border-radius: 8px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    color: #444444;
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 100%;
    max-width: 320px;
    box-sizing: border-box;
    margin-bottom: 5px;
}

/* Botón elegante para la mesa */
.gift-btn {
    display: inline-block;
    margin-top: 15px;
    background-color: #a66a4e;
    color: #ffffff !important;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: 0.85rem;
    padding: 10px 25px;
    text-decoration: none;
    border-radius: 25px;
    letter-spacing: 1px;
    transition: background-color 0.3s ease;
}

.gift-btn:hover {
    background-color: #8c553a;
}

/* ==========================================================================
   SECCIÓN ÁLBUM DE FOTOS (ESTILO OTOÑAL PREMIUM)
   ========================================================================== */
.album-section {
    width: 100%;
    padding: 60px 20px;
    box-sizing: border-box;
    background-color: #ffffff !important; /* Fondo blanco para contraste limpio */
    text-align: center;
}

.album-container {
    max-width: 500px;
    margin: 0 auto;
}

.album__title {
    font-family: 'Great Vibes', cursive;
    font-size: 3.5rem;
    color: #a66a4e !important;
    margin-bottom: 5px;
}

.album__subtitle {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.15rem;
    font-weight: 500;
    color: #cc8b6e; /* Un tono terracota más suave para el destaque */
    margin-top: 0;
    margin-bottom: 20px;
}

.album__cam-icon {
    width: 100%;
    max-width: 160px;
    margin-bottom: 20px;
    opacity: 0.9;
}

.album__description {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #4c4c4c;
    margin-bottom: 30px;
    padding: 0 10px;
}

/* Contenedor del QR */
.qr-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.qr-link {
    display: inline-block;
    transition: transform 0.2s ease;
    padding: 10px;
    background: #ffffff;
    border: 1px solid #e6ded7;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(166, 106, 78, 0.05);
}

.qr-link:hover {
    transform: scale(1.03);
}

.qr-image {
    width: 160px;
    height: 160px;
    display: block;
}

.qr-caption {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    color: #1a1a1a;
    font-weight: 500;
    margin: 5px 0 0 0;
}

/* Botón elegante de acceso directo */
.album-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 10px;
    background-color: #fbf5f0;
    color: #a66a4e !important;
    border: 1px solid #a66a4e;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 0.8rem;
    padding: 8px 18px;
    text-decoration: none;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.album-btn:hover {
    background-color: #a66a4e;
    color: #ffffff !important;
}

/* ==========================================================================
   PIE DE PÁGINA (ESTILO IMAGE_CEB4E5.PNG)
   ========================================================================== */
.main-footer {
    width: 100%;
    background-color: #a66a4e; /* El tono terracota de tu paleta */
    border-top: 5px solid #2c2c2c; /* Borde superior oscuro idéntico a la referencia */
    padding: 25px 20px;
    box-sizing: border-box;
    text-align: center;
}

.footer-container {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.footer-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    color: #ffffff;
    margin: 0;
    letter-spacing: 0.5px;
    font-weight: 500;
}

/* Contenedor de Redes Sociales */
.footer-socials {
    display: flex;
    justify-content: center;
    gap: 15px;
}

/* Círculos blancos para los iconos */
.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background-color: #ffffff;
    color: #a66a4e; /* El icono toma el color del fondo */
    border-radius: 50%;
    text-decoration: none;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.social-icon:hover {
    transform: scale(1.1);
    background-color: #fbf5f0;
}

/* FONDO DIFUMINADO */
.modal {
    position: fixed;
    inset: 0;
    backdrop-filter: blur(10px);
    background: rgba(0,0,0,0.2);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

/* OCULTO */
.hidden {
    display: none;
}

/* TARJETA */
.modal-card {
    background: #fff;
    padding: 30px;
    border-radius: 20px;
    max-width: 320px;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    animation: fadeIn 0.3s ease;
}

/* TEXTO */
.modal-card h2 {
    margin-bottom: 10px;
    font-size: 20px;
}

.modal-card p {
    font-size: 14px;
    color: #555;
}

/* BOTONES */
.modal-buttons {
    margin-top: 20px;
    display: flex;
    gap: 10px;
}

.btn-primary {
    flex: 1;
    background: #111;
    color: white;
    border: none;
    padding: 12px;
    border-radius: 10px;
    cursor: pointer;
}

.btn-secondary {
    flex: 1;
    background: #eee;
    border: none;
    padding: 12px;
    border-radius: 10px;
    cursor: pointer;
}

/* ANIMACIÓN */
@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.modal-content {
  background: #fff;
  padding: 25px;
  border-radius: 15px;
  max-width: 350px;
  text-align: center;
  font-family: serif;
}

.modal-buttons {
  margin-top: 15px;
  display: flex;
  justify-content: space-around;
}

/* ==========================================================================
   BOTÓN AGREGAR AL CALENDARIO
   ========================================================================== */
.calendar-action-container {
    display: flex;
    justify-content: center;
    width: 100%;
}

.btn-calendar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: transparent;
    color: #ffffff !important;
    border: 1.5px solid rgba(255, 255, 255, 0.7);
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 10px 22px;
    text-decoration: none;
    border-radius: 25px;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.btn-calendar:hover {
    background-color: #ffffff;
    color: #a66a4e !important; /* Cambia al terracota primario de tu boda */
    border-color: #ffffff;
    transform: translateY(-2px);
}

/* ==========================================================================
   HOMOLOGACIÓN DE BOTONES DE CONFIRMACIÓN
   ========================================================================== */

/* Asegura que los enlaces compartan la misma estructura que el botón .btn-less */
.confirm__actions .btn-less {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 280px; /* Ajusta el ancho máximo según prefieras tu diseño */
    box-sizing: border-box;
    text-decoration: none; /* Elimina el subrayado de los enlaces */
    font-family: inherit;
    transition: all 0.3s ease;
}

/* Modificadores específicos si requieres comportamientos al pasar el cursor (Hover) */
.btn-calendar-link:hover {
    background-color: rgba(255, 255, 255, 0.9) !important;
    color: #a66a4e !important; /* Cambia al color de tu paleta otoñal al hacer hover */
}

.line-decline:hover {
    background-color: rgba(217, 83, 79, 0.1) !important; /* Destello sutil rojo opcional para el 'No asiste' */
    border-color: #d9534f !important;
    color: #d9534f !important;
}

#btnWhatsApp {
    display: inline-block;
    text-decoration: none;
    margin-top: 10px;
}