@import url('https://fonts.googleapis.com/css2?family=Great+Vibes&family=Montserrat:wght@300;400;600&display=swap');

/* Colores Base */
:root {
    --lila-claro: #f3e5f5;
    --lila-medio: #ce93d8;
    --morado-vibrante: #ab47bc;
    --morado-oscuro: #6a1b9a;
    --texto-oscuro: #4a148c;
    --blanco: #ffffff;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Montserrat', sans-serif;
    color: var(--texto-oscuro);
    display: flex;
    justify-content: center;
    align-items: center; 
    min-height: 100vh; 
    
    /* ==========================================
       FONDO: ESTIRADO HORIZONTAL Y VERTICALMENTE
       ========================================== */
    background-color: var(--lila-claro); 
    background-image: url('marco.png'); 
    
    /* ESTA ES LA CLAVE: 100vw estira al ancho total, 100vh estira al alto total */
    background-size: 100vw 100vh; 
    background-position: center; 
    background-attachment: fixed;
    background-repeat: no-repeat; 
}

.contenedor-principal {
    width: 100%;
    max-width: 600px;
    padding: 20px;
    /* Agregamos espacio extra arriba para no tapar la corona/tiara del diseño */
    padding-top: 120px; 
    padding-bottom: 100px;
}

.tarjeta {
    /* ==========================================
       TARJETAS SEMI-TRANSPARENTES (Efecto Cristal)
       ========================================== */
    /* Blanco al 75% de opacidad para dejar ver el marco */
    background-color: rgba(255, 255, 255, 0.75); 
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1); 
    text-align: center;
    /* Un borde muy sutil, casi invisible */
    border: 1px solid rgba(255, 255, 255, 0.5);
    margin-bottom: 30px;
    /* Difumina ligeramente lo que hay detrás de la tarjeta */
    backdrop-filter: blur(4px); 
}

.animacion-entrada {
    animation: fadeIn 1.5s ease-in-out;
}

h1 {
    font-family: 'Great Vibes', cursive;
    font-size: 4.5rem; /* Un poco más grande para resaltar en el marco */
    color: var(--morado-oscuro);
    margin: 10px 0;
    text-shadow: 2px 2px 4px rgba(255,255,255,0.8); /* Sombra blanca para que lea bien */
}

h2 {
    color: var(--morado-vibrante);
    font-weight: 600;
}

.subtitulo {
    font-size: 1.2rem;
    font-weight: 600;
}

.fecha-destacada {
    background-color: rgba(243, 229, 245, 0.8); /* Lila semi-transparente */
    padding: 15px;
    border-radius: 10px;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--morado-oscuro);
    margin: 20px 0;
}

/* Contador */
.contador {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
}

.caja-tiempo {
    background-color: rgba(171, 71, 188, 0.9); /* Morado vibrante casi sólido */
    color: var(--blanco);
    padding: 15px 10px;
    border-radius: 12px;
    width: 20%;
    font-size: 1.2rem;
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.caja-tiempo span {
    display: block;
    font-size: 0.75rem;
    font-weight: 300;
    margin-top: 5px;
}

/* Mapa */
.mapa-contenedor {
    margin-top: 20px;
    border-radius: 15px;
    overflow: hidden;
    border: 2px solid var(--blanco);
}

/* Botones y divisores */
.divisor {
    border: none;
    border-top: 2px dashed rgba(206, 147, 216, 0.6); /* Línea punteada suave */
    margin: 30px 0;
}

.btn-principal, .btn-secundario {
    display: inline-block;
    color: var(--blanco);
    border: none;
    padding: 15px 30px;
    font-size: 1.1rem;
    border-radius: 30px;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    text-decoration: none;
    transition: transform 0.3s, background-color 0.3s;
    margin-top: 10px;
}

.btn-principal {
    background-color: var(--morado-oscuro);
    animation: pulse 2s infinite;
}

.btn-secundario {
    background-color: var(--morado-vibrante);
}

.btn-principal:hover, .btn-secundario:hover {
    transform: translateY(-3px);
    animation: none;
}

/* Animaciones */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(106, 27, 154, 0.6); }
    70% { transform: scale(1.05); box-shadow: 0 0 0 10px rgba(106, 27, 154, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(106, 27, 154, 0); }
}