/* MADFIX - Estilos Profesionales (Versión Limpia) */

/* Configuración Base */
html { 
    scroll-behavior: smooth; 
}

body { 
    font-family: 'Inter', sans-serif; 
    -webkit-font-smoothing: antialiased; 
    -moz-osx-font-smoothing: grayscale;
}

/* --- Hero Section & Fondos --- */
.hero-bg {
    background-color: #0f172a;
    background-image: 
        radial-gradient(at 0% 0%, rgba(37, 99, 235, 0.15) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(249, 115, 22, 0.10) 0px, transparent 50%);
    position: relative; 
    overflow: hidden;
}

/* MÁSCARA DE DEGRADADO */
.hero-fade {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 100px;
    background: linear-gradient(to bottom, transparent, #f8fafc); 
    pointer-events: none;
    z-index: 10;
    opacity: 0.8;
}

/* Grid Hero */
.hero-grid-item {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    position: relative;
    z-index: 20;
}
.hero-grid-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(37, 99, 235, 0.5);
    transform: translateY(-2px);
}

/* --- Animaciones --- */
@keyframes fadeInUp { 
    from { opacity: 0; transform: translateY(20px); } 
    to { opacity: 1; transform: translateY(0); } 
}

.fade-in-up { 
    animation: fadeInUp 0.8s ease-out forwards; 
    opacity: 0; 
}

/* --- Componentes Flotantes (Botón Sticky) --- */
.sticky-btn {
    position: fixed; 
    bottom: 30px; 
    right: 30px;
    background-color: #f97316; 
    color: white;
    width: 60px; 
    height: 60px; 
    border-radius: 50%;
    display: flex; 
    align-items: center; 
    justify-content: center;
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.4); 
    z-index: 900;
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
    border: none;
}
.sticky-btn:hover { 
    transform: scale(1.1); 
    box-shadow: 0 6px 16px rgba(249, 115, 22, 0.6);
}

/* --- Bloques de Servicio --- */
.service-block {
    position: relative; overflow: hidden;
    border-radius: 1.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.service-block:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px -5px rgba(0, 0, 0, 0.1);
}

/* --- Modals --- */
.modal {
    transition: opacity 0.3s ease;
    opacity: 0;
    pointer-events: none;
    z-index: 2000;
}
.modal.active { opacity: 1; pointer-events: all; }
.modal-content {
    transform: scale(0.95);
    transition: transform 0.3s ease;
    max-height: 90vh;
    overflow-y: auto;
}
.modal.active .modal-content { transform: scale(1); }

/* --- Banner Cookies --- */
#cookieBanner {
    transform: translateY(100%);
    transition: transform 0.5s ease-in-out;
}
#cookieBanner.show { transform: translateY(0); }

/* --- Utilidades Carrusel --- */
.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

/* --- FAQ Animado --- */
details > summary { list-style: none; }
details > summary::-webkit-details-marker { display: none; }

@keyframes slideDownFade {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}
details[open] .faq-content { animation: slideDownFade 0.4s ease-out forwards; }
details[open] summary .icon-chevron { transform: rotate(180deg); }