/* ========================================
   ESTILOS MARHOANI - VERSIÓN LIMPIA
   ======================================== */

/* Variables CSS personalizadas */
:root {
    --primary: #1E3A8A;
    --secondary: #F97316;
    --accent: #10B981;
    --light: #FFFFFF;
    --gray: #E5E7EB;
}

/* ========================================
   GRADIENTE ANIMADO PRINCIPAL
   ======================================== */
.bg-gradient-animated {
    background: linear-gradient(135deg, #1E3A8A, #10B981, #1E3A8A, #F97316);
    background-size: 400% 400%;
    animation: gradient 15s ease infinite;
    min-height: 100vh;
    height: 100%;
    overflow-x: hidden;
    position: relative;
}

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

/* ========================================
   COMPONENTES GLASS
   ======================================== */
.glass-bg {
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.1) 0%,
        rgba(255, 255, 255, 0.05) 50%,
        rgba(255, 255, 255, 0.15) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px 0 rgba(30, 58, 138, 0.2), 
                inset 0 1px 0 rgba(255, 255, 255, 0.1), 
                inset 0 -1px 0 rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
}

.glass-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.1), 
        transparent);
    transition: left 0.6s ease;
    z-index: 1;
}

.glass-bg:hover::before {
    left: 100%;
}

.glass-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 30% 20%, 
            rgba(16, 185, 129, 0.1) 0%, 
            transparent 50%),
        radial-gradient(circle at 70% 80%, 
            rgba(249, 115, 22, 0.1) 0%, 
            transparent 50%);
    pointer-events: none;
    z-index: 0;
}

/* ========================================
   ANIMACIÓN PULSE PERSONALIZADA
   ======================================== */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.08);
    }
}

.animate-pulse {
    animation: pulse 3s infinite;
}

/* ========================================
   RESPONSIVE
   ======================================== */

/* Tablets y pantallas medianas */
@media (max-width: 1023px) and (min-width: 768px) {
    .glass-bg {
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
    }
}

/* Móviles */
@media (max-width: 767px) {
    .glass-bg {
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
    }
}

/* ========================================
   ACCESIBILIDAD
   ======================================== */

/* Reducir movimiento para usuarios que lo prefieran */
@media (prefers-reduced-motion: reduce) {
    .bg-gradient-animated {
        animation: none;
    }
    
    .glass-bg::before {
        animation: none;
    }
    
    .animate-pulse {
        animation: none;
    }
    
    * {
        transition-duration: 0.01ms;
        animation-duration: 0.01ms;
    }
}

/* Compatibilidad con navegadores sin backdrop-filter */
@supports not (backdrop-filter: blur(12px)) {
    .glass-bg {
        background: rgba(255, 255, 255, 0.9);
        color: #1E3A8A;
    }
}

/* Alto contraste */
@media (prefers-contrast: high) {
    .glass-bg {
        border: 2px solid #FFFFFF;
        background: rgba(255, 255, 255, 0.95);
        color: #000000;
    }
}
