/* assets/style.css - Versión 1.1 */

/* Reset básico para asegurar que no hereda márgenes raros */
#cav-popup-overlay * {
    box-sizing: border-box;
}

#cav-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0; /* Forzamos que toque ambos lados */
    bottom: 0; /* Forzamos que toque abajo también */
    width: 100vw; /* 100% del ancho de la ventana visible */
    height: 100vh; /* 100% del alto de la ventana visible */
    background-color: rgba(0, 0, 0, 0.85);
    z-index: 99999999;
    
    /* FLEXBOX PARA CENTRADO PERFECTO */
    display: flex !important;
    flex-direction: column;
    justify-content: center !important; /* Centrado vertical */
    align-items: center !important;     /* Centrado horizontal */
    
    backdrop-filter: blur(8px);
    margin: 0 !important;
    padding: 0 !important;
}

#cav-popup-overlay.cav-hidden {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.cav-popup-content {
    background: #ffffff;
    padding: 50px 40px;
    width: 90%;
    max-width: 480px;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
    font-family: 'Poppins', sans-serif;
    position: relative;
    border-top: 5px solid #6eb055;
    
    /* Aseguramos que el contenido no se pegue a los bordes si la pantalla es pequeña */
    margin: 0 auto !important; 
}

.cav-popup-content h2 {
    margin: 0 0 20px 0;
    font-size: 24px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #1a1a1a;
    line-height: 1.2;
}

.cav-text {
    font-size: 16px;
    color: #555;
    line-height: 1.6;
    margin-bottom: 30px;
}

/* Botones */
.cav-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    justify-content: center; /* Asegura que los botones estén centrados */
    align-items: center;
    width: 100%;
}

.cav-btn {
    padding: 15px 0;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    width: 100%;
    font-family: 'Poppins', sans-serif;
    text-align: center; /* Asegura texto centrado en botón */
    display: block;
}

/* Botón Principal (Verde CBD) */
.cav-btn-primary {
    background-color: #6eb055;
    color: #ffffff;
    border-radius: 100px!important;
}

.cav-btn-primary:hover {
    background-color: #5a9645;
    transform: translateY(-2px);
}

/* Botón Secundario (Negro/Gris oscuro) */
.cav-btn-secondary {
    background-color: #1a1a1a;
    color: #ffffff;
    border-radius: 100px!important;
}

.cav-btn-secondary:hover {
    background-color: #333333;
}

.cav-legal {
    margin-top: 25px;
    font-size: 11px;
    color: #999;
}

/* Ajuste para pantallas grandes: botones lado a lado */
@media (min-width: 400px) {
    .cav-buttons {
        flex-direction: row;
        width: 100%;
    }
    .cav-btn {
        width: 48%; /* Un poco menos del 50% para dejar hueco al gap */
    }
}