/* --- TYPOGRAPHY SETTINGS --- */
:root {
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

body {
    font-family: var(--font-body);
}

h1, h2, h3, h4, h5, h6, .font-bold {
    font-family: var(--font-heading);
}

/* --- SELECTION COLOR (El toque de diseñador) --- */
::selection {
    background: #2563eb; /* Azul Cantor21 */
    color: white;
}

/* --- ANIMACIONES DE SCROLL (Scroll Reveal) --- */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.scroll-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- HERO ANIMATIONS --- */

/* 1. Fondo de Cuadrícula (Grid) */
.bg-grid-slate-900\/5 {
    /* Efecto de desvanecimiento arriba y abajo */
    mask-image: linear-gradient(to bottom, transparent, 0%, white 10%, white 90%, transparent);
    
    /* PUNTOS en lugar de Cuadros */
    background-image: radial-gradient(#94a3b8 1.5px, transparent 1.5px);
    background-size: 40px 40px; /* Separación entre puntos */
    opacity: 0.3; /* Hacemos los puntos muy sutiles */
}

/* 2. Animación de los "Orbes" de color */
@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 7s infinite;
}

.animation-delay-2000 {
    animation-delay: 2s;
}

.animation-delay-4000 {
    animation-delay: 4s;
}

/* Delays para efecto cascada */
.delay-100 { transition-delay: 0.1s; }
.delay-200 { transition-delay: 0.2s; }
.delay-300 { transition-delay: 0.3s; }

/* Animación de entrada inicial Hero */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.fade-in-up {
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
}

/* Animación Flotante suave */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}
.animate-float {
    animation: float 4s ease-in-out infinite;
}

/* --- ESTILOS DEL CHATBOT --- */
#chat-window {
    opacity: 0;
    transform: scale(0.9) translateY(20px);
    pointer-events: none; /* No clickeable cuando está cerrado */
    transform-origin: bottom right;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: absolute;
    bottom: 70px; /* Arriba del botón flotante */
    right: 0;
}

#chat-window.open {
    opacity: 1;
    transform: scale(1) translateY(0);
    pointer-events: auto; /* Clickeable cuando está abierto */
}

/* Mensajes dentro del chat */
.message-chat {
    padding: 8px 12px;
    border-radius: 12px;
    max-width: 85%;
    font-size: 0.9rem;
    line-height: 1.4;
    word-wrap: break-word;
    animation: messageIn 0.3s ease;
}

.message-chat.user {
    align-self: flex-end;
    background-color: #2563eb; /* blue-600 */
    color: white;
    border-top-right-radius: 2px;
    margin-left: auto;
}

.message-chat.bot {
    align-self: flex-start;
    background-color: #e2e8f0; /* slate-200 */
    color: #1e293b; /* slate-800 */
    border-top-left-radius: 2px;
    margin-right: auto;
}

@keyframes messageIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Glassmorphism Card Effect */
.glass-card {
    background: rgba(255, 255, 255, 0.7); /* Blanco semitransparente */
    backdrop-filter: blur(12px); /* Efecto borroso detrás */
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
}

.glass-card:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

/* --- TARJETAS DE ESTADÍSTICAS (GLASS STATS) --- */
.glass-stat {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(226, 232, 240, 0.8);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    transition: all 0.3s ease;
}

.glass-stat:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(59, 130, 246, 0.15), 0 10px 10px -5px rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.3);
}

/* --- SOFT SECTION FADE --- */
.section-fade-bottom {
    position: relative;
}

.section-fade-bottom::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px; /* Altura del desvanecido */
    background: linear-gradient(to bottom, transparent, rgba(248, 250, 252, 1)); /* Fades to slate-50 */
    pointer-events: none;
}

/* Scrollbar personalizado */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #f1f5f9; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #94a3b8; }