:root {
    --gold: #C5A059;       /* Dorado elegante */
    --gold-light: #E6D4A6;
    --dark: #2C2C2C;
    --white: #FFFFFF;
    --bg-cream: #F9F7F2;   /* Crema suave */
    
    --font-script: 'Great Vibes', cursive;
    --font-serif: 'Cinzel', serif;
    --font-body: 'Montserrat', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: var(--font-body);
    color: var(--dark);
    background-color: var(--bg-cream);
    text-align: center; /* En bodas todo va centrado */
    overflow-x: hidden;
}

/* --- MUSICA FLOTANTE --- */
.music-control {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: var(--gold);
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    z-index: 1000;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    cursor: pointer;
    animation: pulse 2s infinite;
}

/* --- HERO --- */
.hero {
    height: 100vh; /* Pantalla completa */
    background-image: url('img/portada-boda.jpg'); /* NECESITAS ESTA FOTO */
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
}

.overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.4); /* Oscurece la foto para leer texto */
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 20px;
}

.intro {
    font-family: var(--font-serif);
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.names {
    font-family: var(--font-script);
    font-size: 4.5rem;
    line-height: 1.2;
    color: var(--gold-light);
    margin-bottom: 20px;
}

.date-badge {
    border-top: 1px solid var(--white);
    border-bottom: 1px solid var(--white);
    display: inline-block;
    padding: 10px 20px;
    font-family: var(--font-serif);
    font-size: 1.2rem;
}

/* --- SECCIONES GENERALES --- */
section { padding: 60px 20px; }

h2, h3 {
    font-family: var(--font-serif);
    color: var(--gold);
    margin-bottom: 30px;
    text-transform: uppercase;
}

/* --- CUENTA REGRESIVA --- */
.timer {
    display: flex;
    justify-content: center;
    gap: 15px;
}
.time-box {
    background: var(--white);
    padding: 15px 10px;      /* Padding vertical y horizontal */
    min-width: 80px;         /* FUERZA que todos midan mínimo 80px de ancho */
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    display: flex;           /* Flex para centrar el contenido */
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.time-box span {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark);
}
.time-box p {
    font-size: 0.8rem;
    text-transform: uppercase;
    color: var(--gold);
}

.message {
    margin-top: 25px;       /* Despega el texto de los cuadros */
    font-size: 1.1rem;      /* Un poco más grande para que luzca */
    letter-spacing: 2px;    /* Separar letras para elegancia */
    text-transform: uppercase;
    color: var(--gold);     /* Asegura que sea dorado */
    font-family: var(--font-serif);
}

/* --- TARJETAS (Location) --- */
.card {
    background: var(--white);
    padding: 30px;
    margin: 20px auto;
    max-width: 400px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.icon-gold {
    font-size: 3rem;
    color: var(--gold);
    margin-bottom: 15px;
}

.btn-gold {
    display: inline-block;
    background: var(--gold);
    color: var(--white);
    padding: 10px 25px;
    border-radius: 50px;
    text-decoration: none;
    margin-top: 15px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    transition: 0.3s;
}

/* --- ANIMACIONES --- */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* --- RESPONSIVE --- */
@media (max-width: 400px) {
    .names { font-size: 3.5rem; }
    .timer { gap: 8px; }
    .time-box { min-width: 60px; padding: 10px; }
}



/* --- PANTALLA DE BIENVENIDA (MODAL) --- */
.welcome-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-cream); /* O usa una foto borrosa de fondo */
    z-index: 9999; /* Encima de todo */
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    text-align: center;
    transition: opacity 1s ease, visibility 1s ease;
}

/* Clase para ocultarlo suavemente */
.welcome-overlay.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none; /* Ya no se puede dar click */
}

.welcome-content {
    padding: 20px;
    animation: fadeIn 1.5s ease;
}

.welcome-text {
    font-family: var(--font-body);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    color: var(--dark);
    margin-bottom: 10px;
}

.welcome-names {
    font-family: var(--font-script);
    font-size: 4rem;
    color: var(--gold);
    margin-bottom: 30px;
}

/* El Sello del sobre */
.envelope-seal {
    font-size: 3rem;
    color: var(--gold-light);
    margin-bottom: 30px;
    animation: pulse 2s infinite;
}

.btn-open {
    background: transparent;
    border: 1px solid var(--gold);
    color: var(--gold);
    padding: 12px 30px;
    border-radius: 50px;
    font-family: var(--font-serif);
    text-transform: uppercase;
    cursor: pointer;
    transition: 0.3s;
    font-size: 1rem;
    letter-spacing: 1px;
}

.btn-open:hover {
    background: var(--gold);
    color: white;
}

/* Bloquear scroll mientras está cerrado el sobre */
body.no-scroll {
    overflow: hidden;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}



/* Estilo para botones pequeños (Copiar CLABE) */
.btn-small {
    background-color: transparent;
    border: 1px solid var(--gold);
    color: var(--gold);
    padding: 8px 20px;
    border-radius: 50px;
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 0.85rem;
    margin-top: 10px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-small:hover {
    background-color: var(--gold);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(197, 160, 89, 0.3);
}


/* Sobres y transferencia */
.gift-options {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap; /* Para que en celular muy pequeño se pongan uno bajo otro */
}

.gift-box {
    background: var(--white);
    padding: 25px;
    border-radius: 12px;
    width: 45%; /* Ocupan casi la mitad cada uno */
    min-width: 250px; /* Para que no se aplasten en móviles */
    box-shadow: 0 5px 15px rgba(0,0,0,0.03); /* Sombra muy sutil */
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease;
}

.gift-box:hover {
    transform: translateY(-5px); /* Efecto flotante */
}

.gift-box i {
    font-size: 2.5rem;
    color: var(--gold);
    margin-bottom: 15px;
}

.gift-box h4 {
    font-family: var(--font-serif);
    margin-bottom: 10px;
    color: var(--dark);
}


/* Codigo de vestimenta */
.dress-alert {
    display: inline-block;
    margin-top: 15px;
    padding: 8px 20px;
    border: 1px solid #d9534f; /* Rojo suave */
    color: #d9534f;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.dress-alert i {
    margin-right: 5px;
    font-size: 1.1rem;
    vertical-align: middle;
}