/* =========================================================
   1. VARIABLES Y TEMAS
   ========================================================= */
:root {
    /* Colores Base / Light Mode (Ajustado a Soft Light) */
    --purple: #33013d;
    --blue: #0ea5e9;
    --dark: #0b1120;
    --text: #0f172a;       /* Un tono más oscuro y nítido para mejorar la legibilidad */
    --muted: #475569;      /* Gris medio-oscuro para textos secundarios */
    --surface: #ffffff;    /* Blanco puro RESERVADO solo para tarjetas y cajas para que "floten" */
    --border: #e2e8f0;     
    --white: #fff;
    --bg: #f8fafc;         /* ¡La clave! Fondo gris-azul ultra suave en vez de blanco nuclear */
    --card-bg: #ffffff;    /* Tarjetas blancas sobre fondo gris suave */
    --header-bg: rgba(248, 250, 252, 0.92); /* Adaptado al nuevo fondo suave con transparencia */
    --grid-line: rgba(51, 1, 61, 0.02);
    --grad: linear-gradient(135deg, #3b82f6, #8b5cf6);
    --grad-soft: linear-gradient(135deg, rgba(59, 130, 246, .06), rgba(139, 92, 246, .06));

    --header-h: 72px;
    --max: 1140px;
}

/* Dark Mode Overrides */
[data-theme="dark"] {
    --text: #f1f5f9;
    --muted: #94a3b8;
    --surface: #0f172a;
    --border: #334155;
    --bg: #020617;
    --card-bg: #1e293b;
    --header-bg: rgba(2, 6, 23, 0.92);
    --grid-line: rgba(255, 255, 255, 0.05);
    --grad-soft: linear-gradient(135deg, rgba(59, 130, 246, .15), rgba(139, 92, 246, .15));
}

/* =========================================================
   2. RESET Y ESTILOS BASE
   ========================================================= */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    height: 100%; /* Fundamental para que el navegador sepa cuál es el fondo real */
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-h);
    overflow-x: hidden;
    background-color: var(--bg); /* Previene franjas blancas al hacer scroll elástico en Mac/iOS */
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    font-family: 'Inter', system-ui, sans-serif;
    color: var(--text);
    background-color: var(--bg);
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
    overflow-x: hidden;
    overflow-wrap: break-word;
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 24px;
}

/* --- ESPACIADO GLOBAL DE SECCIONES --- */
.section {
    padding: 96px 0;
}

.section {
    /* 120px arriba y abajo en desktop para que el contenido "respire" */
    padding: 160px 0; 
}

@media (max-width: 1024px) {
    .section {
        padding: 90px 0;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 70px 0;
    }
}

/* =========================================================
   3. TIPOGRAFÍA Y UTILIDADES
   ========================================================= */
.label {
    display: inline-block;
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--blue);
    margin-bottom: 12px;
}

.title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -.02em;
}

.subtitle {
    margin-top: 16px;
    font-size: 1.0625rem;
    color: var(--muted);
    max-width: 560px;
    line-height: 1.7;
}

.grad-text {
    background: var(--grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* --- Texto con Gradiente Animado --- */
.grad-text-animated {
    background: linear-gradient(to right, #3b82f6, #8b5cf6, #ec4899, #3b82f6);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shineText 5s linear infinite;
}

/* --- Botones --- */
.btn {
    display: inline-flex;
    align-items: center;
    padding: 12px 24px;
    border-radius: 10px;
    font-weight: 600;
    font-size: .9375rem;
    border: none;
    cursor: pointer;
    transition: .25s;
}

.btn-primary {
    background: var(--grad);
    color: var(--white);
    box-shadow: 0 4px 14px rgba(59, 130, 246, .35);
    position: relative;
    overflow: hidden;
}

.btn-primary:hover {
    box-shadow: 0 8px 24px rgba(59, 130, 246, .45);
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.3) 50%, rgba(255,255,255,0) 100%);
    transform: skewX(-20deg);
    transition: all 0.6s ease;
}

.btn-primary:hover::after {
    left: 150%;
}

.btn-ghost {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border);
}

.btn-ghost:hover {
    border-color: var(--blue);
    color: var(--blue);
}

/* =========================================================
   4. HEADER Y NAVEGACIÓN
   ========================================================= */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    height: var(--header-h);
    background: var(--header-bg);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.25rem;
}

.brand strong {
    font-weight: 700;
    background: var(--grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Logos Claro / Oscuro */
.logo-dark {
    display: none;
}
.logo-light {
    display: block;
}

[data-theme="dark"] .logo-light {
    display: none;
}
[data-theme="dark"] .logo-dark {
    display: block;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav {
    display: flex;
    gap: 32px;
    align-items: center;
}

.nav a {
    font-size: .9rem;
    font-weight: 500;
    color: var(--muted);
    transition: .25s;
}

.nav a:hover {
    color: var(--blue);
}

.nav-cta {
    padding: 8px 18px;
    border-radius: 8px;
    background: var(--grad);
    color: var(--white) !important;
}

.theme-toggle,
.menu-toggle {
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--text);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    border-radius: 8px;
    transition: background-color 0.2s, color 0.3s;
}

.theme-toggle:hover,
.menu-toggle:hover {
    background: var(--surface);
}

.theme-toggle:focus-visible,
.menu-toggle:focus-visible {
    outline: 2px solid var(--blue);
    outline-offset: 2px;
}

.theme-toggle svg,
.menu-toggle svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.menu-toggle {
    display: none;
}

.sun-icon {
    display: none;
}

[data-theme="dark"] .sun-icon {
    display: block;
}

[data-theme="dark"] .moon-icon {
    display: none;
}

/* =========================================================
   5. HERO SECTION
   ========================================================= */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: calc(var(--header-h) + 48px) 0 80px;
    background: var(--surface);
    overflow: hidden;
    transition: background-color 0.3s ease;
}

.hero::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 60%;
    height: 80%;
    background: radial-gradient(ellipse, rgba(59, 130, 246, .12), transparent 70%);
}

.hero::after {
    content: '';
    position: absolute;
    inset: -100% 0 0 0; /* Lo hacemos más alto para poder animarlo */
    background-image: linear-gradient(var(--grid-line) 1px, transparent 1px), linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: linear-gradient(to bottom, black 20%, transparent 80%);
    -webkit-mask-image: linear-gradient(to bottom, black 20%, transparent 80%);
    animation: panBackground 20s linear infinite;
    z-index: 0;
}

.hero-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 48px;
    position: relative;
    z-index: 1;
}

.hero-content {
    position: relative;
    max-width: 720px;
    z-index: 1;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 100px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    font-size: .8125rem;
    font-weight: 500;
    color: var(--text);
    margin-bottom: 28px;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--grad);
}

.hero h1 {
    font-size: clamp(2.25rem, 5.5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -.03em;
    margin-bottom: 24px;
}

.hero p {
    font-size: 1.125rem;
    color: var(--muted);
    max-width: 540px;
    margin-bottom: 36px;
}

.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 56px;
}

.stats {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
    padding-top: 32px;
    border-top: 1px solid var(--border);
}

.stat-val {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
}

.stat-lbl {
    font-size: .8125rem;
    color: var(--muted);
}

.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-orb {
    position: absolute;
    width: 350px;
    height: 350px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.4), rgba(139, 92, 246, 0.4));
    border-radius: 50%;
    filter: blur(80px); /* Efecto Glow muy moderno */
    z-index: 0;
    animation: pulseOrb 8s ease-in-out infinite alternate;
}

/* --- Efecto Láser en el Grid --- */
.laser-x, .laser-y {
    position: absolute;
    pointer-events: none; /* Para no bloquear clicks */
    z-index: 0;
}

.laser-x {
    top: 30%; /* Ajusta a qué altura pasa */
    left: -100%;
    width: 250px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--blue), #fff);
    box-shadow: 0 0 15px var(--blue), 0 0 30px var(--blue);
    animation: shootHorizontal 6s cubic-bezier(0.8, 0, 0.2, 1) infinite;
    opacity: 0.8;
}

.laser-y {
    top: -100%;
    left: 70%; /* Ajusta en qué columna pasa */
    width: 1px;
    height: 250px;
    background: linear-gradient(180deg, transparent, var(--blue), #fff);
    box-shadow: 0 0 15px var(--blue), 0 0 30px var(--blue);
    animation: shootVertical 8s cubic-bezier(0.8, 0, 0.2, 1) infinite;
    animation-delay: 2s; /* Desfasado del horizontal */
    opacity: 0.8;
}

/* --- Tarjeta Flotante de Código (Glassmorphism) --- */
.floating-code-card {
    /* Fuerzas un fondo negro al 95% de opacidad */
    background: rgba(0, 0, 0, 0.85) !important; 
    
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 450px;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.4);
    transform: translateY(0);
    animation: floatCard 6s ease-in-out infinite;
    font-family: 'Fira Code', 'Courier New', monospace;
    text-align: left;
    border: none;
    --mouse-x: -500px;
    --mouse-y: -500px;
}

/* Sobreescritura posterior de la tarjeta */
.floating-code-card {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 450px;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.3);
    transform: translateY(0);
    animation: floatCard 6s ease-in-out infinite;
    font-family: 'Fira Code', 'Courier New', monospace;
    text-align: left;
    
    border: none;
    --mouse-x: -500px; /* Fuera de la pantalla por defecto */
    --mouse-y: -500px;
}

.floating-code-card::before {
    content: "";
    position: absolute;
    inset: -1px; 
    border-radius: inherit;
    padding: 1px; 
    background: radial-gradient(
        400px circle at var(--mouse-x) var(--mouse-y),
        rgba(59, 130, 246, 0.8), 
        transparent 40%
    );
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    z-index: -1;
    transition: opacity 0.3s;
    opacity: 0; 
}

.floating-code-card:hover::before {
    opacity: 1;
}

.floating-code-card::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(
        800px circle at var(--mouse-x) var(--mouse-y),
        rgba(255, 255, 255, 0.04),
        transparent 40%
    );
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s;
}

.floating-code-card:hover::after {
    opacity: 1;
}

.card-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}
.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27c93f; }

.file-name {
    margin-left: auto;
    font-size: 0.75rem;
    color: rgba(255,255,255,0.5);
}

.floating-code-card pre {
    margin: 0;
    overflow-x: auto;
}

.floating-code-card code {
    font-size: 0.875rem;
    line-height: 1.7;
    color: #e2e8f0;
}

.keyword { color: #c678dd; } 
.string { color: #98c379; }  
.class { color: #e5c07b; }   
.variable { color: #e06c75; } 
.property { color: #56b6c2; } 
.method { color: #61afef; }   
.comment { color: #7f848e; font-style: italic; }

/* --- CORRECCIÓN DEFINITIVA HERO MÓVIL --- */
@media (max-width: 900px) {
    /* 1. Destruimos el centrado problemático y dejamos que el contenido baje normal */
    .hero {
        display: block !important; 
        height: auto !important;
        min-height: auto !important;
        padding: calc(var(--header-h) + 40px) 0 80px !important;
        overflow: visible !important; /* Evita que corte la tarjeta de código abajo */
    }
    
    /* 2. Pasamos todo a una sola columna ordenada */
    .hero-wrapper {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        gap: 48px !important;
        width: 100% !important;
    }
    
    .hero-content {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        width: 100% !important;
    }
    
    /* 3. Ajustamos tamaños para que nada se desborde */
    .hero h1 { 
        font-size: clamp(2rem, 8vw, 2.5rem) !important; 
        margin-top: 20px !important;
    }
    
    .hero h1 br {
        display: none !important; 
    }
    
    .hero p { 
        margin: 0 auto 32px !important; 
        font-size: 1rem !important;
    }
    
    .hero-actions {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        gap: 16px !important;
    }
    
    .hero-actions .btn {
        width: 100% !important;
        max-width: 320px !important;
    }
    
    /* Hacemos que las 3 estadísticas quepan o se acomoden bien */
    .stats {
        justify-content: center !important;
        width: 100% !important;
        gap: 24px !important;
        padding-top: 32px !important;
    }
    
    /* 4. Contenemos la tarjeta de código para evitar scroll horizontal */
    .hero-visual {
        width: 100% !important;
        max-width: 100vw !important;
        margin: 0 !important;
        padding: 0 16px !important; /* Da un respiro a los lados */
        box-sizing: border-box !important;
    }
    
    .floating-code-card {
        width: 100% !important;
        box-sizing: border-box !important; 
    }
    
    .floating-code-card pre {
        overflow-x: auto !important;
        white-space: pre !important;
        padding-bottom: 12px !important; 
    }
}

/* =========================================================
   6. SERVICES
   ========================================================= */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 56px;
}

.card {
    padding: 32px;
    border-radius: 20px;
    border: 1px solid var(--border);
    background: var(--card-bg);
    transition: .25s;
}

.card:hover {
    box-shadow: 0 4px 24px rgba(15, 23, 42, .08);
    transform: translateY(-4px);
    border-color: var(--blue);
}

.card-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: var(--grad-soft);
    margin-bottom: 20px;
    color: var(--blue);
    transition: .5s;
}

.card-icon svg {
    width: 24px;
    height: 24px;
    stroke-width: 1.5;
}

.card:hover .card-icon {
    background: var(--blue);
    color: #ffffff;
    transform: scale(1.1);
}

.card h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--blue);
    margin-bottom: 12px;
}

.card p {
    font-size: .9375rem;
    color: var(--muted);
    line-height: 1.65;
}

/* =========================================================
   7. QUALITY
   ========================================================= */
.quality {
    background: var(--dark);
    color: #fff;
}

.quality-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.quality .title {
    color: #fff;
}

.quality-desc {
    margin-top: 20px;
    color: rgba(255, 255, 255, .7);
    max-width: 480px;
}

.quality-list {
    list-style: none;
    margin-top: 32px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.quality-list li {
    display: flex;
    gap: 12px;
    font-size: .9375rem;
    color: rgba(255, 255, 255, .85);
}

.check {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--grad);
    font-size: .7rem;
    font-weight: 700;
}

.iso-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: var(--grad);
    font-weight: 800;
    font-size: .75rem;
}

/* =========================================================
   8. TESTIMONIAL
   ========================================================= */
.testimonial-highlight {
    background-color: var(--bg-primary); 
    text-align: center;
    padding: 80px 0; 
}

.testimonial-centered {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.testimonial-centered .quote-icon {
    font-size: 5rem;
    color: var(--blue, #2563eb); 
    opacity: 0.2; 
    line-height: 1;
    margin-bottom: -10px;
    font-family: Georgia, serif; 
}

.testimonial-centered p {
    font-size: 1.5rem; 
    font-weight: 500;
    color: var(--text-primary);
    line-height: 1.6;
    margin-bottom: 32px;
    font-style: italic;
}

@media (max-width: 768px) {
    .testimonial-centered p {
        font-size: 1.25rem;
    }
}

.testimonial-centered footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.testimonial-centered .author {
    font-weight: 700;
    font-size: 1.125rem;
    color: var(--text-primary);
}

.testimonial-centered .role {
    font-size: 0.875rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* =========================================================
   9. CERTIFICATIONS
   ========================================================= */
.certifications-wrapper {
    margin-top: 40px;
    padding-top: 32px;
    border-top: 1px solid var(--border);
}

.cert-title {
    display: block;
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 24px;
}

.cert-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.cert-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 24px;
}

.cert-tab {
    position: relative;
    width: 80px; 
    height: 80px;
    padding: 12px;
    background-color: var(--card-bg);
    border: 0.5px solid var(--border); 
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.4s ease;
    filter: grayscale(100%) opacity(50%); 
}

.cert-tab img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.4s ease;
}

.cert-tab::after {
    content: '';
    position: absolute;
    bottom: -10px; 
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background-color: var(--blue, #2563eb); 
    border-radius: 2px;
    transition: width 0.4s ease;
}

.cert-tab:hover,
.cert-tab.active {
    filter: grayscale(0%) opacity(100%);
    border-color: var(--blue, #2563eb); 
    transform: translateY(-4px); 
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.15); 
}

.cert-tab:hover img,
.cert-tab.active img {
    transform: scale(1.05);
}

.cert-tab:hover::after,
.cert-tab.active::after {
    width: 60%; 
}

/* Áreas de contenido de certificaciones sobreescritas según tu CSS */
.cert-content-area {
    background-color: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px;
    min-height: 120px;
    display: grid; 
    box-shadow: 0 4px 24px rgba(15, 23, 42, .04);
}

.cert-content-area {
    background-color: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px;
    min-height: 120px;
    display: grid; 
    box-shadow: 0 4px 24px rgba(15, 23, 42, .04);
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.cert-content-area {
    background-color: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px;
    min-height: 110px; 
    box-shadow: var(--shadow-sm);
}

.cert-info-panel {
    grid-area: 1 / 1; 
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.4s ease, transform 0.4s ease, visibility 0.4s;
    pointer-events: none;
}

.cert-info-panel.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.cert-info-panel strong {
    display: block;
    font-size: 1.0625rem;
    color: var(--blue) !important; 
    margin-bottom: 8px;
    font-weight: 700;
}

.cert-info-panel p {
    font-size: 0.9375rem;
    color: var(--muted) !important; 
    margin: 0;
    line-height: 1.6;
    transition: color 0.3s ease;
}

.cert-info-panel {
    display: none; 
    animation: fadeIn 0.4s ease;
}

.cert-info-panel.active {
    display: block; 
}

.cert-info-panel strong {
    display: block;
    font-size: 1.0625rem;
    color: var(--accent);
    margin-bottom: 8px;
}

.cert-info-panel p {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.6;
}

/* =========================================================
   10. TECH / MARQUEE
   ========================================================= */
.tech {
    background: var(--surface);
    transition: background-color 0.3s ease;
}

.tech-header {
    text-align: center;
}

.tech-header .subtitle {
    margin-left: auto;
    margin-right: auto;
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 16px;
    margin-top: 48px;
}

.tech-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 20px 16px;
    border-radius: 12px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    transition: .25s;
    min-width: 140px;
}

.tech-item:hover {
    border-color: var(--blue);
}

.tech-item img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.tech-item span {
    font-size: .8125rem;
    font-weight: 500;
    color: var(--muted);
}

.tech-marquee-wrapper {
    overflow: hidden;
    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);
    padding: 20px 0;
}

.tech-marquee {
    display: flex;
    gap: 32px;
    width: max-content;
    animation: scrollTech 30s linear infinite;
}

.tech-marquee:hover {
    animation-play-state: paused; 
}

/* =========================================================
   11. ABOUT
   ========================================================= */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 64px;
    align-items: center;
}

.about-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 24px; 
}

.about-glow {
    position: absolute;
    width: 250px;
    height: 250px;
    background: linear-gradient(135deg, var(--accent), #ec4899);
    filter: blur(80px);
    opacity: 0.15;
    border-radius: 50%;
    z-index: 0;
    transition: opacity 0.5s ease;
}

.about-visual:hover .about-glow {
    opacity: 0.25; 
}

.about-image-wrapper {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 420px; 
    background-color: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 16px; 
    box-shadow: var(--shadow-md);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.5s ease;
}

.about-visual:hover .about-image-wrapper {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.about-img {
    width: 100%;
    height: auto;
    border-radius: 12px; 
    display: block;
    object-fit: cover;
}

.floating-tech-badge {
    position: absolute;
    bottom: 0;
    right: -10px;
    background-color: transparent !important; 
    border: 1px solid var(--border); 
    border-radius: 16px; 
    padding: 16px 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    z-index: 2;
    border: none !important;
}

.about-visual:hover .floating-tech-badge {
    transform: translateY(4px) scale(1.02); 
}

.badge-number {
    font-size: 2.25rem;
    font-weight: 800;
    line-height: 1;
    color: var(--white); 
    -webkit-text-stroke: 0 !important; 
}

.badge-text {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    line-height: 1.4;
    color: var(--white); 
}

[data-theme="dark"] .badge-number,
[data-theme="dark"] .badge-text {
    color: var(--white) !important; 
}

.about-card .tagline {
    font-size: 1.125rem;
    font-weight: 600;
    margin-top: 20px;
}

.about-content p {
    margin-top: 16px;
    color: var(--muted);
    font-size: .9375rem;
    line-height: 1.7;
}

.pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 28px;
}

.pill {
    padding: 6px 14px;
    border-radius: 100px;
    font-size: .8125rem;
    font-weight: 500;
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--muted);
    transition: background-color 0.3s ease;
}

/* DESTRUIMOS LOS RECTÁNGULOS DE LOS CONTENEDORES (Según tu Override) */
.about-visual,
.about-image-wrapper {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    display: flex;
    justify-content: center;
    position: relative;
}

.about-glow {
    border-radius: 50% !important; 
}

.about-img {
    width: 100%;
    max-width: 450px;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 50% !important; 
    padding: 8px !important; 
    border: .5px solid var(--blue) !important; 
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15) !important; 
    display: block;
}

.floating-tech-badge {
    position: absolute;
    bottom: 5%;
    right: 5%;
    background: rgba(11, 17, 32, 0.75) !important; 
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
}

@media (max-width: 768px) {
    .floating-tech-badge {
        bottom: -20px;
        right: auto;
        left: 50%;
        transform: translateX(-50%); 
    }
    
    .about-visual:hover .floating-tech-badge {
        transform: translateX(-50%) translateY(4px);
    }
}

@media (max-width: 900px) {
    .about-grid {
        grid-template-columns: 1fr !important;
        gap: 32px;
    }

    .about-image-wrapper {
        display: none !important;
    }

    .floating-tech-badge {
        position: relative !important;
        bottom: auto !important;
        right: auto !important;
        left: 50% !important;
        transform: translateX(-50%) !important; 
        margin-top: 32px; 
        display: inline-flex !important; 
        box-shadow: var(--shadow-md) !important;
    }

    .about-visual:hover .floating-tech-badge {
        transform: translateX(-50%) !important;
    }
}

/* =========================================================
   12. CONTACT Y FORMS
   ========================================================= */
.contact {
    background-color: var(--surface) !important; 
    transition: background-color 0.3s ease;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: flex-start;
}

@media (max-width: 900px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }
}

.contact-list {
    list-style: none;
    margin-top: 32px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-list li {
    display: flex;
    align-items: center;
    gap: 16px; 
    font-size: 0.9375rem;
    color: var(--text-secondary);
}

.contact-list a {
    color: inherit;
    transition: color 0.2s ease;
}

.contact-list a:hover {
    color: var(--accent); 
}

.c-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    flex-shrink: 0;
    color: var(--accent);
    transition: all 0.3s ease;
}

.c-icon svg {
    width: 16px;
    height: 16px;
}

.contact-list li:hover .c-icon {
    transform: translateY(-2px);
    border-color: var(--accent);
    box-shadow: var(--shadow-sm);
}

.form {
    padding: 32px;
    border-radius: 20px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    box-shadow: 0 4px 24px rgba(15, 23, 42, .08);
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--bg-primary); 
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.9375rem;
    transition: all 0.3s ease;
    resize: vertical;
}

.form-group select {
    cursor: pointer;
    appearance: none; 
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'></polyline></svg>");
    background-repeat: no-repeat;
    background-position: right 14px center;
}

.form-group select option {
    background-color: var(--card-bg); 
    color: var(--text-primary);       
    padding: 10px;                    
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-secondary);
    opacity: 0.6;
}

.form .btn {
    width: 100%;
    margin-top: 8px;
}

/* =========================================================
   13. FOOTER
   ========================================================= */
.footer {
    margin-top: auto; 
    padding: 48px 0;
    background-color: #0b1120 !important; 
    border-top: 1px solid rgba(255, 255, 255, 0.05); 
    transition: background-color 0.3s ease;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 32px;
}

.footer-left {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #ffffff; 
    font-size: 1.125rem;
}

.footer-brand strong {
    font-weight: 700;
    letter-spacing: -0.02em;
}

.copyright {
    font-size: 0.8125rem;
    color: #94a3b8; 
    margin: 0;
}

.footer-right {
    display: flex;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}

.footer-nav {
    display: flex;
    gap: 24px;
}

.footer-nav a {
    font-size: 0.875rem;
    font-weight: 500;
    color: #94a3b8; 
    transition: color 0.2s ease;
}

.footer-nav a:hover {
    color: #ffffff; 
}

.footer-email {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.05); 
    padding: 8px 16px;
    border-radius: 99px; 
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.footer-email svg {
    width: 16px;
    height: 16px;
    color: var(--blue, #3b82f6); 
}

.footer-email:hover {
    border-color: var(--blue, #3b82f6);
    background-color: rgba(59, 130, 246, 0.1); 
    transform: translateY(-2px);
}

.footer-actions {
    display: flex;
    align-items: center;
    gap: 15px; 
    flex-wrap: wrap; 
}

.footer-socials {
    display: flex;
    gap: 12px; 
}

.footer-socials .social-link {
    color: #6c757d; 
    transition: color 0.2s ease-in-out;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.footer-socials .social-link:hover {
    color: #0077b5; 
}

@media (max-width: 768px) {
    .footer-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 40px;
    }

    .footer-right {
        flex-direction: column;
        align-items: flex-start;
        gap: 24px;
        width: 100%;
    }

    .footer-nav {
        flex-direction: column;
        gap: 16px;
    }
    
    .footer-email {
        width: 100%;
        justify-content: center;
    }
}

/* =========================================================
   14. ANIMACIONES Y MEDIA QUERIES GLOBALES
   ========================================================= */

/* --- Animaciones Base (Reveal, Keyframes) --- */
@keyframes panBackground {
    0% { transform: translateY(0); }
    100% { transform: translateY(48px); }
}

@keyframes pulseOrb {
    0% { transform: scale(0.8) translate(-20px, 20px); opacity: 0.6; }
    100% { transform: scale(1.1) translate(20px, -20px); opacity: 1; }
}

@keyframes floatCard {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-16px); }
}

@keyframes scrollTech {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-50% - 16px)); }
}

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

@keyframes shootHorizontal {
    0% { left: -100%; opacity: 0; }
    10% { opacity: 1; }
    50%, 100% { left: 100%; opacity: 0; }
}

@keyframes shootVertical {
    0% { top: -100%; opacity: 0; }
    10% { opacity: 1; }
    50%, 100% { top: 100%; opacity: 0; }
}

.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 2s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform, opacity;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.services-grid .card:nth-child(1) { transition-delay: 0.1s; }
.services-grid .card:nth-child(2) { transition-delay: 0.2s; }
.services-grid .card:nth-child(3) { transition-delay: 0.3s; }

/* --- Responsividad Global (Móvil) --- */
@media (max-width: 900px) {
    .menu-toggle {
        display: flex;
    }

    .nav {
        position: absolute;
        top: var(--header-h);
        left: 0;
        width: 100%;
        background: var(--header-bg);
        backdrop-filter: blur(12px);
        border-bottom: 1px solid var(--border);
        flex-direction: column;
        padding: 24px;
        gap: 20px;
        display: none;
    }

    .nav.is-open {
        display: flex;
    }

    .nav a {
        width: 100%;
        text-align: center;
        padding: 12px 0;
        font-size: 1.0625rem;
    }

    .nav-cta {
        width: 100%;
        text-align: center;
    }
    
    .services-grid,
    .quality-grid,
    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .section {
        padding: 64px 0;
    }
}

/* --- OCULTAR ELEMENTOS DEL HERO EN MÓVILES --- */
@media (max-width: 900px) {
    /* Oculta la insignia "Procesos alineados..." */
    .hero .badge {
        display: none !important;
    }

    /* Oculta toda la sección visual (el orbe de luz y la terminal de código) */
    .hero-visual {
        display: none !important;
    }
}