/* CADI - Modern CSS Framework */
/* Reemplazo completo de Tailwind CSS con estilos personalizados */

/* ===== IMPORTACIONES DE FUENTES ===== */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Lexend:wght@400;600;700&display=swap');
@import url('https://fonts.googleapis.com/icon?family=Material+Icons+Round');
@import url('https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@20..48,100..700,0..1,-50..200&display=swap');

/* ===== VARIABLES DE COLOR ===== */
:root {
    /* Paleta Principal */
    --primary: #0099D1;
    --secondary: #004B7A;
    --background-light: #f8fafc;
    --background-dark: #020617;
    --card-dark: #0f172a;
    --border-dark: #1e293b;
    
    /* Colores Extendidos */
    --primary-light: #33addb;
    --primary-dark: #0077a3;
    --secondary-light: #006399;
    --slate-50: #f8fafc;
    --slate-100: #f1f5f9;
    --slate-200: #e2e8f0;
    --slate-300: #cbd5e1;
    --slate-400: #94a3b8;
    --slate-500: #64748b;
    --slate-600: #475569;
    --slate-700: #334155;
    --slate-800: #1e293b;
    --slate-900: #0f172a;
    
    /* Fuentes */
    --font-display: 'Lexend', 'Plus Jakarta Sans', sans-serif;
    --font-sans: 'Plus Jakarta Sans', 'Inter', sans-serif;
    
    /* Bordes */
    --radius: 0.75rem;
    --radius-sm: 0.5rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    --radius-2xl: 2rem;
    --radius-full: 9999px;
    
    /* Sombras */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);
}

/* ===== RESET Y BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-sans);
    line-height: 1.6;
    color: var(--slate-800);
    background-color: var(--background-light);
    transition: background-color 0.3s, color 0.3s;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ===== MODO OSCURO ===== */
.dark body {
    color: var(--slate-200);
    background-color: var(--background-dark);
}

/* ===== TIPOGRAFÍA ===== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--slate-900);
}

.dark h1, .dark h2, .dark h3, .dark h4, .dark h5, .dark h6 {
    color: white;
}

h1 { font-size: 3rem; margin-bottom: 1rem; }
h2 { font-size: 2.25rem; margin-bottom: 0.875rem; }
h3 { font-size: 1.875rem; margin-bottom: 0.75rem; }
h4 { font-size: 1.5rem; margin-bottom: 0.625rem; }
h5 { font-size: 1.25rem; margin-bottom: 0.5rem; }
h6 { font-size: 1.125rem; margin-bottom: 0.5rem; }

p { margin-bottom: 1rem; }

.display-font {
    font-family: var(--font-display);
}

.text-primary { color: var(--primary); }
.text-secondary { color: var(--secondary); }

/* Tamaños de texto */
.text-xs { font-size: 0.75rem; }
.text-sm { font-size: 0.875rem; }
.text-base { font-size: 1rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.text-3xl { font-size: 1.875rem; }
.text-4xl { font-size: 2.25rem; }
.text-5xl { font-size: 3rem; }

/* Pesos de fuente */
.font-light { font-weight: 300; }
.font-normal { font-weight: 400; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.font-extrabold { font-weight: 800; }

/* ===== HEADER - MEJORADO CON STICKY TRANSLÚCIDO ===== */
header {
    position: sticky;
    top: 0;
    z-index: 1000;  /* Aumentado para estar siempre visible */
    border-bottom: 1px solid rgba(226, 232, 240, 0.3);
    background-color: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transition: all 0.3s ease;
}

.dark header {
    border-bottom-color: rgba(255, 255, 255, 0.05);
    background-color: rgba(2, 6, 23, 0.7);
}

/* Header con sombra cuando hay scroll */
header.scrolled {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.dark header.scrolled {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.4), 0 2px 4px -1px rgba(0, 0, 0, 0.3);
}

header .container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

header .nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 5rem;
}

header .logo-wrapper {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

header .logo {
    height: 3.5rem;  /* Aumentado de 2.5rem a 3.5rem */
    width: auto;
}

header .logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    font-family: var(--font-display);
    letter-spacing: -0.025em;
    color: var(--slate-900);
}

.dark header .logo-text {
    color: white;
}

header nav {
    display: none;
    align-items: center;
    gap: 2rem;
}

@media (min-width: 768px) {
    header nav {
        display: flex;
    }
}

header nav a {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--slate-600);
    text-decoration: none;
    transition: color 0.2s;
}

.dark header nav a {
    color: var(--slate-400);
}

header nav a:hover {
    color: var(--primary);
}

/* BOTÓN CTA CON TEXTO BLANCO EN MODO OSCURO */
header .cta-button {
    padding: 0.625rem 1.25rem;
    background-color: var(--primary);
    color: white !important;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    text-decoration: none;
    transition: all 0.2s;
    box-shadow: 0 4px 14px 0 rgba(0, 153, 209, 0.2);
}

.dark header .cta-button {
    color: white !important;
}

header .cta-button:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px 0 rgba(0, 153, 209, 0.3);
    color: white !important;
}

header .mobile-menu-button {
    display: block;
    padding: 0.5rem;
    background: none;
    border: none;
    color: var(--slate-600);
    cursor: pointer;
}

.dark header .mobile-menu-button {
    color: var(--slate-400);
}

@media (min-width: 768px) {
    header .mobile-menu-button {
        display: none;
    }
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    position: fixed;
    top: 5rem;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--slate-200);
    padding: 1rem;
    z-index: 999;  /* Aumentado para que esté por encima de todo */
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.3s ease, opacity 0.3s ease;
}

.dark .mobile-menu {
    background: rgba(15, 23, 42, 0.95);
    border-bottom-color: var(--border-dark);
}

.mobile-menu.active {
    display: block;
    max-height: 500px;
    opacity: 1;
}

.mobile-menu nav {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.mobile-menu nav a {
    padding: 0.75rem 1rem;
    border-radius: var(--radius);
    transition: background-color 0.2s;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--slate-600);
}

.dark .mobile-menu nav a {
    color: var(--slate-400);
}

.mobile-menu nav a:hover {
    background: var(--slate-100);
}

.dark .mobile-menu nav a:hover {
    background: var(--border-dark);
}

.mobile-menu .cta-button {
    color: white !important;
}

/* ===== FOOTER ===== */
footer {
    padding-top: 5rem;
    padding-bottom: 2.5rem;
    border-top: 1px solid var(--slate-200);
    background-color: var(--slate-100);
}

.dark footer {
    border-top-color: rgba(255, 255, 255, 0.05);
    background-color: var(--card-dark);
}

footer .container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

footer .footer-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    margin-bottom: 4rem;
}

@media (min-width: 768px) {
    footer .footer-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

footer .footer-brand {
    grid-column: span 2;
}

@media (min-width: 768px) {
    footer .footer-brand {
        grid-column: span 1;
    }
}

footer .brand-wrapper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

footer .brand-logo {
    width: 2rem;
    height: 2rem;
    border-radius: var(--radius-sm);
}

footer .brand-text {
    font-size: 1.25rem;
    font-weight: 700;
    text-transform: uppercase;
}

footer p {
    font-size: 0.875rem;
    color: var(--slate-500);
    margin-bottom: 1.5rem;
}

.dark footer p {
    color: var(--slate-400);
}

footer .social-links {
    display: flex;
    gap: 1rem;
}

footer .social-link {
    width: 2rem;
    height: 2rem;
    border-radius: var(--radius);
    background-color: var(--slate-100);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    text-decoration: none;
    color: var(--slate-600);
}

.dark footer .social-link {
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--slate-400);
}

footer .social-link:hover {
    background-color: var(--primary);
    color: white;
}

footer h5 {
    font-weight: 700;
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

footer ul {
    list-style: none;
    padding: 0;
}

footer li {
    margin-bottom: 1rem;
}

footer li a {
    font-size: 0.875rem;
    color: var(--slate-500);
    text-decoration: none;
    transition: color 0.2s;
}

.dark footer li a {
    color: var(--slate-400);
}

footer li a:hover {
    color: var(--primary);
}

footer .footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid var(--slate-200);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    font-size: 0.75rem;
    color: var(--slate-400);
    font-weight: 500;
}

.dark footer .footer-bottom {
    border-top-color: rgba(255, 255, 255, 0.05);
}

@media (min-width: 768px) {
    footer .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
    }
}

footer .footer-meta {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

footer .status-indicator {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

footer .status-dot {
    font-size: 0.625rem;
}

/* ===== CONTENEDOR PRINCIPAL ===== */
main {
    max-width: 1280px;
    margin: 0 auto;
    padding: 3rem 1.5rem;
}

/* ===== LAYOUT DE PÁGINAS LEGALES ===== */
.legal-layout {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

@media (min-width: 1024px) {
    .legal-layout {
        flex-direction: row;
    }
}

.legal-sidebar {
    flex-shrink: 0;
    display: none;  /* Oculto por defecto en móvil */
}

@media (min-width: 1024px) {
    .legal-sidebar {
        width: 18rem;
        display: block;  /* Visible solo en desktop */
    }
}

.legal-sidebar-sticky {
    position: sticky;
    top: 8rem;
}

.legal-sidebar nav {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.sidebar-title {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--slate-400);
    margin-bottom: 1.5rem;
    padding: 0 1rem;
}

.dark .sidebar-title {
    color: var(--slate-500);
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-xl);
    color: var(--slate-600);
    text-decoration: none;
    transition: all 0.2s;
    font-size: 0.875rem;
}

.dark .sidebar-link {
    color: var(--slate-400);
}

.sidebar-link:hover {
    background-color: var(--slate-100);
}

.dark .sidebar-link:hover {
    background-color: var(--card-dark);
}

.sidebar-link.active {
    background-color: rgba(0, 153, 209, 0.1);
    color: var(--primary);
    font-weight: 600;
}

.sidebar-link .material-symbols-outlined {
    font-size: 1.25rem;
}

.sidebar-contact {
    margin-top: 3rem;
    padding: 1.5rem;
    border-radius: var(--radius-2xl);
    background-color: var(--slate-100);
    border: 1px solid var(--slate-200);
}

.dark .sidebar-contact {
    background-color: var(--card-dark);
    border-color: var(--border-dark);
}

.sidebar-contact p {
    font-size: 0.875rem;
    color: var(--slate-600);
    margin-bottom: 1rem;
}

.dark .sidebar-contact p {
    color: var(--slate-400);
}

.sidebar-contact a {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sidebar-contact a:hover {
    text-decoration: underline;
}

.sidebar-contact .material-symbols-outlined {
    font-size: 1.125rem;
}

/* ===== CONTENIDO LEGAL ===== */
.legal-content {
    flex: 1;
    max-width: 56rem;
}

.legal-card {
    background-color: white;
    border-radius: 1.5rem;
    padding: 3rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--slate-200);
}

.dark .legal-card {
    background-color: var(--card-dark);
    border-color: var(--border-dark);
}

@media (min-width: 768px) {
    .legal-card {
        padding: 3rem;
    }
}

.legal-header {
    margin-bottom: 3rem;
}

.legal-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background-color: rgba(0, 153, 209, 0.1);
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: var(--radius-full);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.legal-header h1 {
    font-size: 2.25rem;
    font-weight: 700;
    font-family: var(--font-display);
    color: var(--slate-900);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.dark .legal-header h1 {
    color: white;
}

@media (min-width: 768px) {
    .legal-header h1 {
        font-size: 3rem;
    }
}

.legal-meta {
    font-size: 0.875rem;
    color: var(--slate-500);
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dark .legal-meta {
    color: var(--slate-400);
}

.legal-meta .material-symbols-outlined {
    font-size: 0.875rem;
}

.legal-divider {
    height: 0.25rem;
    width: 5rem;
    background-color: var(--primary);
    border-radius: var(--radius-full);
}

/* ===== PROSE (CONTENIDO DE ARTÍCULOS) ===== */
.prose {
    max-width: 65ch;
    color: var(--slate-600);
}

.dark .prose {
    color: var(--slate-400);
}

.prose p {
    margin-bottom: 1.5rem;
    line-height: 1.75;
}

.prose h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--slate-900);
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    padding-left: 1rem;
    border-left: 4px solid var(--primary);
}

.dark .prose h2 {
    color: white;
}

.prose h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--slate-900);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.dark .prose h3 {
    color: white;
}

.prose h4 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.prose ul, .prose ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.prose li {
    margin-bottom: 1rem;
}

.prose strong {
    font-weight: 600;
    color: var(--slate-900);
}

.dark .prose strong {
    color: white;
}

.prose a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.prose a:hover {
    text-decoration: underline;
}

.prose blockquote {
    border-left: 4px solid var(--primary);
    background-color: var(--slate-50);
    padding: 1.5rem;
    margin: 1.5rem 0;
    font-style: italic;
    border-radius: 0 var(--radius-xl) var(--radius-xl) 0;
}

.dark .prose blockquote {
    background-color: rgba(15, 23, 42, 0.5);
}

/* ===== CAJAS INFORMATIVAS ===== */
.info-box {
    padding: 2rem;
    background-color: rgba(0, 153, 209, 0.05);
    border-radius: var(--radius-2xl);
    border: 1px solid rgba(0, 153, 209, 0.1);
    margin: 2.5rem 0;
}

.dark .info-box {
    background-color: rgba(0, 153, 209, 0.05);
    border-color: rgba(0, 153, 209, 0.1);
}

.info-box h4 {
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.info-box p {
    font-size: 0.875rem;
    color: var(--slate-600);
    font-style: italic;
    margin: 0;
}

.dark .info-box p {
    color: var(--slate-300);
}

.feature-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin: 1.5rem 0;
}

@media (min-width: 768px) {
    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.feature-card {
    padding: 1.5rem;
    border-radius: var(--radius-2xl);
    border: 1px solid var(--slate-100);
    background-color: rgba(248, 250, 252, 0.5);
}

.dark .feature-card {
    border-color: var(--slate-800);
    background-color: rgba(15, 23, 42, 0.3);
}

.feature-card .material-symbols-outlined {
    color: var(--primary);
    margin-bottom: 0.75rem;
    font-size: 1.875rem;
}

.feature-card h3 {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.feature-card p {
    font-size: 0.875rem;
    margin: 0;
}

.numbered-heading {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.number-badge {
    width: 2rem;
    height: 2rem;
    border-radius: var(--radius);
    background-color: rgba(0, 153, 209, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 0.875rem;
    font-weight: 700;
    flex-shrink: 0;
}

/* ===== PIE DE PÁGINA DEL DOCUMENTO ===== */
.document-footer {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid var(--slate-200);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.dark .document-footer {
    border-top-color: var(--border-dark);
}

@media (min-width: 768px) {
    .document-footer {
        flex-direction: row;
        justify-content: space-between;
    }
}

.document-footer p {
    font-size: 0.875rem;
    color: var(--slate-500);
    margin: 0;
}

.document-actions {
    display: flex;
    gap: 1rem;
}

.action-button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--slate-600);
    background: none;
    border: none;
    cursor: pointer;
    transition: color 0.2s;
    text-decoration: none;
}

.dark .action-button {
    color: var(--slate-400);
}

.action-button:hover {
    color: var(--primary);
}

.action-button .material-symbols-outlined {
    font-size: 1.125rem;
}

/* ===== BOTÓN DE TEMA - MOVIDO A LA IZQUIERDA ===== */
.theme-toggle {
    position: fixed;
    bottom: 2rem;
    left: 2rem; /* Cambiado de right a left */
    padding: 0.75rem;
    border-radius: var(--radius-full);
    background-color: white;
    box-shadow: var(--shadow-2xl);
    border: 1px solid var(--slate-200);
    color: var(--slate-800);
    z-index: 50;
    cursor: pointer;
    transition: transform 0.2s;
}

.dark .theme-toggle {
    background-color: var(--card-dark);
    border-color: var(--border-dark);
    color: #fbbf24;
}

.theme-toggle:hover {
    transform: scale(1.1);
}

.theme-toggle:active {
    transform: scale(0.9);
}

.theme-toggle .dark-icon {
    display: block;
}

.theme-toggle .light-icon {
    display: none;
}

.dark .theme-toggle .dark-icon {
    display: none;
}

.dark .theme-toggle .light-icon {
    display: block;
}

/* ===== UTILIDADES ===== */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.max-w-4xl {
    max-width: 56rem;
}

.flex {
    display: flex;
}

.items-center {
    align-items: center;
}

.justify-between {
    justify-content: space-between;
}

.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }

.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-12 { margin-bottom: 3rem; }

.mt-8 { margin-top: 2rem; }
.mt-12 { margin-top: 3rem; }
.mt-16 { margin-top: 4rem; }

.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }

.rounded { border-radius: var(--radius); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-xl { border-radius: var(--radius-xl); }
.rounded-2xl { border-radius: var(--radius-2xl); }
.rounded-full { border-radius: var(--radius-full); }

.uppercase {
    text-transform: uppercase;
}

.italic {
    font-style: italic;
}

.leading-relaxed {
    line-height: 1.75;
}

.leading-tight {
    line-height: 1.2;
}

.tracking-tight {
    letter-spacing: -0.025em;
}

.tracking-wider {
    letter-spacing: 0.05em;
}

.tracking-widest {
    letter-spacing: 0.1em;
}

/* ===== SCROLLBAR PERSONALIZADO ===== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--slate-100);
}

.dark ::-webkit-scrollbar-track {
    background: var(--card-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--slate-300);
    border-radius: var(--radius);
}

.dark ::-webkit-scrollbar-thumb {
    background: var(--border-dark);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--slate-400);
}

.dark ::-webkit-scrollbar-thumb:hover {
    background: var(--slate-700);
}

/* ===== ANIMACIONES SCROLL - NUEVAS ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

/* Clases para animación en scroll */
.scroll-animate {
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-animate.visible {
    opacity: 1;
}

.scroll-fade-up {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.scroll-fade-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-fade-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.scroll-fade-right {
    opacity: 0;
    transform: translateX(40px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-fade-right.visible {
    opacity: 1;
    transform: translateX(0);
}

.scroll-scale {
    opacity: 0;
    transform: scale(0.9);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-scale.visible {
    opacity: 1;
    transform: scale(1);
}

/* Delays escalonados para animaciones */
.delay-100 { transition-delay: 0.1s; }
.delay-200 { transition-delay: 0.2s; }
.delay-300 { transition-delay: 0.3s; }
.delay-400 { transition-delay: 0.4s; }
.delay-500 { transition-delay: 0.5s; }

/* ===== MATERIAL SYMBOLS ===== */
.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

.material-icons-round {
    font-family: 'Material Icons Round';
    font-weight: normal;
    font-style: normal;
    font-size: 24px;
    display: inline-block;
    line-height: 1;
    text-transform: none;
    letter-spacing: normal;
    word-wrap: normal;
    white-space: nowrap;
    direction: ltr;
}

/* ===== PÁGINA PRINCIPAL - HERO SECTION ===== */
.hero-section {
    position: relative;
    padding-top: 8rem;
    padding-bottom: 5rem;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-content {
    text-align: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
    background-color: rgba(0, 153, 209, 0.1);
    border: 1px solid rgba(0, 153, 209, 0.2);
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 2rem;
}

.pulse-dot {
    position: relative;
    display: flex;
    height: 0.5rem;
    width: 0.5rem;
}

.pulse-ring {
    position: absolute;
    display: inline-flex;
    height: 100%;
    width: 100%;
    border-radius: var(--radius-full);
    background-color: var(--primary);
    opacity: 0.75;
    animation: ping 1.5s cubic-bezier(0, 0, 0.2, 1) infinite;
}

.pulse-core {
    position: relative;
    display: inline-flex;
    border-radius: var(--radius-full);
    height: 0.5rem;
    width: 0.5rem;
    background-color: var(--primary);
}

@keyframes ping {
    75%, 100% {
        transform: scale(2);
        opacity: 0;
    }
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    letter-spacing: -0.025em;
    line-height: 1.1;
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 4.5rem;
    }
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 2rem;
}

@media (min-width: 768px) {
    .hero-subtitle {
        font-size: 3rem;
    }
}

.hero-description {
    max-width: 42rem;
    margin: 0 auto 3rem;
    color: var(--slate-500);
    font-size: 1.125rem;
    line-height: 1.75;
}

.dark .hero-description {
    color: var(--slate-400);
}

@media (min-width: 768px) {
    .hero-description {
        font-size: 1.25rem;
    }
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

@media (min-width: 640px) {
    .hero-buttons {
        flex-direction: row;
    }
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    font-weight: 700;
    border-radius: var(--radius-xl);
    text-decoration: none;
    transition: all 0.2s;
    width: 100%;
}

@media (min-width: 640px) {
    .btn {
        width: auto;
    }
}

.btn-primary {
    background-color: var(--primary);
    color: white;
    box-shadow: 0 4px 14px 0 rgba(0, 153, 209, 0.2);
}

.btn-primary:hover {
    box-shadow: 0 6px 20px 0 rgba(0, 153, 209, 0.4);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: var(--slate-200);
    color: var(--slate-900);
    border: 1px solid var(--slate-300);
}

.dark .btn-secondary {
    background-color: rgba(255, 255, 255, 0.05);
    color: white;
    border-color: rgba(255, 255, 255, 0.1);
}

.btn-secondary:hover {
    background-color: var(--slate-300);
}

.dark .btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.btn-large {
    padding: 1.25rem 2.5rem;
    font-size: 1.125rem;
}

.btn-outline {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--slate-200);
}

.dark .btn-outline {
    border-color: rgba(255, 255, 255, 0.1);
}

.btn-outline:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.hero-tech {
    margin-top: 5rem;
    padding-top: 2.5rem;
    border-top: 1px solid rgba(226, 232, 240, 0.1);
}

.tech-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--slate-400);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 2rem;
}

.tech-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    opacity: 0.6;
    filter: grayscale(100%);
    transition: all 0.5s;
}

@media (min-width: 768px) {
    .tech-logos {
        gap: 4rem;
    }
}

.tech-logos:hover {
    opacity: 1;
    filter: grayscale(0%);
}

.tech-logo {
    font-size: 1.5rem;
    font-weight: 700;
}

/* ===== SECTION PROBLEM ===== */
.section-problem {
    padding: 6rem 0;
    background-color: var(--slate-50);
}

.dark .section-problem {
    background-color: rgba(15, 23, 42, 0.3);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 1.875rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

@media (min-width: 768px) {
    .section-header h2 {
        font-size: 2.25rem;
    }
}

.section-header h3 {
    font-size: 1.875rem;
    font-weight: 700;
}

@media (min-width: 768px) {
    .section-header h3 {
        font-size: 2.25rem;
    }
}

.section-subtitle {
    color: var(--slate-500);
    margin-top: 1rem;
}

.dark .section-subtitle {
    color: var(--slate-400);
}

.problem-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .problem-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.problem-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: var(--radius-2xl);
    transition: all 0.3s;
}

.dark .problem-card {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.problem-card:hover {
    border-color: rgba(0, 153, 209, 0.5);
}

.problem-icon {
    font-family: 'Material Icons Round';
    font-size: 1.875rem;
    margin-bottom: 1rem;
    display: block;
}

.problem-card h4 {
    font-weight: 700;
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
}

.problem-card p {
    font-size: 0.875rem;
    color: var(--slate-500);
}

.dark .problem-card p {
    color: var(--slate-400);
}

/* ===== SECTION SERVICES ===== */
.section-services {
    padding: 6rem 0;
}

.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.service-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2.5rem;
    border-radius: 1.5rem;
    transition: all 0.5s;
}

.dark .service-card {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.service-card:hover {
    background-color: rgba(0, 153, 209, 0.05);
}

.service-icon {
    width: 4rem;
    height: 4rem;
    border-radius: var(--radius-2xl);
    background-color: rgba(0, 153, 209, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    margin-bottom: 2rem;
    transition: transform 0.5s;
}

.service-card:hover .service-icon {
    transform: scale(1.1);
}

.service-icon .material-icons-round {
    font-size: 2.25rem;
}

.service-card h4 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--slate-500);
    line-height: 1.75;
    margin-bottom: 1.5rem;
}

.dark .service-card p {
    color: var(--slate-400);
}

.service-features {
    list-style: none;
    padding: 0;
}

.service-features li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.75rem;
}

.service-features .material-icons-round {
    color: var(--primary);
    font-size: 0.875rem;
}

/* ===== SECTION PROCESS ===== */
.section-process {
    padding: 6rem 0;
    background-color: var(--slate-50);
}

.dark .section-process {
    background-color: rgba(15, 23, 42, 0.3);
}

.process-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    position: relative;
}

@media (min-width: 768px) {
    .process-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.process-line {
    display: none;
}

@media (min-width: 768px) {
    .process-line {
        display: block;
        position: absolute;
        top: 50%;
        left: 0;
        width: 100%;
        height: 1px;
        background-color: var(--slate-200);
        transform: translateY(-50%);
        z-index: 0;
    }
    
    .dark .process-line {
        background-color: rgba(255, 255, 255, 0.1);
    }
}

.process-step {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.process-number {
    width: 4rem;
    height: 4rem;
    border-radius: var(--radius-full);
    background-color: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    box-shadow: 0 20px 25px -5px rgba(0, 153, 209, 0.2);
}

.process-step h4 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.process-step p {
    color: var(--slate-500);
}

.dark .process-step p {
    color: var(--slate-400);
}

/* ===== SECTION CASES ===== */
.section-cases {
    padding: 6rem 0;
}

.cases-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .cases-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .cases-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.case-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: var(--radius-2xl);
    border-left: 4px solid var(--primary);
}

.dark .case-card {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-left: 4px solid var(--primary);
}

.case-category {
    font-size: 0.625rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.5rem;
    display: block;
}

.case-card h4 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.case-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.case-metric {
    padding: 0.75rem;
    background-color: rgba(34, 197, 94, 0.1);
    border-radius: var(--radius);
}

.case-metric p {
    color: #22c55e;
    font-weight: 700;
    font-size: 0.875rem;
    margin: 0;
}

.case-description {
    font-size: 0.875rem;
    color: var(--slate-500);
    margin: 0;
}

.dark .case-description {
    color: var(--slate-400);
}

/* ===== SECTION CTA ===== */
.section-cta {
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

.cta-background {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 153, 209, 0.05);
    z-index: -10;
}

.cta-content {
    max-width: 56rem;
    text-align: center;
}

.cta-content h2 {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 2rem;
}

@media (min-width: 768px) {
    .cta-content h2 {
        font-size: 3rem;
    }
}

.cta-content p {
    font-size: 1.25rem;
    color: var(--slate-500);
    margin-bottom: 2.5rem;
}

.dark .cta-content p {
    color: var(--slate-400);
}

.cta-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
}

@media (min-width: 640px) {
    .cta-buttons {
        flex-direction: row;
    }
}
