/* Importación de fuentes */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700;800&display=swap');

/* Configuración Base */
html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: 'Montserrat', sans-serif;
    transition: background-color 0.3s ease, color 0.3s ease;
    overflow-x: hidden;
    width: 100%;
}

/* Variables de Tema (Dark/Light) */
:root {
    --glass-bg: rgba(255, 255, 255, 0.9);
    --glass-border: rgba(0, 0, 0, 0.1);
    --glass-card-bg: rgba(255, 255, 255, 0.8);
    --glass-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
}

.dark {
    --glass-bg: rgba(17, 24, 39, 0.8);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-card-bg: rgba(31, 41, 55, 0.6);
    --glass-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

/* Utilidades Personalizadas */
.text-gradient {
    /* Definimos el degradado (Azul Brillante a Rojo Suave) - Más legible en fondo oscuro */
    background: linear-gradient(to right, #60a5fa, #fb7185);
    
    /* Propiedad con prefijo para compatibilidad actual */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;

    /* PROPIEDAD ESTÁNDAR (Esto quita el aviso que mencionas) */
    background-clip: text;
}
.glass-effect {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
}

.glass-card {
    background: var(--glass-card-bg);
    backdrop-filter: blur(8px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Hero Section */
.hero-bg {
    position: relative;
    overflow: hidden;
}

.video-background {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: -2;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(17, 24, 39, 0.7), rgba(17, 24, 39, 0.95));
    z-index: -1;
}

/* Botón Flotante WhatsApp */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(45deg, #25d366, #128c7e);
    color: white;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    text-align: center;
    font-size: 32px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 24px;
    }
}

.whatsapp-float:hover {
    transform: scale(1.1) rotate(10deg);
    box-shadow: 0 0 20px rgba(37, 211, 102, 0.6);
}

/* Animaciones */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
}
.animate-float {
    animation: float 6s ease-in-out infinite;
}

@keyframes blob {
    0% { transform: translate(0px, 0px) scale(1); }
    33% { transform: translate(30px, -50px) scale(1.1); }
    66% { transform: translate(-20px, 20px) scale(0.9); }
    100% { transform: translate(0px, 0px) scale(1); }
}
.animate-blob {
    animation: blob 10s infinite;
}
.animation-delay-2000 { animation-delay: 2s; }
.animation-delay-4000 { animation-delay: 4s; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}

/* Carrusel Infinito */
@keyframes logo-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
.logo-slider { 
    overflow: hidden;
    overflow-y: hidden; 
    position: relative; 
    width: 100%; 
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}
.logo-track {
    display: flex;
    width: max-content;
    animation: logo-scroll 30s linear infinite;
    will-change: transform;
}
.logo-slider:hover .logo-track { animation-play-state: paused; }
.logo-item {
    flex: 0 0 auto; width: 200px; padding: 0 30px;
    transition: all 0.4s ease;
}
.logo-item:hover { transform: scale(1.1); }

/* Carrusel compacto de testimonios */
@keyframes testimonial-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-50% - 0.75rem)); }
}
.testimonial-slider {
    width: 100%;
    overflow: hidden;
    padding: 0.5rem 0 1.5rem;
    mask-image: linear-gradient(to right, transparent, black 4%, black 96%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 4%, black 96%, transparent);
}
.testimonial-track {
    display: flex;
    gap: 1.5rem;
    width: max-content;
    animation: testimonial-scroll 36s linear infinite;
    will-change: transform;
}
.testimonial-slider:hover .testimonial-track,
.testimonial-slider:focus-within .testimonial-track {
    animation-play-state: paused;
}
.testimonial-card {
    flex: 0 0 min(340px, calc(100vw - 3rem));
    min-height: 270px;
}

/* Utilidad para rotación de icono en FAQ */
details > summary { list-style: none; }
details > summary::-webkit-details-marker { display: none; }
details[open] summary ~ * { animation: fadeIn 0.3s ease-in-out; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }
