/* ==========================================================================
   CIME ABOGADOS - MULTI-PAGE FUTURISTIC FORMAL STYLES (VERSIÓN DEFINITIVA)
   ========================================================================== */

:root {
    --bg-primary: #050811;
    --bg-surface: #0d1322;
    --bg-glass: rgba(13, 19, 34, 0.82);
    --border-color: rgba(59, 130, 246, 0.2);
    --border-glow: rgba(59, 130, 246, 0.6);
    
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;

    --accent-blue: #3b82f6;
    --accent-cyan: #06b6d4;
    --accent-glow: #60a5fa;
    --accent-dark: #1d4ed8;

    --card-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.5), 0 0 15px rgba(59, 130, 246, 0.1);
    --font-heading: 'Orbitron', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;

    /* Tinte sutil para secciones alternas (antes era rgba(2,4,10,x) fijo,
       lo que en tema claro se veía como una franja gris oscura rara) */
    --section-tint: rgba(2, 4, 10, 0.4);
}

[data-theme="light"] {
    --bg-primary: #f0f4f9;
    --bg-surface: #ffffff;
    --bg-glass: rgba(255, 255, 255, 0.9);
    --border-color: rgba(37, 99, 235, 0.2);
    --border-glow: rgba(37, 99, 235, 0.5);

    --text-primary: #0f172a;
    --text-secondary: #334155;
    --text-muted: #64748b;

    --accent-blue: #2563eb;
    --accent-cyan: #0284c7;
    --accent-glow: #3b82f6;

    --card-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.08);
    --section-tint: rgba(226, 232, 240, 0.6);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

#tsparticles {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: -2;
    pointer-events: none;
}

.cyber-grid {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-size: 50px 50px;
    background-image: 
        linear-gradient(to right, rgba(59, 130, 246, 0.03) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(59, 130, 246, 0.03) 1px, transparent 1px);
    z-index: -1;
    pointer-events: none;
}

.container {
    width: 90%;
    max-width: 1240px;
    margin: 0 auto;
}

.section-padding {
    padding: 110px 0;
}

@media (max-width: 768px) {
    .section-padding { padding: 70px 0; }
}

.glass-panel {
    background: var(--bg-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: var(--card-shadow);
}

.tech-border {
    position: relative;
}

.tech-border::before {
    content: '';
    position: absolute;
    top: -1px; left: -1px; right: -1px; bottom: -1px;
    border-radius: 12px;
    padding: 1px;
    background: linear-gradient(135deg, var(--accent-blue), transparent 60%, var(--accent-cyan));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

/* ==========================================================================
   NAVEGACIÓN Y MENÚ MÓVIL
   ========================================================================== */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: transparent;
    backdrop-filter: none;
    border-bottom: 1px solid transparent;
    z-index: 1000;
    transition: background 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease, backdrop-filter 0.35s ease;
}

.navbar.scrolled {
    background: var(--bg-glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
    border-bottom-color: var(--border-color);
}

/* Páginas sin imagen de fondo en la portada necesitan el navbar siempre
   legible, incluso antes de hacer scroll */
.navbar.solid-start {
    background: var(--bg-glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom-color: var(--border-color);
}

/* Mientras el navbar está transparente, siempre está sobre el encabezado
   oscuro de la página (imagen con overlay o degradado oscuro), así que el
   texto se fuerza claro sin importar el tema activo */
.navbar:not(.scrolled):not(.solid-start) .nav-item {
    color: rgba(255, 255, 255, 0.85);
}

.navbar:not(.scrolled):not(.solid-start) .nav-item.active,
.navbar:not(.scrolled):not(.solid-start) .nav-item:hover {
    color: #ffffff;
}

.navbar:not(.scrolled):not(.solid-start) .logo,
.navbar:not(.scrolled):not(.solid-start) .theme-btn,
.navbar:not(.scrolled):not(.solid-start) .hamburger-btn {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.25);
}

.navbar:not(.scrolled):not(.solid-start) .nav-links {
    border-color: rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.06);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
    transition: height 0.35s ease;
}

.navbar.scrolled .nav-container {
    height: 64px;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: 1px;
}

.logo-icon {
    color: var(--accent-cyan);
    font-size: 1.4rem;
}

.logo .highlight {
    color: var(--accent-blue);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    padding: 6px;
    border-radius: 50px;
}

[data-theme="light"] .nav-links {
    background: rgba(37, 99, 235, 0.04);
}

.nav-item {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    position: relative;
    padding: 8px 16px;
    border-radius: 50px;
    transition: background 0.3s ease, color 0.3s ease;
}

.nav-item.active, .nav-item:hover {
    color: var(--accent-cyan);
    background: rgba(6, 182, 212, 0.12);
}

.theme-btn {
    background: none;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.1rem;
}

.hamburger-btn {
    display: none;
    background: none;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 8px 10px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.2rem;
    z-index: 1001;
    transition: border-color 0.3s ease, transform 0.3s ease;
}

.hamburger-btn i {
    transition: transform 0.3s ease;
}

.hamburger-btn.open {
    border-color: var(--border-glow);
}

.hamburger-btn.open i {
    transform: rotate(90deg);
}

/* ==========================================================================
   PORTADAS HERO Y HEADERS
   ========================================================================== */
.hero, .hero-with-bg, .page-header, .page-header-bg {
    color: #ffffff; 
    position: relative;
}

.page-header {
    padding: 150px 0 60px;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
    background: linear-gradient(135deg, #070b19 0%, #0d1322 100%);
}

.page-header-bg {
    padding: 160px 0 80px;
    background-size: cover;
    background-position: center;
}

.page-header-nosotros {
    background-image: url('https://images.unsplash.com/photo-1497215728101-856f4ea42174?q=80&w=1920&auto=format&fit=crop');
}

.hero-with-bg {
    padding: 180px 0 100px;
    background: url('https://images.unsplash.com/photo-1451187580459-43490279c0fa?q=80&w=1920&auto=format&fit=crop') center/cover no-repeat;
}

.header-content-relative {
    position: relative;
    z-index: 2;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(180deg, rgba(5,8,17,0.85) 0%, rgba(5,8,17,0.95) 100%);
    z-index: 1;
}

.hero-wrapper {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 50px;
    align-items: center;
}

.tech-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(59, 130, 246, 0.15);
    border: 1px solid rgba(59, 130, 246, 0.4);
    color: var(--accent-cyan);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.pulse-dot {
    width: 8px; height: 8px;
    background-color: var(--accent-cyan);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent-cyan);
    animation: pulse 1.8s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(6, 182, 212, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(6, 182, 212, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(6, 182, 212, 0); }
}

.hero h1, .page-header h1 {
    font-size: clamp(2.4rem, 5vw, 3.6rem);
    line-height: 1.12;
    font-weight: 700;
    letter-spacing: -1px;
    margin-bottom: 20px;
}

.glow-text {
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-glow));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p, .page-header p {
    font-size: 1.1rem;
    color: #94a3b8;
    max-width: 700px;
    margin: 0 auto 35px;
}

.hero-btns {
    display: flex;
    gap: 15px;
}

.text-center { text-align: center; }
.section-title { font-size: clamp(1.9rem, 3.2vw, 2.7rem); margin-top: 10px; color: var(--text-primary); line-height: 1.2; letter-spacing: -0.5px; }
.section-desc { color: var(--text-secondary); margin-top: 12px; margin-bottom: 40px; font-size: 1.05rem; max-width: 640px; }
.text-center .section-desc { margin-left: auto; margin-right: auto; }
.sub-title { color: var(--accent-cyan); font-family: var(--font-heading); font-size: 0.8rem; letter-spacing: 2px; }

/* ==========================================================================
   BOTONES
   ========================================================================== */
.btn-primary {
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-dark));
    color: #ffffff !important;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: none;
}

.glow-effect:hover {
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.6);
    transform: translateY(-2px);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-primary);
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--border-color);
    transition: background 0.3s ease, border-color 0.3s ease, transform 0.2s ease;
}

.btn-secondary:hover {
    background: rgba(59, 130, 246, 0.1);
    border-color: var(--border-glow);
    transform: translateY(-2px);
}

[data-theme="light"] .btn-secondary {
    background: rgba(37, 99, 235, 0.06);
    border-color: rgba(37, 99, 235, 0.35);
}

[data-theme="light"] .btn-secondary:hover {
    background: rgba(37, 99, 235, 0.12);
}

/* Tarjeta destacada (ej. "Enviar CV" en Bolsa de Trabajo) */
.bg-highlight {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.12), rgba(6, 182, 212, 0.08)) !important;
    border: 1px solid var(--border-glow) !important;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
}

/* ==========================================================================
   PANELES SIEMPRE OSCUROS (tarjetas tipo "terminal/HUD" que deben conservar
   su estética oscura incluso en tema claro, con texto siempre legible)
   ========================================================================== */
.dark-tech-panel {
    background: rgba(10, 15, 30, 0.85) !important;
    border-color: rgba(59, 130, 246, 0.3) !important;
}

.dark-tech-panel h3,
.dark-tech-panel h4 {
    color: #f1f5f9 !important;
}

.dark-tech-panel p {
    color: #94a3b8 !important;
}

.dark-info-box {
    background: rgba(0, 0, 0, 0.35) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 8px;
    padding: 15px;
}

.dark-info-box .info-label {
    font-size: 0.8rem;
    color: #94a3b8 !important;
    display: block;
    margin-bottom: 3px;
}

.dark-info-box a {
    color: #22d3ee !important;
    font-weight: 600;
    text-decoration: none;
}

/* Secciones con tinte sutil (se adapta al tema mediante --section-tint) */
.tint-section {
    background: var(--section-tint);
}

/* ==========================================================================
   TARJETAS HUD & MÉTRICAS
   ========================================================================== */
.hud-card {
    padding: 25px;
    width: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.hud-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 30px rgba(6, 182, 212, 0.18);
    border-color: var(--border-glow);
}

/* Contadores interactivos (reutilizado en Nosotros y Gestión Telcel) */
.counter-block {
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.counter-block:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 30px rgba(6, 182, 212, 0.18);
    border-color: var(--border-glow);
}

.counter-number {
    display: inline-block;
    cursor: pointer;
    transition: transform 0.2s ease, color 0.2s ease, text-shadow 0.2s ease;
}

.counter-number:hover {
    transform: scale(1.12);
    color: var(--accent-blue);
    text-shadow: 0 0 18px rgba(59, 130, 246, 0.6);
}

.hud-header {
    font-size: 0.8rem;
    font-family: var(--font-heading);
    color: var(--accent-cyan);
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 15px;
}

.status-indicator {
    width: 8px; height: 8px;
    background: #22c55e;
    border-radius: 50%;
    box-shadow: 0 0 8px #22c55e;
}

.metric-value {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 900;
    color: var(--text-primary);
}

.metric-unit {
    font-size: 1.8rem;
    color: var(--accent-cyan);
}

.metric-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 5px;
}

.hud-bar-container {
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
    margin: 15px 0 20px;
}

.hud-bar-fill {
    height: 100%;
    width: 98.4%;
    background: linear-gradient(to right, var(--accent-blue), var(--accent-cyan));
}

.hud-footer {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--text-muted);
    border-top: 1px solid var(--border-color);
    padding-top: 15px;
}

/* ==========================================================================
   GRIDS & LAYOUTS
   ========================================================================== */
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(400px, 1fr)); gap: 30px; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 30px; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }

.tech-card {
    padding: 35px 25px;
    position: relative;
    overflow: hidden;
}

.card-icon-wrapper {
    width: 55px; height: 55px;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 20px;
}

.card-icon {
    font-size: 1.5rem;
    color: var(--accent-cyan);
}

.card-corner-tech {
    position: absolute;
    bottom: 0; right: 0;
    width: 18px; height: 18px;
    border-bottom: 2px solid var(--accent-cyan);
    border-right: 2px solid var(--accent-cyan);
}

/* ==========================================================================
   TARJETA DE FOTO CON ZOOM AL PASAR EL CURSOR
   ========================================================================== */
.photo-zoom-card {
    padding: 0;
    overflow: hidden;
    border-radius: 12px;
    position: relative;
    cursor: pointer;
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.4s ease;
}

.photo-zoom-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.photo-zoom-caption {
    padding: 20px;
}

.photo-zoom-caption h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: var(--text-primary);
}

.photo-zoom-caption p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.photo-zoom-card:hover,
.photo-zoom-card:focus-within {
    transform: translateY(-6px) scale(1.04);
    box-shadow: 0 30px 55px rgba(0, 0, 0, 0.45);
    z-index: 5;
}

.photo-zoom-card:hover img,
.photo-zoom-card:focus-within img {
    transform: scale(1.22);
}

/* ==========================================================================
   GALERÍA DE FOTOS (NOSOTROS)
   ========================================================================== */
.gallery-section { border-top: 1px solid var(--border-color); }

.gallery-item {
    padding: 0;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(6, 182, 212, 0.2);
}

.gallery-img-wrapper {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
}

.gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover .gallery-img { transform: scale(1.08); }

.gallery-overlay { position: absolute; top: 12px; left: 12px; z-index: 2; }

.gallery-tag {
    background: rgba(5, 8, 17, 0.8);
    border: 1px solid var(--accent-cyan);
    color: var(--accent-cyan);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 12px;
}

.gallery-info { padding: 20px; }
.gallery-info h3 { font-size: 1.2rem; margin-bottom: 8px; color: var(--text-primary); }
.gallery-info p { font-size: 0.9rem; color: var(--text-secondary); }

/* ==========================================================================
   BOLSA DE TRABAJO
   ========================================================================== */
.vacancy-card { padding: 35px; position: relative; }

.vacancy-badge {
    display: inline-block;
    background: rgba(59, 130, 246, 0.15);
    border: 1px solid var(--accent-blue);
    color: var(--accent-cyan);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 15px;
    margin-bottom: 15px;
}

.vacancy-card h3 { font-size: 1.4rem; margin-bottom: 10px; }
.vacancy-desc { color: var(--text-secondary); margin-bottom: 20px; font-size: 0.95rem; }
.vacancy-reqs { list-style: none; margin-bottom: 25px; }
.vacancy-reqs li { font-size: 0.9rem; color: var(--text-secondary); margin-bottom: 8px; display: flex; align-items: center; gap: 10px; }
.text-cyan { color: var(--accent-cyan); }

/* ==========================================================================
   TERMINAL & CÓDIGO
   ========================================================================== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.code-terminal {
    background: #02040a !important;
    color: #e2e8f0 !important;
    border-radius: 8px;
    padding: 15px;
    font-family: monospace;
    font-size: 0.85rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.terminal-bar {
    display: flex; align-items: center; gap: 8px;
    margin-bottom: 15px; padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot.red { background: #ef4444; }
.dot.yellow { background: #f59e0b; }
.dot.green { background: #10b981; }

.c-keyword {
    color: var(--accent-cyan) !important;
    font-weight: bold;
}

/* ==========================================================================
   BLINDAJE ABSOLUTO DE BANNERS PARA TEMA CLARO
   ========================================================================== */
[data-theme="light"] .hero,
[data-theme="light"] .hero-with-bg,
[data-theme="light"] .page-header,
[data-theme="light"] .page-header-bg,
[data-theme="light"] .hero h1,
[data-theme="light"] .hero p,
[data-theme="light"] .hero-with-bg h1,
[data-theme="light"] .hero-with-bg p,
[data-theme="light"] .page-header h1,
[data-theme="light"] .page-header p,
[data-theme="light"] .page-header-bg h1,
[data-theme="light"] .page-header-bg p {
    color: #ffffff !important;
}

[data-theme="light"] .page-header {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%) !important;
    border-bottom: 1px solid rgba(37, 99, 235, 0.4);
}

[data-theme="light"] .hero .sub-title,
[data-theme="light"] .hero-with-bg .sub-title,
[data-theme="light"] .page-header .sub-title,
[data-theme="light"] .page-header-bg .sub-title,
[data-theme="light"] .tech-tag {
    color: #38bdf8 !important; 
    border-color: rgba(56, 189, 248, 0.4) !important;
}

[data-theme="light"] .glow-text {
    background: linear-gradient(135deg, #38bdf8, #60a5fa) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
}

/* ==========================================================================
   REVELADO PROGRESIVO AL HACER SCROLL (texto, tarjetas, títulos)
   ========================================================================== */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s cubic-bezier(0.2, 0.65, 0.3, 1), transform 0.7s cubic-bezier(0.2, 0.65, 0.3, 1);
    will-change: opacity, transform;
}

.reveal.in-view {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* Efecto "pop" al iniciar el conteo de un número */
@keyframes counterPop {
    0% { transform: scale(0.85); opacity: 0.5; }
    60% { transform: scale(1.1); }
    100% { transform: scale(1); opacity: 1; }
}

.counter-number.counting {
    animation: counterPop 0.5s ease-out;
}

/* ==========================================================================
   ACORDEÓN FAQ
   ========================================================================== */
.faq-list {
    display: grid;
    gap: 14px;
    max-width: 860px;
    margin: 0 auto;
}

.faq-item {
    overflow: hidden;
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    text-align: left;
    padding: 22px 25px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    cursor: pointer;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
}

.faq-question .faq-icon {
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-cyan);
    transition: transform 0.35s cubic-bezier(0.65, 0, 0.35, 1), border-color 0.3s ease;
}

.faq-item.active .faq-question .faq-icon {
    transform: rotate(135deg);
    border-color: var(--border-glow);
}

.faq-answer {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.65, 0, 0.35, 1), opacity 0.3s ease;
}

.faq-answer-inner {
    padding: 0 25px 22px;
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
}

.faq-item.active .faq-answer {
    opacity: 1;
}

/* ==========================================================================
   FORMULARIO DE CONTACTO
   ========================================================================== */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 8px;
    letter-spacing: 0.3px;
}

.form-control {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 13px 16px;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

[data-theme="light"] .form-control {
    background: rgba(37, 99, 235, 0.03);
}

.form-control::placeholder { color: var(--text-muted); }

.form-control:focus {
    outline: none;
    border-color: var(--border-glow);
    box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.15);
}

textarea.form-control {
    resize: vertical;
    min-height: 130px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

@media (max-width: 600px) {
    .form-row { grid-template-columns: 1fr; }
}

.form-submit-btn {
    width: 100%;
    justify-content: center;
    border: none;
    cursor: pointer;
    font-family: var(--font-body);
}

.form-status {
    margin-top: 15px;
    font-size: 0.9rem;
    display: none;
    padding: 12px 16px;
    border-radius: 8px;
}

.form-status.show { display: block; }

.form-status.success {
    background: rgba(34, 197, 94, 0.12);
    border: 1px solid rgba(34, 197, 94, 0.4);
    color: #22c55e;
}

.form-status.error {
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: #ef4444;
}

/* Tarjetas de datos de contacto */
.contact-info-card {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 22px;
}

.contact-info-card .card-icon-wrapper {
    margin-bottom: 0;
    flex-shrink: 0;
}

.contact-info-card h4 {
    font-size: 1rem;
    margin-bottom: 5px;
    color: var(--text-primary);
}

.contact-info-card p, .contact-info-card a {
    color: var(--text-secondary);
    font-size: 0.92rem;
    text-decoration: none;
}

.contact-info-card a:hover { color: var(--accent-cyan); }

/* ==========================================================================
   PASOS NUMERADOS ("CÓMO TRABAJAMOS")
   ========================================================================== */
.process-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    counter-reset: step;
    margin-top: 20px;
}

@media (max-width: 992px) {
    .process-steps { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
    .process-steps { grid-template-columns: 1fr; }
}

.process-step {
    padding: 30px 25px;
    position: relative;
}

.process-step-number {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 900;
    color: transparent;
    -webkit-text-stroke: 1.5px var(--accent-cyan);
    line-height: 1;
    margin-bottom: 15px;
    display: inline-block;
}

.process-step h4 {
    font-size: 1.05rem;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.process-step p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.process-connector {
    position: absolute;
    top: 45px;
    right: -13px;
    color: var(--border-glow);
    font-size: 1.2rem;
    z-index: 2;
}

@media (max-width: 992px) {
    .process-connector { display: none; }
}

/* ==========================================================================
   TIRA DE ESTADÍSTICAS RÁPIDAS
   ========================================================================== */
.stat-strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin-top: 35px;
}

.stat-strip .stat-item {
    text-align: center;
    padding: 18px 10px;
}

.stat-strip .stat-number {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--accent-cyan);
}

.stat-strip .stat-label {
    font-size: 0.78rem;
    color: var(--text-secondary);
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
footer {
    border-top: 1px solid var(--border-color);
    padding: 30px 0;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* ==========================================================================
   RESPONSIVO Y MENÚ MÓVIL DESPLEGABLE
   ========================================================================== */
@media (max-width: 992px) {
    .hamburger-btn {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .nav-links {
        display: flex;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background: var(--bg-glass);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        flex-direction: column;
        align-items: center;
        border: none;
        border-bottom: 1px solid var(--border-color);
        border-radius: 0;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
        z-index: 999;
        max-height: 0;
        opacity: 0;
        padding: 0;
        overflow: hidden;
        pointer-events: none;
        transition: max-height 0.45s cubic-bezier(0.65, 0, 0.35, 1), opacity 0.3s ease, padding 0.45s ease;
    }

    .nav-item { border-radius: 6px; }

    .navbar.scrolled .nav-links {
        top: 64px;
    }

    .nav-links.active {
        max-height: 480px;
        opacity: 1;
        padding: 25px 0;
        pointer-events: auto;
    }

    .nav-links .nav-item {
        padding: 10px 0;
        font-size: 1.1rem;
        opacity: 0;
        transform: translateY(-10px);
        transition: opacity 0.35s ease, transform 0.35s ease;
    }

    .nav-links.active .nav-item {
        opacity: 1;
        transform: translateY(0);
    }

    .nav-links.active .nav-item:nth-child(1) { transition-delay: 0.05s; }
    .nav-links.active .nav-item:nth-child(2) { transition-delay: 0.1s; }
    .nav-links.active .nav-item:nth-child(3) { transition-delay: 0.15s; }
    .nav-links.active .nav-item:nth-child(4) { transition-delay: 0.2s; }
    .nav-links.active .nav-item:nth-child(5) { transition-delay: 0.25s; }
    .nav-links.active .nav-item:nth-child(6) { transition-delay: 0.3s; }

    .hero-wrapper, .about-grid, .grid-2 { grid-template-columns: 1fr; }
    .hero h1, .page-header h1 { font-size: 2.2rem; }
}

/* ==========================================================================
   PRELOADER DE INICIO
   ========================================================================== */
.preloader {
    position: fixed;
    inset: 0;
    z-index: 20000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #05070f;
    transition: opacity 0.7s ease, visibility 0.7s ease;
}

.preloader.preloader-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.preloader-glow {
    position: absolute;
    width: 420px;
    height: 420px;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.16), transparent 70%);
    filter: blur(10px);
    pointer-events: none;
}

.preloader-frame {
    position: relative;
    width: 300px;
    height: 380px;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(6, 182, 212, 0.25);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.55);
}

@media (max-width: 480px) {
    .preloader-frame { width: 240px; height: 310px; }
}

.preloader-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.preloader-img-bg {
    filter: brightness(0.28) grayscale(0.75) contrast(1.15);
}

.preloader-img-fill {
    filter: brightness(1.05) saturate(1.3) contrast(1.05) hue-rotate(-10deg);
    clip-path: inset(100% 0 0 0);
}

.preloader-fill-line {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0%;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--accent-cyan), var(--accent-blue), var(--accent-cyan), transparent);
    box-shadow: 0 0 15px var(--accent-cyan), 0 0 30px var(--accent-cyan);
    opacity: 0;
}

.preloader-percent {
    position: absolute;
    bottom: 12px;
    right: 14px;
    background: rgba(5, 7, 15, 0.7);
    backdrop-filter: blur(8px);
    padding: 5px 12px;
    border-radius: 50px;
    border: 1px solid rgba(6, 182, 212, 0.3);
    color: var(--accent-cyan);
    font-family: var(--font-heading);
    font-size: 0.75rem;
    letter-spacing: 1px;
}

.preloader-text {
    margin-top: 32px;
    text-align: center;
    max-width: 280px;
    padding: 0 20px;
}

.preloader-text h2 {
    font-family: var(--font-heading);
    color: var(--accent-cyan);
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.preloader-text p {
    color: #7c8aa5;
    font-size: 0.78rem;
    letter-spacing: 0.4px;
}

.preloader-bar-track {
    width: 100%;
    background: rgba(255, 255, 255, 0.06);
    height: 5px;
    border-radius: 50px;
    margin-top: 16px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.preloader-bar-fill {
    background: linear-gradient(90deg, var(--accent-blue), var(--accent-cyan));
    height: 100%;
    width: 0%;
    border-radius: 50px;
    box-shadow: 0 0 10px var(--accent-cyan);
    transition: width 0.08s linear;
}

body.preloading {
    overflow: hidden;
}

/* ==========================================================================
   CURSOR PERSONALIZADO (solo dispositivos con mouse/trackpad)
   ========================================================================== */
html.custom-cursor, html.custom-cursor body, html.custom-cursor a,
html.custom-cursor button, html.custom-cursor input, html.custom-cursor textarea,
html.custom-cursor select, html.custom-cursor .faq-question {
    cursor: none;
}

.cursor-dot, .cursor-ring {
    position: fixed;
    top: 0;
    left: 0;
    border-radius: 50%;
    pointer-events: none;
    z-index: 21000;
    transform: translate(-50%, -50%);
}

.cursor-dot {
    width: 6px;
    height: 6px;
    background: var(--accent-cyan);
    box-shadow: 0 0 8px var(--accent-cyan);
    transition: opacity 0.2s ease;
}

.cursor-ring {
    width: 34px;
    height: 34px;
    border: 1.5px solid var(--accent-cyan);
    opacity: 0.55;
    transition: width 0.2s ease, height 0.2s ease, opacity 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

html.custom-cursor.cursor-hover .cursor-ring {
    width: 54px;
    height: 54px;
    background: rgba(6, 182, 212, 0.1);
    opacity: 0.9;
}

html.custom-cursor.cursor-hidden .cursor-dot,
html.custom-cursor.cursor-hidden .cursor-ring {
    opacity: 0;
}

/* ==========================================================================
   BOTONES FLOTANTES: VOLVER ARRIBA, WHATSAPP Y CHAT
   El chat SIEMPRE es el último elemento (el más pegado a la esquina) para
   que nunca cambie de lugar ni se encime con el de WhatsApp.
   ========================================================================== */
.float-stack {
    position: fixed;
    bottom: 30px;
    left: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    z-index: 9999;
}

.whatsapp-float {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    border: none;
    cursor: pointer;
    flex-shrink: 0;
    background-color: #25D366;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
}

.whatsapp-icon {
    width: 30px;
    height: 30px;
    fill: #FFF;
}

.back-to-top {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background: var(--bg-glass);
    backdrop-filter: blur(10px);
    color: var(--accent-cyan);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1rem;
    box-shadow: var(--card-shadow);
    opacity: 0;
    transform: translateY(10px) scale(0.9);
    pointer-events: none;
    flex-shrink: 0;
    transition: opacity 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
}

.back-to-top.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.back-to-top:hover {
    border-color: var(--border-glow);
    color: var(--accent-blue);
}

/* Barra de progreso de lectura, fija bajo el navbar */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0%;
    background: linear-gradient(90deg, var(--accent-blue), var(--accent-cyan));
    z-index: 1001;
    transition: width 0.1s linear;
}

/* Reducción proporcional para pantallas móviles */
@media (max-width: 768px) {
    .float-stack {
        bottom: 20px;
        left: 20px;
        gap: 10px;
    }
    .whatsapp-float {
        width: 50px;
        height: 50px;
    }
    .whatsapp-icon {
        width: 26px;
        height: 26px;
    }
    .back-to-top {
        width: 38px;
        height: 38px;
    }
}
