/* =========================================
   ESTILOS DEFINITIVOS - SOLUCIÓN BORDES LATERALES
   ========================================= */

/* 1. IMPORTACIÓN DE FUENTES */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;800&display=swap');

/* 2. CONFIGURACIÓN GENERAL */
body {
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

/* 3. FONDO ANIMADO AZUL (HERO) */
.hero-animated {
    background: linear-gradient(-45deg, #003366, #004080, #0059b3, #001a33);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    position: relative;
    padding-bottom: 80px; 
    overflow: hidden;
    min-height: 85vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    z-index: 0; 
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* NIEBLA BAJA (Suaviza el corte con el fondo blanco) */
.hero-animated::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background: linear-gradient(to bottom, transparent 0%, #ffffff 100%);
    pointer-events: none;
    z-index: 2; 
}

/* 4. LOGO DE FONDO - ARREGLO DE BORDES LATERALES */
.watermark-logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    
    width: 90%; /* Un poco más ancho para que el recorte sea suave */
    max-width: 800px;
    
    opacity: 0.45; 
    
    z-index: 1; 
    pointer-events: none;
    
    /* --- EL ARREGLO FINAL --- */
    /* Usamos un degradado HORIZONTAL (de izquierda a derecha). */
    /* Los primeros y últimos 15% de la imagen se vuelven transparentes. */
    /* Esto elimina físicamente las líneas rectas de los lados. */
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 15%, black 85%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, black 15%, black 85%, transparent 100%);
}

/* --- SEGURIDAD PARA QUE EL TEXTO NUNCA SE TAPE --- */
.hero-animated .container {
    position: relative;
    z-index: 100 !important; 
}

/* 5. ESTILOS DEL FORMULARIO Y CALENDARIO */
input[type="date"] {
    position: relative;
}

input[type="date"]::-webkit-calendar-picker-indicator {
    display: block;
    background: transparent;
    bottom: 0;
    color: transparent;
    cursor: pointer;
    height: auto;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
    width: auto;
    filter: invert(1); 
}

/* 6. ANIMACIONES DE BOTONES */
.btn-pulse {
    animation: pulse-green 2s infinite;
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
}

@keyframes pulse-green {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(34, 197, 94, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

/* 7. ESTILOS DE CARGA (SPINNER) */
.spinner {
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
    display: inline-block;
    margin-right: 10px;
    vertical-align: middle;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.hidden {
    display: none !important;
}

.btn-loading {
    background-color: #9ca3af !important;
    cursor: not-allowed;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: none !important;
    box-shadow: none !important;
    animation: none !important;
}

/* 8. PREGUNTAS FRECUENTES (FAQ) */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-fadeIn {
    animation: fadeIn 0.3s ease-out forwards;
}

details > summary {
    list-style: none;
    cursor: pointer;
}
details > summary::-webkit-details-marker {
    display: none;
}
