/* =========================================================
   OMI Tech — Propuesta 01 · Claridad
   Sistema: off-white + blanco, navy para texto, azul como
   único acento. Retícula editorial de 12 columnas, líneas
   de 1px, casi sin sombras.
   ========================================================= */

:root {
  --navy: #0B1930;
  --blue: #1769FF;
  --blue-dark: #0F55D6;
  --cyan: #18BFE8;
  --off: #F7F9FC;
  --white: #FFFFFF;
  --ink-2: #44506A;      /* texto secundario */
  --ink-3: #7A849A;      /* texto terciario */
  --line: #E1E6EF;       /* líneas finas */
  --tint: #E8EEF8;       /* isotipo gigante */

  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  /* escala tipográfica (fluida) */
  --t-hero: clamp(2.75rem, 1.2rem + 6.4vw, 7rem);
  --t-h2: clamp(2rem, 1.2rem + 2.8vw, 3.5rem);
  --t-value: clamp(1.75rem, 0.9rem + 3.4vw, 4rem);
  --t-lead: clamp(1.125rem, 1rem + 0.45vw, 1.375rem);

  /* espaciado (base 8) */
  --s-1: 8px; --s-2: 16px; --s-3: 24px; --s-4: 32px;
  --s-6: 48px; --s-8: 64px; --s-12: 96px; --s-16: 128px;
  --section: clamp(80px, 6vw + 48px, 160px);
  --gutter: clamp(20px, 4vw, 48px);
  --max: 1280px;

  --r-sm: 8px;
  --r-md: 14px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--navy);
  background: var(--off);
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "ss01", "cv11";
  overflow-x: hidden;
}
h1, h2, h3, p, ol, ul { margin: 0; }
ol, ul { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section) 0; }
.grid-12 { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--s-3); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip { position: absolute; left: -9999px; top: 8px; background: var(--navy); color: #fff; padding: 8px 16px; border-radius: var(--r-sm); z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 4px; }

/* ---------- Tipografía ---------- */
.h2 { font-size: var(--t-h2); line-height: 1.05; letter-spacing: -0.035em; font-weight: 700; max-width: 18ch; }
.body-lg { font-size: var(--t-lead); line-height: 1.5; color: var(--ink-2); max-width: 46ch; }
.section-tag { font-size: 0.9375rem; font-weight: 600; color: var(--blue); margin-bottom: var(--s-3); }
.section-head { display: grid; gap: var(--s-3); margin-bottom: var(--s-8); }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-weight: 600; font-size: 0.9375rem; line-height: 1;
  padding: 14px 22px; border-radius: 999px; border: 1px solid transparent;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
  white-space: nowrap;
}
.btn-lg { padding: 18px 28px; font-size: 1rem; }
.btn-primary { background: var(--blue); color: var(--white); }
.btn-primary:hover { background: var(--blue-dark); }
.btn-primary:active { transform: scale(.98); }
.btn-link { padding-left: 4px; padding-right: 4px; color: var(--navy); border-radius: 0; position: relative; }
.btn-link::after {
  content: ""; position: absolute; left: 4px; right: 4px; bottom: 8px; height: 1px; background: currentColor;
  transform-origin: left; transition: transform .3s var(--ease);
}
.btn-link:hover::after { transform: scaleX(.4); }

/* ---------- Logo ---------- */
.logo { display: inline-flex; align-items: center; }
.logo-img { height: 44px; width: auto; }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: var(--off);
  border-bottom: 1px solid transparent;
  transition: border-color .25s var(--ease);
  padding-top: env(safe-area-inset-top, 0px);
}
.header.is-scrolled { border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.nav { display: flex; align-items: center; gap: var(--s-4); font-size: 0.9375rem; font-weight: 500; }
.nav a:not(.btn) { color: var(--ink-2); transition: color .2s var(--ease); }
.nav a:not(.btn):hover { color: var(--navy); }
.nav-cta { padding: 11px 20px; }
.menu-toggle { display: none; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(72px, 12vh, 160px) 0 clamp(96px, 14vh, 180px); }
.hero-iso {
  position: absolute; z-index: 0; pointer-events: none;
  width: min(58vw, 820px); right: max(-5vw, -72px); top: 24px;
  overflow: visible;
}
.hero-ring { fill: var(--tint); transform-origin: 213px 221px; transform-box: view-box; }
.hero-tab { fill: var(--blue); }
.hero-inner { position: relative; z-index: 1; }
.hero-kicker { font-size: 0.9375rem; font-weight: 500; color: var(--ink-3); margin-bottom: var(--s-4); }
.hero-title {
  font-size: var(--t-hero); line-height: 0.98; letter-spacing: -0.05em; font-weight: 700;
  max-width: 11.5ch; text-wrap: balance;
}
.hero-lead { margin-top: var(--s-4); font-size: var(--t-lead); color: var(--ink-2); max-width: 40ch; line-height: 1.5; }
.hero-actions { margin-top: var(--s-6); display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3); }

/* Animación de carga: el anillo gira hasta su posición y la pestaña azul "encaja" */
.js .hero-ring { opacity: 0; transform: rotate(-35deg); animation: ring-in 1.4s .1s var(--ease) forwards; }
.js .hero-tab { opacity: 0; transform: translateY(-40px); animation: tab-in .7s 1s var(--ease) forwards; }
.js .hero-inner > * { opacity: 0; transform: translateY(12px); animation: rise .7s var(--ease) forwards; }
.js .hero-inner > *:nth-child(2) { animation-delay: .08s; }
.js .hero-inner > *:nth-child(3) { animation-delay: .16s; }
.js .hero-inner > *:nth-child(4) { animation-delay: .24s; }
@keyframes ring-in { to { opacity: 1; transform: none; } }
@keyframes tab-in { to { opacity: 1; transform: none; } }
@keyframes rise { to { opacity: 1; transform: none; } }

/* ---------- Propuesta de valor ---------- */
.value { padding-bottom: var(--section); }
.value-list { border-top: 1px solid var(--navy); }
.value-row {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: var(--s-6);
  align-items: end; padding: var(--s-6) 0; border-bottom: 1px solid var(--line);
}
.value-line { font-size: var(--t-value); line-height: 1.02; letter-spacing: -0.04em; font-weight: 600; }
.value-note { color: var(--ink-2); max-width: 36ch; padding-bottom: 6px; }

/* ---------- Servicio principal ---------- */
.main-service { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.ms-copy { grid-column: 1 / span 6; }
.ms-copy .h2 { margin-bottom: var(--s-4); max-width: 14ch; }
.ms-mix { grid-column: 8 / span 5; align-self: end; }
.ms-mix-title { font-size: 0.9375rem; font-weight: 600; color: var(--ink-3); padding-bottom: var(--s-2); border-bottom: 1px solid var(--navy); }
.mix-list li { display: grid; gap: 4px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.mix-name { font-weight: 600; font-size: 1.0625rem; }
.mix-desc { color: var(--ink-2); font-size: 0.9375rem; }

/* ---------- Servicios ---------- */
.service-list { border-top: 1px solid var(--navy); }
.service {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr) 40px; gap: var(--s-4); align-items: center;
  padding: 28px 0; border-bottom: 1px solid var(--line);
  transition: padding .35s var(--ease);
}
.service::before {
  content: ""; position: absolute; left: 0; top: -1px; height: 1px; width: 100%; background: var(--blue);
  transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease);
}
.service-name { font-size: clamp(1.25rem, 1rem + 0.9vw, 1.75rem); font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; transition: color .25s var(--ease); }
.service-desc { color: var(--ink-2); max-width: 48ch; }
.service-mark { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); position: relative; transition: background-color .3s var(--ease), border-color .3s var(--ease); }
.service-mark::before, .service-mark::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.5px; background: var(--navy);
  transform: translate(-50%, -50%); transition: background-color .3s var(--ease), transform .3s var(--ease);
}
.service-mark::after { transform: translate(-50%, -50%) rotate(90deg); }
@media (hover: hover) {
  .service:hover { padding-left: 16px; }
  .service:hover::before { transform: scaleX(1); }
  .service:hover .service-name { color: var(--blue); }
  .service:hover .service-mark { background: var(--blue); border-color: var(--blue); }
  .service:hover .service-mark::before, .service:hover .service-mark::after { background: var(--white); }
  .service:hover .service-mark::after { transform: translate(-50%, -50%) rotate(0deg); }
}

/* ---------- Recorrido del lead (línea de etapas) ---------- */
.steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--s-3); position: relative; padding-top: var(--s-6); }
.steps::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--navy);
  transform-origin: left; transform: scaleX(1);
}
.js .steps::before { transform: scaleX(0); transition: transform 1.2s var(--ease); }
.js .steps.is-in::before { transform: scaleX(1); }
.step { position: relative; }
.step::before {
  content: ""; position: absolute; top: calc(-1 * var(--s-6) - 4px); left: 0; width: 9px; height: 9px; border-radius: 50%;
  background: var(--white); border: 1.5px solid var(--navy); transition: background-color .3s var(--ease), border-color .3s var(--ease);
}
.step:hover::before { background: var(--blue); border-color: var(--blue); }
.step-num { display: block; font-size: 0.875rem; font-weight: 600; color: var(--blue); margin-bottom: var(--s-2); font-variant-numeric: tabular-nums; }
.step h3 { font-size: 1.375rem; letter-spacing: -0.02em; font-weight: 600; margin-bottom: var(--s-1); }
.step p { color: var(--ink-2); font-size: 0.9375rem; max-width: 24ch; }
.js .step { opacity: 0; transform: translateY(10px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.js .steps.is-in .step { opacity: 1; transform: none; }
.js .steps.is-in .step:nth-child(2) { transition-delay: .12s; }
.js .steps.is-in .step:nth-child(3) { transition-delay: .24s; }
.js .steps.is-in .step:nth-child(4) { transition-delay: .36s; }
.js .steps.is-in .step:nth-child(5) { transition-delay: .48s; }

/* ---------- Diferencial (único bloque azul pleno) ---------- */
.diff { background: var(--blue); color: var(--white); padding: var(--section) 0; }
.diff-title {
  font-size: clamp(2.5rem, 1rem + 6vw, 6.5rem); line-height: 0.98; letter-spacing: -0.05em; font-weight: 700;
  max-width: 13ch; text-wrap: balance;
}
.diff-intro { margin-top: var(--s-6); max-width: 52ch; font-size: var(--t-lead); line-height: 1.5; color: rgba(255,255,255,.88); }
.diff-cols { margin-top: var(--s-12); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-4); }
.diff-col { border-top: 1px solid rgba(255,255,255,.45); padding-top: var(--s-3); }
.diff-col h3 { font-size: 1.375rem; letter-spacing: -0.02em; font-weight: 600; margin-bottom: var(--s-2); }
.diff-col p { color: rgba(255,255,255,.82); max-width: 34ch; }
.diff-close { margin-top: var(--s-12); font-size: clamp(1.375rem, 1rem + 1.4vw, 2.25rem); font-weight: 600; letter-spacing: -0.025em; line-height: 1.2; max-width: 26ch; }

/* ---------- Nosotros ---------- */
.about-title { grid-column: 1 / span 6; max-width: 12ch; }
.about-copy { grid-column: 8 / span 5; display: grid; gap: var(--s-3); align-content: start; padding-top: 8px; }
.about-copy > p:not(.body-lg) { color: var(--ink-2); max-width: 44ch; }
.about-not { margin-top: var(--s-2); border-top: 1px solid var(--line); }
.about-not li { padding: 14px 0; border-bottom: 1px solid var(--line); font-weight: 500; }

/* ---------- CTA ---------- */
.cta { padding-top: 0; }
.cta-box {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: clamp(40px, 7vw, 112px); display: grid; gap: var(--s-4); justify-items: start;
}
.cta-title { font-size: clamp(2.5rem, 1.2rem + 5vw, 5.5rem); line-height: 1; letter-spacing: -0.05em; font-weight: 700; }
.cta-box .btn { margin-top: var(--s-2); }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: var(--s-8) 0 calc(var(--s-4) + env(safe-area-inset-bottom, 0px)); }
.footer-inner { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 3fr) minmax(0, 3fr); gap: var(--s-4); }
.footer-brand .logo-img { height: 52px; }
.footer-brand p { margin-top: var(--s-2); color: var(--ink-2); font-size: 0.9375rem; }
.footer-list { display: grid; gap: 10px; font-size: 0.9375rem; color: var(--ink-2); align-content: start; }
.footer-list a:hover { color: var(--blue); }
.footer-base { margin-top: var(--s-8); font-size: 0.8125rem; color: var(--ink-3); }

/* ---------- Revelado al hacer scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1024px) {
  .ms-copy { grid-column: 1 / -1; }
  .ms-mix { grid-column: 1 / -1; margin-top: var(--s-8); }
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: var(--s-8); }
  .steps::before { display: none; }
  .step { border-top: 1px solid var(--navy); padding-top: var(--s-3); }
  .step::before { display: none; }
  .about-title, .about-copy { grid-column: 1 / -1; }
  .about-copy { margin-top: var(--s-4); }
}

@media (max-width: 820px) {
  .menu-toggle {
    display: inline-flex; flex-direction: column; justify-content: center; gap: 6px;
    width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; background: var(--white); cursor: pointer; padding: 0 12px;
  }
  .menu-toggle span { display: block; height: 1.5px; background: var(--navy); transition: transform .25s var(--ease); }
  .menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.75px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.75px) rotate(-45deg); }

  .nav {
    position: fixed; inset: calc(76px + env(safe-area-inset-top, 0px)) 0 0 0; background: var(--off);
    flex-direction: column; align-items: stretch; gap: 0; padding: var(--s-3) var(--gutter) calc(var(--s-4) + env(safe-area-inset-bottom, 0px));
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .25s var(--ease), transform .25s var(--ease), visibility 0s .25s;
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
  .nav a:not(.btn) { font-size: 1.75rem; font-weight: 600; letter-spacing: -0.02em; color: var(--navy); padding: 16px 0; border-bottom: 1px solid var(--line); }
  .nav-cta { margin-top: var(--s-4); padding: 18px; font-size: 1rem; }

  .hero-iso { width: 92vw; right: -30vw; top: auto; bottom: -18vw; opacity: .9; }
  .value-row { grid-template-columns: 1fr; gap: var(--s-2); padding: var(--s-4) 0; }
  .service { grid-template-columns: 1fr; gap: var(--s-1); padding: 24px 0; }
  .service-mark { display: none; }
  .diff-cols { grid-template-columns: 1fr; gap: var(--s-4); margin-top: var(--s-8); }
  .diff-close { margin-top: var(--s-8); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
  .steps { grid-template-columns: 1fr; row-gap: var(--s-4); }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn-primary { width: 100%; }
  .hero-actions .btn-link { align-self: flex-start; }
  .cta-box .btn { width: 100%; }
  .section-head { margin-bottom: var(--s-6); }
}


/* =========================================================
   v2 — Foco comercial: señales, recorrido, proceso en filas
   ========================================================= */
.signals { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.signals-head { grid-column: 1 / span 5; display: grid; gap: var(--s-3); align-content: start; }
.signals-head .h2 { max-width: 12ch; }
.signals-list { grid-column: 7 / span 6; border-top: 1px solid var(--navy); }
.signals-list li {
  position: relative; padding: 22px 0 22px 30px; border-bottom: 1px solid var(--line);
  font-size: 1.125rem; line-height: 1.45; letter-spacing: -0.01em;
}
.signals-list li::before { /* pestaña del isotipo como marcador */
  content: ""; position: absolute; left: 0; top: 27px; width: 10px; height: 16px; background: var(--blue);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 52%); border-radius: 2px;
}

.journey-steps { margin-top: var(--s-2); }
.journey-steps .step { display: flex; flex-direction: column; gap: var(--s-1); }
.journey-steps .step h3 { margin-bottom: 0; }
.journey-steps .step p { max-width: 26ch; }
.uses {
  margin-top: var(--s-2); align-self: flex-start; font-size: .8125rem; font-weight: 600; color: var(--blue);
  border: 1px solid #CFDDFB; background: #F1F5FE; padding: 4px 10px; border-radius: 999px;
}
.journey-foot { margin-top: var(--s-8); padding-top: var(--s-3); border-top: 1px solid var(--line); font-size: clamp(1.125rem, 1rem + .5vw, 1.5rem); font-weight: 600; letter-spacing: -0.02em; max-width: 40ch; }

.services { background: var(--white); border-top: 1px solid var(--line); }
.also { margin-top: var(--s-6); color: var(--ink-2); max-width: 70ch; }
.also span { font-weight: 600; color: var(--navy); }

.process-head { grid-column: 1 / span 4; display: grid; gap: var(--s-3); align-content: start; }
.process-rows { grid-column: 6 / span 7; border-top: 1px solid var(--navy); }
.process-rows li {
  display: grid; grid-template-columns: 56px minmax(0, 4fr) minmax(0, 7fr); gap: var(--s-3); align-items: baseline;
  padding: 24px 0; border-bottom: 1px solid var(--line);
}
.process-rows .step-num { margin: 0; }
.process-rows h3 { font-size: 1.375rem; font-weight: 600; letter-spacing: -0.02em; }
.process-rows p { color: var(--ink-2); }

@media (max-width: 1024px) {
  .signals-head, .signals-list, .process-head, .process-rows { grid-column: 1 / -1; }
  .signals-list, .process-rows { margin-top: var(--s-6); }
  .journey-steps .step p { max-width: 40ch; }
}
@media (max-width: 560px) {
  .signals-list li { font-size: 1.0625rem; }
  .process-rows li { grid-template-columns: 44px minmax(0, 1fr); row-gap: 4px; }
  .process-rows p { grid-column: 2; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal, .js .step, .js .hero-inner > * { opacity: 1 !important; transform: none !important; }
  .js .hero-ring, .js .hero-tab { opacity: 1 !important; transform: none !important; }
  .js .steps::before { transform: scaleX(1) !important; }
}

/* =========================================================
   v3 — Especialidad + contacto (sitio en producción)
   ========================================================= */
.service-featured .service-name { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.badge {
  font-size: .8125rem; font-weight: 600; letter-spacing: 0; line-height: 1;
  color: var(--white); background: var(--blue); padding: 6px 11px; border-radius: 999px;
}
.cta-actions { margin-top: var(--s-2); display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2) var(--s-4); }
.cta-box .cta-actions .btn { margin-top: 0; }
.footer-mail { display: inline-block; margin-top: var(--s-1); font-weight: 600; font-size: .9375rem; color: var(--navy); }
.footer-mail:hover { color: var(--blue); }
.diff-title { max-width: 15ch; }

/* Página 404 */
.notfound { min-height: 70vh; display: grid; align-content: center; padding: var(--section) 0; }
.notfound .hero-title { max-width: 14ch; }
.notfound .hero-lead { margin-bottom: var(--s-6); }

@media (max-width: 560px) {
  .cta-actions { flex-direction: column; align-items: stretch; }
  .cta-actions .btn-link { align-self: flex-start; width: auto; }
}

.service-desc p + p { margin-top: var(--s-1); }

/* Preguntas frecuentes: reutiliza .process-head / .process-rows */
.faq { background: var(--white); border-top: 1px solid var(--line); }
.faq-more { justify-self: start; margin-top: var(--s-2); font-weight: 600; }
.faq-rows p a { color: var(--blue); font-weight: 600; }
.faq-rows li { grid-template-columns: 56px minmax(0, 1fr); row-gap: var(--s-1); }
.faq-rows h3 { max-width: 30ch; }
.faq-rows p { grid-column: 2; max-width: 56ch; }
