:root {
  /* ========== COLORES - Paleta Refinada ========== */
  --brand: #fdc134;
  --brand-600: #e5ae2e;
  --brand-700: #cc9924;
  --brand-soft: rgba(253, 193, 52, 0.14);
  --brand-border: rgba(253, 193, 52, 0.22);

  --ink: #1e293b;
  --ink-700: #0f172a;
  --ink-soft: rgba(30, 41, 59, 0.04);
  --ink-border: rgba(30, 41, 59, 0.1);

  /* Acentos armónicos */
  --accent-sky: #9cc1ff;
  --accent-teal: #1aa6a0;
  --accent-violet: #6d7bff;

  /* Aliases */
  --color-brand: var(--brand);
  --color-accent: var(--accent-violet);
  --rgb-brand: 253, 193, 52;

  /* Superficies - Mayor contraste */
  --bg-hero: #f8fafc;
  --bg-section: #fafbfc;
  --surface: #ffffff;
  --surface-soft: #f9fafb;
  --muted: #64748b;


  /* === Header tokens (usa tu paleta) === */
  --header-bg: rgba(255,255,255,0.78);          /* sobre el hero: vidrio suave */
  --header-bg-scrolled: rgba(255,255,255,1);    /* sobre secciones claras: sólido */
  --header-border: var(--ink-border);           /* hairline base */
  --header-border-strong: rgba(33,59,82,0.18);  /* hairline más marcado */

  /* ========== TIPOGRAFÍA - Escala Profesional ========== */
  --font-sans: "Plus Jakarta Sans", "Inter", system-ui, -apple-system, sans-serif;

  /* Escala refinada con ratio ~1.25 */
  --fs-xs: 0.8125rem; /* 13px - mínimo legible */
  --fs-sm: 0.92rem; /* 15px - textos secundarios */
  --fs-base: 1rem;    /* 16px - base óptima */
  --fs-lg: 1.125rem;  /* 18px - destacados */
  --fs-xl: 1.375rem;  /* 22px - subtítulos */
  --fs-2xl: 1.75rem;  /* 28px - títulos sección */
  --fs-3xl: 2.25rem;  /* 36px - títulos grandes */
  --fs-4xl: 3rem;     /* 48px - hero desktop */

  --header-height: 72px;

  /* ========== ESPACIADO - Sistema Generoso ========== */
  --space-xs: 0.5rem;  /* 8px */
  --space-sm: 0.75rem; /* 12px */
  --space-md: 1rem;    /* 16px */
  --space-lg: 1.5rem;  /* 24px */
  --space-xl: 2.5rem;  /* 40px */
  --space-2xl: 3.5rem; /* 56px */
  --space-3xl: 5rem;   /* 80px */

  /* ========== DISEÑO ========== */
  --container: 1200px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-2xl: 24px;
  --radius-full: 999px;

  /* Sombras más sutiles */
  --shadow-sm: 0 1px 2px rgba(30, 41, 59, 0.04);
  --shadow-md: 0 4px 8px rgba(30, 41, 59, 0.06);
  --shadow-lg: 0 8px 16px rgba(30, 41, 59, 0.08);
  --shadow-xl: 0 16px 32px rgba(30, 41, 59, 0.1);
  --shadow-brand: 0 8px 24px rgba(253, 193, 52, 0.16);
  --shadow-brand-lg: 0 16px 40px rgba(253, 193, 52, 0.2);

  /* Efectos */
  --blur: blur(24px);
  --backdrop-blur: saturate(140%) blur(10px);
  --ring: rgba(253, 193, 52, 0.3);

  /* Transiciones */
  --transition-fast: 0.15s ease;
  --transition-base: 0.2s ease;
  --transition-slow: 0.3s ease;
}

/* ============================================================================
    2. RESET Y BASE
   ============================================================================ */

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
  overflow-x: hidden; /* anti-scroll horizontal base */
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  line-height: 1.6;
  color: var(--ink);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden; /* FIX: evita “margen derecho” en móvil */
}

img, svg, video { display: block; max-width: 100%; height: auto; }

a { color: inherit; text-decoration: none; transition: all var(--transition-base); }

button, input, select, textarea { font: inherit; color: inherit; }

:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; }

/* ============================================================================
    3. LAYOUT SYSTEM
   ============================================================================ */

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--space-md);
  overflow-x: clip; /* FIX seguro contra desbordes internos */
}

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

/* ============================================================================
    4. COMPONENTES BASE - Iconos
   ============================================================================ */

.icon { width: 18px; height: 18px; flex-shrink: 0; }
.icon--sm { width: 16px; height: 16px; }
.icon--lg { width: 24px; height: 24px; }
.icon--xl { width: 28px; height: 28px; }

.btn-icon, .method-icon svg, .service-icon svg, .social-link svg { width: 18px; height: 18px; }
.logo-mark svg { width: 100%; height: 100%; }

/* ================== LOGO ================== */
.logo {
  display: inline-flex; align-items: center; gap: var(--space-sm);
  font-weight: 800; font-size: var(--fs-xl); letter-spacing: 0.01em; color: var(--ink);
  transition: transform var(--transition-base);
}
.logo:hover { transform: translateY(-1px); }
.logo-mark { width: 32px; height: 32px; color: var(--brand); }

/* ================== LINKS ================== */
.nav-links {
  display: flex; align-items: center; gap: var(--space-lg);
  list-style: none; margin: 0; padding: 0;
}

.nav-link {
  position: relative;
  padding: 8px 6px;
  border-radius: var(--radius-md);
  color: rgba(15,23,42,0.86);
  font-weight: 500;                 /* ↓ más delicado */
  letter-spacing: 0.01em;
  font-size: var(--fs-sm);
  transition: color var(--transition-fast),
              transform var(--transition-fast);
  text-decoration: none;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 50%; right: 50%;
  bottom: 6px;
  height: 1.5px;                    /* subrayado fino */
  background: linear-gradient(90deg, var(--ink-700) 0%, var(--ink) 45%, var(--accent-violet) 100%);
  border-radius: var(--radius-full);
  opacity: 0;
  transition: left var(--transition-base), right var(--transition-base), opacity var(--transition-base);
}
.nav-link:hover { transform: translateY(-1px); color: var(--ink); }
.nav-link:hover::after { left: 6px; right: 6px; opacity: 1; }

.nav-link.active {
  color: var(--ink);
  font-weight: 600;                 /* solo el active sube */
  background: rgba(109,123,255,0.08);
}
.nav-link.active::after { opacity: 0; }

.nav-link--cta {
  margin-left: var(--space-sm); 
  padding: 8px 12px; 
  border-radius: var(--radius-lg);
  font-weight: 600; 
  background: var(--accent-violet); 
  color: #fff; 
  border: 1px solid var(--accent-violet);
  box-shadow: 0 2px 10px rgba(109,123,255,0.12);
}


.nav-link--cta:hover {
  transform: translateY(-1px); background: #fff; color: var(--accent-violet);
  border: 2px solid var(--accent-violet); font-weight: 700;
}
.nav-link--cta::after { display: none; }

/* ================== MOBILE ================== */
@media (max-width: 768px) {
  .nav-links {
    position: absolute; top: 72px; left: var(--space-md); right: var(--space-md);
    display: grid; gap: var(--space-xs);
    background: rgba(255,255,255,0.96); backdrop-filter: saturate(140%) blur(8px);
    border: 1px solid var(--ink-border); border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl); padding: var(--space-md);
    opacity: 0; transform: translateY(-8px); pointer-events: none; transition: all var(--transition-base);
    overflow-x: hidden; /* evita desborde en menú */
  }
  .nav-links.open { opacity: 1; transform: translateY(0); pointer-events: auto; }
  .nav-link { justify-content: center; }
  .nav-link::after { bottom: 8px; }
  .nav-link--cta { margin-left: 0; }
}

.nav-toggle {
  display: none; border: none; background: transparent; padding: var(--space-sm);
  border-radius: var(--radius-md); cursor: pointer; transition: background var(--transition-base);
}
.nav-toggle:hover { background: var(--ink-soft); }
.hamburger { display: flex; flex-direction: column; gap: 4px; }
.line { display: block; width: 24px; height: 3px; background: var(--ink); border-radius: 2px; transition: all var(--transition-slow); }
.nav-toggle[aria-expanded="true"] .line:nth-child(1) { transform: rotate(45deg) translate(6px, 6px); }
.nav-toggle[aria-expanded="true"] .line:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .line:nth-child(3) { transform: rotate(-45deg) translate(7px, -6px); }

/* ------------------ Botones ------------------ */
.btn {
  --pad-y: var(--space-xs); --pad-x: var(--space-sm);
  display: inline-flex; align-items: center; gap: var(--space-xs);
  padding: var(--pad-y) var(--pad-x); border-radius: var(--radius-md); border: 1px solid transparent;
  font-weight: 600; font-size: var(--fs-xs); line-height: 1; cursor: pointer;
  transition: all var(--transition-base); text-decoration: none; position: relative; overflow: hidden;
}
.btn:focus-visible { outline: none; box-shadow: 0 0 0 4px var(--ring); }
.btn--large { --pad-y: var(--space-sm); --pad-x: var(--space-lg); font-size: var(--fs-sm); }
.btn--full { width: 100%; justify-content: center; }
.btn--primary { background: var(--ink); color: var(--surface); box-shadow: var(--shadow-md); }
.btn--primary:hover { background: var(--ink-700); transform: translateY(-1px); box-shadow: var(--shadow-lg); }
.btn--primary:active { transform: translateY(0); }
.btn--ghost { background: var(--surface); color: var(--ink); border-color: var(--ink-border); box-shadow: var(--shadow-sm); }
.btn--ghost:hover { background: var(--bg-hero); border-color: var(--brand); box-shadow: var(--shadow-md); }
.btn-icon { width: 18px; height: 18px; transition: transform var(--transition-base); }
.btn:hover .btn-icon { transform: translateX(2px); }

/* ------------------ Secciones Generales ------------------ */
.section { position: relative; padding: var(--space-xl) 0; background: var(--surface); overflow-x: clip; }

.section-title {
  font-size: var(--fs-3xl); font-weight: 800; line-height: 1.15;
  margin: 0.4rem 0 0.35rem; letter-spacing: -0.02em;
}
.section-description {
  color: var(--muted); font-size: var(--fs-lg); line-height: 1.7; max-width: 65ch; margin: 0;
}
.section-header { margin-bottom: var(--space-xl); }
.section-header.text-center { text-align: center; }
.section-header.text-center .section-description { margin-inline: auto; }

.text-gradient {
  background: linear-gradient(120deg, var(--ink-700) 0%, var(--ink) 35%, var(--accent-violet) 65%, var(--accent-sky) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text; color: transparent; background-size: 200% auto;
  animation: gradientFlow 8s ease-in-out infinite;
}
@keyframes gradientFlow { 0%,100%{background-position:0% center;} 50%{background-position:100% center;} }

.section-label {
  position: relative; display: inline-block; font-size: var(--fs-sm); font-weight: 700;
  color: var(--ink-700); padding: var(--space-xs) var(--space-md); margin-bottom: var(--space-md);
  background: transparent; border: 0; box-shadow: none;
}
.section-label--ring { --ring-color: var(--brand); --ring-bleed: 12px; }
.section-label--ring::after {
  content: ""; position: absolute; inset: calc(-1.5 * var(--ring-bleed)) calc(-2 * var(--ring-bleed)); z-index: -1; pointer-events: none;
  background-color: var(--ring-color);
  -webkit-mask: no-repeat center / 100% 100% url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 360 110'%3E%3Cdefs%3E%3Cfilter id='s'%3E%3CfeGaussianBlur stdDeviation='0.6'/%3E%3C/filter%3E%3C/defs%3E%3Cellipse cx='180' cy='55' rx='165' ry='32' fill='none' stroke='white' stroke-width='7.5' filter='url(%23s)'/%3E%3Cpath d='M250 20c40 6 78 20 95 36' fill='none' stroke='white' stroke-width='7.5' stroke-linecap='round' filter='url(%23s)'/%3E%3C/svg%3E");
  mask: no-repeat center / 100% 100% url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 360 110'%3E%3Cdefs%3E%3Cfilter id='s'%3E%3CfeGaussianBlur stdDeviation='0.6'/%3E%3C/filter%3E%3C/defs%3E%3Cellipse cx='180' cy='55' rx='165' ry='32' fill='none' stroke='white' stroke-width='7.5' filter='url(%23s)'/%3E%3Cpath d='M250 20c40 6 78 20 95 36' fill='none' stroke='white' stroke-width='7.5' stroke-linecap='round' filter='url(%23s)'/%3E%3C/svg%3E");
}
.section-label--ring { animation: ringPop 0.45s ease-out both; }
@keyframes ringPop { 0%{transform:scale(0.98);opacity:0;} 100%{transform:scale(1);opacity:1;} }

.badge { font-size: var(--fs-sm); font-weight: 600; padding: var(--space-xs) var(--space-sm); border-radius: var(--radius-full); display: inline-flex; align-items: center; gap: var(--space-xs); }
.badge--primary { background: var(--brand-soft); border: 1px solid var(--brand-border); color: #7a5a00; }
.badge--secondary { background: var(--ink-soft); border: 1px solid var(--ink-border); color: var(--ink-700); }

/* ------------------ Header / Navegación ------------------ */
/* ------------------ Header / Navegación ------------------ */
.site-header{
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  width: 100%;
  background: var(--header-bg);
  -webkit-backdrop-filter: var(--backdrop-blur);
  backdrop-filter: var(--backdrop-blur);
  border-bottom: 1px solid var(--header-border);
  transition: background var(--transition-slow),
              box-shadow var(--transition-slow),
              border-color var(--transition-slow);
  transform: translateZ(0);
}

.site-header.scrolled{
  background: var(--header-bg-scrolled);
  border-bottom-color: var(--header-border-strong);
  box-shadow: 0 10px 24px rgba(33,59,82,0.08);
}


/* wrapper */
.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  min-height: var(--header-height);
  padding: 8px 0;
}

/* Mobile: el menú cuelga exactamente debajo del header */
/* ===== Menú hamburguesa: más aire entre opciones ===== */
@media (max-width: 768px){
  /* Contenedor del menú: más padding interno y espacio entre filas */
  .nav-links{
    /* ya es display: grid; */
    gap: var(--space-sm);                 /* antes: var(--space-xs) */
    row-gap: var(--space-sm);
    padding: calc(var(--space-md) + 4px); /* un poquito más cómodo */
  }

  /* Cada ítem: mayor área táctil y tipografía un toque más grande */
  .nav-link{
    display: block;                       /* asegura área clickeable completa */
    padding: 14px 12px;                   /* antes ~8px 6px */
    min-height: 44px;                     /* pauta accesibilidad */
    line-height: 1.25;
    font-size: var(--fs-md);              /* 18px = lectura cómoda en móvil */
    border-radius: var(--radius-lg);
  }


  /* CTA al final: un poco más protagonista y separado del resto */
  .nav-link--cta{
    margin-top: var(--space-xs);
    padding: 14px 14px;
    font-weight: 500;
  }
}




/* =========================
   HERO (card violeta)
   ========================= */

.hero.hero--flat {
  position: relative; overflow: hidden; background: var(--bg-hero);
  padding: clamp(40px, 6vh, 64px) 0; z-index: 2;
}

.hero--card {
  position: relative;
  /* menos aire arriba SIN aplastar nada */
  padding-top: clamp(14px, 3.6vh, 32px) !important;
  padding-bottom: clamp(22px, 5.4vh, 52px);
  background: var(--bg-hero);
  overflow: hidden;
  z-index: 2;
}

.hero--card .container {
  position: relative;
  z-index: 3;
  /* un poquito más de respiro lateral sin tocar el ancho real */
  padding-inline: clamp(16px, 4.8vw, 28px);
}

.hero--card .hero-bg { position: absolute; inset: 0; z-index: 0; }

/* En el hero, forzá color sólido en lugar de degradado */
.hero.hero--card .text-gradient {
  background: none !important; -webkit-background-clip: initial !important; background-clip: initial !important;
  -webkit-text-fill-color: initial !important; color: var(--brand-600) !important; text-shadow: none;
}

/* Orbes decorativos */
.orb {
  position: absolute; width: 640px; height: 640px; border-radius: 50%;
  filter: blur(26px); opacity: 0.42; pointer-events: none; transform: translate3d(0, 0, 0);
  animation: orbWobble 14s ease-in-out infinite;
}
.orb--violet {
  top: -190px; right: -210px;
  background: radial-gradient(circle at 38% 38%, rgba(255,255,255,0.24) 0%, rgba(109,123,255,0.8) 34%, rgba(109,123,255,0.42) 58%, rgba(109,123,255,0) 78%);
}
.orb--brand {
  bottom: -210px; left: -190px;
  background: radial-gradient(circle at 55% 35%, rgba(255,255,255,0.2) 0%, rgba(253,193,52,0.72) 34%, rgba(253,193,52,0.38) 58%, rgba(253,193,52,0) 80%);
  animation-delay: -5s;
}
@keyframes orbWobble { 0%,100%{transform:translate(0,0) scale(1);} 50%{transform:translate(10px,-12px) scale(1.03);} }

/* Tarjeta principal */
.hero-card {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  /* no la estiro ni la achico; sólo dejo margen visual sano */
  width: min(1100px, 94vw);
  margin: 0 auto;
  padding: clamp(18px, 2.6vw, 28px);
  padding-inline: clamp(16px, 4vw, 28px);
  animation: cardFloat 8s ease-in-out infinite;
  aspect-ratio: auto;
  display: flex;
  overflow-x: clip;
}

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

.hero-card--violet {
  background: linear-gradient(90deg, var(--ink-700) 0%, var(--ink) 38%, var(--accent-violet) 100%) !important;
  background-size: 100% 100% !important; background-position: 0 0 !important;
  animation: none !important; will-change: auto;
}

/* Suavizado de ruido sutil */
.hero-card--violet::after { content: none !important; }

/* Glow superior */
.hero-card__glow {
  filter: blur(12px); opacity: 0.16;
  -webkit-mask-image: linear-gradient(to top, transparent 0%, black 45%, black 100%);
  mask-image: linear-gradient(to top, transparent 0%, black 45%, black 100%);
}
.hero-card__glow--violet {
  background: radial-gradient(60% 80% at 50% 0%, rgba(109,123,255,0.3), transparent 70%);
}

/* Layout interno (2 columnas → 1) */
.hero-card__grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(var(--space-lg), 3.4vw, var(--space-2xl));
  align-items: center; width: 100%;
}

/* Label superior */
.section-label--dark {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 6px 14px; min-width: 200px; border-radius: var(--radius-full);
  background: rgba(255,255,255,0.12); color: #fff; border: 1px solid rgba(255,255,255,0.24);
  box-shadow: 0 1px 0 rgba(255,255,255,0.06) inset; margin-bottom: var(--space-sm);
}

/* ===== Tipografía del hero ===== */
.hero-title--light { color: #fff; text-shadow: 0 2px 18px rgba(0,0,0,0.25); }

/* H1: tamaño fluido con prioridad */
.hero.hero--card .hero-title {
  font-size: clamp(34px, 4.2vw + 8px, 82px);
  line-height: 1.06; letter-spacing: -0.02em; font-weight: 900; margin: 6px 0 10px;
}
/* Doble especificidad */
.hero.hero--card .hero-card .hero-title.hero-title--light { font-size: clamp(34px, 4.2vw + 8px, 82px); }

/* Subtítulo */
.hero.hero--card .hero-description--light {
  font-size: clamp(15px, 1.1vw, 18px);
  line-height: 1.65; max-width: 60ch; margin-top: 8px; color: rgba(255,255,255,0.86);
}

/* Chips de puntos clave */
.hero-points {
  display: flex; flex-wrap: nowrap; gap: 10px; margin: 0 0 var(--space-lg);
  padding: 0; list-style: none; overflow-x: auto; white-space: nowrap;
  -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.hero-points::-webkit-scrollbar { display: none; }
.hero-points li {
  padding: 6px 12px; border-radius: 999px; font-weight: 600;
  font-size: clamp(11px, 0.85vw, 13px); color: #0f1b28; background: var(--brand);
  border: 1px solid rgba(255,255,255,0); flex: 0 0 auto; text-align: center;
}

/* Botones de acción */
.hero-actions { display: flex; gap: var(--space-sm); margin: clamp(24px, 2.2vw, 40px) 0 var(--space-2xl); }
.hero-actions .btn { box-shadow: none; }
.hero-actions .btn.btn--large { padding: 12px 16px; font-size: clamp(14px, 1vw, 15.5px); }
.hero-actions .btn--primary { background: #fff; color: var(--ink-700); border: 2px solid var(--ink-700); }
.hero-actions .btn--primary:hover { background: var(--accent-violet); color: #fff; transform: translateY(-1px); }
.hero-actions .btn--accent { background: var(--accent-violet); color: #fff; border: 1px solid var(--accent-violet); }
.hero-actions .btn--accent:hover { background: #fff; color: var(--ink); border: 2px solid var(--ink); transform: translateY(-1px); }

/* Confianza/leyenda */
.trust-bar { margin-top: 6px; color: rgba(255,255,255,0.88); font-size: var(--fs-xs); letter-spacing: 0.01em; }

/* Columna derecha (panel info) */
.hero-card__right { display: grid; place-items: center; }
.info-panel {
  width: min(420px, 92%); border-radius: 16px;
  background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.06)) padding-box,
              linear-gradient(135deg, var(--ink-700) 0%, var(--accent-violet) 100%) border-box;
  border: 3px solid rgba(255,255,255,0.18); box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
  padding: 14px; border-radius: 14px; color: #fff;
}
.info-panel:hover {
  border-color: color-mix(in srgb, var(--accent-violet) 50%, rgba(255,255,255,0.2));
  box-shadow: 0 16px 44px color-mix(in srgb, var(--accent-violet) 24%, transparent), inset 0 1px 0 rgba(255,255,255,0.12);
}

/* Stats */
.stat {
  display: flex; align-items: baseline; gap: 10px; padding: 8px 10px; border-radius: 12px;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12);
  margin-bottom: 8px; cursor: pointer; transition: all 0.4s cubic-bezier(0.4,0,0.2,1);
  position: relative; overflow: hidden;
}
.stat::before { content: ""; position: absolute; inset: 0; background: linear-gradient(135deg, var(--color-brand), var(--color-accent)); opacity: 0; transition: opacity 0.4s ease; z-index: 0; }
.stat__value { position: relative; z-index: 1; }
.stat:hover { transform: translateY(-2px); border-color: rgba(255,255,255,0.3); box-shadow: 0 8px 20px rgba(0,0,0,0.2); }
.stat.is-active { background: rgba(255,255,255,0.12); border-color: var(--color-brand); transform: scale(1.05); box-shadow: 0 8px 24px rgba(var(--rgb-brand),0.3); }
.stat.is-active::before { opacity: 0.1; }
.stat.is-active .stat__value { color: var(--); text-shadow: 0 0 20px rgba(var(--rgb-brand), 0.5); }
.stat__value { font-weight: 900; font-size: clamp(1.2rem, 1rem + 1vw, 1.6rem); line-height: 1; letter-spacing: -0.02em; color: #fff; transition: all 0.4s ease; }
.stat__label { font-weight: 600; font-size: var(--fs-xs); color: rgba(255,255,255,0.85); }

/* Bullets dinámicos */
.mini-bullets { list-style: none; margin: 8px 0 10px; padding: 0; display: grid; gap: 6px; transition: opacity 0.3s ease, transform 0.3s ease; opacity: 1; transform: translateY(0); }
.mini-bullets li { display: flex; align-items: center; gap: 8px; color: rgba(255,255,255,0.9); font-weight: 600; font-size: var(--fs-sm); transition: all 0.2s ease; }
.mini-bullets li:hover { color: var(--color-brand); transform: translateX(4px); }
.mini-bullets svg { width: 16px; height: 16px; stroke: rgba(255,255,255,0.9); transition: stroke 0.2s ease; }
.mini-bullets li:hover svg { stroke: var(--color-brand); }

/* Cinta inferior */
.ribbon {
  margin-top: 8px; display: inline-flex; align-items: center; gap: 8px; padding: 6px 10px;
  border-radius: 999px; background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.18);
  font-weight: 700; font-size: var(--fs-xs); color: #fff;
}
.ribbon .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); }

/* Orden de bloques base */
.hero-card__left { display: flex; flex-direction: column; }
.hero-card__left > .hero-actions { order: 2; }
.hero-card__left > .hero-points  { order: 3; }

/* =========================
   BREAKPOINTS
   ========================= */
@media (max-width: 1120px) {
  .hero-card { aspect-ratio: auto; }
}
@media (max-width: 900px){

  /* La grid sigue de 1 columna */
  .hero-card__grid{
    grid-template-columns: 1fr !important;
    /* Orden deseado con áreas */
    grid-template-areas:
      "title"
      "desc"
      "panel"
      "actions"
      "chips" !important;
  }

  /* Truco: aplanamos la columna izquierda para que sus hijos sean ítems de la grid */
  .hero-card__left{ display: contents !important; }

  /* Mapear clases existentes a las áreas (cubro variantes light) */
  .hero-card__grid :is(.hero-title, .hero-title--light){ grid-area: title !important; }
  .hero-card__grid :is(.hero-description, .hero-description--light){ grid-area: desc !important; margin-bottom: 10px; }
  .hero-card__right{ grid-area: panel !important; }      /* Panel entre desc y botones */
  .hero-actions{ grid-area: actions !important; }
  .hero-points{ grid-area: chips !important; }
}

/* ===== FIX 3: chips naranjas que bajan de línea sin agrandarse ===== */
@media (max-width: 720px){
  .hero-points{
    flex-wrap: wrap !important;
    white-space: normal !important;
    overflow-x: visible !important;
    row-gap: 8px;
  }
  .hero-points li{
    flex: 0 0 auto !important;   /* NO se estiran */
    min-width: unset !important;  /* NO fijamos ancho mínimo */
  }
}

@media (max-width: 560px) {
  .hero-card__left, .hero-card__right { max-width: min(500px, 87vw); }

  .hero-actions { width: 100%; }
  .info-panel { width: 100%; max-width: 100%; }
  .hero-description { width: 100%; }
  .hero-points { width: 100%; max-width: 100%; }
  .hero.hero--card .hero-title { width: 100%; max-width: 100%; }

  .hero-actions { flex-direction: column; align-items: stretch; margin-top: clamp(18px, 4vw, 28px); }
  .info-panel { width: 92%; }

  .hero.hero--card .hero-title { font-size: clamp(28px, 8.2vw, 36px); }


  .hero--card { padding-top: clamp(18px, 4.5vh, 28px); padding-bottom: clamp(22px, 5vh, 32px); }
  .hero-card { width: min(1040px, 92vw); padding-inline: clamp(14px, 4vw, 22px); }

  .stat { padding: 5px 7px; }
  .stat__value { font-size: 13px; font-weight: 700; }
  .mini-bullets { gap: 3px; margin: 6px 0 8px; }
  .mini-bullets li { font-size: 12px; font-weight: 500; }
}

@media (max-width: 480px) {
  .hero-points li { min-width: 100%; }
}

/* =========================================================
   #NOSOTROS — Tabs en columna en mobile + más aire lateral
   ========================================================= */

/* Encabezado */
#nosotros .section-header .section-title {
  margin-bottom: 10px;
  letter-spacing: -0.2px;
}
#nosotros .section-header .section-description {
  max-width: 780px;
  margin: 0 auto;
  line-height: 1.75;
  color: var(--muted, #5f7081);
  font-size: clamp(15.5px, 1.7vw, 17px);
}

/* Layout base desktop */
#nosotros .methodology-wrapper {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: var(--space-lg, 24px);
  margin-top: var(--space-xl, 40px);
}

/* Tabs */
#nosotros .method-tabs {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
#nosotros .method-tab {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: var(--surface, #fff);
  border: 1px solid var(--ink-border, rgba(33,59,82,.08));
  border-radius: 12px;
  color: var(--ink, #213b52);
  font-weight: 600;
  cursor: pointer;
  transition: border-color .2s, box-shadow .2s, transform .08s;
}
#nosotros .method-tab .tab-step {
  width: 28px; height: 28px; border-radius: 8px;
  display: grid; place-items: center;
  font-weight: 800; font-size: 13px;
  background: var(--brand-soft, rgba(253,193,52,.18));
  color: var(--ink, #213b52);
  border: 1px solid var(--brand-border, rgba(253,193,52,.26));
}
#nosotros .method-tab:is(:hover, :focus-visible) {
  border-color: var(--brand, #fdc134);
  box-shadow: 0 0 0 3px var(--ring, rgba(253,193,52,.35));
}
#nosotros .method-tab.is-active {
  border-color: var(--brand, #fdc134);
  box-shadow: 0 6px 18px rgba(33,59,82,.08), 0 0 0 3px var(--ring, rgba(253,193,52,.35));
  transform: translateY(-1px);
}

/* Icono */
#nosotros .method-tabs .tab-icon {
  display: inline-grid; place-items: center;
  width: 34px; height: 34px; border-radius: 10px;
  background: color-mix(in srgb, var(--accent-violet) 14%, #fff);
  border: 1px solid color-mix(in srgb, var(--accent-violet) 28%, transparent);
  color: var(--accent-violet);
  transition: background .2s, border-color .2s, box-shadow .2s;
}
#nosotros .method-tabs .tab-icon svg { width: 18px; height: 18px; stroke: currentColor; fill: none; }
#nosotros .method-tabs .method-tab:hover .tab-icon,
#nosotros .method-tabs .method-tab.is-active .tab-icon {
  background: color-mix(in srgb, var(--accent-violet) 22%, #fff);
  border-color: color-mix(in srgb, var(--accent-violet) 36%, transparent);
  box-shadow: 0 6px 18px rgba(109,123,255,.18);
}

/* Panels */
#nosotros .method-panels {
  position: relative;
  background: var(--surface, #fff);
  border: 1px solid var(--ink-border, rgba(33,59,82,.08));
  border-radius: 16px;
  padding: 20px;
  box-shadow: var(--shadow-1, 0 2px 10px rgba(33,59,82,.08));
  min-height: 240px;
}
#nosotros .method-panel { display: none; animation: fadeIn .18s ease; }
#nosotros .method-panel.is-active { display: block; }
@keyframes fadeIn { from {opacity:.7; transform: translateY(4px);} to {opacity:1; transform:none;} }

#nosotros .panel-title { margin:0 0 6px; font-size: clamp(18px,2vw,22px); color:var(--ink,#213b52); font-weight:800; }
#nosotros .panel-lead { margin:0 0 12px; color:var(--muted,#5f7081); line-height:1.5; }
#nosotros .panel-list { margin:0; padding:0; list-style:none; display:grid; gap:8px; }
#nosotros .panel-list li {
  position:relative; padding-left:24px; line-height:1.5; color:var(--ink-700,#1a3045);
}
#nosotros .panel-list li::before {
  content:""; position:absolute; left:0; top:.55em; width:10px; height:10px; border-radius:3px;
  background: linear-gradient(135deg, var(--brand,#fdc134), var(--brand-600,#e5ae2e));
  box-shadow: 0 0 0 2px rgba(253,193,52,.22);
}
#nosotros .panel-foot { margin-top:1rem; font-weight:600; color:var(--brand,#fdc134); }

/* Progreso */
#nosotros .method-foot { margin-top: 18px; }
#nosotros .method-foot .progress-line {
  position:relative; height:2px; background: var(--ink-border, rgba(33,59,82,.12)); border-radius:2px;
}
#nosotros .method-foot .progress-dot {
  position:absolute; top:50%; left:0%;
  width:12px; height:12px; border-radius:999px; background:var(--brand,#fdc134);
  box-shadow:0 4px 16px rgba(253,193,52,.35);
  transform:translate(-50%,-50%); transition:left .35s ease, transform .2s ease;
}

/* ===== Responsive #nosotros ===== */

/* Más aire lateral en móviles */
@media (max-width: 768px) {
  #nosotros .container { padding-left: var(--space-md); padding-right: var(--space-md); }
}

/* En mobile: columnas -> 1, tabs en COLUMNA (uno debajo de otro, full width) */
@media (max-width: 720px) {
  #nosotros .section-header .section-description { line-height: 1.7; padding: 0 8px; }

  #nosotros .methodology-wrapper { grid-template-columns: 1fr; gap: var(--space-md); }

  /* 👉 Tabs en columna (sin scroll horizontal) */
  #nosotros .method-tabs {
    flex-direction: column;
    overflow: visible;
    padding: 0;
    margin: 0;
  }
  #nosotros .method-tab {
    width: 100%;
    min-width: 0;
    padding: 12px 14px;
    font-size: 14px;
  }
  #nosotros .method-tab span:not(.tab-icon):not(.tab-step) { font-size: 14px; white-space: normal; }

  #nosotros .method-tabs .tab-icon { width: 36px; height: 36px; }
  #nosotros .method-tabs .tab-icon svg { width: 18px; height: 18px; }
}

@media (max-width: 480px) {
  #nosotros .method-tab { padding: 10px 12px; }
  #nosotros .method-tab span:not(.tab-icon):not(.tab-step) { font-size: 13px; }
  #nosotros .method-tabs .tab-icon { width: 32px; height: 32px; }
  #nosotros .method-tabs .tab-icon svg { width: 16px; height: 16px; }

  #nosotros .method-panels { padding: var(--space-md); }
  #nosotros .panel-title { font-size: 18px; margin-bottom: 8px; }
  #nosotros .panel-lead { font-size: 14px; line-height: 1.6; margin-bottom: 12px; }
  #nosotros .panel-list { font-size: 14px; line-height: 1.6; }
  #nosotros .panel-list li { padding-left: 20px; }
  #nosotros .panel-list li::before { width: 8px; height: 8px; top: 0.6em; }
}


/* =========================================================
   #SERVICIOS — Gutters y grid que no se pegue a los bordes
   ========================================================= */

/* Fondo y mesh */
.services-section {
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg-section) 70%, var(--surface) 100%);
  position: relative;
}
.services-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.services-section .gradient-mesh {
  position: absolute; inset: -20% -10% -30% -10%;
  background:
    radial-gradient(600px 400px at 10% 0%, rgba(154,210,255,.25), transparent 60%),
    radial-gradient(800px 500px at 100% 30%, rgba(26,166,160,.16), transparent 65%),
    radial-gradient(900px 450px at 50% 100%, rgba(253,193,52,.12), transparent 65%);
  filter: blur(18px);
  opacity: .5;
}

/* Más aire lateral en móviles */
@media (max-width: 768px) {
  #servicios .container { padding-left: var(--space-md); padding-right: var(--space-md); }
}

/* Grid 1→2→3 con gaps cómodos */
.services-grid {
  margin-top: var(--space-lg);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: calc(var(--space-md) + 2px);
}
@media (max-width: 1000px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .services-grid { grid-template-columns: 1fr; gap: var(--space-md); }
}

/* Card */
.service-card {
  background: var(--surface);
  border: 1px solid var(--ink-border);
  border-radius: var(--radius-xl);
  padding: var(--space-md);
  display: flex; flex-direction: column; gap: var(--space-md);
  box-shadow: var(--shadow-md);
  transition: all var(--transition-base);
  position: relative; overflow: hidden;
  height: 100%; min-height: 320px;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-xl); border-color: var(--brand-border); }
/* Top bar */
.service-card::before {
  content:""; position:absolute; left:0; right:0; top:0; height:4px;
  background: var(--brand); transform: scaleX(0); transform-origin:left; transition: transform var(--transition-slow);
}
.service-card:hover::before { transform: scaleX(1); }

/* Destacada */
.service-card--highlight {
  border: 1.5px solid var(--brand);
  box-shadow: 0 12px 28px rgba(253,193,52,.22), inset 0 0 0 1px rgba(253,193,52,.25);
}
.service-card--highlight::before { height: 6px; background: linear-gradient(90deg, var(--brand), var(--brand-600)); transform: scaleX(1); }
.service-card--highlight .service-icon { background: var(--brand-soft); border-color: var(--brand-border); }

/* Header / icon / badge */
.service-header { display:flex; align-items:center; justify-content:space-between; margin-bottom: var(--space-sm); position:relative; }
.service-icon {
  width:44px; height:44px; border-radius: var(--radius-md);
  display:grid; place-items:center; background: var(--ink-soft); border:1px solid var(--ink-border);
  transition: all var(--transition-base);
}
.service-card:hover .service-icon { background: var(--brand-soft); border-color: var(--brand-border); transform: scale(1.05); }
.service-badge {
  position:absolute; right:0; top:0; transform: translateY(-10%);
  font-size: var(--fs-xs); background: var(--brand-soft); color:#7a5a00;
  padding:6px 10px; border-radius: var(--radius-full); border:1px solid var(--brand-border); font-weight:700;
}

/* Textos */
.service-title { font-size: var(--fs-lg); line-height:1.25; letter-spacing:.1px; margin:.1rem 0 .2rem; color: var(--ink); }
.service-description { font-size: var(--fs-sm); color: var(--muted); margin:0 0 .35rem; line-height:1.6; }
.service-features { margin:0; padding-left: var(--space-md); color: var(--ink-700); display:grid; gap:6px; list-style:none; }
.service-features li { position:relative; padding-left:18px; font-size: var(--fs-sm); }
.service-features li::before { content:"✓"; position:absolute; left:0; top:.2rem; color: var(--brand-600); font-weight:600; font-size:11px; }

/* CTAs */
.service-cta {
  margin-top:auto; display:inline-flex; gap: var(--space-xs); align-items:center;
  color: var(--ink-700); font-size: var(--fs-sm); font-weight:600; padding: var(--space-sm) 0;
  border-radius: var(--radius-md); transition: all var(--transition-base); text-decoration:none;
}
.service-cta:hover { color: var(--ink); transform: translateX(4px); }

/* CTA inline solo dentro de servicios */
.services-section .service-cta--inline {
  position:relative; display:inline-flex; align-items:center; gap:8px; padding:2px 0;
  background:transparent; color: var(--accent-violet); text-decoration:none; width:auto; max-width:max-content;
}
.services-section .service-cta--inline svg { width:16px; height:16px; stroke: currentColor; transition: transform var(--transition-base); }
.services-section .service-cta--inline:hover svg { transform: translateX(2px); }
.services-section .service-cta--inline::after {
  content:""; position:absolute; left:0; bottom:0; height:2px; width:100%;
  background: currentColor; transform: scaleX(0); transform-origin:left; transition: transform .28s ease;
}
.services-section .service-cta--inline:hover { transform: translateY(-1px); }
.services-section .service-cta--inline:hover::after { transform: scaleX(1); }
.services-section .service-cta--inline:focus-visible { outline:2px solid currentColor; outline-offset:2px; }
.services-section .service-cta--inline:focus-visible::after { transform: scaleX(1); }

/* Strip de techs/clientes */
.clients-strip {
  margin-top: var(--space-2xl);
  border-radius: var(--radius-xl);
  padding: 18px 0;
  background: linear-gradient(90deg, var(--ink-700) 0%, var(--ink) 45%, var(--accent-violet) 100%);
  box-shadow: 0 14px 36px rgba(109,123,255,.28), 0 4px 12px rgba(0,0,0,.08);
  position: relative; overflow: hidden;
}
.clients-viewport {
  mask-image: linear-gradient(to right, transparent 0, #000 8%, #000 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 8%, #000 92%, transparent 100%);
  overflow: hidden;
}
.clients-track { display:inline-flex; align-items:center; gap: clamp(24px, 5vw, 56px); padding: 0 28px; white-space: nowrap; will-change: transform; }
.clients-track li { list-style:none; display:inline-flex; align-items:center; justify-content:center; opacity:.9; transition: opacity .2s, transform .2s, filter .2s; filter: grayscale(1) brightness(1.15); }
.clients-track img { height:32px; width:auto; display:block; }
.clients-strip:hover .clients-track li:hover { opacity:1; filter:grayscale(0) brightness(1); transform: translateY(-1px); }
.clients-strip::after { content:""; position:absolute; inset:0; border-radius:inherit; border:1px solid rgba(255,255,255,.12); pointer-events:none; }

/* Píldoras de texto */
.clients-track .logo-pill {
  display:inline-block; padding:8px 14px;
  border:1px solid rgba(255,255,255,.22); background: rgba(255,255,255,.06); color:#fff;
  font-weight:700; font-size: clamp(12px, .9vw, 14px); line-height:1; border-radius:999px;
  box-shadow: 0 4px 12px rgba(0,0,0,.15) inset; white-space:nowrap; backdrop-filter: blur(2px);
  transition: transform .18s, box-shadow .18s, background .18s, border-color .18s, color .18s;
}
.clients-strip:hover .clients-track li:hover .logo-pill {
  transform: translateY(-1px); background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.35); box-shadow: 0 6px 18px rgba(0,0,0,.22);
}
.clients-track .logo-pill:focus-visible { outline:2px solid #fff; outline-offset:2px; }
.clients-track img { height:28px; } /* conviven con píldoras */
.clients-track li { min-height:32px; }

@media (prefers-reduced-motion: reduce) { .clients-track { transform: none !important; } }

/* =========================================================
   SECTION: METODOLOGÍA (TIMELINE)
   ========================================================= */

.methodology-compact { --ring: var(--ring, rgba(253, 193, 52, 0.35)); }

/* Header */
#metodologia .section-header .section-title { margin-bottom: 10px; letter-spacing: -0.2px; }
#metodologia .section-header .section-description {
  max-width: 760px; margin: 0 auto; line-height: 1.6; color: var(--muted, #5f7081);
}

/* Timeline container + center line */
#metodologia .timeline {
  max-width: 980px; margin: 0 auto; position: relative; display: grid; gap: 3rem;
}
#metodologia .timeline-line {
  position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; transform: translateX(-50%);
  background: linear-gradient(180deg, var(--brand, #fdc134) 0%, var(--accent-violet, #6d7bff) 50%, var(--brand, #fdc134) 100%);
  opacity: .35; display: none; z-index: 0;
}

/* Items */
#metodologia .timeline-item {
  display: grid; grid-template-columns: 1fr 56px 1fr; gap: 1rem; align-items: center; position: relative; z-index: 1;
}
#metodologia .timeline-col { padding: 0 1rem; }
#metodologia .timeline-col--left { text-align: right; }
#metodologia .timeline-col--right { text-align: left; }

/* Titles + leads */
#metodologia .timeline-title {
  margin: 0 0 .35rem; font-size: 1.1rem; font-weight: 700; color: var(--ink, #213b52);
}
#metodologia .timeline-lead {
  margin: 0 0 .6rem; color: var(--muted, #5f7081); font-size: .9rem; line-height: 1.55;
}

/* Badges */
#metodologia .timeline-badge {
  display: inline-block; padding: .28rem .75rem; border-radius: 999px; font-size: .78rem; font-weight: 700;
  color: var(--brand, #fdc134);
  background: color-mix(in srgb, var(--brand, #fdc134) 14%, #fff);
  border: 1px solid color-mix(in srgb, var(--brand, #fdc134) 28%, transparent);
}
#metodologia .timeline-badge--violet {
  color: var(--accent-violet, #6d7bff);
  background: color-mix(in srgb, var(--accent-violet, #6d7bff) 12%, #fff);
  border-color: color-mix(in srgb, var(--accent-violet, #6d7bff) 28%, transparent);
}

/* Node (círculo con ícono) */
#metodologia .timeline-node {
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  box-shadow: 0 8px 24px rgba(33, 59, 82, 0.08); border: 2px solid rgba(0,0,0,.04);
}
#metodologia .timeline-node svg { width: 24px; height: 24px; stroke: #fff; }
#metodologia .timeline-node--brand  { background: var(--brand, #fdc134); box-shadow: 0 8px 24px rgba(253,193,52,.28); }
#metodologia .timeline-node--violet { background: var(--accent-violet, #6d7bff); box-shadow: 0 8px 24px rgba(109,123,255,.28); }

/* Listas con tilde */
#metodologia .timeline-list {
  --check-size: 18px; --check-gap: .6rem; --check-color: var(--brand, #fdc134);
  list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; color: var(--ink, #213b52);
  font-size: .9rem; align-content: start; line-height: 1.6;
}
#metodologia .timeline-list--right { justify-items: end; text-align: right; }
#metodologia .timeline-list--brand  { --check-color: var(--brand, #fdc134); }
#metodologia .timeline-list--violet { --check-color: var(--accent-violet, #6d7bff); }
#metodologia .timeline-list li {
  display: inline-grid; grid-auto-flow: column; grid-auto-columns: max-content; justify-content: start;
  align-items: center; gap: var(--check-gap); line-height: 1.6; margin: 0; padding: 0;
}
#metodologia .timeline-list li::before {
  content: ""; width: var(--check-size); height: var(--check-size); flex: 0 0 var(--check-size);
  background: var(--check-color);
  -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="black" d="M9 16.2L4.8 12l-1.4 1.4L9 19 20.6 7.4 19.2 6z"/></svg>') center/contain no-repeat;
          mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="black" d="M9 16.2L4.8 12l-1.4 1.4L9 19 20.6 7.4 19.2 6z"/></svg>') center/contain no-repeat;
}

/* Desktop: línea central visible */
@media (min-width: 980px) { #metodologia .timeline-line { display: block; } }

/* ================= MOBILE FIX (≤979px) ================= */
/* Orden uniforme: NODO → TEXTO → LISTA para todos los pasos */
@media (max-width: 979px) {
  #metodologia .timeline-item {
    display: flex; flex-direction: column; align-items: stretch; gap: .5rem;
  }
  /* reset de alineaciones y respiración lateral */
  #metodologia .timeline-col--left,
  #metodologia .timeline-col--right { text-align: left; padding: 0; }
  #metodologia .timeline-list--right { justify-items: start; text-align: left; }

  /* IMPARES (1,3,5…): nodo → (col con título/desc/badge) → (col con lista) */
  #metodologia .timeline > .timeline-item:nth-of-type(odd)  > .timeline-node        { order: 1; margin: 6px 0 8px; align-self: flex-start; }
  #metodologia .timeline > .timeline-item:nth-of-type(odd)  > .timeline-col--left   { order: 2; }
  #metodologia .timeline > .timeline-item:nth-of-type(odd)  > .timeline-col--right  { order: 3; }

  /* PARES (2,4,6…): nodo → (col con título/desc/badge) → (col con lista) */
  #metodologia .timeline > .timeline-item:nth-of-type(even) > .timeline-node        { order: 1; margin: 6px 0 8px; align-self: flex-start; }
  #metodologia .timeline > .timeline-item:nth-of-type(even) > .timeline-col--right  { order: 2; }
  #metodologia .timeline > .timeline-item:nth-of-type(even) > .timeline-col--left   { order: 3; }

  /* Tipos un poco más compactos en mobile */
  #metodologia .timeline-title { font-size: 1.08rem; }
}

/* CTA (tu estilo) */
.methodology-cta {
  margin-top: var(--space-2xl); text-align: center; padding: var(--space-xl); border-radius: var(--radius-xl);
  background: linear-gradient(90deg, var(--ink-700) 0%, var(--ink) 45%, var(--accent-violet) 100%);
  border: none; color: #fff; box-shadow: 0 14px 36px rgba(109, 123, 255, 0.28), 0 4px 12px rgba(0, 0, 0, 0.08);
}
.methodology-cta p { margin: 0 0 var(--space-md); font-size: var(--fs-lg); font-weight: 600; color: #fff; }
.methodology-cta .btn { background: #fff; color: var(--ink); border: 1px solid rgba(255, 255, 255, 0.6); box-shadow: 0 6px 16px rgba(0,0,0,.12); }
.methodology-cta .btn:hover { background: transparent; color: #fff; border-color: rgba(255,255,255,.85); }
.methodology-cta .btn .btn-icon { stroke: currentColor; }

/* Motion reduce */
@media (prefers-reduced-motion: reduce) { #metodologia .timeline * { transition: none !important; } }


/* ------------------ Sección FAQs ------------------ */
.faqs-section {
  background: linear-gradient(
    180deg,
    var(--surface) 0%,
    var(--bg-section) 100%
  );
}

.faqs-container {
  max-width: 800px;
  margin: var(--space-2xl) auto 0;
  display: grid;
  gap: var(--space-sm);
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--ink-border);
  border-radius: var(--radius-lg);
  border-color: var(--ink-border);
  overflow: hidden;
  transition: all var(--transition-base);
}

.faq-item:hover {
  border-color: var(--brand-border);
  box-shadow: var(--shadow-md);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-lg);
  background: transparent;
  border: none;
  text-align: left;
  font-weight: 600;
  font-size: var(--fs-base);
  color: var(--ink);
  cursor: pointer;
  transition: all var(--transition-base);
}

.faq-question:hover {
  color: var(--ink-700);
}

.faq-item.active .faq-question {
  color: var(--ink);
  padding-bottom: var(--space-sm);
}

.faq-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  transition: transform var(--transition-base);
  color: var(--brand-600);
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

.faq-question .faq-icon {
  width: 22px;
  height: 22px;
  padding: 6px;
  border-radius: 999px;
  background: var(--brand);
  color: #1a1a1a;
  box-shadow: 0 2px 8px rgba(253, 193, 52, 0.25);
  transition: background 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
  flex-shrink: 0;
  margin-left: var(--space-sm);
}

.faq-item .faq-question[aria-expanded="true"] .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item.active .faq-answer {
  max-height: 300px;
}

.faq-answer p {
  padding: 0 var(--space-lg) var(--space-md);
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
  font-size: var(--fs-sm);
}

.faqs-cta {
  margin-top: var(--space-2xl);
  text-align: center;
  padding: var(--space-xl);
  border-radius: var(--radius-xl);
  background: linear-gradient(
    90deg,
    var(--ink-700) 0%,
    var(--ink) 45%,
    var(--accent-violet) 100%
  );
  border: none;
  color: #fff;
  box-shadow: 0 14px 36px rgba(109, 123, 255, 0.28),
    0 4px 12px rgba(0, 0, 0, 0.08);
}

.faqs-cta p {
  margin: 0 0 var(--space-md);
  font-size: var(--fs-lg);
  font-weight: 600;
  color: #fff;
}

.faqs-cta .btn {
  background: #fff;
  color: var(--ink);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.faqs-cta .btn:hover {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.85);
}

.faqs-cta .btn .btn-icon {
  stroke: currentColor;
}

.faqs-cta::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.18),
    transparent 35%
  );
  pointer-events: none;
}

.faqs-section.faqs-hidden {
  max-height: 0;
  overflow: hidden;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  margin-top: 0;
  opacity: 0;
  visibility: hidden;
  transition: max-height 0.35s ease, opacity 0.35s ease, visibility 0.35s ease,
    padding 0.35s ease;
}

.faqs-section.faqs-visible {
  max-height: 1500px; /* suficiente para tu contenido */
  opacity: 1;
  visibility: visible;
  padding: var(--space-xl) 0; /* mismo padding que la sección normal */
  transition: max-height 0.35s ease, opacity 0.35s ease, visibility 0.35s ease,
    padding 0.35s ease;
}

.faq-item.active .faq-answer {
  max-height: 420px;
}

@media (max-width: 640px) {
  .faqs-container { 
    margin: var(--space-xl) auto 0; 
    padding-inline: var(--space-sm);
    gap: var(--space-xs);
  }
  .faq-question { 
    padding: var(--space-sm) var(--space-md); 
    gap: var(--space-sm);
  }
  .faq-question .faq-icon { 
    width: 20px; height: 20px; padding: 5px; 
  }
  .faq-answer p { 
    padding: 0 var(--space-md) var(--space-sm); 
    font-size: var(--fs-sm); 
    line-height: 1.65;
  }
}

/* ------------------ Sección Contacto ------------------ */

.contact-section {
  position: relative;
  background: linear-gradient(
    180deg,
    var(--surface) 0%,
    var(--surface-soft) 60%,
    var(--surface) 100%
  );
  overflow: hidden;
}

/* Aire lateral base para que no se corte el chip/ring */
.contact-section .container {
  padding-left: clamp(16px, 4vw, 24px);
  padding-right: clamp(16px, 4vw, 24px);
}

.contact-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}
.gradient-orb--contact-1 {
  position: absolute;
  top: -120px;
  left: -120px;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  filter: var(--blur);
  opacity: 0.35;
  background: radial-gradient(
    circle at 35% 35%,
    var(--surface) 0%,
    rgba(156, 193, 255, 0.55) 40%,
    transparent 70%
  );
}
.gradient-orb--contact-2 {
  position: absolute;
  bottom: -140px;
  right: -160px;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  filter: var(--blur);
  opacity: 0.35;
  background: radial-gradient(
    circle at 60% 30%,
    var(--surface) 0%,
    rgba(253, 193, 52, 0.35) 40%,
    transparent 70%
  );
}

/* Layout base (desktop) */
.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  align-items: start;
}

.contact-info .section-title {
  margin-top: 0.25rem;
}

.contact-info .section-description {
  margin-top: 0.25rem;
  margin-bottom: var(--space-lg);
}

.contact-methods {
  margin-top: var(--space-2xl);
  row-gap: var(--space-md);
}

/* Tarjeta Calendly + métodos de contacto */
.contact-section .contact-methods .cal-card {
  position: relative;
  display: grid;
  gap: 0.9rem;
  padding: 16px 18px;
  border-radius: 16px;
  max-width: 360px;
  overflow: hidden;
  background: none !important;
  background-image: linear-gradient(
    90deg,
    var(--ink-700, #1a3045) 0%,
    var(--ink, #213b52) 45%,
    var(--accent-violet, #6d7bff) 100%
  ) !important;
  border: none !important;
  color: #fff !important;
  box-shadow: 0 16px 40px rgba(33, 59, 82, 0.22);
  isolation: isolate;
}
.contact-section .contact-methods .cal-card .cal-card__head h3 {
  margin: 0.25rem 0 0.1rem;
  font-size: 1rem;
  line-height: 1.5;
  color: #fff;
  padding-top: 8px;
}
.contact-section .contact-methods .cal-card .cal-card__head p {
  margin: 0;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.88);
  padding-top: 2px;
}
.contact-section .contact-methods .cal-card .cal-chip {
  --violeta: var(--accent-violet, #6d7bff);
  --violeta-2: #a58cf5;
  display: inline-block;
  font-size: 0.75rem;
  padding: 0.28rem 0.62rem;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(
    90deg,
    color-mix(in srgb, var(--violeta) 72%, #ffffff 28%),
    color-mix(in srgb, var(--violeta-2) 68%, #ffffff 32%)
  );
  border: 1px solid color-mix(in srgb, var(--violeta) 50%, #ffffff 50%);
  box-shadow: 0 6px 18px rgba(109, 123, 255, 0.35),
    0 0 0 1px color-mix(in srgb, var(--violeta) 20%, transparent);
  backdrop-filter: none;
}
.contact-section .contact-methods .cal-card .btn--calendly {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.7rem 1rem;
  border-radius: 12px;
  background: #fff !important;
  color: var(--ink-700, #1a3045) !important;
  border: 1px solid rgba(255, 255, 255, 0.65);
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.18);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease,
    color 0.15s ease;
}
.contact-section .contact-methods .cal-card .btn--calendly .btn-icon {
  width: 18px;
  height: 18px;
}
.contact-section .contact-methods .cal-card .btn--calendly:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.24);
}
.contact-section .contact-methods .cal-card .btn--calendly:focus {
  outline: none;
  box-shadow: 0 0 0 3px
    color-mix(in srgb, var(--accent-violet, #6d7bff) 45%, #ffffff 0%);
}
.contact-section .contact-methods .cal-card .cal-note {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.8rem;
}

.contact-method {
  display: grid;
  grid-template-columns: 40px 1fr;
  align-items: center;
  column-gap: 14px;
  padding-left: 10px;
  padding-top: 30px;
  margin-top: 10px;
  background: transparent;
  border: 0;
  box-shadow: none;
  transition: transform var(--transition-base);
}
.contact-method:hover {
  transform: translateY(-1px);
}
.method-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  display: grid;
  place-items: center;
  background: var(--ink-soft);
  border: 1px solid var(--ink-border);
  color: var(--ink);
  transition: background var(--transition-base),
    border-color var(--transition-base), color var(--transition-base);
}
.method-icon svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
}
.contact-method:hover .method-icon {
  background: var(--brand-soft);
  border-color: var(--brand-border);
  color: var(--ink);
}
.method-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
}
.method-content h4 {
  margin: 0;
  font-size: var(--fs-sm);
  font-weight: 700;
  line-height: 1.15;
  color: var(--ink);
}
.method-content a,
.method-content span {
  margin: 0;
  font-size: var(--fs-sm);
  line-height: 1.25;
  color: var(--muted);
  text-decoration: none;
}
.method-content a:hover {
  color: var(--ink-700);
  text-decoration: underline;
  text-decoration-color: var(--brand-border);
  text-underline-offset: 3px;
}

/* Formulario */

.contact-form {
  position: relative;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid
    color-mix(in srgb, var(--accent-violet) 16%, var(--ink-border));
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 26px rgba(33, 59, 82, 0.1),
    0 1px 0 rgba(255, 255, 255, 0.85) inset;
  padding: var(--space-md);
  max-width: 440px;
  margin-left: auto;
  overflow: hidden;
}
.contact-form::before {
  content: "";
  position: absolute;
  top: 0;
  left: var(--space-md);
  right: var(--space-md);
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(
    90deg,
    var(--ink-700) 0%,
    var(--ink) 45%,
    var(--accent-violet) 100%
  );
}
.form-group {
  display: grid;
  gap: var(--space-sm);
  margin-bottom: calc(var(--space-sm) - 2px);
}
.form-group--full {
  grid-column: 1 / -1;
}
.form-label {
  font-weight: 500;
  color: var(--ink);
  font-size: var(--fs-sm);
  margin: 0;
}
.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 6px 12px;
  min-height: 38px;
  border-radius: var(--radius-md);
  border: 1px solid var(--ink-border);
  background: #fff;
  font-size: var(--fs-base);
  transition: border-color var(--transition-base),
    box-shadow var(--transition-base), background var(--transition-base);
  resize: vertical;
}
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--brand-600);
  box-shadow: 0 0 0 3px var(--ring);
  background: var(--bg-hero);
}
.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--muted);
  opacity: 0.85;
}
.form-textarea {
  min-height: 96px;
  padding: 8px 12px;
}
.contact-section .form-input:valid:not(:focus):not(:placeholder-shown),
.contact-section .form-select:valid:not(:focus),
.contact-section .form-textarea:valid:not(:focus):not(:placeholder-shown) {
  border-color: var(--accent-violet) !important;
  box-shadow: 0 0 0 3px rgba(109, 123, 255, 0.18) !important;
  background: linear-gradient(
    180deg,
    rgba(109, 123, 255, 0.06),
    rgba(109, 123, 255, 0)
  ) !important;
}
.form-error {
  min-height: 18px;
  color: #b00020;
  font-size: var(--fs-xs);
  font-weight: 500;
}
.form-status {
  margin-top: var(--space-sm);
  min-height: 20px;
  color: var(--ink-700);
  font-weight: 600;
  font-size: var(--fs-sm);
  text-align: center;
}
.contact-form .btn--large {
  --pad-y: calc(var(--space-xs) + 2px);
  --pad-x: var(--space-lg);
  font-size: var(--fs-sm);
}


@media (min-width: 1001px) {
  /* 1) Limitar ancho del bloque y centrarlo */
  .contact-section .container {
    max-width: 1180px;      /* prueba 1120–1240 según gusto */
    margin-inline: auto;
  }
  .contact-content {
    grid-template-columns: minmax(420px, 520px) minmax(520px, 620px);
    justify-content: center;                 /* centra el grid dentro del contenedor */
    gap: clamp(24px, 4vw, 44px);             /* reducí o subí para abrir/cerrar el “hueco” del medio */
  }

  .contact-info {
    padding-left: 14px;  /* probá 8–20px */
  }

  .contact-form {
    max-width: 460px;              /* antes 420/440; subilo/bajalo para balancear la columna derecha */
    transform: translateX(-10px);   /* trae apenas el form al centro; probá -10px a 0 */
  }
  .contact-form-wrapper {
  margin-top: 40px; /* ajustá el valor hasta que te guste (20px, 40px, etc.) */
}


  /* 5) Tipografía y densidad del form (más “finito/delicado”) */
  .contact-form .form-label { font-size: 0.90rem; }
  .contact-form .form-input,
  .contact-form .form-select,
  .contact-form .form-textarea {
    min-height: 36px;         /* antes 38px */
    padding: 6px 10px;        /* un pelín menos relleno */
    font-size: 0.95rem;       /* más chico y prolijo */
  }
  .contact-form .btn--large { font-size: 0.95rem; }
}


/* Mobile/Tablet: el orden ya está bien, solo tamaños/aires */
@media (max-width: 1000px) {
  /* Más aire a la izquierda para el chip "Hablemos" */
  .contact-info .section-label {
    margin-left: 6px;
  }

  /* Calendly y Form centrados y casi full-width */
  .contact-methods .cal-card,
  .contact-form {
    width: 100%;
    max-width: 680px;     /* en tablets queda armónico */
    margin-inline: auto;  /* centrados */
  }
}

/* Mobile fino: full-width con aire lateral visible */
@media (max-width: 600px) {
  /* aire extra del contenedor para que nada pegue contra el borde */
  .contact-section .container {
    padding-left: 22px;
    padding-right: 22px;
  }

  /* el chip quede con aún más aire */
  .contact-info .section-label {
    margin-left: 2px;
  }

  /* form y card ocupan casi todo el ancho del viewport */
  .contact-methods .cal-card,
  .contact-form {
    max-width: 100%;
    margin-inline: 0;       /* se apoyan en el padding del container */
  }

  .contact-method {
    grid-template-columns: 32px 1fr;
    column-gap: 10px;
    padding-left: 4px;
    padding-top: 16px;
  }
  .method-icon { width: 32px; height: 32px; }
}

/* Evitar cortes si algún wrapper trae overflow */
.contact-section .container { overflow: visible; }


/* footer */

/* ===========================
   FOOTER (base)
   =========================== */

.site-footer {
  position: relative; /* fix para ::before */
  background: radial-gradient(
      1200px 600px at 110% -10%,
      rgba(109, 123, 255, 0.18),
      transparent 60%
    ),
    radial-gradient(
      1200px 600px at -10% 110%,
      rgba(253, 193, 52, 0.12),
      transparent 60%
    ),
    linear-gradient(180deg, #1a3045 0%, #142536 100%);
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}

.site-footer::before { display: none; }

.footer-bg,
.gradient-mesh--footer {
  display: none !important;
}

.footer-content {
  position: relative;
  z-index: 1;
  padding: var(--space-lg) 0;
  display: grid;
  grid-template-columns: 1.1fr 1.3fr;
  gap: var(--space-lg);
}

/* Brand */
.footer-brand {
  display: grid;
  gap: var(--space-sm);
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  font-weight: 800;
  font-size: var(--fs-lg);
  color: #fff;
}
.footer-logo .logo-mark {
  width: 28px;
  height: 28px;
  color: var(--brand);
}
.footer-logo .logo-text {
  background: linear-gradient(90deg, #fff 0%, #eaf0ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.footer-tagline {
  color: rgba(255, 255, 255, 0.78);
  max-width: 48ch;
  line-height: 1.6;
  font-size: var(--fs-sm);
  margin: 0;
}

/* Social */
.footer-social {
  display: flex;
  gap: var(--space-xs);
}
.social-link {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  transition: all var(--transition-base);
}
.social-link:hover {
  transform: translateY(-2px);
  background: linear-gradient(
    90deg,
    var(--ink-700) 0%,
    var(--ink) 45%,
    var(--accent-violet) 100%
  );
  border-color: rgba(109, 123, 255, 0.45);
  box-shadow: 0 10px 26px rgba(109, 123, 255, 0.22);
}

/* Nav */
.footer-nav {
  display: grid;
  grid-template-columns: repeat(2, 0.8fr);
  gap: var(--space-lg);
}
.nav-column {
  display: grid;
  gap: calc(var(--space-sm) - 2px);
  padding-right: 10px;
}
.nav-title {
  font-weight: 700;
  color: #fff;
  margin: 0.15rem 0 0.4rem;
  font-size: var(--fs-base);
  position: relative;
}
.nav-title::after {
  content: "";
  display: block;
  width: 42px;
  height: 2px;
  margin-top: 6px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    var(--ink-700) 0%,
    var(--ink) 45%,
    var(--accent-violet) 100%
  );
  opacity: 0.9;
}
.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--space-xs);
}
.nav-list a {
  color: rgba(255, 255, 255, 0.78);
  font-weight: 500;
  font-size: var(--fs-sm);
  padding: calc(var(--space-xs) - 2px) 0;
  transition: color var(--transition-base), transform var(--transition-base);
  position: relative;
}
.nav-list a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 80%;
  bottom: -2px;
  height: 2px;
  background: linear-gradient(
    90deg,
    var(--ink-700) 0%,
    var(--ink) 45%,
    var(--accent-violet) 100%
  );
  border-radius: 999px;
  opacity: 0;
  transition: right 0.24s ease, opacity 0.24s ease;
}
.nav-list a:hover {
  color: #fff;
  transform: translateX(2px);
}
.nav-list a:hover::after {
  right: 0;
  opacity: 1;
}

/* Bottom */
.footer-bottom {
  position: relative;
  z-index: 1;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  padding: var(--space-md) 0 var(--space-md);
  flex-wrap: wrap;
  box-shadow: 0 -12px 36px rgba(109, 123, 255, 0.08) inset;
}
.footer-legal {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  flex-wrap: wrap;
}
.footer-legal p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: var(--fs-xs);
}
.legal-links {
  display: flex;
  gap: var(--space-sm);
}
.legal-links a {
  color: rgba(255, 255, 255, 0.78);
  font-size: var(--fs-xs);
  transition: color var(--transition-base);
}
.legal-links a:hover {
  color: #fff;
}
.footer-location {
  display: flex;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, 0.78);
  font-size: var(--fs-xs);
}
.footer-location svg {
  width: 16px;
  height: 16px;
  color: rgba(255, 255, 255, 0.85);
}

/* Footer: acercar la frase al logo sin mover redes */
.site-footer .footer-brand{
  row-gap: 0;                         /* anulamos el gap vertical del grid */
}

/* 1) Logo → Tagline (pegado) */
.site-footer .footer-logo{
  margin: 0 0 4px 0;                  /* ↓ espacio justo debajo del logo */
  line-height: 1;                     /* evita aire extra */
}

/* 2) Tagline → Redes (conserva el aire original) */
.site-footer .footer-tagline{
  margin: 0 0 var(--space-sm) 0;      /* reponemos el espacio ANTES de redes */
  line-height: 1.35;                  /* más compacto dentro del párrafo */
  color: rgba(255,255,255,0.84);
}

/* Evitar que el hover del logo mueva el baseline en el footer */
.site-footer .footer-logo .logo:hover{
  transform: none;
}

/* Si en desktop lo querés aún más cerca */
@media (min-width: 1024px){
  .site-footer .footer-logo{ margin-bottom: 2px; }
  .site-footer .footer-tagline{ line-height: 1.32; }
}

/* ===========================
   SCROLL TO TOP
   =========================== */

.scroll-to-top {
  position: fixed;
  right: 16px;
  bottom: 18px;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(180deg, #ffffff 0%, #eef2ff 100%);
  border: 1px solid rgba(109, 123, 255, 0.35);
  color: var(--ink);
  box-shadow: 0 12px 26px rgba(109, 123, 255, 0.22);
}
.scroll-to-top:hover {
  transform: translateY(-2px);
  background: #fff;
}
.scroll-to-top svg {
  stroke: currentColor;
}

/* ===========================
   ANIMACIONES UTILITARIAS
   =========================== */

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes floatY {
  0%,100% { transform: translateY(0); }
  50%     { transform: translateY(-8px); }
}
.animate-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s var(--transition-slow), transform 0.8s var(--transition-slow);
}
.animate-up.is-visible { opacity: 1; transform: translateY(0); }
.animate-bounce { animation: floatY 6s ease-in-out infinite; }
[style*="--delay"] { transition-delay: var(--delay, 0s); }

/* ===========================
   MEDIA QUERIES
   =========================== */

/* ≥ Tablet grande – ajusto footer a 2 columnas suaves */
@media (max-width: 1200px) {
  .footer-content {
    grid-template-columns: 1fr 1fr;
    gap: clamp(20px, 4vw, 36px);
  }

  .hero-content {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
    text-align: center;
  }
  .about-grid {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }
  .contact-content {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }
}

/* Tablet */
@media (max-width: 1000px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }

  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .footer-nav { grid-template-columns: repeat(2, 1fr); }
}

/* Mobile */
@media (max-width: 768px) {
  .nav-toggle { display: inline-flex; }

  .nav-links {
    position: absolute;
    top: 72px;
    right: var(--space-md);
    left: var(--space-md);
    background: var(--surface);
    border: 1px solid var(--ink-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    padding: var(--space-md);
    display: grid;
    gap: var(--space-xs);
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
    transition: all var(--transition-base);
  }
  .nav-links.open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
  .nav-link { padding: var(--space-sm) var(--space-md); border-radius: var(--radius-md); }
  .nav-link--cta { margin-left: 0; justify-self: center; }

  .hero-metrics { grid-template-columns: 1fr 1fr; gap: var(--space-sm); }
  .services-grid { grid-template-columns: 1fr; }
  .methodology-step { grid-template-columns: 1fr; gap: var(--space-md); }
  .flow-line { display: none; }

  .footer-nav { grid-template-columns: 1fr; gap: var(--space-lg); }
  .footer-bottom { flex-direction: column; text-align: center; gap: var(--space-md); }
}

/* XS */
@media (max-width: 480px) {
  .hero { padding: 100px 0 var(--space-xl); }
  .section { padding: var(--space-2xl) 0; }
  .hero-metrics { grid-template-columns: 1fr; }

  #nosotros::before {
    top: -90px;
    height: 140px;
    clip-path: polygon(
      0% 70%,
      15% 58%,
      30% 66%,
      45% 55%,
      60% 68%,
      75% 57%,
      90% 66%,
      100% 54%,
      100% 100%,
      0% 100%
    );
  }
}


/* ------------------ Reducción de movimiento ------------------ */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .animate-up,
  .animate-bounce {
    animation: none;
    transform: none;
    opacity: 1;
  }

  .gradient-orb {
    animation: none;
  }
}

/* ------------------ Mejoras de Accesibilidad ------------------ */
@media (prefers-contrast: high) {
  :root {
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.4);
  }
}

.btn:focus-visible,
.nav-link:focus-visible,
.form-input:focus-visible,
.form-select:focus-visible,
.form-textarea:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 2px;
}

.form-input:invalid:not(:focus):not(:placeholder-shown),
.form-select:invalid:not(:focus),
.form-textarea:invalid:not(:focus):not(:placeholder-shown) {
  border-color: #b00020;
  box-shadow: 0 0 0 2px rgba(176, 0, 32, 0.2);
}

.form-input:valid:not(:focus):not(:placeholder-shown),
.form-select:valid:not(:focus),
.form-textarea:valid:not(:focus):not(:placeholder-shown) {
  border-color: var(--green-500);
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
}

/* PAGINA BLOG */

.blog-hero {
  position: relative;
  padding: clamp(72px, 10vh, 110px) 0 var(--space-xl);
  background: var(--bg-hero);
  overflow: hidden;
}
.blog-hero .section-label {
  margin-bottom: var(--space-sm);
}
.blog-hero .section-title {
  margin-bottom: var(--space-xs);
}
.blog-hero .section-description {
  max-width: 70ch;
}

.blog-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  margin-top: var(--space-lg);
  flex-wrap: wrap;
}
.blog-search {
  position: relative;
  flex: 1 1 280px;
  max-width: 460px;
}
.blog-search input {
  width: 100%;
  min-height: 42px;
  border-radius: var(--radius-md);
  border: 1px solid var(--ink-border);
  background: #fff;
  padding: 10px 12px 10px 38px;
  font-size: var(--fs-sm);
  box-shadow: var(--shadow-sm);
}
.blog-search svg {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--muted);
}
.blog-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: var(--radius-full);
  border: 1px solid var(--ink-border);
  background: var(--surface);
  color: var(--ink-700);
  font-weight: 600;
  font-size: var(--fs-xs);
  transition: all var(--transition-base);
}
.chip:hover {
  transform: translateY(-1px);
  background: var(--accent-violet) 100%;
  color: #fff;
}
.chip--active {
  background: var(--accent-violet) !important;
  color: #fff !important;
}

.blog-grid {
  display: grid;
  grid-template-columns: 1.6fr 0.9fr;
  gap: var(--space-xl);
  margin-top: var(--space-xl);
}
@media (max-width: 1000px) {
  .blog-grid {
    grid-template-columns: 1fr;
  }
}
.posts-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(260px, 1fr));
  gap: var(--space-md);
}
@media (max-width: 720px) {
  .posts-grid {
    grid-template-columns: 1fr;
  }
}

.post-card {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: var(--space-sm);
  background: var(--surface);
  border: 1px solid var(--ink-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  padding: var(--space-sm);
  transition: transform var(--transition-base),
    box-shadow var(--transition-base), border-color var(--transition-base);
}
.post-card:hover {
  transform: translateY(-3px);
  border-color: var(--brand-border);
  box-shadow: var(--shadow-md);
}
.post-media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--surface-soft);
}
.post-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.01);
  transition: transform 0.5s ease;
}
.post-card:hover .post-media img {
  transform: scale(1.04);
}

.post-content {
  display: grid;
  gap: 8px;
  padding: 2px 6px 6px;
}
.post-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.post-tag {
  padding: 4px 8px;
  border-radius: var(--radius-full);
  font-size: var(--fs-xs);
  font-weight: 700;
  background: var(--ink-soft);
  border: 1px solid var(--ink-border);
  color: var(--ink-700);
}
.post-title {
  margin: 2px 0 0;
  font-size: clamp(1.05rem, 0.9rem + 0.5vw, 1.25rem);
  font-weight: 800;
  line-height: 1.25;
  color: var(--ink);
}
.post-excerpt {
  margin: 0;
  color: var(--muted);
  font-size: var(--fs-sm);
  line-height: 1.6;
}
.post-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: var(--fs-xs);
}
.post-meta .dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--ink-border);
}
.post-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  font-weight: 700;
  font-size: var(--fs-sm);
  color: var(--ink);
  padding: 6px 10px;
  border-radius: var(--radius-md);
  border: 1px solid var(--ink-border);
  background: var(--surface);
  transition: all var(--transition-base);
}
.post-cta:hover {
  color: var(--ink);
  border-color: var(--brand-border);
  background: var(--bg-hero);
  transform: translateY(-1px);
}
.post-cta svg {
  width: 16px;
  height: 16px;
}

.blog-sidebar {
  display: grid;
  gap: var(--space-md);
  align-content: start;
}
.side-card {
  background: var(--surface);
  border: 1px solid var(--ink-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  padding: var(--space-md);
}
.side-title {
  margin: 0 0 8px;
  font-weight: 800;
  color: var(--ink);
  font-size: var(--fs-lg);
}
.side-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}
.side-list a {
  display: flex;
  gap: 10px;
  align-items: center;
  color: var(--ink);
  font-weight: 600;
  font-size: var(--fs-sm);
}
.side-list a span {
  color: var(--muted);
  font-weight: 500;
}
.side-list a:hover {
  color: var(--ink-700);
}

.newsletter {
  display: grid;
  gap: var(--space-xs);
}
.newsletter input {
  width: 100%;
  min-height: 40px;
  border-radius: var(--radius-md);
  border: 1px solid var(--ink-border);
  padding: 8px 10px;
  background: #fff;
}

.blog-pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: var(--space-xl);
}
.page {
  min-width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid var(--ink-border);
  border-radius: var(--radius-md);
  background: var(--surface);
  color: var(--ink);
  font-weight: 700;
  font-size: var(--fs-sm);
  transition: all var(--transition-base);
}
.page:hover {
  transform: translateY(-1px);
  border-color: var(--brand-border);
}
.page.is-current {
  background: linear-gradient(
    90deg,
    var(--ink-700) 0%,
    var(--ink) 45%,
    var(--accent-violet) 100%
  );
  color: #fff;
  border-color: rgba(109, 123, 255, 0.35);
  box-shadow: 0 8px 18px rgba(109, 123, 255, 0.28);
}
.post-card.is-hidden {
  display: none !important;
}

/* PAGINA SOLUCIONES */
/* PAGINA SOLUCIONES */

.services-page .services-hero {
  padding-top: var(--space-xl);
  padding-bottom: var(--space-lg);
}

.services-subnav {
  display: flex;
  gap: var(--space-sm);
  justify-content: center;
  flex-wrap: wrap;
  margin-top: var(--space-md);
}
.services-subnav a {
  padding: 8px 12px;
  border-radius: var(--radius-full);
  border: 1px solid var(--ink-border) !important;
  background: color-mix(in srgb, var(--accent-violet) 12%, #fff);
  font-weight: 600;
  font-size: var(--fs-sm);
  color: var(--ink-700);
  transition: all var(--transition-base);
}
.services-subnav a:hover {
  background: var(--accent-violet);
  color: #fff;
  transform: translateY(-2px);
}

/* Sección de servicio */
.service-section {
  padding: var(--space-xl) 0;
}

/* Headers de servicio */
.services-page .service-header-lg {
  max-width: 780px;
  margin-bottom: var(--space-lg);
  text-align: left;
  margin-left: auto;
  margin-right: auto;
}

.services-page .service-section .section-description {
  margin-top: 0.5rem;
}

/* Layout del contenido - CENTRADO SEGURO */
.service-layout{
  display: grid;
  gap: var(--space-lg);
  align-items: start;
  max-width: 780px;                 /* = .service-header-lg */
  margin: var(--space-md) auto 0;
  grid-template-columns: 1fr;       /* <— clave */
}
.service-layout:has(.service-aside){
  grid-template-columns: 1.3fr 0.7fr;
  max-width: 920px;                 /* más ancho para 2 cols */
}

/* Responsive */
@media (max-width: 980px) {
  .service-layout {
    grid-template-columns: 1fr;
    max-width: 100%;
    padding: 0 var(--space-md);
    margin-top: var(--space-md);
  }
}

.service-main {
  display: grid;
  gap: var(--space-sm);
}

.service-block {
  border: 1px solid var(--ink-border);
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
}

.service-block:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.service-block__title {
  margin: 0 0 0.75rem;
  font-size: var(--fs-lg);
  font-weight: 800;
  color: var(--ink);
}

.service-list {
  margin: 0;
  padding-left: 1.25rem;
  color: var(--muted);
  line-height: 1.6;
}
.service-list li {
  margin: 0.5rem 0;
}

.service-list li strong {
  color: var(--ink-700);
  font-weight: 700;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chip {
  padding: 6px 12px;
  border-radius: 999px;
  font-weight: 700;
  font-size: var(--fs-xs);
  background: color-mix(in srgb, var(--accent-violet) 12%, #fff);
  border: 1px solid color-mix(in srgb, var(--accent-violet) 30%, transparent);
  color: var(--ink-700);
  transition: all var(--transition-base);
}

.chip:hover {
  background: color-mix(in srgb, var(--accent-violet) 20%, #fff);
  transform: translateY(-1px);
}

.timeline-mini {
  margin: 0.5rem 0 0;
  padding-left: 1.25rem;
  color: var(--muted);
}
.timeline-mini li {
  margin: 0.5rem 0;
  line-height: 1.6;
}

.timeline-mini strong {
  color: var(--ink-700);
  font-weight: 700;
}

.muted {
  color: var(--muted);
  line-height: 1.6;
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(120px, 1fr));
  gap: var(--space-sm);
}
.kpi {
  border: 1px solid var(--ink-border);
  border-radius: var(--radius-md);
  padding: 1rem;
  background: var(--surface);
  text-align: center;
  transition: all var(--transition-base);
}

.kpi:hover {
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}

.kpi strong {
  display: block;
  font-size: 1.75rem;
  line-height: 1;
  margin-bottom: 0.5rem;
  background: linear-gradient(
    90deg,
    var(--ink-700) 0%,
    var(--ink) 45%,
    var(--accent-violet) 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.kpi span {
  color: var(--muted);
  font-size: var(--fs-sm);
  display: block;
}

@media (max-width: 720px) {
  .kpi-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 440px) {
  .kpi-grid {
    grid-template-columns: 1fr;
  }
}

.service-aside {
  display: grid;
  gap: var(--space-sm);
}

.metric-card {
  border: 1px solid rgba(33, 59, 82, 0.14);
  border-radius: 14px;
  background: linear-gradient(180deg, #fff 0%, var(--surface-soft) 100%);
  padding: 1.25rem 1.5rem;
  box-shadow: 0 10px 30px rgba(33, 59, 82, 0.1),
    inset 0 2px 0 rgba(255, 255, 255, 0.85);
  position: relative;
  isolation: isolate;
  transition: all var(--transition-base);
}

.metric-card:hover {
  box-shadow: 0 15px 40px rgba(33, 59, 82, 0.15),
    inset 0 2px 0 rgba(255, 255, 255, 0.85);
  transform: translateY(-2px);
}

.metric-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  bottom: 10px;
  width: 6px;
  border-radius: 6px;
  background: linear-gradient(
    90deg,
    var(--ink-700) 0%,
    var(--ink) 45%,
    var(--accent-violet) 100%
  );
  box-shadow: 0 0 0 2px
    color-mix(in srgb, var(--accent-violet) 26%, transparent);
}

.metric-card__value {
  margin: 0 0 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.metric-card__value .v {
  font-weight: 900;
  font-size: clamp(1.6rem, 1.1rem + 1.25vw, 2.2rem);
  background: linear-gradient(
    90deg,
    var(--ink-700) 0%,
    var(--ink) 45%,
    var(--accent-violet) 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  line-height: 1.1;
}

.metric-card .unit {
  font-weight: 800;
  font-size: 0.82rem;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent-violet) 12%, #fff);
  border: 1px solid color-mix(in srgb, var(--accent-violet) 32%, transparent);
  color: var(--ink);
}

.metric-card__note {
  margin: 0;
  color: var(--muted);
  font-size: var(--fs-xs);
  line-height: 1.4;
}

.service-faqs {
  display: grid;
  gap: 8px;
  margin-top: var(--space-sm);
}

.service-faqs details {
  border: 1px solid var(--ink-border);
  border-radius: var(--radius-md);
  background: var(--surface);
  padding: 1rem 1.25rem;
  transition: all var(--transition-base);
}

.service-faqs details:hover {
  box-shadow: var(--shadow-sm);
}

.service-faqs details[open] {
  background: color-mix(in srgb, var(--accent-violet) 3%, var(--surface));
}

.service-faqs summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--ink);
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.service-faqs summary::-webkit-details-marker {
  display: none;
}

.service-faqs summary::before {
  content: "▸";
  display: inline-block;
  transition: transform var(--transition-base);
  color: var(--accent-violet);
  font-size: 1.2em;
}

.service-faqs details[open] summary::before {
  transform: rotate(90deg);
}

.service-faqs p {
  color: var(--muted);
  margin: 0.75rem 0 0;
  line-height: 1.6;
  padding-left: 1.5rem;
}

/* CTA final - MÁS ESPACIO */
.services-page .faqs-cta {
  text-align: center;
  padding: var(--space-2xl) var(--space-md);
  margin-top: var(--space-3xl);
  margin-bottom: var(--space-2xl);
}

.services-page .faqs-cta p {
  font-size: var(--fs-lg);
  font-weight: 700;
  color: var(--bg-section);
  margin-bottom: var(--space-md);
}

/* Responsive ajustes */
@media (max-width: 768px) {
  .services-page .services-hero {
    padding-top: var(--space-lg);
  }

  .service-section {
    padding: var(--space-lg) 0;
  }

  .services-page .service-header-lg {
    max-width: 100%;
    padding: 0 var(--space-sm);
  }

  .services-subnav {
    gap: 8px;
    padding: 0 var(--space-sm);
  }

  .services-subnav a {
    font-size: 13px;
    padding: 6px 10px;
  }

  .service-layout {
    padding: 0 var(--space-sm);
  }

  .services-page .faqs-cta {
    margin-top: var(--space-xl);
    margin-bottom: var(--space-xl);
  }
}
/* ============================================================================
   ARTICLE PAGE - Optimized for Reading Experience
   ============================================================================ */

/* Reading Progress Bar */
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--ink-soft);
  z-index: 1000;
  opacity: 0;
  transition: opacity var(--transition-base);
}

.article-page .reading-progress {
  opacity: 1;
}

.reading-progress__bar {
  height: 100%;
  background: linear-gradient(90deg, var(--brand), var(--accent-violet));
  width: 0%;
  transition: width 0.1s ease-out;
}

/* Breadcrumbs */
.breadcrumbs {
  padding: var(--space-md) 0;
  background: var(--surface);
  border-bottom: 1px solid var(--ink-border);
}

.breadcrumbs__list {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: var(--fs-sm);
  color: var(--muted);
}

.breadcrumbs__list li:not(:last-child)::after {
  content: "›";
  margin-left: 8px;
  color: var(--ink-border);
}

.breadcrumbs__list a {
  color: var(--muted);
  transition: color var(--transition-base);
}

.breadcrumbs__list a:hover {
  color: var(--ink);
}

.breadcrumbs__current {
  color: var(--ink);
  font-weight: 600;
}

/* Article Hero */
.article-hero {
  padding: var(--space-2xl) 0 var(--space-xl);
  background: var(--bg-hero);
}

.article-hero__content {
  max-width: 800px;
  margin: 0 auto var(--space-xl);
  text-align: center;
}

.article-tags {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: var(--space-md);
  flex-wrap: wrap;
}

.article-tag {
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  background: var(--brand-soft);
  color: var(--brand-700);
  border: 1px solid var(--brand-border);
}

.article-title {
  margin: 0 0 var(--space-md);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.article-excerpt {
  margin: 0 0 var(--space-lg);
  font-size: var(--fs-xl);
  line-height: 1.6;
  color: var(--muted);
  max-width: 70ch;
  margin-left: auto;
  margin-right: auto;
}

.article-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-md);
  max-width: 70ch;
  margin: 0 auto;
}

.article-meta__author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.article-meta__avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--brand-border);
}

.article-meta__info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.article-meta__name {
  font-weight: 700;
  font-size: var(--fs-base);
  color: var(--ink);
}

.article-meta__date {
  font-size: var(--fs-sm);
  color: var(--muted);
}

.article-meta__stats {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.article-meta__reading-time {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: var(--fs-sm);
  color: var(--muted);
}

.article-meta__reading-time svg {
  width: 16px;
  height: 16px;
}

.article-hero__image {
  max-width: 1000px;
  margin: 0 auto;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 21 / 9;
  background: var(--surface-soft);
}

.article-hero__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Article Layout */
.article-layout {
  padding: var(--space-3xl) 0;
}

.article-grid {
  display: grid;
  grid-template-columns: 80px 1fr 280px;
  gap: var(--space-2xl);
  align-items: start;
}

@media (max-width: 1200px) {
  .article-grid {
    grid-template-columns: 1fr;
  }

  .article-sidebar--left,
  .article-sidebar--right {
    display: none;
  }
}

/* Article Content - Optimized Typography */
.article-content {
  max-width: 720px;
  margin: 0 auto;
  font-size: 18px;
  line-height: 1.75;
  color: var(--ink);
}

.article-content > * + * {
  margin-top: 1.5em;
}

.article-content h2 {
  margin-top: 2.5em;
  margin-bottom: 0.75em;
  font-size: clamp(1.6rem, 3vw, 2rem);
  font-weight: 800;
  line-height: 1.3;
  color: var(--ink);
  letter-spacing: -0.01em;
  scroll-margin-top: 100px;
}

.article-content h3 {
  margin-top: 2em;
  margin-bottom: 0.6em;
  font-size: clamp(1.3rem, 2.5vw, 1.5rem);
  font-weight: 700;
  line-height: 1.4;
  color: var(--ink);
  scroll-margin-top: 100px;
}

.article-content h2:first-child,
.article-content h3:first-child {
  margin-top: 0;
}

.article-content p {
  margin: 0 0 1.5em;
  max-width: 65ch;
}

.article-content a {
  color: var(--accent-violet);
  text-decoration: underline;
  text-decoration-color: rgba(109, 123, 255, 0.3);
  text-underline-offset: 3px;
  transition: all var(--transition-base);
}

.article-content a:hover {
  color: var(--ink);
  text-decoration-color: var(--accent-violet);
}

.article-content strong {
  font-weight: 700;
  color: var(--ink-700);
}

.article-content em {
  font-style: italic;
  color: var(--ink-700);
}

.article-content ul,
.article-content ol {
  padding-left: 1.5em;
  margin: 1.5em 0;
}

.article-content li {
  margin: 0.75em 0;
  padding-left: 0.5em;
}

.article-content li::marker {
  color: var(--brand);
  font-weight: 700;
}

.article-content blockquote {
  margin: 2em 0;
  padding: var(--space-md) var(--space-lg);
  border-left: 4px solid var(--brand);
  background: var(--brand-soft);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-style: italic;
  color: var(--ink-700);
}

.article-content blockquote p {
  margin: 0;
}

.article-content code {
  padding: 3px 6px;
  background: var(--ink-soft);
  border-radius: var(--radius-sm);
  font-family: "SF Mono", "Monaco", "Consolas", monospace;
  font-size: 0.9em;
  color: var(--accent-violet);
}

.article-content pre {
  margin: 2em 0;
  padding: var(--space-lg);
  background: var(--ink);
  border-radius: var(--radius-md);
  overflow-x: auto;
  box-shadow: var(--shadow-md);
  position: relative;
}

.article-content pre code {
  padding: 0;
  background: none;
  color: #e6e6e6;
  font-size: 0.9rem;
  line-height: 1.6;
}

.code-copy-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-sm);
  color: #fff;
  font-size: var(--fs-xs);
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all var(--transition-base);
}

.code-copy-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
}

.code-copy-btn svg {
  width: 14px;
  height: 14px;
}

.code-copy-btn.copied {
  background: var(--brand);
  border-color: var(--brand);
  color: var(--ink);
}

.article-content hr {
  margin: 3em 0;
  border: none;
  border-top: 2px solid var(--ink-border);
  opacity: 0.5;
}

.article-content img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  margin: 2em 0;
}

/* Article CTA */
.article-cta {
  margin: 3em 0;
  padding: var(--space-xl);
  background: linear-gradient(135deg, var(--brand-soft), var(--surface-soft));
  border: 2px solid var(--brand-border);
  border-radius: var(--radius-xl);
  text-align: center;
}

.article-cta h3 {
  margin: 0 0 var(--space-sm);
  font-size: var(--fs-2xl);
  font-weight: 800;
  color: var(--ink);
}

.article-cta p {
  margin: 0 0 var(--space-lg);
  color: var(--muted);
  max-width: 50ch;
  margin-left: auto;
  margin-right: auto;
}

/* Sidebars */
.article-sidebar {
  position: relative;
}

.article-sidebar--left {
  grid-column: 1;
}

.article-sidebar--right {
  grid-column: 3;
}

/* Share Buttons */
.article-share {
  position: sticky;
  top: 100px;
}

.article-share--sticky {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.article-share--sticky.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.article-share__title {
  margin: 0 0 var(--space-sm);
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.article-share__buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.share-btn {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  border: 1px solid var(--ink-border);
  border-radius: var(--radius-md);
  color: var(--ink);
  cursor: pointer;
  transition: all var(--transition-base);
}

.share-btn svg {
  width: 18px;
  height: 18px;
}

.share-btn:hover {
  background: var(--brand);
  border-color: var(--brand);
  color: var(--ink);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.share-btn--copied {
  background: var(--brand);
  border-color: var(--brand);
  color: var(--ink);
}

/* Table of Contents */
.table-of-contents {
  position: sticky;
  top: 100px;
  padding: var(--space-lg);
  background: var(--surface);
  border: 1px solid var(--ink-border);
  border-radius: var(--radius-lg);
  max-height: calc(100vh - 120px);
  overflow-y: auto;
}

.toc__title {
  margin: 0 0 var(--space-md);
  font-size: var(--fs-base);
  font-weight: 700;
  color: var(--ink);
}

.toc__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.toc__item {
  margin: 0;
  padding: 0;
}

.toc__item--nested {
  padding-left: var(--space-md);
}

.toc__link {
  display: block;
  padding: 8px 12px;
  font-size: var(--fs-sm);
  color: var(--muted);
  border-left: 2px solid transparent;
  transition: all var(--transition-base);
  margin-left: -12px;
}

.toc__link:hover {
  color: var(--ink);
  background: var(--ink-soft);
  border-left-color: var(--brand);
}

.toc__link--active {
  color: var(--brand-700);
  font-weight: 600;
  border-left-color: var(--brand);
  background: var(--brand-soft);
}

/* Related Articles */
.related-articles {
  padding: var(--space-3xl) 0;
  background: var(--bg-section);
}

.related-articles__title {
  margin: 0 0 var(--space-xl);
  font-size: var(--fs-3xl);
  font-weight: 800;
  text-align: center;
  color: var(--ink);
}

.related-articles__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
}

.related-card {
  background: var(--surface);
  border: 1px solid var(--ink-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition-base);
}

.related-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--brand-border);
}

.related-card__image {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--surface-soft);
}

.related-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.related-card:hover .related-card__image img {
  transform: scale(1.05);
}

.related-card__content {
  padding: var(--space-lg);
}

.related-card__tag {
  display: inline-block;
  padding: 4px 10px;
  background: var(--brand-soft);
  color: var(--brand-700);
  font-size: var(--fs-xs);
  font-weight: 600;
  border-radius: var(--radius-full);
  margin-bottom: var(--space-sm);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.related-card__title {
  margin: 0 0 var(--space-sm);
  font-size: var(--fs-lg);
  font-weight: 700;
  line-height: 1.4;
}

.related-card__title a {
  color: var(--ink);
  transition: color var(--transition-base);
}

.related-card__title a:hover {
  color: var(--brand-700);
}

.related-card__time {
  display: block;
  font-size: var(--fs-sm);
  color: var(--muted);
}

.related-articles__cta {
  text-align: center;
}

/* Responsive */
@media (max-width: 768px) {
  .article-hero {
    padding: var(--space-lg) 0;
  }

  .article-hero__content {
    max-width: 100%;
    padding: 0 var(--space-sm);
  }

  .article-title {
    font-size: 1.8rem;
    line-height: 1.25;
    letter-spacing: -0.01em;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
  }

  .article-excerpt {
    font-size: var(--fs-lg);
    max-width: 100%;
    line-height: 1.6;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }

  .article-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-sm);
  }

  .article-meta__author {
    width: 100%;
  }

  .article-meta__stats {
    width: 100%;
  }

  .article-content {
    font-size: 17px;
  }

  .article-content h2 {
    font-size: 1.5rem;
  }

  .article-content h3 {
    font-size: 1.25rem;
  }

  .article-hero__image {
    border-radius: var(--radius-md);
    margin: 0 calc(-1 * var(--space-md));
    max-width: calc(100% + 2 * var(--space-md));
    border-radius: 0;
  }

  .related-articles__grid {
    grid-template-columns: 1fr;
  }

  .article-grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .article-sidebar--left,
  .article-sidebar--right {
    display: none;
  }
}

@media (max-width: 480px) {
  .article-title {
    font-size: 1.5rem;
    line-height: 1.3;
  }

  .article-excerpt {
    font-size: var(--fs-base);
    line-height: 1.65;
  }

  .article-tags {
    gap: 6px;
  }

  .article-tag {
    font-size: 11px;
    padding: 4px 10px;
  }

  .article-meta__avatar {
    width: 36px;
    height: 36px;
  }

  .article-meta__name,
  .article-meta__date,
  .article-meta__reading-time {
    font-size: 13px;
  }
}


