:root {
    --bg-color: #fcf6eb;         
    --card-bg: #fffdf9;
    --text-color: #5a534f;
    --accent-color: #8c6d53;      
    --accent-hover: #725641;      
    --gold-color: #b39258;        
    --cream-box: #f4ecdf;
    --white: #ffffff;
    --shadow: 0 12px 35px rgba(140, 109, 83, 0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    overflow-x: hidden;
    scroll-behavior: smooth;
}

/* Letra Cursiva Elegante Activa en Títulos */
.cursive-title, h2 {
    font-family: 'Great Vibes', cursive !important;
    font-size: 3.2rem !important;
    color: var(--accent-color) !important;
    margin-bottom: 12px;
    font-weight: 400 !important;
    line-height: 1.1;
}

/* Reproductor de Música Flotante */
.music-player-float {
    position: fixed;
    bottom: 25px;
    left: 25px;
    width: 50px;
    height: 50px;
    background-color: var(--accent-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 9999;
    box-shadow: 0 6px 20px rgba(140, 109, 83, 0.4);
    transition: transform 0.3s ease, background-color 0.3s;
}

.music-player-float:hover {
    transform: scale(1.1);
    background-color: var(--accent-hover);
}

/* Stickers y Adornos */
.sticker-container {
    text-align: center;
    margin-bottom: 20px;
}

.section-sticker {
    width: 340px !important;
    height: auto !important;
    max-width: 100%;
    object-fit: contain;
    filter: drop-shadow(0 6px 12px rgba(0,0,0,0.1));
    animation: float-sticker 3s ease-in-out infinite;
}

.welcome-sticker {
    width: 200px !important;
    height: auto !important;
    max-width: 100%;
    object-fit: contain;
    margin-bottom: 12px;
    animation: float-sticker 3s ease-in-out infinite;
}

@keyframes float-sticker {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

/* Pantalla de Apertura */
#welcome-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: linear-gradient(145deg, #f9f2e7 0%, #ecdcc8 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    transition: opacity 0.8s ease, visibility 0.8s ease;
    padding: 20px;
    text-align: center;
}

.welcome-card {
    background: var(--white);
    padding: 45px 30px;
    border-radius: 40px 40px 10px 40px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
    max-width: 420px;
    width: 100%;
    border: 1px solid rgba(140, 109, 83, 0.15);
}

.welcome-card h3 {
    font-size: 0.95rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--gold-color);
    margin-bottom: 8px;
    font-weight: 400;
    font-family: 'Montserrat', sans-serif;
}

.open-btn {
    background-color: var(--accent-color);
    color: var(--white);
    border: none;
    padding: 14px 38px;
    font-size: 1rem;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Montserrat', sans-serif;
    letter-spacing: 1.5px;
    box-shadow: 0 8px 20px rgba(140, 109, 83, 0.3);
}

.open-btn:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
}

/* Contenedor Principal */
.main-content {
    max-width: 600px;
    margin: 0 auto;
    padding: 40px 15px;
}

/* Secciones y Animación corregida */
section {
    background: var(--card-bg);
    margin: 30px 0;
    padding: 50px 30px;
    border-radius: 35px;
    box-shadow: var(--shadow);
    text-align: center;
    transform: translateY(40px);
    opacity: 0;
    transition: transform 1s cubic-bezier(0.16, 1, 0.3, 1), opacity 1s ease;
    border: 1px solid rgba(235, 224, 212, 0.8);
    position: relative;
    overflow: hidden;
}

/* ¡AQUÍ ESTABA EL ERROR! Añadido .visible para que aparezcan al hacer scroll */
section.fade-section.visible,
section.fade-in {
    transform: translateY(0);
    opacity: 1;
}

p {
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 15px;
    color: var(--text-color);
    font-weight: 300;
}

.guest-name-title {
    font-size: 2.2rem !important;
    margin-bottom: 15px;
}

.names-box {
    font-size: 1.8rem;
    font-weight: 500;
    color: var(--gold-color);
    margin: 25px 0;
    font-family: 'Playfair Display', serif;
    font-style: italic;
}

.passes-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: var(--cream-box);
    padding: 10px 25px;
    border-radius: 30px;
    font-weight: 500;
    color: var(--accent-color);
    margin-top: 15px;
    font-size: 0.95rem;
}

/* Arco */
.arc-section {
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-hover) 100%) !important;
    color: var(--white);
    border-radius: 200px 200px 35px 35px !important;
    padding-top: 70px !important;
}

.arc-section p, .arc-section h3 {
    color: var(--white);
}

.countdown-container {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin: 30px 0;
}

.countdown-box {
    background: rgba(255, 255, 255, 0.18);
    padding: 18px 12px;
    border-radius: 20px;
    min-width: 78px;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.countdown-box span {
    display: block;
    font-size: 1.7rem;
    font-weight: 600;
    font-family: 'Playfair Display', serif;
}

.countdown-box label {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    opacity: 0.9;
}

/* Botones */
.action-btn {
    display: inline-block;
    background-color: var(--white);
    color: var(--accent-color);
    text-decoration: none;
    padding: 14px 32px;
    border-radius: 40px;
    font-weight: 500;
    margin-top: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 6px 18px rgba(0,0,0,0.05);
    font-size: 0.95rem;
    border: 1px solid rgba(140, 109, 83, 0.2);
}

.action-btn:hover {
    background-color: #f2ece4;
    transform: translateY(-2px);
}

.action-btn-dark {
    background-color: var(--accent-color);
    color: var(--white);
}

.action-btn-dark:hover {
    background-color: var(--accent-hover);
    color: var(--white);
    transform: translateY(-2px);
}

/* Imágenes */
.image-frame {
    width: 100%;
    max-width: 340px;
    margin: 25px auto;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    background: var(--white);
    padding: 12px;
    border: 1.5px solid rgba(140, 109, 83, 0.2);
}

.image-frame img {
    width: 100%;
    height: auto;
    max-height: 380px;
    object-fit: contain;
    border-radius: 12px;
    display: block;
}

.photo-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 25px;
}

.photo-grid img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 6px 16px rgba(0,0,0,0.06);
    border: 2px solid var(--white);
}

/* Itinerario */
.timeline-container {
    position: relative;
    max-width: 480px;
    margin: 35px auto 10px auto;
    padding-left: 45px;
    text-align: left;
}

.timeline-line-animated {
    position: absolute;
    left: 56px;
    top: 15px;
    bottom: 15px;
    width: 6px;
    background: linear-gradient(to bottom, var(--accent-color) 0%, var(--gold-color) 50%, var(--accent-color) 100%);
    background-size: 100% 300%;
    animation: lineFlow 2.5s ease-in-out infinite;
    border-radius: 4px;
    box-shadow: 0 0 10px rgba(179, 146, 88, 0.4);
}

@keyframes lineFlow {
    0% { background-position: 0 0; }
    50% { background-position: 0 150%; }
    100% { background-position: 0 300%; }
}

.timeline-item {
    position: relative;
    margin-bottom: 35px;
    display: flex;
    align-items: flex-start;
    gap: 22px;
}

.timeline-icon {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    background: var(--white);
    border: 2.5px solid var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-color);
    font-size: 1.25rem;
    z-index: 2;
    box-shadow: 0 6px 18px rgba(140, 109, 83, 0.25);
    animation: iconBounce 2s ease-in-out infinite;
}

.timeline-item:nth-child(1) .timeline-icon { animation-delay: 0s; }
.timeline-item:nth-child(2) .timeline-icon { animation-delay: 0.4s; }
.timeline-item:nth-child(3) .timeline-icon { animation-delay: 0.8s; }
.timeline-item:nth-child(4) .timeline-icon { animation-delay: 1.2s; }

@keyframes iconBounce {
    0%, 100% { transform: translateY(0) scale(1); box-shadow: 0 6px 18px rgba(140, 109, 83, 0.25); }
    50% { transform: translateY(-6px) scale(1.08); box-shadow: 0 12px 25px rgba(140, 109, 83, 0.4); }
}

.timeline-content {
    background: var(--white);
    padding: 18px 22px;
    border-radius: 18px;
    width: 100%;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    border: 1px solid rgba(235, 224, 212, 0.8);
}

.timeline-content h4 {
    font-size: 1.1rem;
    color: var(--text-color);
    margin-bottom: 5px;
    font-weight: 600;
}

.timeline-content p {
    font-size: 0.9rem;
    color: var(--accent-color);
    margin: 0;
    font-weight: 400;
    line-height: 1.5;
}

.bank-box {
    background: var(--white);
    padding: 25px;
    border-radius: 22px;
    margin-top: 20px;
    border: 1.5px dashed var(--accent-color);
    text-align: left;
    display: inline-block;
    width: 100%;
    max-width: 420px;
}

footer {
    text-align: center;
    padding: 40px 20px;
    font-size: 0.9rem;
    color: #8c827c;
}
.bank-box {
    background: #fdfaf6; /* Un tono cremita más cálido y suave */
    padding: 25px;
    border-radius: 22px;
    margin-top: 20px;
    border: 1.5px solid var(--accent-color); /* Cambiado de punteado a línea sólida elegante */
    text-align: left;
    display: inline-block;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 4px 15px rgba(140, 109, 83, 0.05);
}
.custom-action-btn {
        background-color: #8c7355 !important;
        color: white !important;
        border: none !important;
        padding: 12px 25px !important;
        border-radius: 25px !important;
        text-decoration: none !important;
        font-weight: bold !important;
        font-size: 0.9rem !important;
        box-shadow: 0 4px 15px rgba(140, 115, 85, 0.3) !important;
        transition: all 0.3s ease !important;
        display: inline-block !important;
        width: 100% !important;
        max-width: 280px !important;
        margin: 6px auto !important;
        text-align: center !important;
    }
    .custom-action-btn:hover {
        background-color: #a38868 !important;
        transform: translateY(-2px) !important;
        box-shadow: 0 6px 20px rgba(140, 115, 85, 0.4) !important;
    }
    /* Estilos para la ventana emergente personalizada */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}
.modal-box {
    background: #fff;
    max-width: 380px;
    width: 90%;
    border-radius: 20px;
    padding: 30px 20px;
    text-align: center;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    border: 1px solid #f7f2ed;
    animation: zoomIn 0.3s ease;
}
@keyframes zoomIn {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}
.modal-btn {
    display: inline-block;
    background: #8c7355;
    color: #fff;
    padding: 10px 25px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    margin-top: 20px;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(140, 115, 85, 0.3);
}
.modal-btn:hover {
    background: #755f45;
}