/* ====================================================================
 * pymeos.com · CLEAN v1 · 2026-05-07
 * Direction CLARA · founder feedback: cero mezcla de colores · cero
 * paper-warm · cero serif italic editorial · cero dark drama.
 *
 * UNA paleta. UN acento. Tipografía moderna. 3D al frente.
 * Premium = restraint + scale + white space.
 * ==================================================================== */

:root {
  /* ── Single palette · enterprise authority via restraint ──
   * Reference: Oracle/SAP/Workday/Salesforce homepages · linear scroll · no tabs.
   * Premium = white space + scale + 1 acento sutil EN HOVER (no permanent fill). */
  --bg: #F9F9F9;          /* blanco hueso · NO pure white frío */
  --bg-pure: #ffffff;
  --ink: #1C1C1E;          /* gris tinta · NO #000 · NO bright SaaS blue */
  --ink-2: #2C2C2E;
  --ink-3: #48484A;
  --ink-4: #8E8E93;
  --ink-5: #C7C7CC;
  --hairline: #E5E5E7;
  --hairline-soft: #F2F2F5;

  /* Acentos canónicos brand kit
   * #0066cc azul · CTA web oficial · hover ring · primary action
   * #00B4D8 cyan · SOLO en logo "OS" letras · NUNCA section bg ni button */
  --azul: #0066cc;
  --azul-deep: #0052a3;
  --azul-soft: rgba(0, 102, 204, 0.08);
  --cyan: #00B4D8;
  --cyan-deep: #0096b8;
  --cyan-soft: rgba(0, 180, 216, 0.08);

  /* Tipografía oficial brand kit · Fraunces (display) + DM Sans (body+UI) + JetBrains Mono (technical) */
  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', Menlo, monospace;
  --font-lockup-display: 'Fraunces', Georgia, serif;
  --font-lockup-prefix: 'DM Sans', sans-serif;

  /* Type scale · ajustado para Fraunces (más wide que Inter · clamps reducidos) */
  --type-h1: clamp(40px, 6vw, 80px);
  --type-h2: clamp(28px, 4vw, 52px);
  --type-h3: clamp(20px, 2vw, 26px);
  --type-lead: clamp(17px, 1.4vw, 21px);
  --type-body: 16px;
  --type-mono: 12px;

  --track-tight: -0.012em;
  --track-display: -0.025em;
  --leading-tight: 1.05;
  --leading-display: 1.05;
  --leading-body: 1.55;

  /* Spacing 8pt */
  --s-1: 4px;  --s-2: 8px;  --s-3: 12px;  --s-4: 16px;
  --s-5: 24px; --s-6: 32px; --s-7: 48px;  --s-8: 64px;
  --s-9: 96px; --s-10: 128px; --s-11: 160px; --s-12: 200px;

  /* Padding generoso · "el aire es autoridad" · enterprise B2B */
  --pad-section: clamp(140px, 16vw, 220px);
  --measure: 1200px;
  --measure-prose: 720px;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-fast: 200ms;
  --dur-base: 320ms;
  --dur-slow: 600ms;

  --radius-card: 16px;
  --radius-pill: 999px;
}

/* ──────────────────────────────────────────────────────────────────
 * DARK MODE · navy palette (cero black puro per `feedback_navy_device_palette_no_black`)
 * Restraint: cero glow en CTAs · cero glassmorphism como sistema
 * (`feedback_no_ai_purple_problem`) · solo inversión cromatica + 1 acento
 * heroico puntual en hero scene
 * ────────────────────────────────────────────────────────────────── */
[data-theme="dark"] {
  --bg: #0A1628;
  --bg-pure: #102A43;
  --ink: #F5F5F7;
  --ink-2: #E5E5EA;
  --ink-3: #C7C7CC;
  --ink-4: #8E8E93;
  --ink-5: #48484A;
  --hairline: rgba(255, 255, 255, 0.08);
  --hairline-soft: rgba(255, 255, 255, 0.04);
  --azul-soft: rgba(0, 102, 204, 0.18);
  --cyan-soft: rgba(0, 180, 216, 0.16);
}
[data-theme="dark"] body {
  background: var(--bg);
}

/* ── Header in dark · navy translucent · same hairline rhythm ── */
[data-theme="dark"] .cln-header {
  background: rgba(10, 22, 40, 0.85);
  border-bottom-color: var(--hairline);
}
/* Lockup SVG · "PyME" text flips to ink (light), "mi" gray stays, "OS" cyan stays */
[data-theme="dark"] .cln-brand-lockup text:not([fill="#86868b"]) { fill: var(--ink); }

/* ── Theme toggle button in nav · same scale as nav links ── */
.cln-theme-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  margin: 0;
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  color: var(--ink-3);
  transition: color var(--dur-fast) var(--ease),
              background var(--dur-fast) var(--ease),
              border-color var(--dur-fast) var(--ease);
}
.cln-theme-toggle:hover {
  color: var(--ink);
  background: var(--azul-soft);
}
.cln-theme-toggle:focus-visible {
  outline: none;
  border-color: var(--azul);
  box-shadow: 0 0 0 1px var(--azul);
}
.cln-theme-icon { width: 18px; height: 18px; }
.cln-theme-icon-sun { display: none; }
[data-theme="dark"] .cln-theme-icon-sun  { display: block; }
[data-theme="dark"] .cln-theme-icon-moon { display: none; }

/* ── Primary CTA in dark · azul flat · cero glow per AI-tell rule ── */
[data-theme="dark"] .cln-btn-primary {
  background: var(--azul);
  color: #fff;
  border-color: var(--azul);
}
[data-theme="dark"] .cln-btn-primary:hover {
  background: var(--azul-deep);
  border-color: var(--azul-deep);
  box-shadow: 0 0 0 1px var(--azul);
}
[data-theme="dark"] .cln-nav-cta {
  background: var(--azul);
  border-color: var(--azul);
  color: #fff;
}
[data-theme="dark"] .cln-nav-cta:hover {
  background: var(--azul-deep);
  border-color: var(--azul-deep);
}

/* ── Hero scene fallback SVG · stroke flips · acento heroico puntual ── */
[data-theme="dark"] .cln-hero-scene-wrap svg g { stroke: var(--ink-3); }
[data-theme="dark"] .cln-hero-scene-wrap svg circle[fill] { fill: var(--cyan); }
[data-theme="dark"] .cln-hero-scene { opacity: 0.7; }

/* ── Skip link contrast in dark ── */
[data-theme="dark"] .skip-link { background: var(--ink); color: var(--bg); }

/* ── Cards (módulos + productos) in dark · cero glassmorphism · cero glow
   solid navy-lighter bg + hairline + sombra monocroma en navy darkest */
[data-theme="dark"] .cln-module,
[data-theme="dark"] .cln-product {
  background: var(--bg-pure);
  border-color: var(--hairline);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.32),
              0 0 0 1px rgba(255, 255, 255, 0.02);
}
[data-theme="dark"] .cln-module:hover,
[data-theme="dark"] .cln-product:hover {
  border-color: var(--azul);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset,
              0 8px 24px -8px rgba(0, 0, 0, 0.5),
              0 0 0 1px rgba(0, 102, 204, 0.4);
}

/* ── FAQ cards (details/summary) in dark · solid navy + hairline ── */
[data-theme="dark"] .cln-faq-item {
  background: var(--bg-pure);
  border-color: var(--hairline);
}
[data-theme="dark"] .cln-faq-item:hover {
  border-color: rgba(0, 102, 204, 0.4);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset,
              0 8px 24px -8px rgba(0, 0, 0, 0.5);
}
[data-theme="dark"] .cln-faq-chevron::before,
[data-theme="dark"] .cln-faq-chevron::after { background: var(--ink-3); }

/* ── Pullquote en dark usa --bg-pure (navy lighter) · hairlines via tokens
   q + attribution heredan tokens · nada más que hacer ── */

/* ── Footer en dark · tokens cubren todo · solo asegurar que el lockup en
   footer flip igual que el header (mismo selector ya lo cubre) ── */

/* ── Reset minimal ── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--type-body);
  line-height: var(--leading-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'cv02', 'cv03', 'cv04', 'cv11';
}
h1, h2, h3, p { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
img, svg { display: block; max-width: 100%; }

/* Skip link a11y */
.skip-link {
  position: absolute; left: -9999px;
  padding: var(--s-3) var(--s-5);
  background: var(--ink); color: var(--bg);
  border-radius: var(--radius-pill);
  font-size: 13px; font-weight: 500;
}
.skip-link:focus { left: var(--s-5); top: var(--s-5); z-index: 1000; }

/* ──────────────────────────────────────────────────────────────────
 * HEADER · sticky minimal · blanco hueso · 1 hairline bottom
 * ────────────────────────────────────────────────────────────────── */
.cln-header {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--s-5) clamp(20px, 4vw, 48px);
  background: rgba(249, 249, 249, 0.88);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--hairline);
}
.cln-brand {
  display: inline-flex; align-items: center;
  height: 28px;
}
.cln-brand-lockup { height: 28px; width: auto; }

.cln-nav {
  display: flex; align-items: center; gap: var(--s-6);
}
.cln-nav-link {
  font-size: 14px; font-weight: 500;
  color: var(--ink-3);
  transition: color var(--dur-fast) var(--ease);
}
.cln-nav-link:hover { color: var(--ink); }
.cln-nav-cta {
  padding: var(--s-2) var(--s-4);
  border-radius: var(--radius-pill);
  background: var(--ink); color: var(--bg);
  font-size: 13px; font-weight: 500;
  border: 1px solid var(--ink);
  transition: all var(--dur-fast) var(--ease);
}
.cln-nav-cta:hover {
  border-color: var(--azul);
  box-shadow: 0 0 0 1px var(--azul);
}

@media (max-width: 720px) {
  .cln-nav-link { display: none; }
}

/* ──────────────────────────────────────────────────────────────────
 * HERO · text-dominant · 3D ambient al fondo · opacity baja
 * Reference: Linear/Vercel/Anthropic/Raycast feel
 * Premium = restraint + scale + white space + 1 acento sutil
 * ────────────────────────────────────────────────────────────────── */
.cln-hero {
  position: relative;
  max-width: 1080px;
  margin: 0 auto;
  padding: clamp(120px, 16vw, 220px) clamp(20px, 4vw, 48px) clamp(120px, 16vw, 220px);
  text-align: left;
  isolation: isolate;
}
.cln-hero-content {
  position: relative;
  z-index: 2;
  max-width: 880px;
}
.cln-hero-eyebrow {
  display: inline-flex; align-items: center; gap: var(--s-2);
  font-family: var(--font-mono);
  font-size: 11px; font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--ink-4);
  margin-bottom: var(--s-7);
}
.cln-hero-eyebrow::before {
  content: ''; display: inline-block;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--azul);
}
.cln-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(44px, 7vw, 96px);
  letter-spacing: -0.025em;
  line-height: 1.0;
  color: var(--ink);
  margin-bottom: var(--s-7);
  max-width: 16ch;
}
/* Typography play · Fraunces tuning · mix de pesos + italic · editorial-engineering */
.cln-hero h1 .h1-light  { font-weight: 400; color: var(--ink-3); letter-spacing: -0.02em; }
.cln-hero h1 .h1-bold   { font-weight: 900; color: var(--ink); letter-spacing: -0.025em; }
.cln-hero h1 .h1-thin   { font-weight: 400; color: var(--ink-3); letter-spacing: -0.015em; }
.cln-hero h1 .h1-italic { font-weight: 500; font-style: italic; color: var(--ink); letter-spacing: -0.02em; }

.cln-hero-lead strong {
  font-weight: 600;
  color: var(--ink);
}
.cln-hero-lead {
  font-size: 18px;
  line-height: 1.45;
  color: var(--ink-3);
  max-width: 440px;
  margin-bottom: var(--s-8);
}
.cln-hero-actions {
  display: inline-flex; align-items: center; gap: var(--s-5);
  flex-wrap: wrap;
}
.cln-btn {
  display: inline-flex; align-items: center; gap: var(--s-2);
  padding: 14px 22px;
  border-radius: var(--radius-pill);
  font-size: 14px; font-weight: 500;
  letter-spacing: -0.005em;
  border: 1px solid transparent;
  transition: all var(--dur-fast) var(--ease);
  white-space: nowrap;
}
/* Primary CTA · gris tinta · cyan ÚNICAMENTE en hover · cero bright blue SaaS B2B
   Reference: Linear/Apple "no grita color" · acento solo en interacción */
.cln-btn-primary {
  background: var(--ink); color: var(--bg);
  border-color: var(--ink);
}
.cln-btn-primary:hover {
  background: var(--ink);
  border-color: var(--azul);
  box-shadow: 0 0 0 1px var(--azul);
}
/* Secondary · text-only · solo arrow microanim */
.cln-btn-text {
  background: transparent; color: var(--ink);
  padding: 14px 0;
}
.cln-btn-text:hover { color: var(--azul-deep); }
.cln-btn-text::after {
  content: '→'; font-size: 14px; line-height: 1;
  transition: transform var(--dur-fast) var(--ease);
  margin-left: 2px;
}
.cln-btn-text:hover::after { transform: translateX(3px); }

/* 3D scene · BACKGROUND ambient · opacity baja · NO compite con texto */
.cln-hero-scene-wrap {
  position: absolute;
  top: 0; right: -10%;
  width: 70%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  /* fade out hacia el lado izquierdo · texto domina */
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 35%, black 100%);
  mask-image: linear-gradient(to right, transparent 0%, black 35%, black 100%);
}
.cln-hero-scene {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  opacity: 0.55;
}

@media (max-width: 900px) {
  .cln-hero { padding-top: 96px; padding-bottom: 96px; }
  .cln-hero-scene-wrap { width: 100%; right: 0; opacity: 0.6; }
  .cln-hero-scene { opacity: 0.12; }
}

/* ──────────────────────────────────────────────────────────────────
 * PRODUCTOS · 3 cards equal weight · IGNITE protagonista middle
 * ────────────────────────────────────────────────────────────────── */
.cln-section {
  max-width: var(--measure);
  margin: 0 auto;
  padding: var(--pad-section) clamp(20px, 4vw, 48px);
  border-top: 1px solid var(--hairline);
}
.cln-section-head {
  display: flex; flex-direction: column; gap: var(--s-4);
  margin-bottom: var(--s-9);
  max-width: var(--measure-prose);
}
.cln-section h2,
.cln-diag h2 {
  font-family: var(--font-display);
  font-size: var(--type-h2);
  font-weight: 400;
  letter-spacing: var(--track-display);
  line-height: var(--leading-tight);
  color: var(--ink);
}
/* H2 typography play · same family · diferentes pesos/italics */
.cln-section h2 .h2-bold,
.cln-diag h2 .h2-bold     { font-weight: 700; color: var(--ink); }
.cln-section h2 .h2-italic,
.cln-diag h2 .h2-italic   { font-weight: 400; font-style: italic; color: var(--ink-3); }
.cln-section h2 .h2-light,
.cln-diag h2 .h2-light    { font-weight: 300; color: var(--ink-3); }
.cln-section-sub {
  font-size: 18px;
  line-height: 1.5;
  color: var(--ink-3);
  max-width: 580px;
  margin: 0;
}

/* ──────────────────────────────────────────────────────────────────
 * MÓDULOS · grid 4 col desktop · showroom de qué resuelve PyMEOS
 * Cero iconos genéricos · solo título + descripción humana
 * ────────────────────────────────────────────────────────────────── */
.cln-modules {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-3);
}
.cln-module {
  background: var(--bg-pure);
  padding: var(--s-7);
  display: flex; flex-direction: column;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-card);
  transition: transform var(--dur-base) var(--ease),
              box-shadow var(--dur-base) var(--ease),
              border-color var(--dur-base) var(--ease);
  position: relative;
  /* Apple liquid glass shadow · subtle elevation by default */
  box-shadow: 0 1px 2px rgba(28, 28, 30, 0.04),
              0 0 0 1px rgba(28, 28, 30, 0.02);
}
.cln-module:hover {
  transform: translateY(-4px);
  border-color: var(--azul);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.8) inset,
    0 24px 48px -12px rgba(0, 102, 204, 0.18),
    0 8px 16px -4px rgba(28, 28, 30, 0.08),
    0 0 0 1px rgba(0, 102, 204, 0.4);
}

/* Icon · default ink-4 · hover cyan + scale + draw-stroke vibe */
.cln-module-icon {
  width: 32px; height: 32px;
  margin-bottom: var(--s-5);
  color: var(--ink-4);
  transition: color var(--dur-base) var(--ease),
              transform var(--dur-slow) var(--ease);
}
.cln-module-icon svg {
  width: 100%; height: 100%;
}
.cln-module-icon svg path,
.cln-module-icon svg line,
.cln-module-icon svg polyline,
.cln-module-icon svg ellipse,
.cln-module-icon svg circle {
  stroke-dasharray: 200;
  stroke-dashoffset: 0;
  transition: stroke-dashoffset var(--dur-slow) var(--ease);
}
.cln-module:hover .cln-module-icon {
  color: var(--azul);
  transform: rotate(-4deg) scale(1.08);
}
.cln-module:hover .cln-module-icon svg path,
.cln-module:hover .cln-module-icon svg line,
.cln-module:hover .cln-module-icon svg polyline,
.cln-module:hover .cln-module-icon svg ellipse,
.cln-module:hover .cln-module-icon svg circle {
  animation: cln-stroke-redraw 900ms var(--ease);
}
@keyframes cln-stroke-redraw {
  0%   { stroke-dashoffset: 200; }
  100% { stroke-dashoffset: 0; }
}

.cln-module h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: var(--s-3);
  color: var(--ink);
}
.cln-module p {
  font-size: 14.5px;
  color: var(--ink-3);
  line-height: 1.55;
  margin: 0;
}

/* Stagger reveal · cada módulo entra con delay incremental */
.cln-module {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 600ms var(--ease), transform 600ms var(--ease), background var(--dur-base) var(--ease);
}
.is-visible .cln-module {
  opacity: 1;
  transform: translateY(0);
}
.is-visible .cln-module:nth-child(1) { transition-delay: 0ms; }
.is-visible .cln-module:nth-child(2) { transition-delay: 70ms; }
.is-visible .cln-module:nth-child(3) { transition-delay: 140ms; }
.is-visible .cln-module:nth-child(4) { transition-delay: 210ms; }
.is-visible .cln-module:nth-child(5) { transition-delay: 280ms; }
.is-visible .cln-module:nth-child(6) { transition-delay: 350ms; }
.is-visible .cln-module:nth-child(7) { transition-delay: 420ms; }
.is-visible .cln-module:nth-child(8) { transition-delay: 490ms; }

@media (max-width: 1100px) {
  .cln-modules { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .cln-modules { grid-template-columns: 1fr; }
  .cln-module { padding: var(--s-6); }
}

/* ──────────────────────────────────────────────────────────────────
 * PILARES TÉCNICOS · 4 cards editorial · cero iconos · num + título + nota
 * Contraste deliberado con módulos (iconos + frases comerciales)
 * Aquí: numeración serif + claim técnico + nota implementación
 * ────────────────────────────────────────────────────────────────── */
.cln-section-eyebrow {
  display: inline-flex; align-items: center; gap: var(--s-2);
  font-family: var(--font-mono);
  font-size: 11px; font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--ink-3);
  margin: 0;
}
.cln-section-eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--azul);
  display: inline-block;
}

.cln-pilares {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-7);
  border-top: 1px solid var(--hairline);
  padding-top: var(--s-8);
}
.cln-pilar {
  display: flex; flex-direction: column;
  gap: var(--s-4);
  padding-right: var(--s-5);
  position: relative;
}
.cln-pilar-num {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 300;
  font-style: italic;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--azul);
  display: block;
  margin-bottom: var(--s-3);
}
.cln-pilar h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0;
  color: var(--ink);
}
.cln-pilar p {
  font-size: 14.5px;
  color: var(--ink-3);
  line-height: 1.55;
  margin: 0;
}
.cln-pilar-detail {
  font-family: var(--font-mono);
  font-size: 11.5px !important;
  letter-spacing: 0.04em;
  color: var(--ink-3) !important;
  padding-top: var(--s-3);
  border-top: 1px dashed var(--hairline);
  margin-top: auto !important;
}

/* Dark mode: pilar-num azul ya funciona (mismo --azul) · borders via tokens */
[data-theme="dark"] .cln-pilar-detail {
  border-top-color: var(--hairline);
}

/* Stagger reveal · alinea con módulos rhythm */
.cln-pilar {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 600ms var(--ease), transform 600ms var(--ease);
}
.is-visible .cln-pilar {
  opacity: 1;
  transform: translateY(0);
}
.is-visible .cln-pilar:nth-child(1) { transition-delay: 0ms; }
.is-visible .cln-pilar:nth-child(2) { transition-delay: 100ms; }
.is-visible .cln-pilar:nth-child(3) { transition-delay: 200ms; }
.is-visible .cln-pilar:nth-child(4) { transition-delay: 300ms; }

@media (max-width: 900px) {
  .cln-pilares { grid-template-columns: repeat(2, 1fr); gap: var(--s-6); }
  .cln-pilar-num { font-size: 40px; }
}
@media (max-width: 600px) {
  .cln-pilares { grid-template-columns: 1fr; gap: var(--s-7); }
}

/* ──────────────────────────────────────────────────────────────────
 * PULLQUOTE · editorial band · brandbook insight before productos
 * ────────────────────────────────────────────────────────────────── */
.cln-pullquote {
  background: var(--bg-pure);
  padding: var(--pad-section) clamp(20px, 4vw, 48px);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}
.cln-pullquote-inner {
  max-width: 900px;
  margin: 0 auto;
  text-align: left;
  display: flex; flex-direction: column;
  gap: var(--s-5);
}
.cln-pullquote-eyebrow {
  display: inline-flex; align-items: center; gap: var(--s-2);
  font-family: var(--font-mono);
  font-size: 11px; font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--ink-3);  /* WCAG AA · ink-4 3.5:1 → ink-3 9:1 vs --bg */
}
.cln-pullquote-eyebrow::before {
  content: ''; display: inline-block;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--azul);
}
.cln-pullquote q {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(28px, 4.5vw, 56px);
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--ink);
  max-width: 22ch;
  display: block;
}
.cln-pullquote q::before, .cln-pullquote q::after { content: none; }
.cln-pullquote-attribution {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--ink-3);
  margin-top: var(--s-5);
  font-style: italic;
}

.cln-products {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-5);
}
.cln-product {
  display: flex; flex-direction: column;
  padding: var(--s-7);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-card);
  background: var(--bg-pure);
  transition: all var(--dur-base) var(--ease);
  position: relative;
  text-decoration: none;
  color: inherit;
  min-height: 380px;
  /* Apple liquid glass · subtle elevation by default */
  box-shadow:
    0 1px 2px rgba(28, 28, 30, 0.04),
    0 0 0 1px rgba(28, 28, 30, 0.02);
}
.cln-product:hover {
  border-color: var(--azul);
  transform: translateY(-6px);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 32px 64px -16px rgba(0, 102, 204, 0.22),
    0 12px 24px -8px rgba(28, 28, 30, 0.10),
    0 0 0 1px rgba(0, 102, 204, 0.45);
}
.cln-product h3 {
  font-weight: 700;
  letter-spacing: -0.025em;
}
.cln-product-tag {
  display: inline-flex; align-items: center; gap: var(--s-2);
  font-family: var(--font-mono);
  font-size: 11px; font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--ink-4);
  margin-bottom: var(--s-5);
}
.cln-product-tag .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--azul);
}
.cln-product-tag.dot-amber .dot { background: #fbbf24; }
.cln-product-tag.dot-soft .dot { background: var(--ink-5); }
/* Producto · ícono opcional · solo cards con asset oficial */
.cln-product-icon {
  display: block;
  width: 56px; height: 56px;
  margin-bottom: var(--s-5);
  user-select: none;
  -webkit-user-drag: none;
}
.cln-product h3 {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 600;
  letter-spacing: var(--track-tight);
  line-height: 1.1;
  margin-bottom: var(--s-3);
  color: var(--ink);
}
.cln-product p {
  font-size: 15px;
  color: var(--ink-3);
  line-height: 1.55;
  margin-bottom: var(--s-7);
  flex: 1;
}
.cln-product-cta {
  display: inline-flex; align-items: center; gap: var(--s-2);
  font-size: 14px; font-weight: 500;
  color: var(--ink);
}
.cln-product-cta::after {
  content: '→'; transition: transform var(--dur-fast) var(--ease);
}
.cln-product:hover .cln-product-cta::after { transform: translateX(3px); }
.cln-product-cta-soft { color: var(--ink-4); }

@media (max-width: 900px) {
  .cln-products { grid-template-columns: 1fr; }
  .cln-product { min-height: auto; }
}

/* ──────────────────────────────────────────────────────────────────
 * DIAGNÓSTICO CTA · light · centered · single accent
 * ────────────────────────────────────────────────────────────────── */
.cln-diag {
  text-align: center;
  max-width: 880px;
  margin: 0 auto;
  padding: var(--pad-section) clamp(20px, 4vw, 48px);
  border-top: 1px solid var(--hairline);
}
.cln-diag h2 {
  font-family: var(--font-display);
  font-size: clamp(36px, 5.5vw, 72px);
  font-weight: 600;
  letter-spacing: var(--track-display);
  line-height: 1.05;
  margin-bottom: var(--s-5);
}
.cln-diag h2 em {
  font-style: normal;
  color: var(--azul);
}
.cln-diag-lead {
  font-size: var(--type-lead);
  color: var(--ink-3);
  margin-bottom: var(--s-7);
  max-width: 560px;
  margin-left: auto; margin-right: auto;
}
.cln-diag-fineprint {
  margin-top: var(--s-5);
  font-size: 13px;
  color: var(--ink-4);
}

/* ──────────────────────────────────────────────────────────────────
 * FAQ · acordeón nativo <details><summary> · todas abiertas default
 * User puede colapsar individualmente · animación 200ms en chevron
 * ────────────────────────────────────────────────────────────────── */
.cln-faq {
  display: flex; flex-direction: column;
  gap: var(--s-3);
}
.cln-faq-item {
  padding: var(--s-6) var(--s-6);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-card);
  background: var(--bg-pure);
  transition: border-color var(--dur-base) var(--ease),
              box-shadow var(--dur-base) var(--ease);
  position: relative;
}
.cln-faq-item:hover {
  border-color: rgba(0, 102, 204, 0.35);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 8px 24px -12px rgba(0, 102, 204, 0.12),
    0 4px 12px -2px rgba(28, 28, 30, 0.05);
}
.cln-faq-item summary {
  display: grid;
  grid-template-columns: 56px 1fr 24px;
  align-items: center;
  gap: var(--s-5);
  cursor: pointer;
  list-style: none;
  user-select: none;
}
.cln-faq-item summary::-webkit-details-marker { display: none; }
.cln-faq-item summary:focus-visible {
  outline: 2px solid var(--azul);
  outline-offset: 4px;
  border-radius: var(--s-2);
}
.cln-faq-num {
  font-family: var(--font-mono);
  font-size: 11px; font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--ink-3);
}
.cln-faq-q {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.3;
  color: var(--ink);
}
.cln-faq-chevron {
  width: 24px; height: 24px;
  position: relative;
  display: inline-block;
  transition: transform var(--dur-base) var(--ease);
}
.cln-faq-chevron::before,
.cln-faq-chevron::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 12px; height: 1.5px;
  background: var(--ink-3);
  transform-origin: center;
  transition: transform var(--dur-base) var(--ease);
}
.cln-faq-chevron::before { transform: translate(-50%, -50%) rotate(45deg) translateX(-3px); }
.cln-faq-chevron::after  { transform: translate(-50%, -50%) rotate(-45deg) translateX(3px); }
.cln-faq-item[open] .cln-faq-chevron::before { transform: translate(-50%, -50%) rotate(-45deg) translateX(-3px); }
.cln-faq-item[open] .cln-faq-chevron::after  { transform: translate(-50%, -50%) rotate(45deg) translateX(3px); }

.cln-faq-a {
  font-size: 15.5px;
  color: var(--ink-3);
  line-height: 1.6;
  max-width: 640px;
  margin: var(--s-4) 0 0 calc(56px + var(--s-5));
}

@media (max-width: 720px) {
  .cln-faq-item summary { grid-template-columns: 40px 1fr 20px; gap: var(--s-3); }
  .cln-faq-item { padding: var(--s-5); }
  .cln-faq-a { margin-left: calc(40px + var(--s-3)); font-size: 15px; }
  .cln-faq-q { font-size: 18px; }
}

@media (max-width: 720px) {
  .cln-faq { gap: var(--s-2); }
  .cln-faq-num { padding-top: 0; padding-bottom: var(--s-2); }
}

/* ──────────────────────────────────────────────────────────────────
 * FOOTER · minimal · 3 col · single hairline top
 * ────────────────────────────────────────────────────────────────── */
.cln-footer {
  border-top: 1px solid var(--hairline);
  padding: var(--s-9) clamp(20px, 4vw, 48px) var(--s-7);
  max-width: var(--measure);
  margin: 0 auto;
}
.cln-footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: var(--s-7);
  margin-bottom: var(--s-9);
}
.cln-footer-tagline {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 400;
  color: var(--ink-3);
  margin-top: var(--s-4);
  max-width: 320px;
  line-height: 1.4;
}
.cln-footer-col h3 {
  font-family: var(--font-mono);
  font-size: 11px; font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--ink-3);  /* WCAG AA · ink-4 era 3.5:1 vs F9F9F9 · ink-3 es 9:1 */
  margin: 0 0 var(--s-4);
}
.cln-footer-col ul {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: var(--s-3);
}
.cln-footer-col a {
  font-size: 14px;
  color: var(--ink-2);
  transition: color var(--dur-fast) var(--ease);
}
.cln-footer-col a:hover { color: var(--azul); }
.cln-footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: var(--s-5);
  border-top: 1px solid var(--hairline);
  font-size: 12px;
  color: var(--ink-3);  /* WCAG AA · ink-4 3.09:1 → ink-3 9:1 */
  flex-wrap: wrap; gap: var(--s-3);
}

@media (max-width: 720px) {
  .cln-footer-grid { grid-template-columns: 1fr; gap: var(--s-6); }
}

/* ──────────────────────────────────────────────────────────────────
 * MICROANIMATIONS · scroll-triggered fade-up + stagger product cards
 * Reference: Linear/Vercel · subtle motion · cero bouncy
 * ────────────────────────────────────────────────────────────────── */

/* Section reveal · más pronunciado · 700ms easeOutExpo */
.cln-reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 700ms var(--ease), transform 700ms var(--ease);
}
.cln-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Product cards · stagger reveal */
.cln-product {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 600ms var(--ease), transform 600ms var(--ease), border-color var(--dur-base) var(--ease), box-shadow var(--dur-base) var(--ease);
}
.is-visible .cln-product {
  opacity: 1;
  transform: translateY(0);
}
.is-visible .cln-product:nth-child(1) { transition-delay: 50ms; }
.is-visible .cln-product:nth-child(2) { transition-delay: 130ms; }
.is-visible .cln-product:nth-child(3) { transition-delay: 210ms; }

/* FAQ items · NO observer-dependent microanim · display:contents
 * en .cln-faq-item rompe IntersectionObserver. La sección padre
 * .cln-section ya hace fade-up completo · suficiente. */

/* Diagnóstico · scroll-triggered scale subtle */
.cln-diag h2 {
  transition: opacity 800ms var(--ease), transform 800ms var(--ease);
}
.cln-diag:not(.is-visible) h2 {
  opacity: 0;
  transform: translateY(24px);
}
.cln-diag.is-visible h2 {
  opacity: 1;
  transform: translateY(0);
}

/* Hero h1 · letter-rise sutil al cargar · NO stagger por letra · solo fade-up del block */
@keyframes cln-hero-rise {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
.cln-hero h1 {
  animation: cln-hero-rise 900ms var(--ease) 100ms both;
}
.cln-hero-lead {
  animation: cln-hero-rise 900ms var(--ease) 280ms both;
}
.cln-hero-actions {
  animation: cln-hero-rise 900ms var(--ease) 460ms both;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .cln-reveal { opacity: 1; transform: none; }
}
