/* Abbima — extras: modo oscuro, FAQ, diagnóstico, clientes, sticky CTA, a11y, microanimaciones */

/* ============================================================
   MODO OSCURO — estilo Apple/Linear: neutro, sin halos
   ============================================================ */
html[data-theme='dark'] {
  --bg: #0a0a0b;
  --bg-gray: #131316;
  --text: #ededed;
  --text-secondary: #a1a1a6;
  --text-tertiary: #6e6e73;
  --link: #5ea2ff;
  --accent: #2997ff;
  --accent-hover: #3aa6ff;
  --border: rgba(255, 255, 255, 0.08);
  --glass: rgba(10, 10, 11, 0.72);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.5), 0 4px 16px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 1px 2px rgba(0, 0, 0, 0.5), 0 12px 40px rgba(0, 0, 0, 0.55);
  color-scheme: dark;
}

html[data-theme='dark'] body {
  background: #0a0a0b;
  color: var(--text);
}

html[data-theme='dark'] .header {
  background: rgba(10, 10, 11, 0.65);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom-color: transparent;
}
html[data-theme='dark'] .header.scrolled {
  background: rgba(10, 10, 11, 0.88);
  border-bottom-color: rgba(255, 255, 255, 0.06);
}
html[data-theme='dark'] .nav-links a { color: var(--text); }
html[data-theme='dark'] .nav-links a:hover { color: #fff; }
html[data-theme='dark'] .nav-cta {
  background: #fff;
  color: #0a0a0b !important;
  border-color: transparent;
}
html[data-theme='dark'] .nav-cta:hover { background: #f5f5f7; }

/* Secciones: fondo limpio, sin gradientes ni colores extra */
html[data-theme='dark'] .section,
html[data-theme='dark'] .section--color,
html[data-theme='dark'] .section--story,
html[data-theme='dark'] .section--global,
html[data-theme='dark'] .section--partners,
html[data-theme='dark'] .section--clients,
html[data-theme='dark'] .section--diagnostic,
html[data-theme='dark'] .section--faq,
html[data-theme='dark'] .section--contact,
html[data-theme='dark'] .features-strip {
  background: transparent;
}

/* La sección de innovación oscura ya es oscura — ahora aún más sobria */
html[data-theme='dark'] .section--dark {
  background: #060607;
}

/* Hero: matar los blobs de color */
html[data-theme='dark'] .hero-bg { opacity: 0.35; filter: grayscale(0.4) brightness(0.7); }
html[data-theme='dark'] .hero-blob { display: none; }

/* Story orbs y grid */
html[data-theme='dark'] .story-orb { opacity: 0.2; filter: grayscale(0.5) brightness(0.6); }
html[data-theme='dark'] .story-grid { opacity: 0.1; }

/* Tarjetas / contenedores: superficie sutil, no glow */
html[data-theme='dark'] .card-shadow {
  box-shadow:
    0 1px 1px rgba(0, 0, 0, 0.4),
    0 4px 12px rgba(0, 0, 0, 0.35) !important;
  border-color: rgba(255, 255, 255, 0.07) !important;
}

html[data-theme='dark'] .stat-card,
html[data-theme='dark'] .mini-card,
html[data-theme='dark'] .float-card,
html[data-theme='dark'] .partner-card,
html[data-theme='dark'] .office-detail-card,
html[data-theme='dark'] .orbit-card,
html[data-theme='dark'] .service-explorer,
html[data-theme='dark'] .impact-strip,
html[data-theme='dark'] .contact-layout,
html[data-theme='dark'] .partners-showcase,
html[data-theme='dark'] .world-explorer,
html[data-theme='dark'] .region-tabs,
html[data-theme='dark'] .diagnostic,
html[data-theme='dark'] .faq-item,
html[data-theme='dark'] .vision-mock {
  background: #131316;
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--text);
}

html[data-theme='dark'] .service-panel {
  background: #131316;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}
html[data-theme='dark'] .service-panel-inner h3 { color: var(--text); }
html[data-theme='dark'] .service-panel-inner p,
html[data-theme='dark'] .service-panel-inner li { color: var(--text-secondary); }

/* Mini-cards: superficie casi negra sin tintes pastel */
html[data-theme='dark'] .mini-card { background: #131316 !important; }
html[data-theme='dark'] .mini-card span { opacity: 0.92; }
html[data-theme='dark'] .mini-card h4 { color: var(--text); }
html[data-theme='dark'] .mini-card:hover { background: #1a1a1e !important; border-color: rgba(255, 255, 255, 0.12); }

/* Stat cards: dejar el icono con color, fondo neutro */
html[data-theme='dark'] .stat-card { background: #131316; }
html[data-theme='dark'] .stat-card .stat-num { color: var(--text); }
html[data-theme='dark'] .stat-card .stat-text { color: var(--text-secondary); }

/* Float cards */
html[data-theme='dark'] .float-card { background: #131316; color: var(--text); }
html[data-theme='dark'] .float-card .float-meta { color: var(--text-secondary); }

/* Partners */
html[data-theme='dark'] .partner-card { background: #131316; }
html[data-theme='dark'] .partner-card img,
html[data-theme='dark'] .partner-fallback {
  filter: brightness(0) invert(1);
  opacity: 0.75;
  transition: opacity 0.25s;
}
html[data-theme='dark'] .partner-card:hover img { opacity: 1; }

/* Globo */
html[data-theme='dark'] .country-btn {
  background: transparent;
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.08);
}
html[data-theme='dark'] .country-btn:hover { background: rgba(255, 255, 255, 0.04); border-color: rgba(255, 255, 255, 0.16); }
html[data-theme='dark'] .country-btn.active {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  color: #fff;
}

html[data-theme='dark'] .region-tabs { background: #131316; }
html[data-theme='dark'] .region-tab { color: var(--text-secondary); }
html[data-theme='dark'] .region-tab:hover { color: var(--text); }
html[data-theme='dark'] .region-tab.active {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

html[data-theme='dark'] .office-detail-card { background: #131316; }
html[data-theme='dark'] .office-detail-card h3 { color: var(--text); }
html[data-theme='dark'] .office-detail-card .detail-country,
html[data-theme='dark'] .office-detail-card p { color: var(--text-secondary); }
html[data-theme='dark'] .detail-tag { background: rgba(255, 255, 255, 0.06); color: var(--text); }

/* Lang switcher */
html[data-theme='dark'] .lang-switcher {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
html[data-theme='dark'] .lang-btn { color: var(--text-secondary); }
html[data-theme='dark'] .lang-btn:hover { color: #fff; }
html[data-theme='dark'] .lang-btn.active { background: #fff; color: #0a0a0b; }

/* Formulario */
html[data-theme='dark'] .contact-form { background: transparent; }
html[data-theme='dark'] .contact-form input,
html[data-theme='dark'] .contact-form select,
html[data-theme='dark'] .contact-form textarea,
html[data-theme='dark'] .chat-input input {
  background: #1a1a1e;
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
html[data-theme='dark'] .contact-form input:focus,
html[data-theme='dark'] .contact-form select:focus,
html[data-theme='dark'] .contact-form textarea:focus {
  border-color: var(--accent);
  background: #1d1d22;
}
html[data-theme='dark'] .contact-form input::placeholder,
html[data-theme='dark'] .contact-form textarea::placeholder { color: var(--text-tertiary); }
html[data-theme='dark'] .field span { color: var(--text-secondary); }
html[data-theme='dark'] .form-title { color: var(--text); }

/* Panel contacto (lateral azul → más oscuro y elegante) */
html[data-theme='dark'] .contact-panel {
  background: linear-gradient(135deg, #14141a, #0e0e12) !important;
  color: var(--text);
}
html[data-theme='dark'] .contact-panel h2,
html[data-theme='dark'] .contact-panel .contact-eyebrow,
html[data-theme='dark'] .contact-panel .contact-lead,
html[data-theme='dark'] .contact-perks li { color: var(--text); }

/* Chat */
html[data-theme='dark'] .chat-panel { background: #131316; color: var(--text); }
html[data-theme='dark'] .chat-head { background: #16161a; border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
html[data-theme='dark'] .chat-head strong { color: var(--text); }
html[data-theme='dark'] .chat-online { color: var(--text-secondary); }
html[data-theme='dark'] .chat-msg--bot .chat-msg-bubble { background: #1a1a1e; color: var(--text); }
html[data-theme='dark'] .chat-suggestion {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
html[data-theme='dark'] .chat-suggestion:hover { background: rgba(255, 255, 255, 0.09); }

/* Pills / chips */
html[data-theme='dark'] .pill {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.06);
}
html[data-theme='dark'] .chip {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
html[data-theme='dark'] .chip--active { background: #fff; color: #0a0a0b; }

/* Footer */
html[data-theme='dark'] .footer {
  background: #060607;
  color: var(--text-secondary);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}
html[data-theme='dark'] .footer-nav a { color: var(--text-secondary); }
html[data-theme='dark'] .footer-nav a:hover { color: var(--text); }

/* Textos generales */
html[data-theme='dark'] h1,
html[data-theme='dark'] h2,
html[data-theme='dark'] h3,
html[data-theme='dark'] h4,
html[data-theme='dark'] .hero-title,
html[data-theme='dark'] .story-content h2 { color: var(--text); }
html[data-theme='dark'] .section-lead,
html[data-theme='dark'] .hero-desc,
html[data-theme='dark'] .story-lead { color: var(--text-secondary); }
html[data-theme='dark'] .text-gradient {
  background: linear-gradient(90deg, #fff 0%, #a1a1a6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Botones outline en oscuro */
html[data-theme='dark'] .btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.2);
}
html[data-theme='dark'] .btn-outline:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.3);
}

/* Diagnóstico */
html[data-theme='dark'] .diagnostic { background: #131316; }
html[data-theme='dark'] .diag-step h3 { color: var(--text); }
html[data-theme='dark'] .diag-opt {
  background: #1a1a1e;
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.06);
}
html[data-theme='dark'] .diag-opt:hover {
  background: #1f1f24;
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: none;
}
html[data-theme='dark'] .diag-result-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}
html[data-theme='dark'] .diag-progress { background: rgba(255, 255, 255, 0.05); }
html[data-theme='dark'] .diag-bar { background: #fff; }

/* FAQ */
html[data-theme='dark'] .faq-item { background: #131316; border-color: rgba(255, 255, 255, 0.06); }
html[data-theme='dark'] .faq-item:hover { box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08); }
html[data-theme='dark'] .faq-item summary { color: var(--text); }
html[data-theme='dark'] .faq-item p { color: var(--text-secondary); }
html[data-theme='dark'] .faq-icon {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
}
html[data-theme='dark'] .faq-item[open] .faq-icon { background: #fff; color: #0a0a0b; }

/* Sticky CTA: blanco sobre oscuro, sin gradiente neón */
html[data-theme='dark'] .sticky-cta {
  background: #fff;
  color: #0a0a0b;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
}
html[data-theme='dark'] .sticky-cta:hover {
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.7);
  background: #f5f5f7;
}
html[data-theme='dark'] .sticky-cta-dot { background: #34c759; }

/* Clientes — texto claro suave, acento sutil */
html[data-theme='dark'] .client-logo { color: var(--text-secondary); opacity: 0.45; }
html[data-theme='dark'] .client-logo span { color: var(--text); opacity: 0.8; }
html[data-theme='dark'] .client-logo:hover { color: var(--text); opacity: 1; }
html[data-theme='dark'] .clients-title { color: var(--text-tertiary); }

/* Eyebrows / labels en oscuro */
html[data-theme='dark'] .hero-label,
html[data-theme='dark'] .story-eyebrow,
html[data-theme='dark'] .partners-eyebrow,
html[data-theme='dark'] .contact-eyebrow,
html[data-theme='dark'] .eyebrow {
  color: var(--text-secondary);
}

/* ============================================================
   SECCIÓN NOSOTROS (story) — versión modo claro
   En modo claro la sección era completamente oscura, lo cual
   rompía el flujo. Aquí la pasamos a un fondo claro elegante.
   ============================================================ */
html:not([data-theme='dark']) .section--story {
  background:
    radial-gradient(ellipse 45% 35% at 12% 10%, rgba(0, 113, 227, 0.18), transparent 65%),
    radial-gradient(ellipse 40% 35% at 88% 15%, rgba(236, 72, 153, 0.12), transparent 65%),
    radial-gradient(ellipse 60% 45% at 50% 105%, rgba(124, 58, 237, 0.14), transparent 70%),
    radial-gradient(ellipse 30% 25% at 95% 75%, rgba(20, 184, 166, 0.1), transparent 70%),
    linear-gradient(160deg, #f6f8ff 0%, #fdf6f9 45%, #f3f5fc 100%);
  color: var(--text);
}

html:not([data-theme='dark']) .section--story .story-grid {
  background-image: radial-gradient(circle at 1px 1px, rgba(0, 0, 0, 0.08) 1px, transparent 0);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, black 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, black 30%, transparent 100%);
  opacity: 0.7;
}

html:not([data-theme='dark']) .section--story .story-bg::before {
  background: linear-gradient(90deg, transparent, rgba(0, 113, 227, 0.18) 50%, transparent);
}

html:not([data-theme='dark']) .section--story .story-orb {
  filter: blur(100px);
  opacity: 0.35;
}
html:not([data-theme='dark']) .section--story .story-orb--1 { background: #0071e3; }
html:not([data-theme='dark']) .section--story .story-orb--2 { background: #db2777; opacity: 0.25; }

/* Texto en oscuro sobre el fondo claro */
html:not([data-theme='dark']) .section--story .story-content h2,
html:not([data-theme='dark']) .section--story .story-pillars strong { color: var(--text); }
html:not([data-theme='dark']) .section--story .story-eyebrow,
html:not([data-theme='dark']) .section--story .story-lead,
html:not([data-theme='dark']) .section--story .story-pillars span { color: var(--text-secondary); }

/* Pilares con un círculo de icono suave */
html:not([data-theme='dark']) .section--story .pillar-icon {
  background: rgba(0, 113, 227, 0.08);
  color: var(--accent);
}

/* Orbit hub: anillos y core un poco más oscuros para contrastar */
html:not([data-theme='dark']) .section--story .orbit-ring {
  border-color: rgba(0, 0, 0, 0.12);
}
html:not([data-theme='dark']) .section--story .orbit-core {
  background: linear-gradient(135deg, #0071e3, #7c3aed);
  color: #fff;
  box-shadow: 0 10px 40px rgba(0, 113, 227, 0.25);
}
html:not([data-theme='dark']) .section--story .orbit-label { color: #fff; }
html:not([data-theme='dark']) .section--story .orbit-card {
  background: #fff;
  color: var(--text);
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
}
html:not([data-theme='dark']) .section--story .orbit-card small { color: var(--text-secondary); }

/* Impact strip blanca con borde sutil */
html:not([data-theme='dark']) .section--story .impact-strip {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
}
html:not([data-theme='dark']) .section--story .impact-num { color: var(--text); }
html:not([data-theme='dark']) .section--story .impact-label { color: var(--text-secondary); }
html:not([data-theme='dark']) .section--story .impact-divider { background: rgba(0, 0, 0, 0.08); }

/* Welcome (pantalla con video) — en dark mode oscurecer un poco más */
html[data-theme='dark'] .welcome-video-overlay {
  background: linear-gradient(165deg, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.7) 50%, rgba(0, 0, 0, 0.92) 100%);
}

/* Cursor dot */
html[data-theme='dark'] .cursor-dot { background: #fff; mix-blend-mode: difference; }

/* Inputs autofill */
html[data-theme='dark'] input:-webkit-autofill,
html[data-theme='dark'] textarea:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 1000px #1a1a1e inset !important;
  -webkit-text-fill-color: var(--text) !important;
  caret-color: var(--text);
}

/* ============================================================
   THEME TOGGLE (botón sol/luna en el header)
   ============================================================ */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin-left: 8px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.04);
  color: var(--text);
  cursor: pointer;
  transition: background 0.2s, transform 0.2s, color 0.2s;
  flex-shrink: 0;
}
.theme-toggle:hover { background: rgba(0, 0, 0, 0.08); transform: rotate(-8deg); }
.theme-toggle svg { width: 16px; height: 16px; }
.theme-toggle .icon-moon { display: none; }
html[data-theme='dark'] .theme-toggle .icon-sun { display: none; }
html[data-theme='dark'] .theme-toggle .icon-moon { display: block; }
html[data-theme='dark'] .theme-toggle { background: rgba(255, 255, 255, 0.05); border-color: rgba(255, 255, 255, 0.08); color: var(--text); }
html[data-theme='dark'] .theme-toggle:hover { background: rgba(255, 255, 255, 0.1); }

html[data-theme='dark'] .form-status--ok { color: #34c759; }
html[data-theme='dark'] .form-status--err { color: #ff453a; }

.header--welcome .theme-toggle { background: rgba(255, 255, 255, 0.12); border-color: rgba(255, 255, 255, 0.18); color: #fff; }

/* ============================================================
   CLIENTES (marquee)
   ============================================================ */
.section--clients {
  padding: 36px 0 16px;
}
.clients-title {
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 11px;
  color: var(--text-tertiary);
  font-weight: 600;
  margin-bottom: 18px;
}
.clients-marquee {
  overflow: hidden;
  position: relative;
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.clients-track {
  display: flex;
  gap: 40px;
  width: max-content;
  animation: clientsScroll 38s linear infinite;
}
.client-logo {
  font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-secondary);
  white-space: nowrap;
  opacity: 0.55;
  transition: opacity 0.25s, color 0.25s;
  cursor: default;
}
.client-logo span { font-weight: 300; color: var(--accent); margin-left: 1px; }
.client-logo:hover { opacity: 1; color: var(--text); }
.clients-marquee:hover .clients-track { animation-play-state: paused; }
@keyframes clientsScroll {
  to { transform: translateX(-50%); }
}

/* ============================================================
   MINI-DIAGNÓSTICO
   ============================================================ */
.section--diagnostic {
  padding: 80px 0;
}
.diagnostic {
  background: #fff;
  border-radius: 24px;
  padding: 36px;
  margin-top: 32px;
  position: relative;
  overflow: hidden;
}
.diag-progress {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: rgba(0, 113, 227, 0.08);
}
.diag-bar {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--accent), #7c3aed);
  transition: width 0.4s var(--ease-out);
}
.diag-step {
  display: none;
  animation: diagFade 0.4s ease;
}
.diag-step.active { display: block; }
@keyframes diagFade {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.diag-step-num {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 8px;
}
.diag-step h3 {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 22px;
  color: var(--text);
}
.diag-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.diag-opt {
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  text-align: left;
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--bg-gray);
  color: var(--text);
  cursor: pointer;
  transition: transform 0.2s, border-color 0.2s, background 0.2s, box-shadow 0.2s;
}
.diag-opt:hover {
  border-color: var(--accent);
  background: rgba(0, 113, 227, 0.06);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 113, 227, 0.12);
}
.diag-nav {
  margin-top: 18px;
}
.diag-back {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 14px;
  cursor: pointer;
  padding: 6px 0;
  display: none;
}
.diag-back:hover { color: var(--accent); }

.diag-result-card {
  background: linear-gradient(135deg, rgba(0, 113, 227, 0.06), rgba(124, 58, 237, 0.06));
  border-radius: 16px;
  padding: 28px;
  margin: 18px 0 24px;
  text-align: center;
}
.diag-icon { font-size: 48px; margin-bottom: 10px; }
.diag-recommend {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-tertiary);
  margin-bottom: 6px;
}
.diag-result-card h4 {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
  color: var(--text);
}
.diag-desc { color: var(--text-secondary); font-size: 15px; }
.diag-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

html[data-theme='dark'] .diagnostic { background: #181b25; }
html[data-theme='dark'] .diag-opt { background: rgba(255, 255, 255, 0.04); }
html[data-theme='dark'] .diag-opt:hover { background: rgba(0, 113, 227, 0.18); }
html[data-theme='dark'] .diag-result-card { background: linear-gradient(135deg, rgba(0, 113, 227, 0.18), rgba(124, 58, 237, 0.18)); }

@media (max-width: 640px) {
  .diag-options { grid-template-columns: 1fr; }
  .diagnostic { padding: 26px 20px; }
  .diag-step h3 { font-size: 20px; }
}

/* ============================================================
   FAQ
   ============================================================ */
.section--faq { padding: 80px 0; }
.wrap--narrow { width: min(720px, 88vw); margin-inline: auto; }
.faq-list { margin-top: 28px; display: flex; flex-direction: column; gap: 10px; }
.faq-item {
  background: #fff;
  border-radius: 14px;
  border: 1px solid var(--border);
  padding: 0;
  overflow: hidden;
  transition: box-shadow 0.25s, transform 0.25s;
}
.faq-item:hover { box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 22px;
  font-weight: 500;
  font-size: 17px;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(0, 113, 227, 0.1);
  color: var(--accent);
  font-size: 18px;
  font-weight: 400;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s var(--ease-out), background 0.2s;
  flex-shrink: 0;
}
.faq-item[open] .faq-icon {
  background: var(--accent);
  color: #fff;
  transform: rotate(45deg);
}
.faq-item p {
  padding: 0 22px 22px;
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.55;
}

/* ============================================================
   STICKY CTA
   ============================================================ */
.sticky-cta {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 999;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, var(--accent), #7c3aed);
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(0, 113, 227, 0.4);
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s, box-shadow 0.25s;
}
.sticky-cta.visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.sticky-cta:hover { box-shadow: 0 12px 32px rgba(0, 113, 227, 0.55); transform: translateY(-2px); }
.sticky-cta-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.7);
  animation: stickyPulse 2s infinite;
}
@keyframes stickyPulse {
  0% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.7); }
  70% { box-shadow: 0 0 0 10px rgba(74, 222, 128, 0); }
  100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); }
}
@media (max-width: 640px) {
  .sticky-cta { bottom: 16px; left: 12px; right: 80px; justify-content: center; }
}

/* ============================================================
   FORMULARIO (consentimiento + estado)
   ============================================================ */
.field--check {
  display: flex !important;
  flex-direction: row !important;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--text-secondary);
}
.field--check input[type='checkbox'] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--accent);
}
.field--check a { color: var(--accent); }

.form-status {
  margin-top: 14px;
  font-size: 14px;
  min-height: 20px;
}
.form-status--ok { color: #059669; }
.form-status--err { color: #dc2626; }

/* ============================================================
   ENVIAR TRANSCRIPT (botón en chat head)
   ============================================================ */
#chatSendTranscript {
  font-size: 15px;
}
#chatSendTranscript:disabled { opacity: 0.5; cursor: wait; }

/* ============================================================
   GLOBO — arcos
   ============================================================ */
.globe-arc {
  pointer-events: none;
}

/* ============================================================
   MICROANIMACIONES
   ============================================================ */
.stat-card, .float-card, .mini-card, .orbit-card, .partner-card, .office-detail-card {
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s, border-color 0.25s;
}
.stat-card:hover { transform: translateY(-4px) scale(1.02); }
.mini-card:hover { transform: translateY(-3px) scale(1.03); border-color: var(--accent); }
a.mini-card { text-decoration: none; color: var(--text); display: block; }
a.mini-card:hover h4 { color: var(--accent); }
.partner-card:hover { transform: translateY(-2px); border-color: var(--accent); }

.service-tab { transition: background 0.2s, color 0.2s, transform 0.2s; }
.service-tab:hover { transform: translateY(-1px); }

.btn { transition: transform 0.2s var(--ease-out), box-shadow 0.25s, background 0.25s; }
.btn:hover { transform: translateY(-2px); }
.btn-fill:hover { box-shadow: 0 8px 24px rgba(0, 113, 227, 0.35); }

[data-animate] { opacity: 0; transform: translateY(20px); transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out); }
[data-animate].visible { opacity: 1; transform: none; }

.float-card { animation: floatY 6s ease-in-out infinite; }
.float-card--2 { animation-delay: 1s; }
.float-card--3 { animation-delay: 2s; }
@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* ============================================================
   ACCESIBILIDAD
   ============================================================ */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.lang-btn:focus-visible, .theme-toggle:focus-visible, .nav-toggle:focus-visible { outline-offset: 4px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .clients-track { animation: none !important; }
  .float-card { animation: none !important; }
  [data-animate] { opacity: 1 !important; transform: none !important; }
  .sticky-cta-dot { animation: none !important; }
}

/* Skip link */
.skip-link {
  position: absolute;
  top: -40px;
  left: 8px;
  background: var(--accent);
  color: #fff;
  padding: 8px 14px;
  border-radius: 8px;
  z-index: 9999;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: top 0.2s;
}
.skip-link:focus { top: 8px; }

/* ============================================================
   PÁGINAS AUXILIARES (404, privacy, servicio)
   ============================================================ */
.page-section {
  padding: 140px 0 80px;
  min-height: 70vh;
}
.page-section h1 {
  font-size: 56px;
  font-weight: 600;
  letter-spacing: -0.025em;
  margin-bottom: 16px;
  color: var(--text);
}
.page-section h2 {
  font-size: 28px;
  margin-top: 32px;
  margin-bottom: 12px;
  color: var(--text);
}
.page-section p,
.page-section li {
  color: var(--text-secondary);
  font-size: 17px;
  line-height: 1.65;
  margin-bottom: 12px;
}
.page-section ul { padding-left: 22px; }
.page-section a { color: var(--accent); }
.error-num {
  font-size: 140px;
  font-weight: 700;
  background: linear-gradient(135deg, var(--accent), #7c3aed);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
  margin-bottom: 8px;
}

/* ============================================================
   RESPONSIVE — móvil y tablet
   ============================================================ */
html, body {
  overflow-x: clip;
  max-width: 100%;
}

img, video, svg, canvas {
  max-width: 100%;
  height: auto;
}

@media (max-width: 900px) {
  .clients-track { gap: 28px; }
  .client-logo { font-size: 17px; }
  .page-section { padding: 120px 0 64px; }
  .page-section h1 { font-size: 36px; }
  .error-num { font-size: 96px; }
  .section { padding: 72px 0; }
  .section--cta { padding-bottom: 88px; }
  .section--partners { padding: 72px 0; }
  .section--contact { padding: 72px 0 88px; }
  .section--faq { padding: 64px 0; }
  .section-intro { margin-bottom: 32px; }
  .section-lead { font-size: 18px; }
  .partners-showcase { padding: 28px 20px; }
  .partners-grid { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 16px; }
  .world-explorer { padding: 16px; gap: 16px; }
  .service-explorer { padding: 18px; }
  .service-panel-inner { padding: 24px 20px 24px 28px; }
  .service-panel { min-height: 240px; }
  .impact-strip { flex-wrap: wrap; justify-content: center; gap: 24px; }
  .footer-nav { gap: 14px 20px; }
}

@media (max-width: 734px) {
  .wrap { width: min(980px, 92vw); }

  .logo__img { height: 32px; max-width: 140px; }
  .lang-switcher { margin-left: 6px; padding: 2px; }
  .lang-btn { padding: 5px 7px; font-size: 10px; }
  .theme-toggle { padding: 7px; margin-left: 2px; }
  .nav { width: min(980px, 94vw); gap: 4px; }

  .nav-links.open a:not(.nav-cta) {
    color: var(--text) !important;
    opacity: 1 !important;
  }

  .header--welcome .nav-links.open {
    background: rgba(255, 255, 255, 0.96);
    border-bottom-color: var(--border);
  }

  .header--welcome .nav-links.open a:not(.nav-cta) {
    color: var(--text) !important;
  }

  .header--welcome .nav-links.open .nav-cta {
    color: #fff !important;
    text-align: center;
    margin-top: 8px;
  }

  .welcome-content { padding: 96px 0 80px; }
  .welcome-title { font-size: clamp(28px, 8vw, 40px); }
  .welcome-subtitle { font-size: clamp(18px, 5vw, 24px); }
  .welcome-desc { font-size: 16px; margin-bottom: 28px; }
  .welcome-actions { flex-direction: column; align-items: stretch; width: 100%; max-width: 320px; margin-inline: auto; }
  .welcome-actions .btn { width: 100%; }
  .logo--welcome-hero .logo__img { height: 56px; max-width: 220px; }

  .hero-layout { gap: 32px; padding: 24px 0 32px; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .stat-card { padding: 18px 14px; }
  .stat-icon { font-size: 22px; }
  .stat-num { font-size: 32px; }

  .services-grid-mini { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .mini-card { padding: 16px 10px; }
  .mini-card span { font-size: 24px; }
  .mini-card h4 { font-size: 12px; line-height: 1.3; }

  .service-tab { min-width: calc(50% - 4px); flex: 1 1 calc(50% - 4px); font-size: 12px; padding: 12px 8px; }
  .service-tabs { gap: 6px; }

  .region-tabs { padding: 10px; gap: 6px; }
  .region-tab { padding: 8px 14px; font-size: 13px; }

  .country-list { max-height: 160px; }
  .office-detail-panel { min-height: 140px; }
  .office-detail-panel .office-detail-card { padding: 18px; }
  .detail-flag { font-size: 28px; }

  .bento-card { padding: 22px; }
  .innovation-wrap { gap: 32px; }
  .section--story { padding: 72px 0 56px; }

  .chatbot { bottom: 16px; right: 16px; }
  .chat-fab { width: 52px; height: 52px; }
  .chat-panel { width: calc(100vw - 24px); right: -4px; height: min(520px, calc(100dvh - 88px)); }

  .faq-item summary { padding: 16px 18px; font-size: 16px; }
  .faq-item p { padding: 0 18px 18px; font-size: 15px; }

  .contact-perks li { font-size: 13px; }
  .contact-submit { font-size: 16px; padding: 14px 20px; }

  .sticky-cta { font-size: 13px; padding: 12px 18px; }
}

@media (max-width: 480px) {
  body { font-size: 16px; }
  .section { padding: 56px 0; }
  .section-intro h2,
  .innovation-text h2 { font-size: clamp(26px, 7vw, 32px); }

  .hero-stats { grid-template-columns: 1fr 1fr; }
  .stat-num { font-size: 28px; }

  .services-grid-mini { grid-template-columns: 1fr 1fr; }
  .service-tab { min-width: 100%; flex: 1 1 100%; }

  .partners-grid { grid-template-columns: repeat(2, 1fr); }
  .partner-card img { max-width: 100%; height: auto; }

  .welcome-bar { display: none; }
  .welcome-scroll { bottom: 16px; }

  .footer-nav { flex-direction: column; gap: 10px; }
  .page-section h1 { font-size: 28px; }
  .error-num { font-size: 72px; }

  .chat-panel.expanded {
    width: 100vw;
    height: 100dvh;
    max-height: 100dvh;
    right: -16px;
    bottom: -16px;
    border-radius: 0;
  }

  .diag-options { gap: 8px; }
  .diag-opt { padding: 14px 12px; font-size: 14px; }
}

@media (max-width: 360px) {
  .lang-btn { padding: 4px 5px; font-size: 9px; }
  .logo__img { height: 28px; max-width: 110px; }
  .services-grid-mini { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: 1fr; }
}
