/* =========================================================
   OMNIA MGA — WordPress Theme v2 (Robotics direction)
   Light surface · purple→pink gradient · soft corporate-futurist
   Typography: Bricolage Grotesque + Plus Jakarta Sans + Geist Mono + Instrument Serif
   ========================================================= */

/* =========================================================
   FUENTES AUTOALOJADAS
   Variables (un archivo por familia+subset, no uno por peso) descargadas de
   Google Fonts y servidas desde /assets/fonts/. Se quitó el <link> a
   fonts.googleapis.com: bloqueaba el render (~850 ms) y enviaba la IP de cada
   visitante a Google sin consentimiento — justo lo que el modal de cookies
   existe para evitar. unicode-range hace que solo se baje el subset necesario.
   ========================================================= */
@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 400 800;
  font-stretch: 100%;
  font-display: swap;
  src: url(../fonts/bricolage-grotesque-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 400 800;
  font-stretch: 100%;
  font-display: swap;
  src: url(../fonts/bricolage-grotesque-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Geist Mono';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url(../fonts/geist-mono-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Geist Mono';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url(../fonts/geist-mono-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Instrument Serif';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/instrument-serif-italic-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Instrument Serif';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/instrument-serif-italic-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Instrument Serif';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/instrument-serif-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Instrument Serif';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/instrument-serif-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(../fonts/plus-jakarta-sans-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(../fonts/plus-jakarta-sans-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* SURFACES — light corporate-futurist */
  --bg:        #fafaf5;
  --bg-2:      #f3f1ec;
  --bg-3:      #ecead4;
  --card:      #ffffff;
  --card-soft: #f7f5fc;
  --ink:       #0a0a14;
  --ink-soft:  #1c1c2e;
  --paper:     #2c2c40;
  --ash:       #6b6b80;
  --grave:     #9a9aae;
  --tomb:      #cdcdd8;

  /* ACCENTS — Omnia MGA corporate olive (extraído del logo real) */
  --pri:       #6e7d12;            /* olive corporativo Omnia */
  --pri-d:     #59661d;
  --pri-soft:  #f1f3dc;
  --acc:       #b89a2c;            /* mostaza/dorado complementario */
  --acc-d:     #95791f;
  --acc-soft:  #f7f0d8;
  --grad:      linear-gradient(135deg, #6e7d12 0%, #9bb024 100%);
  --grad-soft: linear-gradient(135deg, rgba(110,125,18,.12) 0%, rgba(155,176,36,.12) 100%);
  --grad-text: linear-gradient(135deg, #59661d 0%, #6e7d12 100%);
  --info:      #4f8cff;
  --warn:      #b89a2c;
  --ok:        #5d8a1f;

  /* LINES + SHADOWS */
  --b-line:    rgba(10,10,20,.08);
  --b-line-2:  rgba(10,10,20,.16);
  --b-pri:     rgba(110,125,18,.22);

  --sh-sm:     0 1px 2px rgba(10,10,20,.04), 0 1px 3px rgba(10,10,20,.06);
  --sh:        0 4px 12px rgba(10,10,20,.05), 0 2px 4px rgba(10,10,20,.04);
  --sh-lg:     0 18px 40px rgba(10,10,20,.06), 0 8px 16px rgba(10,10,20,.04);
  --sh-pri:    0 18px 40px rgba(110,125,18,.18), 0 6px 14px rgba(110,125,18,.12);

  /* RADII */
  --r-xs:  6px;
  --r-sm:  10px;
  --r:     16px;
  --r-lg:  24px;
  --r-xl:  32px;

  /* TYPE */
  --f-disp: 'Bricolage Grotesque', system-ui, sans-serif;
  --f-edit: 'Instrument Serif', Georgia, serif;
  --f-body: 'Plus Jakarta Sans', system-ui, sans-serif;
  --f-mono: 'Geist Mono', ui-monospace, 'Courier New', monospace;

  /* MOTION */
  --ez:      cubic-bezier(.16,1,.3,1);
  --ez-bk:   cubic-bezier(.68,-.55,.27,1.55);
  --ez-emil: cubic-bezier(.4,0,.2,1);   /* micro-states: feedback, no decoración */

  /* LEGACY ALIASES — para que templates v1 sigan funcionando con la nueva paleta */
  --accent:     var(--pri);
  --accent-d:   var(--pri-d);
  --accent-g:   rgba(110,125,18,.12);
  --accent2:    var(--acc);
  --accent2-g:  rgba(184,154,44,.12);
  --bone:       var(--ink);
  --ink-2:      var(--bg-2);
  --ink-3:      var(--card-soft);
  --ink-4:      var(--bg-3);
  --ink-5:      var(--bg-3);
  --b-acc:      var(--b-pri);
  --gl:         var(--sh-pri);
  --gl-r:       0 18px 40px rgba(255,92,138,.18);
  --f-disp-legacy: var(--f-disp);
}

*,*::before,*::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--paper);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img,svg,video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; }
::selection { background: var(--pri); color: #fff; }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--tomb); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--grave); }

/* SUBTLE GRAIN — keep but very low */
#grain {
  position: fixed; top: -50%; left: -50%; width: 200%; height: 200%;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.78' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: .025; pointer-events: none; z-index: 9989; mix-blend-mode: multiply;
}


/* ============================================================
   TYPOGRAPHY
   ============================================================ */
.disp {
  font-family: var(--f-disp);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.025em;
  color: var(--ink);
}
.disp-xl { font-size: clamp(3.4rem, 9vw, 7.8rem); }
.disp-l  { font-size: clamp(2.4rem, 5.5vw, 4.6rem); }
.disp-m  { font-size: clamp(1.9rem, 3.8vw, 3.2rem); }
.disp-s  { font-size: clamp(1.4rem, 2.2vw, 2rem); }

.edit { font-family: var(--f-edit); font-style: italic; font-weight: 400; letter-spacing: -.015em; }

.mono {
  font-family: var(--f-mono); font-size: .74rem;
  letter-spacing: .04em; color: var(--ash);
  text-transform: uppercase;
}
.mono-tag {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--f-mono); font-size: .7rem;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--pri); font-weight: 500;
}
.mono-tag::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: var(--grad); flex-shrink: 0;
}
.mono-tag.center::before { display: none; }

.tk-acc  { color: var(--pri); }
.tk-acc2 { color: var(--acc); }
.tk-bone { color: var(--ink); }

.grad-text {
  background: var(--grad-text);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

/* ============================================================
   LAYOUT
   ============================================================ */
.W       { max-width: 1320px; margin: 0 auto; padding: 0 48px; }
.W-tight { max-width: 980px;  margin: 0 auto; padding: 0 48px; }
.SP      { padding: 120px 0; }
.SP-s    { padding: 72px 0; }
.bg-2    { background: var(--bg-2); }
.bg-3    { background: var(--card-soft); }

/* Más aire entre secciones — landings marcadas con main.sp-air (home, corredores, productos) */
.sp-air .SP       { padding: 140px 0; }
.sp-air .SP-s     { padding: 96px 0; }
.sp-air .sec-head { margin-bottom: 32px; }

@media (max-width: 900px) {
  .W, .W-tight { padding: 0 22px; }
  .SP { padding: 80px 0; }
  .SP-s { padding: 48px 0; }
  .sp-air .SP { padding: 96px 0; }
  .sp-air .SP-s { padding: 64px 0; }
}

/* ============================================================
   NAV — Robotics: clean horizontal, soft shadow on scroll
   ============================================================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  padding: 22px 48px;
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
  transition: background .35s, padding .25s, box-shadow .35s, backdrop-filter .35s;
}
.nav.on {
  background: rgba(250,250,245,.85);
  backdrop-filter: blur(20px);
  padding: 14px 48px;
  box-shadow: var(--sh);
}
/* Desktop: SOLO en la home la navbar está oculta al cargar y aparece al hacer
   scroll. En el resto de páginas la navbar es visible de primeras.
   Solo desktop (>1000px) — con la hamburguesa el botón debe estar siempre
   accesible, si el nav llega con opacity:0 no se puede abrir el menú. */
@media (min-width: 1001px) {
  .nav-home {
    opacity: 0; transform: translateY(-14px); pointer-events: none;
    transition: opacity .4s var(--ez), transform .4s var(--ez), background .35s, padding .25s, box-shadow .35s, backdrop-filter .35s;
  }
  .nav-home.on { opacity: 1; transform: translateY(0); pointer-events: auto; }
}

.brand {
  display: inline-flex; flex-direction: column; gap: 3px;
  text-decoration: none; line-height: 1;
  /* El .nav es flex: sin esto el navegador encogía el logo en horizontal
     (flex-shrink: 1) manteniendo la altura fija, y llegaba a 1024px aplastado
     a un tercio de su ancho y pegado a "Inicio". */
  flex: none;
}
.brand-img { height: 54px; width: auto; }
/* Desktop: logo a la izquierda (posición natural), menú al centro-derecha.
   El <nav> con margin auto se centra en el hueco a la derecha del logo. */
@media (min-width: 1001px) {
  .nav > nav { margin: 0 auto; }
}
.brand-mark {
  display: inline-flex; align-items: baseline; gap: 1px;
  font-family: var(--f-disp); font-weight: 800;
  font-size: 1.55rem;
  color: var(--pri);
  letter-spacing: -.025em;
  line-height: 1;
}
.nav.on .brand-mark { font-size: 1.4rem; }
.nav.on .brand-tag { font-size: .5rem; }
.brand-omega {
  font-size: 1.25em;
  color: var(--pri);
  font-weight: 800;
  display: inline-block;
  transform: translateY(.04em);
  margin-right: 1px;
}
.brand-name {
  color: var(--pri);
  font-weight: 800;
  text-transform: lowercase;
}
.brand-mga {
  font-family: var(--f-mono);
  font-size: .58em;
  font-weight: 600;
  letter-spacing: .14em;
  margin-left: 8px;
  color: var(--pri);
  opacity: .85;
  text-transform: uppercase;
}
.brand-tag {
  font-family: var(--f-body);
  font-size: .54rem;
  font-weight: 500;
  letter-spacing: .22em;
  color: var(--ash);
  text-transform: uppercase;
  padding-left: 3px;
  white-space: nowrap;
}
.brand:hover .brand-mark, .brand:hover .brand-omega, .brand:hover .brand-name { color: var(--pri-d); }
@media (max-width: 600px) {
  .brand-tag { display: none; }
  .brand-mark { font-size: 1.45rem; }
}

.nav-links { display: flex; gap: 32px; align-items: center; list-style: none; padding: 0; margin: 0; }
.nav-links > li { position: relative; list-style: none; }
.nav-links a {
  font-family: var(--f-body); font-size: .92rem; font-weight: 500;
  color: var(--paper); transition: color .2s;
  padding: 6px 0; position: relative;
  white-space: nowrap;
}
.nav-links a:hover, .nav-links a.active, .nav-links .current-menu-item > a { color: var(--pri); }
.nav-links > li > a:not(.nav-cta)::after {
  content: ''; position: absolute; bottom: 0; left: 0;
  width: 0; height: 2px; background: var(--pri);
  transition: width .3s var(--ez); border-radius: 2px;
}
.nav-links > li > a:not(.nav-cta):hover::after,
.nav-links > li.menu-item-has-children:hover > a::after,
.nav-links > li.has-sub:hover > a::after { width: 100%; }

/* DROPDOWN sub-menu (se despliega al hover, sin icono en el trigger) */
.nav-links .sub-menu {
  position: absolute; top: 100%; left: -18px;
  min-width: 320px;
  margin: 0; padding: 12px;
  list-style: none;
  background: var(--card);
  border: 1px solid var(--b-line);
  border-radius: var(--r);
  box-shadow: var(--sh-lg);
  display: flex; flex-direction: column; gap: 2px;
  opacity: 0; visibility: hidden;
  transform: translateY(8px);
  transition: opacity .25s var(--ez), visibility .25s, transform .25s var(--ez);
  z-index: 220;
}
.nav-links > li:hover > .sub-menu,
.nav-links > li:focus-within > .sub-menu {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.nav-links .sub-menu li { list-style: none; width: 100%; }
.nav-links .sub-menu a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 11px 14px;
  font-size: .9rem; font-weight: 500;
  color: var(--paper);
  border-radius: var(--r-sm);
  text-transform: none; letter-spacing: 0;
  white-space: normal;
}
.nav-links .sub-menu a::before { display: none !important; }
.nav-links .sub-menu a::after { display: none !important; }
.nav-links .sub-menu a:hover { background: var(--pri-soft); color: var(--pri); }
.nav-links .sub-menu li.sub-divider { border-top: 1px solid var(--b-line); margin: 6px 0; padding: 0; height: 0; pointer-events: none; }
.nav-links .sub-menu .sub-label {
  font-family: var(--f-mono);
  font-size: .62rem; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--grave);
  padding: 8px 14px 4px;
  display: block;
}

.nav-cta {
  background: var(--grad); color: #fff !important;
  padding: 11px 22px !important; font-weight: 600 !important;
  border-radius: 999px;
  transition: all .25s var(--ez) !important;
  box-shadow: var(--sh-pri);
}
.nav-cta::after { display: none !important; }
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 22px 48px rgba(108,92,231,.3); color: #fff !important; }

.nav-tg { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 8px; background: none; border: none; }
.nav-tg span { display: block; width: 22px; height: 2px; background: var(--ink); transition: transform .3s var(--ez), opacity .2s; border-radius: 2px; }
.nav.open .nav-tg span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav.open .nav-tg span:nth-child(2) { opacity: 0; }
.nav.open .nav-tg span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.sub-toggle { display: none; }

/* El menú de escritorio (7 enlaces + CTA) mide ~840px por sí solo: por debajo de
   ~1300px no cabe junto al logo. Antes no se notaba porque el logo se aplastaba
   para dejar sitio y el botón "Acceso" quedaba cortado bajo el overflow-x:hidden
   del body. Con el logo ya fijo, hay que apretar el menú de verdad. */
@media (max-width: 1300px) {
  .nav { padding: 20px 32px; gap: 24px; }
  .nav-links { gap: 18px; }
  .nav-links a { font-size: .86rem; }
  .nav-cta { padding: 10px 18px !important; }
}
@media (max-width: 1100px) {
  .nav { padding: 18px 24px; gap: 20px; }
  .brand-img { height: 40px; }
  .nav-links { gap: 13px; }
  .nav-links a { font-size: .82rem; }
  .nav-cta { padding: 9px 15px !important; }
}
/* El navbar pasa a hamburguesa en 1000px, no en 900: entre 901 y 1000 el menú
   completo no cabe junto al logo ni encogiendo la letra a un tamaño legible, y
   el botón "Acceso" quedaba cortado (invisible por el overflow-x:hidden del
   body). El resto del layout mantiene su corte en 900px. */
@media (max-width: 1000px) {
  .nav { padding: 16px 22px; }
  .nav.on { padding: 12px 22px; }
  .nav-links { display: none; }
  .nav-tg { display: flex; }
  .nav.open .nav-links {
    display: flex; flex-direction: column;
    position: absolute; top: 100%; left: 0; right: 0;
    background: rgba(255,255,255,.97); backdrop-filter: blur(20px);
    padding: 28px 22px; gap: 16px;
    box-shadow: var(--sh-lg);
    border-radius: 0 0 var(--r) var(--r);
  }
  .nav.open .nav-links a { font-size: 1.05rem; padding: 10px 0; }
  /* Cada item ocupa el ancho y centra su etiqueta; sin esto el li de Productos
     se ensancha al ancho de su submenú y su enlace queda pegado a la izquierda
     mientras el resto se ven centrados. El submenú se mantiene alineado a la izq. */
  .nav.open .nav-links > li { width: 100%; text-align: center; }
  .nav.open .nav-links .sub-menu { text-align: left; }
  .nav-links > li.menu-item-has-children,
  .nav-links > li.has-sub { position: relative; }
  .sub-toggle {
    display: flex; align-items: center; justify-content: center;
    position: absolute; right: 0; top: 0;
    width: 44px; height: 44px;
    background: none; border: none; padding: 0; cursor: pointer;
  }
  .sub-toggle::before {
    content: '▾'; font-size: .9rem; color: var(--ink);
    transition: transform .25s var(--ez);
  }
  .nav-links > li.sub-open > .sub-toggle::before { transform: rotate(180deg); }
  .nav.open .nav-links .sub-menu {
    position: static; opacity: 1; visibility: visible; transform: none;
    background: transparent; border: none; box-shadow: none;
    padding: 0 0 0 16px; min-width: 0; margin-top: 0;
    border-left: 2px solid var(--b-pri);
    max-height: 0; overflow: hidden;
    transition: max-height .3s var(--ez), padding .3s var(--ez), margin .3s var(--ez);
  }
  /* Colapsado por defecto — el usuario controla cuándo se despliega/contrae tocando .sub-toggle */
  .nav.open .nav-links li.sub-open > .sub-menu {
    max-height: 600px; padding-top: 4px; margin-top: 4px;
  }
  .nav.open .nav-links .sub-menu a { font-size: .92rem; padding: 8px 12px; }
}

/* ============================================================
   BUTTONS — Robotics rounded gradient
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--f-body); font-size: .92rem; font-weight: 600;
  padding: 14px 28px;
  border: 1.5px solid transparent;
  border-radius: 999px;
  transition: all .25s var(--ez);
  text-decoration: none; cursor: pointer;
  letter-spacing: -.005em;
}
.btn-acc {
  background: var(--grad); color: #fff;
  box-shadow: var(--sh-pri);
}
.btn-acc:hover { transform: translateY(-2px); box-shadow: 0 24px 50px rgba(108,92,231,.35); color: #fff; }
.btn-acc2 {
  background: var(--ink); color: #fff; border-color: var(--ink);
}
.btn-acc2:hover { background: var(--ink-soft); transform: translateY(-2px); box-shadow: var(--sh-lg); }
.btn-ghost {
  background: transparent; color: var(--ink); border-color: var(--b-line-2);
}
.btn-ghost:hover { color: var(--pri); border-color: var(--pri); background: var(--pri-soft); }
.btn-arrow::after { content: '→'; transition: transform .25s var(--ez); margin-left: 2px; }
.btn-arrow:hover::after { transform: translateX(4px); }
/* Feedback táctil: press + foco accesible por teclado */
.btn:active { transform: translateY(0) scale(.98); transition: transform .12s var(--ez-emil); }
.btn:focus-visible { outline: 2px solid var(--pri); outline-offset: 3px; }

/* ============================================================
   REVEAL
   ============================================================ */
.rv { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ez), transform .9s var(--ez); }
.rv.vis { opacity: 1; transform: translateY(0); }
.d1{transition-delay:.08s}.d2{transition-delay:.16s}.d3{transition-delay:.24s}.d4{transition-delay:.32s}.d5{transition-delay:.4s}.d6{transition-delay:.48s}

/* El hero es above-the-fold: no debe depender de main.js/IntersectionObserver para pintarse. */
.hero .rv { opacity: 1; transform: none; }

.spw .w { display: inline-block; opacity: 0; transform: translateY(80%); transition: opacity .8s var(--ez), transform .8s var(--ez); }
.spw.vis .w { opacity: 1; transform: translateY(0); }
.spw.vis .w:nth-child(1){transition-delay:.05s}
.spw.vis .w:nth-child(2){transition-delay:.12s}
.spw.vis .w:nth-child(3){transition-delay:.19s}
.spw.vis .w:nth-child(4){transition-delay:.26s}
.spw.vis .w:nth-child(5){transition-delay:.33s}
.spw.vis .w:nth-child(6){transition-delay:.4s}
.spw.vis .w:nth-child(7){transition-delay:.47s}
.spw.vis .w:nth-child(8){transition-delay:.54s}

/* Respeta usuarios que reducen movimiento: sin reveal ni parallax. */
@media (prefers-reduced-motion: reduce) {
  .rv, .rv.vis, .spw .w, .spw.vis .w { opacity: 1; transform: none; transition: none; }
  .ph::before { transform: none; }
  .cols3-it:hover .cols3-icon, .btn:active { transform: none; }
}

/* ============================================================
   HERO — Robotics: bright + big gradient title + soft canvas
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex; flex-direction: column; justify-content: center;
  padding: 160px 0 100px;
  overflow: hidden;
  background:
    radial-gradient(ellipse 60% 50% at 80% 30%, rgba(255,92,138,.14) 0%, transparent 60%),
    radial-gradient(ellipse 50% 60% at 15% 75%, rgba(108,92,231,.16) 0%, transparent 65%),
    linear-gradient(rgba(250,250,245,.62), rgba(250,250,245,.8)),
    url('../img/home/fondoInicio.jpg') center / cover no-repeat;
}
/* WebP con fallback JPG para el fondo del hero (menor peso donde el navegador lo soporta) */
@supports (background: image-set(url('x.webp') type('image/webp'))) {
  .hero {
    background:
      radial-gradient(ellipse 60% 50% at 80% 30%, rgba(255,92,138,.14) 0%, transparent 60%),
      radial-gradient(ellipse 50% 60% at 15% 75%, rgba(108,92,231,.16) 0%, transparent 65%),
      linear-gradient(rgba(250,250,245,.62), rgba(250,250,245,.8)),
      image-set(url('../img/home/fondoInicio.webp') type('image/webp'), url('../img/home/fondoInicio.jpg') type('image/jpeg')) center / cover no-repeat;
  }
}
.hero canvas {
  position: absolute; inset: 0; width: 100%; height: 100%;
  opacity: .55;
  mix-blend-mode: multiply;
}
.hero-ov {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 70% 80% at 50% 50%, transparent 0%, var(--bg) 95%);
}
.hero-c { position: relative; z-index: 2; text-align: center; }
/* OJO: height:100% aquí NO rellena el alto del padre. .hero-c no tiene altura
   definida, así que el porcentaje no resuelve y cae a auto -> el logo se pinta a
   su tamaño intrínseco: 615x160 CSS, que es 1:1 con img.png en pantallas 1x
   (máxima nitidez posible ahí). En pantallas 2x pide 1230px y el asset da 615
   -> upscale 2x. Para que sea nítido también en 2x hace falta un SVG o un PNG
   de 1230x320. */
.hero-logo { display: block; height: 100%; width: auto; margin: 0 auto 28px; }

.hero-eye {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 8px 18px;
  background: var(--card);
  border: 1px solid var(--b-line);
  border-radius: 999px;
  margin-bottom: 28px;
  box-shadow: var(--sh-sm);
}
.hero-eye-dot {
  width: 8px; height: 8px;
  background: var(--grad); border-radius: 50%;
  animation: blink-dot 1.4s ease-in-out infinite;
  box-shadow: 0 0 0 3px rgba(108,92,231,.18);
}
@keyframes blink-dot { 0%,100% { opacity: 1 } 50% { opacity: .55 } }
.hero-eye span { font-family: var(--f-mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--paper); font-weight: 500; }
.hero-eye span b {
  background: var(--grad-text); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent; font-weight: 700;
}

.hero-h1 .ln { display: block; font-family: var(--f-disp); font-weight: 800; letter-spacing: -.03em; }
.hero-h1 .it {
  font-family: var(--f-edit); font-style: italic; font-weight: 400;
  letter-spacing: -.02em;
  background: var(--grad-text); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

.hero-sub {
  max-width: 640px; margin: 32px auto 0;
  font-size: 1.18rem; line-height: 1.65; color: var(--paper);
}
.hero-sub b { color: var(--ink); font-weight: 600; }

.hero-act { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

/* Por debajo de 1024px el hero arranca directo en el titular: logo y píldora
   "EST. 2008" se ocultan (el logo ya está en la navbar; la píldora robaba altura
   útil sin aportar en pantallas pequeñas). */
@media (max-width: 1023.98px) {
  .hero-logo, .hero-eye { display: none; }
}

@media (max-width: 900px) {
  .hero { padding: 130px 0 60px; min-height: auto; }
}

/* ============================================================
   SECTION HEADERS
   ============================================================ */
.sec-head { display: flex; flex-direction: column; gap: 14px; margin-bottom: 24px; }
.sec-h2 {
  font-family: var(--f-disp); font-weight: 800;
  font-size: clamp(2.2rem, 4.6vw, 4rem);
  line-height: 1; color: var(--ink);
  letter-spacing: -.025em;
}
.sec-h2 .a {
  background: var(--grad-text); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.sec-h2 .it {
  font-family: var(--f-edit); font-style: italic; font-weight: 400;
  background: var(--grad-text); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  letter-spacing: -.015em;
}

/* ============================================================
   PRODUCTS GRID — 21st.dev marketplace cards
   ============================================================ */
.prod-grid {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 24px; margin-top: 56px;
}
/* 3 por fila; la última fila incompleta (p.ej. 2 de 5) queda centrada. gap 24 → 24*2/3=16 */
.prod-card { flex: 0 1 calc(33.333% - 16px); }
/* Stagger de reveal por tarjeta sin tocar la firma de omnia_product_card() */
.prod-grid .rv:nth-child(3n+2) { transition-delay: .08s; }
.prod-grid .rv:nth-child(3n)   { transition-delay: .16s; }
.prod-card {
  position: relative; overflow: hidden;
  background: var(--card);
  border: 1px solid var(--b-line);
  border-radius: var(--r-lg);
  transition: all .35s var(--ez);
  display: flex; flex-direction: column;
  box-shadow: var(--sh-sm);
}
.prod-card:hover { transform: translateY(-6px); box-shadow: var(--sh-lg); border-color: var(--b-line-2); }

.prod-thumb {
  height: 220px; position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  background: var(--card-soft);
  border-bottom: 1px solid var(--b-line);
  border-radius: var(--r-lg) var(--r-lg) 0 0;
}
.prod-thumb-bg {
  position: absolute; inset: 0;
  background-image:
    radial-gradient(ellipse 80% 70% at 30% 30%, rgba(108,92,231,.14) 0%, transparent 70%),
    radial-gradient(ellipse 60% 50% at 80% 80%, rgba(255,92,138,.12) 0%, transparent 70%);
}
.prod-thumb-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.prod-thumb-icon {
  position: relative; z-index: 1;
  font-family: var(--f-disp); font-size: 5.5rem; font-weight: 800;
  background: var(--grad); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  transition: transform .5s var(--ez);
}
.prod-card:hover .prod-thumb-icon { transform: scale(1.12) rotate(-6deg); }
.prod-thumb-tag {
  position: absolute; top: 16px; left: 16px;
  font-family: var(--f-mono); font-size: .62rem; font-weight: 500;
  letter-spacing: .1em; text-transform: uppercase;
  padding: 5px 12px;
  background: var(--card); color: var(--paper);
  border: 1px solid var(--b-line);
  border-radius: 999px;
  box-shadow: var(--sh-sm);
}
.prod-body { padding: 28px; flex: 1; display: flex; flex-direction: column; }
.prod-name {
  font-family: var(--f-disp); font-size: 1.55rem; font-weight: 700;
  line-height: 1.1; color: var(--ink); margin-bottom: 10px;
  letter-spacing: -.015em;
}
.prod-desc { font-size: .94rem; line-height: 1.6; color: var(--ash); margin-bottom: 24px; flex: 1; }
.prod-meta {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 18px; border-top: 1px solid var(--b-line);
}
.prod-cta {
  font-family: var(--f-mono); font-size: .72rem; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase; color: var(--pri);
  display: inline-flex; align-items: center;
  transition: letter-spacing .25s var(--ez);
}
.prod-card:hover .prod-cta { letter-spacing: .12em; }
.prod-arr {
  width: 36px; height: 36px; border-radius: 50%; margin-left: auto;
  background: var(--card-soft);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; color: var(--ink);
  transition: all .3s var(--ez);
}
.prod-card:hover .prod-arr { background: var(--grad); color: #fff; transform: translateX(4px); }

@media (max-width: 900px) { .prod-grid { gap: 20px; } .prod-card { flex-basis: 100%; } }

/* ============================================================
   3-COL ABOUT (Robotics: manufacturing/intel/service)
   ============================================================ */
.cols3 {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 24px; margin-top: 48px;
}
.cols3-it {
  background: var(--card);
  padding: 44px 36px;
  border-radius: var(--r-lg);
  border: 1px solid var(--b-line);
  box-shadow: var(--sh-sm);
  transition: all .35s var(--ez);
}
.cols3-it:hover { transform: translateY(-4px); box-shadow: var(--sh-lg); border-color: var(--b-line-2); }
.cols3-it:hover .cols3-icon { transform: scale(1.08) rotate(-4deg); }
.cols3-icon {
  width: 64px; height: 64px;
  background: var(--grad);
  border-radius: var(--r);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--f-disp); font-size: 1.8rem; font-weight: 800;
  color: #fff; line-height: 1;
  margin-bottom: 24px;
  box-shadow: var(--sh-pri);
  transition: transform .3s var(--ez-bk);
}
.cols3-h {
  font-family: var(--f-disp); font-size: 1.55rem; font-weight: 700;
  line-height: 1.15; color: var(--ink);
  margin-bottom: 12px; letter-spacing: -.015em;
}
.cols3-p { font-size: .96rem; color: var(--paper); line-height: 1.7; margin-bottom: 22px; }
.cols3-link {
  font-family: var(--f-body); font-size: .9rem; font-weight: 600;
  background: var(--grad-text); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.cols3-link::after { content: ' →'; }
@media (max-width: 900px) { .cols3 { grid-template-columns: 1fr; } }

/* ============================================================
   SERVICES 6-icon (Robotics)
   ============================================================ */
/* Flexbox, no grid: los servicios son 7 (los del documento) y en una rejilla de 4
   columnas la segunda fila (3 tarjetas) quedaba pegada a la izquierda con un hueco
   a la derecha. Con flex-wrap + justify-content:center, la fila incompleta se
   centra sola. El flex-basis fija 4 por fila en escritorio: (100% - 3·16px)/4. */
.svc-grid {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 16px; margin-top: 48px;
}
.svc { flex: 0 1 calc(25% - 12px); }
.svc {
  background: var(--card);
  padding: 36px 28px;
  border: 1px solid var(--b-line);
  border-radius: var(--r);
  position: relative; overflow: hidden;
  transition: box-shadow .4s ease, border-color .35s ease;
  transform-style: preserve-3d;
  will-change: transform;
  transform-origin: center 80%;
}
/* Glow de marca al hover (el tilt/movimiento lo aplica main.js en pointer:fine).
   Olivo corporativo (110,125,18 = #6e7d12), no el morado que había antes. */
.svc:hover {
  box-shadow: 0 28px 64px rgba(110,125,18,.20), 0 8px 24px rgba(110,125,18,.12), 0 0 0 1.5px rgba(110,125,18,.22);
  border-color: rgba(110,125,18,.30);
}
/* Shimmer: barrido de luz al pasar el cursor. */
.svc::after {
  content: ''; position: absolute; top: 0; left: -80%;
  width: 55%; height: 100%; z-index: 3; pointer-events: none; opacity: 0;
  background: linear-gradient(105deg, transparent 0%, rgba(255,255,255,.20) 50%, transparent 100%);
  transition: left .65s ease, opacity .15s ease;
}
.svc:hover::after { left: 130%; opacity: 1; }
/* Fallback sin JS / táctil: elevación simple. */
@media (hover: hover) and (pointer: coarse) {
  .svc:hover { transform: translateY(-6px); }
}
/* max-width:none es imprescindible: el reset de arriba pone `img {max-width:100%}`,
   que recortaba este `width: calc(100% + 56px)` de vuelta al ancho del contenido.
   Con el margin negativo de -28px, la imagen se pegaba al borde izquierdo y dejaba
   56px de hueco blanco a la derecha, en todas las tarjetas. */
.svc-img { display: block; width: calc(100% + 56px); max-width: none; height: 160px; object-fit: cover; object-position: center; margin: -36px -28px 22px; transition: transform .55s cubic-bezier(.4,0,.2,1); }
.svc:hover .svc-img { transform: scale(1.08); }
.svc-num { font-family: var(--f-mono); font-size: .68rem; letter-spacing: .12em; color: var(--grave); margin-bottom: 16px; text-transform: uppercase; font-weight: 500; }
.svc-icon {
  width: 52px; height: 52px;
  background: var(--pri-soft);
  border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--f-disp); font-size: 1.6rem; font-weight: 800;
  background: var(--grad); color: #fff;
  margin-bottom: 18px; line-height: 1;
}
.svc-h { font-family: var(--f-disp); font-size: 1.2rem; font-weight: 700; line-height: 1.15; color: var(--ink); margin-bottom: 10px; letter-spacing: -.01em; }
.svc-p { font-size: .9rem; color: var(--ash); line-height: 1.6; }
@media (max-width: 1200px) { .svc { flex-basis: calc(33.333% - 11px); } }  /* 3 por fila */
@media (max-width: 900px)  { .svc { flex-basis: calc(50% - 8px); } }        /* 2 por fila */
@media (max-width: 620px)  { .svc { flex-basis: 100%; } }                   /* 1 por fila */

/* ============================================================
   STATS BAR
   ============================================================ */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 0;
  background: var(--card);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-lg);
  overflow: hidden;
  margin-top: 56px;
}
.stats-it { padding: 56px 36px; border-right: 1px solid var(--b-line); position: relative; overflow: hidden; }
.stats-it:last-child { border-right: none; }
.stats-it::before {
  content: ''; position: absolute; top: 0; left: 0;
  width: 0; height: 3px;
  background: var(--grad);
  transition: width .8s var(--ez);
}
.stats-it.vis::before { width: 100%; }
.stats-n {
  font-family: var(--f-disp); font-weight: 800;
  font-size: clamp(2.2rem, 4.4vw, 3.8rem);
  line-height: 1; color: var(--ink);
  letter-spacing: -.025em;
}
.stats-n .u {
  background: var(--grad-text); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  font-size: .72em;
}
.stats-l { font-family: var(--f-body); font-size: .88rem; font-weight: 500; color: var(--ash); margin-top: 14px; line-height: 1.5; }
@media (max-width: 900px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .stats-it { border-right: none; border-bottom: 1px solid var(--b-line); padding: 32px 24px; }
  .stats-it:nth-child(odd) { border-right: 1px solid var(--b-line); }
  .stats-it:nth-last-child(-n+2) { border-bottom: none; }
}

/* ============================================================
   NEWS / BLOG
   ============================================================ */
.news-grid {
  display: grid; grid-template-columns: 1fr 1fr 1fr;
  gap: 24px; margin-top: 48px;
}
.news-card {
  background: var(--card);
  border: 1px solid var(--b-line);
  border-radius: var(--r-lg);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: all .3s var(--ez);
  box-shadow: var(--sh-sm);
}
.news-card:hover { transform: translateY(-4px); box-shadow: var(--sh-lg); }
.news-card.feat { grid-row: span 2; }
.news-img {
  height: 220px; position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  background:
    radial-gradient(ellipse 70% 70% at 30% 30%, rgba(108,92,231,.18) 0%, transparent 70%),
    radial-gradient(ellipse 60% 50% at 80% 70%, rgba(255,92,138,.18) 0%, transparent 70%),
    var(--card-soft);
}
.news-card.feat .news-img { height: 380px; }
.news-img-icon {
  font-family: var(--f-disp); font-size: 6rem; font-weight: 800;
  background: var(--grad); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  opacity: .35;
}
.news-cat {
  position: absolute; top: 16px; left: 16px;
  font-family: var(--f-mono); font-size: .62rem; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase;
  padding: 5px 12px;
  background: var(--ink); color: #fff;
  border-radius: 999px;
}
.news-body { padding: 24px 28px 28px; flex: 1; display: flex; flex-direction: column; }
.news-meta { font-family: var(--f-mono); font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; color: var(--grave); margin-bottom: 12px; font-weight: 500; }
.news-meta .sep { margin: 0 8px; opacity: .55; }
.news-title {
  font-family: var(--f-disp); font-size: 1.4rem; font-weight: 700;
  line-height: 1.15; color: var(--ink); margin-bottom: 12px;
  transition: color .2s; letter-spacing: -.015em;
}
.news-card:hover .news-title { color: var(--pri); }
.news-card.feat .news-title { font-size: 1.95rem; }
.news-exc { font-size: .92rem; color: var(--ash); line-height: 1.6; margin-bottom: 20px; flex: 1; }
.news-link {
  font-family: var(--f-body); font-size: .88rem; font-weight: 600;
  background: var(--grad-text); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  margin-top: auto;
}
.news-link::after { content: ' →'; }

@media (max-width: 900px) {
  .news-grid { grid-template-columns: 1fr; }
  .news-card.feat { grid-row: auto; }
}

/* ============================================================
   CTA STRIP
   ============================================================ */
.cta-strip {
  position: relative; overflow: hidden;
  background:
    radial-gradient(ellipse 60% 80% at 30% 50%, rgba(108,92,231,.18) 0%, transparent 60%),
    radial-gradient(ellipse 60% 80% at 70% 50%, rgba(255,92,138,.16) 0%, transparent 60%),
    var(--bg-2);
  padding: 110px 0; text-align: center;
}
.cta-strip > .W { position: relative; z-index: 1; }
.cta-strip h2 {
  font-family: var(--f-disp); font-weight: 800;
  font-size: clamp(2.4rem, 5.6vw, 5rem); line-height: 1;
  color: var(--ink); letter-spacing: -.025em;
}
.cta-strip h2 .a {
  background: var(--grad-text); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.cta-strip h2 .it {
  font-family: var(--f-edit); font-style: italic; font-weight: 400;
  background: var(--grad-text); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.cta-strip p { font-size: 1.08rem; color: var(--paper); margin: 24px auto 0; max-width: 580px; line-height: 1.6; }
.cta-strip .acts { margin-top: 44px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ============================================================
   DOCK CLAVE (lateral fijo, abrir clave)
   ============================================================ */
/* OJO: el dock NO puede llevar transform. Un ancestro transformado se convierte
   en el bloque contenedor de sus descendientes position:fixed, así que el
   .clave-panel dejaba de posicionarse contra el viewport y pasaba a hacerlo
   contra el dock (~40px de ancho, lo que mide la pestaña). En escritorio no se
   veía porque el panel tiene width explícito, pero en móvil (left/right/auto)
   quedaba en una astilla de 58px de ancho y 1019px de alto pegada al borde.
   El centrado vertical se hace con flex, que no crea bloque contenedor. */
.clave-dock {
  position: fixed; right: 0; top: 0; bottom: 0; z-index: 95;
  display: flex; align-items: center;
  pointer-events: none;   /* el dock ocupa toda la altura: no debe tragarse clics */
}
.clave-tab, .clave-panel { pointer-events: auto; }
.clave-tab {
  writing-mode: vertical-rl; transform: rotate(180deg);
  background: var(--grad); color: #fff; border: none; cursor: pointer;
  font-family: var(--f-mono); font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 700;
  padding: 30px 16px; border-radius: 14px 0 0 14px; box-shadow: var(--sh-pri);
  transition: padding .15s var(--ez-emil), filter .15s var(--ez-emil);
  animation: clave-ping 2.4s var(--ez-emil) infinite;
}
.clave-tab:hover { filter: brightness(1.08); padding-left: 23px; animation: none; }
@keyframes clave-ping {
  0%, 100% { box-shadow: var(--sh-pri), 0 0 0 0 rgba(110,125,18,.5); }
  50%      { box-shadow: var(--sh-pri), 0 0 0 11px rgba(110,125,18,0); }
}
.clave-panel {
  position: fixed; right: 16px; top: 50%; z-index: 96;
  width: min(360px, calc(100vw - 32px));
  /* El formulario es alto: en móviles cortos se salía por arriba y por abajo. */
  max-height: calc(100dvh - 24px); overflow-y: auto;
  background: var(--card); border: 1px solid var(--b-line); border-radius: var(--r-lg);
  box-shadow: var(--sh-lg); padding: 28px;
  transform: translate(calc(100% + 40px), -50%); opacity: 0;
  transition: transform .3s var(--ez), opacity .3s var(--ez);
}
.clave-dock.open .clave-panel { transform: translate(0, -50%); opacity: 1; }
.clave-dock.open .clave-tab { opacity: 0; pointer-events: none; }
.clave-close { position: absolute; top: 10px; right: 14px; background: none; border: none; font-size: 1.6rem; line-height: 1; cursor: pointer; color: var(--ash); transition: color .15s var(--ez-emil); }
.clave-close:hover { color: var(--ink); }
.clave-h { font-family: var(--f-disp); font-weight: 800; font-size: clamp(1.5rem, 2.6vw, 1.95rem); color: var(--ink); margin-top: 12px; line-height: 1.12; letter-spacing: -.02em; }
.clave-p { font-size: .9rem; color: var(--ash); line-height: 1.55; margin-top: 10px; }
.clave-form { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.clave-form input { padding: 11px 14px; border: 1px solid var(--b-line); border-radius: 8px; font-family: var(--f-body); font-size: .9rem; background: var(--bg); color: var(--ink); }
.clave-tab:focus-visible, .clave-close:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
@media (max-width: 640px) {
  .clave-tab { padding: 22px 11px; font-size: .72rem; }
  .clave-panel { right: 12px; left: 12px; width: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .clave-panel { transition: opacity .15s; }
  .clave-tab { animation: none; }
}

/* ============================================================
   PAGE HEADER
   ============================================================ */
.ph {
  position: relative; padding: 200px 0 100px;
  overflow: hidden;
  background:
    radial-gradient(ellipse 50% 70% at 90% 20%, rgba(255,92,138,.12) 0%, transparent 60%),
    radial-gradient(ellipse 50% 70% at 10% 80%, rgba(108,92,231,.14) 0%, transparent 60%);
}
.ph-bg {
  position: absolute; inset: 0; z-index: 0;
  background-image:
    linear-gradient(var(--b-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--b-line) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, black 0%, transparent 100%);
  opacity: .3;
}
/* Imagen de fondo del hero, por página vía --ph-img (helper omnia_ph_bg);
   si no se define, usa fondoInicio. A plena intensidad. El slack vertical de
   inset (-48px) da margen para el parallax de scroll (--ph-py) sin dejar huecos. */
.ph::before {
  content: ''; position: absolute; inset: -48px 0; z-index: 0; pointer-events: none;
  background: var(--ph-img, url('../img/home/fondoInicio.jpg')) right center / cover no-repeat;
  opacity: 1;
  transform: translate3d(0, var(--ph-py, 0px), 0);
  will-change: transform;
}
/* Velo blanco a la izquierda (sobre la imagen, bajo el contenido): da contraste
   a títulos/subtítulos sin tocar la mitad derecha, que conserva la imagen a plena fuerza. */
.ph::after {
  content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: linear-gradient(90deg,
  rgba(250,250,245,.92) 0%,
  rgba(250,250,245,.7) 50%,
  rgba(250,250,245,.32) 75%,
  rgba(250,250,245,0) 100%);
}
.ph > .W { position: relative; z-index: 1; }
.ph-crumb { display: flex; align-items: center; gap: 10px; font-family: var(--f-mono); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--grave); margin-bottom: 28px; font-weight: 500; }
.ph-crumb a { color: var(--ash); transition: color .15s var(--ez-emil); }
.ph-crumb a:hover { color: var(--pri); }
.ph-crumb .sep { color: var(--tomb); }
.ph-crumb .here { color: var(--ink); }
.ph-h1 {
  font-family: var(--f-disp); font-weight: 800;
  font-size: clamp(2.6rem, 7vw, 6.4rem); line-height: 1;
  color: var(--ink); letter-spacing: -.03em;
}
.ph-h1 .a {
  background: var(--grad-text); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.ph-h1 .it {
  font-family: var(--f-edit); font-style: italic; font-weight: 400;
  background: var(--grad-text); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  letter-spacing: -.02em;
}
.ph-sub { max-width: 54ch; margin-top: 24px; font-size: 1.12rem; line-height: 1.6; color: var(--paper); text-wrap: pretty; }

/* Micro-states de hero: foco de teclado visible (a11y) en enlaces y CTAs. */
.ph-crumb a:focus-visible,
.ph .btn:focus-visible { outline: 2px solid var(--pri); outline-offset: 3px; border-radius: 4px; }

/* ============================================================
   BENEFITS GRID
   ============================================================ */
.benef-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 18px; margin-top: 48px;
}
.benef {
  background: var(--card);
  border: 1px solid var(--b-line);
  border-radius: var(--r);
  padding: 32px 26px;
  position: relative; overflow: hidden;
  transition: all .3s var(--ez);
  box-shadow: var(--sh-sm);
}
.benef:hover { transform: translateY(-4px); box-shadow: var(--sh-lg); border-color: var(--b-line-2); }
.benef-n { font-family: var(--f-mono); font-size: .68rem; font-weight: 600; letter-spacing: .1em; color: var(--pri); margin-bottom: 18px; text-transform: uppercase; }
.benef-i {
  width: 48px; height: 48px;
  background: var(--grad);
  border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-family: var(--f-disp); font-size: 1.4rem; font-weight: 800;
  margin-bottom: 16px; line-height: 1;
}
.benef-h { font-family: var(--f-disp); font-size: 1.15rem; font-weight: 700; line-height: 1.15; color: var(--ink); margin-bottom: 10px; letter-spacing: -.01em; }
.benef-p { font-size: .87rem; color: var(--ash); line-height: 1.6; }
@media (max-width: 900px) { .benef-grid { grid-template-columns: 1fr; } }

/* ============================================================
   TIMELINE
   ============================================================ */
.tl { position: relative; padding-left: 40px; margin-top: 40px; }
.tl::before { content: ''; position: absolute; left: 5px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(to bottom, var(--pri), var(--acc)); border-radius: 2px; }
.tl-it { position: relative; padding-bottom: 44px; }
.tl-it::before {
  content: ''; position: absolute; left: -42px; top: 8px;
  width: 14px; height: 14px;
  background: var(--card);
  border: 3px solid; border-image: var(--grad) 1;
  border-radius: 50%;
  box-shadow: var(--sh-pri);
}
.tl-yr { font-family: var(--f-disp); font-size: 1.1rem; font-weight: 700; background: var(--grad-text); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; line-height: 1; margin-bottom: 8px; letter-spacing: -.01em; }
.tl-tit { font-family: var(--f-disp); font-size: 1.4rem; font-weight: 700; line-height: 1.15; color: var(--ink); margin-bottom: 8px; letter-spacing: -.015em; }
.tl-tx { font-size: .96rem; color: var(--paper); line-height: 1.7; }

/* Timeline horizontal con desplazamiento infinito (Historia — nosotros).
   .tl vertical se mantiene (lo usa la página de corredores). */
.tlh {
  margin-top: 48px; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.tlh-track { display: flex; gap: 20px; width: max-content; animation: tlh-scroll 45s linear infinite; }
.tlh:hover .tlh-track { animation-play-state: paused; }
.tlh-card {
  flex: 0 0 300px; position: relative;
  background: var(--card); border: 1px solid var(--b-line);
  border-radius: var(--r-lg); padding: 28px; box-shadow: var(--sh-sm);
}
.tlh-card::before { content: ''; position: absolute; top: 0; left: 28px; right: 28px; height: 3px; background: var(--grad); border-radius: 0 0 3px 3px; }
.tlh-yr { font-family: var(--f-disp); font-size: 1.5rem; font-weight: 800; background: var(--grad-text); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; letter-spacing: -.02em; }
.tlh-tit { font-family: var(--f-disp); font-size: 1.15rem; font-weight: 700; color: var(--ink); margin: 6px 0 10px; letter-spacing: -.01em; }
.tlh-tx { font-size: .9rem; color: var(--paper); line-height: 1.6; }
@keyframes tlh-scroll { to { transform: translateX(calc(-50% - 10px)); } }
@media (prefers-reduced-motion: reduce) { .tlh-track { animation: none; } .tlh { overflow-x: auto; } }

/* ============================================================
   FEAT BLOCK
   ============================================================ */
/* Coberturas de producto: dos columnas (incluidas / opcionales). */
.cob-grid { display: flex; flex-wrap: wrap; gap: 24px; margin-top: 40px; }
.cob-col { flex: 1 1 300px; background: var(--card); border: 1px solid var(--b-line); border-radius: var(--r-lg); padding: 32px; box-shadow: var(--sh-sm); }
.cob-col-opt { border-color: var(--b-acc); }
.cob-head { font-family: var(--f-mono); font-size: .7rem; text-transform: uppercase; letter-spacing: .12em; color: var(--accent); margin-bottom: 18px; font-weight: 600; }
.cob-list { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.cob-list li { position: relative; padding-left: 26px; font-size: .95rem; line-height: 1.5; color: var(--paper); }
.cob-list li::before { content: '✓'; position: absolute; left: 0; color: var(--accent); font-weight: 700; }

/* Nav de secciones de la ficha de producto (ancla + scroll-spy). Sticky bajo la navbar. */
.prod-nav { position: sticky; top: 84px; z-index: 40; background: rgba(250,250,245,.9); backdrop-filter: blur(16px); border-top: 1px solid var(--b-line); border-bottom: 1px solid var(--b-line); }
.prod-nav-w { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.prod-nav-w::-webkit-scrollbar { display: none; }
.prod-nav-lnk { display: inline-flex; align-items: center; gap: 9px; padding: 15px 20px; font-family: var(--f-mono); font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 600; color: var(--ash); white-space: nowrap; border-bottom: 2px solid transparent; transition: color .15s var(--ez), border-color .15s var(--ez); }
.prod-nav-lnk:hover { color: var(--ink); }
.prod-nav-lnk.active { color: var(--ink); border-color: var(--accent); }
.prod-nav-i { color: var(--accent); font-size: .9em; }
section[id] { scroll-margin-top: 150px; }
@media (max-width: 900px) { .prod-nav { top: 64px; } section[id] { scroll-margin-top: 128px; } }

/* "A quién está dirigido": lista de actividades como etiquetas. */
.sector-tags { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.sector-tag { display: inline-flex; align-items: center; padding: 10px 18px; background: var(--card); border: 1px solid var(--b-line); border-radius: 999px; font-size: .92rem; color: var(--ink); font-weight: 500; box-shadow: var(--sh-sm); }
.sector-tag::before { content: '◇'; color: var(--accent); margin-right: 9px; font-size: .8em; }

/* Ventajas: grid flexible centrado — la última fila incompleta queda intercalada. */
.vent-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 24px; }
.vent-grid .benef { flex: 0 1 calc(33.333% - 16px); min-width: 260px; }
@media (max-width: 900px) { .vent-grid .benef { flex-basis: calc(50% - 12px); } }
@media (max-width: 560px) { .vent-grid .benef { flex-basis: 100%; } }
/* Exactamente 4 ventajas (D&O, medioambiental) → las 4 en una fila, sin dejar una suelta.
   Va en @media para no pisar los breakpoints de arriba: la especificidad de esta regla es mayor. */
@media (min-width: 901px) {
  .vent-grid .benef:first-child:nth-last-child(4),
  .vent-grid .benef:first-child:nth-last-child(4) ~ .benef { flex-basis: calc(25% - 18px); min-width: 0; }
}

/* Subtítulo de grupo dentro de "Qué incluye" (p. ej. "Coberturas post-incidente:"). */
.feat-sub { font-family: var(--f-mono); font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 700; color: var(--accent); margin: 24px 0 10px; }
/* Descargas en respuestas de FAQ: chips en fila bajo el texto. */
.faq-dls { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.faq-dl {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px;
  background: var(--card); border: 1px solid var(--b-line); border-radius: 999px;
  box-shadow: var(--sh-sm);
  color: var(--ink); font-size: .9rem; font-weight: 600; line-height: 1.2;
  text-decoration: none;
  transition: color .15s var(--ez-emil), border-color .15s var(--ez-emil), transform .15s var(--ez-emil);
}
.faq-dl::before { content: '↓'; color: var(--accent); font-weight: 700; }
.faq-dl:hover { color: var(--accent); border-color: var(--accent); transform: translateY(-1px); }
.faq-dl:active { transform: translateY(0); }
.faq-dl:focus-visible { outline: 2px solid var(--pri); outline-offset: 3px; }
/* Enlace suelto dentro de una frase (fuera de .faq-dls): subrayado, sin píldora. */
.faq-a > .faq-dl { display: inline; padding: 0; background: none; border: 0; box-shadow: none; color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.faq-a > .faq-dl::before { content: '↓ '; }
@media (max-width: 560px) { .faq-dls .faq-dl { flex: 1 1 100%; justify-content: flex-start; } }

.feat-block { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.feat-block.rev { direction: rtl; }
.feat-block.rev > * { direction: ltr; }
.feat-vis {
  position: relative; aspect-ratio: 1/1; max-width: 520px;
  background:
    radial-gradient(ellipse 60% 70% at 30% 30%, rgba(108,92,231,.16) 0%, transparent 70%),
    radial-gradient(ellipse 60% 60% at 80% 70%, rgba(255,92,138,.14) 0%, transparent 70%),
    var(--card);
  border: 1px solid var(--b-line);
  border-radius: var(--r-xl);
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--sh-lg);
}
.feat-vis-grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(var(--b-line) 1px, transparent 1px), linear-gradient(90deg, var(--b-line) 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: .4;
}
.feat-content h3 {
  font-family: var(--f-disp); font-size: clamp(1.9rem, 3.8vw, 3rem);
  font-weight: 800; line-height: 1.05; color: var(--ink);
  margin-bottom: 22px; letter-spacing: -.025em;
}
.feat-content h3 .a {
  background: var(--grad-text); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.feat-content p { font-size: 1.05rem; color: var(--paper); line-height: 1.7; margin-bottom: 16px; }
.feat-content ul { margin-top: 24px; }
.feat-content ul li {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 14px 0; border-bottom: 1px solid var(--b-line);
  font-size: .94rem; color: var(--paper);
}
.feat-content ul li::before {
  content: '✦'; flex-shrink: 0; margin-top: 2px;
  background: var(--grad-text); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
@media (max-width: 900px) {
  .feat-block { grid-template-columns: 1fr; gap: 32px; }
  .feat-block.rev { direction: ltr; }
  .feat-vis { max-width: 100%; }
}

/* ============================================================
   CODE BLOCK — light mode
   ============================================================ */
.code-blk {
  background: var(--ink); color: var(--bg);
  border-radius: var(--r);
  padding: 22px;
  font-family: var(--f-mono); font-size: .82rem; line-height: 1.85;
  position: relative; overflow: hidden;
  width: 90%; max-width: 460px;
  box-shadow: var(--sh-lg);
}
.code-blk-bar { display: flex; gap: 6px; margin-bottom: 14px; padding-bottom: 12px; border-bottom: 1px solid rgba(255,255,255,.1); align-items: center; }
.code-blk-dot { width: 9px; height: 9px; border-radius: 50%; }
.code-blk-dot.r{background:#ff5f56} .code-blk-dot.y{background:#ffbd2e} .code-blk-dot.g{background:#27c93f}
.code-blk-name { font-size: .65rem; color: rgba(255,255,255,.4); margin-left: 8px; letter-spacing: .08em; text-transform: uppercase; }
.code-blk pre { margin: 0; font-family: inherit; font-size: inherit; line-height: inherit; }
.c-key { color: #ff7eb6; }
.c-str { color: #c4f7c4; }
.c-num { color: #82c4ff; }
.c-com { color: rgba(255,255,255,.35); font-style: italic; }
.c-fn  { color: #ffc857; }

/* ============================================================
   COVERAGE TABLE
   ============================================================ */
.tbl-wrap { overflow-x: auto; margin-top: 48px; border: 1px solid var(--b-line); border-radius: var(--r-lg); background: var(--card); box-shadow: var(--sh-lg); }
.tbl { width: 100%; border-collapse: collapse; min-width: 720px; }
.tbl th, .tbl td { padding: 20px 24px; text-align: left; border-bottom: 1px solid var(--b-line); font-size: .92rem; }
.tbl th {
  font-family: var(--f-mono); font-size: .68rem; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase;
  background: var(--grad); color: #fff;
}
.tbl td:first-child { font-family: var(--f-disp); font-weight: 700; color: var(--ink); font-size: 1rem; letter-spacing: -.01em; }
.tbl-prod { display: inline-flex; align-items: center; gap: 12px; color: inherit; }
.tbl-av {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 999px; flex-shrink: 0;
  overflow: hidden; background: var(--grad-soft);
}
.tbl-av img { width: 100%; height: 100%; object-fit: cover; }
.tbl-av-ic { color: var(--accent); font-family: var(--f-disp); font-size: 1rem; }
.tbl tbody tr, .tbl tr[data-href] { cursor: pointer; }
.tbl tr:hover td { background: var(--card-soft); }
.tbl .ok { display: inline-block; padding: 5px 14px; border-radius: 999px; background: rgba(93,138,31,.12); color: var(--ok); font-weight: 600; font-size: .84rem; }
.tbl .no { color: var(--grave); }
.tbl tr:last-child td { border-bottom: none; }

/* ============================================================
   FAQ
   ============================================================ */
.faq { margin-top: 40px; }
.faq-it {
  border: 1px solid var(--b-line);
  border-radius: var(--r);
  background: var(--card);
  margin-bottom: 12px;
  overflow: hidden;
  transition: box-shadow .25s, border-color .25s;
}
.faq-it:hover { border-color: var(--b-line-2); box-shadow: var(--sh-sm); }
.faq-it.op { border-color: var(--pri); box-shadow: var(--sh-pri); }
.faq-q {
  padding: 24px 28px; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  font-family: var(--f-disp); font-size: 1.2rem; font-weight: 700;
  line-height: 1.2; color: var(--ink); transition: color .2s;
  letter-spacing: -.015em;
}
.faq-i {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--grad); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--f-mono); font-size: .9rem; font-weight: 700;
  flex-shrink: 0; transition: transform .3s var(--ez);
}
.faq-it.op .faq-i { transform: rotate(45deg); }
.faq-a { display: none; padding: 0 28px 26px; font-size: .98rem; color: var(--paper); line-height: 1.75; max-width: 720px; }
.faq-it.op .faq-a { display: block; }

/* ============================================================
   FORMS
   ============================================================ */
.frm {
  background: var(--card);
  border: 1px solid var(--b-line);
  border-radius: var(--r-lg);
  padding: 44px;
  box-shadow: var(--sh);
}
.frm h3 { font-family: var(--f-disp); font-size: 2rem; font-weight: 700; line-height: 1.1; color: var(--ink); margin-bottom: 8px; letter-spacing: -.015em; }
.frm-intro { font-size: .94rem; color: var(--ash); margin-bottom: 28px; line-height: 1.6; }
.fg { margin-bottom: 18px; }
.fg label { font-family: var(--f-body); font-size: .82rem; font-weight: 600; color: var(--ink); display: block; margin-bottom: 8px; }
.fg input, .fg select, .fg textarea {
  width: 100%; background: var(--bg); border: 1px solid var(--b-line);
  color: var(--ink); font-family: var(--f-body); font-size: .96rem;
  padding: 13px 16px; outline: none; border-radius: var(--r-sm);
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.fg input:focus, .fg select:focus, .fg textarea:focus {
  border-color: var(--pri); background: var(--card);
  box-shadow: 0 0 0 4px rgba(108,92,231,.12);
}
/* Campo de contraseña con botón de ojo. El input reserva sitio a la derecha
   (padding-right) para que el texto no pase por debajo del botón. */
.pw-field { position: relative; }
.pw-field input { padding-right: 46px; }
.pw-toggle {
  position: absolute; top: 50%; right: 6px; transform: translateY(-50%);
  display: flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; padding: 0;
  background: none; border: none; cursor: pointer; color: var(--ash);
  transition: color .15s var(--ez-emil);
}
/* El reset pone `svg { display: block }`, que gana al [hidden] del navegador, así
   que hay que ocultar el icono inactivo explícitamente. */
.pw-toggle svg[hidden] { display: none; }
.pw-toggle:hover { color: var(--pri); }
.pw-toggle:focus-visible { outline: 2px solid var(--pri); outline-offset: 2px; border-radius: var(--r-sm); }
.fg input::placeholder, .fg textarea::placeholder { color: var(--grave); }
.fg textarea { resize: vertical; min-height: 120px; }
.frow { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 600px) { .frow { grid-template-columns: 1fr; } }
.fchk { display: flex; align-items: flex-start; gap: 10px; font-size: .85rem; color: var(--paper); margin: 22px 0; line-height: 1.5; }
.fchk input { width: 16px; height: 16px; margin-top: 3px; accent-color: var(--pri); }
.fchk a { color: var(--pri); text-decoration: underline; }
.frm-msg {
  display: none; padding: 14px 18px; margin-top: 14px;
  font-family: var(--f-body); font-size: .9rem; font-weight: 500;
  border-radius: var(--r-sm);
}
.frm-msg.ok  { display: block; background: rgba(22,163,106,.12); color: var(--ok); border: 1px solid var(--ok); }
.frm-msg.err { display: block; background: rgba(255,77,109,.12); color: var(--acc-d); border: 1px solid var(--acc); }

/* TOAST de envío */
.omnia-toast {
  position: fixed; right: 24px; bottom: 24px; z-index: 10000;
  display: flex; align-items: flex-start; gap: 14px;
  max-width: 360px; width: calc(100% - 48px);
  background: var(--card); color: var(--ink);
  border: 1px solid var(--b-line); border-left: 4px solid var(--pri);
  border-radius: var(--r); box-shadow: var(--sh-lg);
  padding: 16px 18px;
  opacity: 0; transform: translateY(16px);
  transition: opacity .28s var(--ez), transform .28s var(--ez);
  font-family: var(--f-body);
}
.omnia-toast.show { opacity: 1; transform: translateY(0); }
.omnia-toast.ok  { border-left-color: var(--ok); }
.omnia-toast.err { border-left-color: var(--acc); }
.omnia-toast-ic {
  flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; font-weight: 700; color: #fff; line-height: 1;
}
.omnia-toast.ok  .omnia-toast-ic { background: var(--ok); }
.omnia-toast.err .omnia-toast-ic { background: var(--acc); }
.omnia-toast-tx { display: flex; flex-direction: column; gap: 3px; }
.omnia-toast-tx strong { font-size: .95rem; font-weight: 700; color: var(--ink); }
.omnia-toast-tx span { font-size: .84rem; line-height: 1.45; color: var(--ash); }
.omnia-toast-x { margin-left: auto; background: none; border: none; cursor: pointer; font-size: 1.2rem; line-height: 1; color: var(--grave); padding: 0 2px; }
.omnia-toast-x:hover { color: var(--ink); }
@media (max-width: 560px) { .omnia-toast { right: 12px; left: 12px; bottom: 12px; width: auto; max-width: none; } }
@media (prefers-reduced-motion: reduce) { .omnia-toast, .omnia-toast.show { transition: opacity .2s; transform: none; } }

/* CONTACT INFO */
.cont-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 60px; align-items: start; }
@media (max-width: 900px) { .cont-grid { grid-template-columns: 1fr; gap: 40px; } }
.contact-list { display: flex; flex-direction: column; gap: 14px; }
.contact-list li {
  padding: 22px 24px;
  background: var(--card);
  border: 1px solid var(--b-line);
  border-radius: var(--r);
  display: flex; flex-direction: column; gap: 6px;
  transition: all .25s;
  box-shadow: var(--sh-sm);
}
.contact-list li:hover { border-color: var(--b-line-2); box-shadow: var(--sh); }
.contact-list .mono { color: var(--pri); font-weight: 600; }
.contact-list strong { font-family: var(--f-disp); font-size: 1.3rem; line-height: 1.2; color: var(--ink); font-weight: 700; letter-spacing: -.015em; }

/* ============================================================
   FOOTER
   ============================================================ */
.ft {
  background: var(--ink); color: var(--bg);
  padding: 80px 0 36px;
}
.ft-grid {
  display: grid; grid-template-columns: 2.2fr 1fr 1fr 1fr 1fr;
  gap: 56px;
  padding-bottom: 56px; border-bottom: 1px solid rgba(255,255,255,.08);
}
.ft-brand { font-family: var(--f-disp); font-size: 2rem; font-weight: 800; color: #fff; margin-bottom: 14px; letter-spacing: -.02em; }
.ft-brand .o {
  background: var(--grad); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  font-size: 1.15em;
}
.ft-tag { font-family: var(--f-body); font-size: .88rem; color: rgba(255,255,255,.55); line-height: 1.7; margin-bottom: 22px; }
.ft-soc { display: flex; gap: 8px; }
.ft-soc-it { width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid rgba(255,255,255,.12); color: rgba(255,255,255,.7); transition: all .25s; font-family: var(--f-mono); font-size: .85rem; border-radius: 999px; }
.ft-soc-it:hover { background: var(--grad); border-color: transparent; color: #fff; transform: translateY(-2px); }
.ft-soc-it svg { width: 17px; height: 17px; display: block; }
.ft-col h4 { font-family: var(--f-mono); font-size: .68rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.6); margin-bottom: 22px; }
.ft-col ul li { margin-bottom: 10px; }
.ft-col ul a { font-size: .9rem; color: rgba(255,255,255,.7); transition: color .2s; }
.ft-col ul a:hover { color: #fff; }
.ft-bot {
  padding-top: 28px;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 18px;
}
.ft-cp { font-family: var(--f-mono); font-size: .68rem; color: rgba(255,255,255,.4); }
.ft-st { display: flex; align-items: center; gap: 8px; font-family: var(--f-mono); font-size: .68rem; color: rgba(255,255,255,.55); }
.ft-st .dot { width: 7px; height: 7px; background: var(--ok); border-radius: 50%; animation: blink-dot 2s ease-in-out infinite; }
.ft-cert { display: flex; gap: 8px; flex-wrap: wrap; }
.ft-cert-b { font-family: var(--f-mono); font-size: .62rem; letter-spacing: .1em; padding: 5px 10px; border: 1px solid rgba(255,255,255,.15); color: rgba(255,255,255,.6); border-radius: 999px; }

@media (max-width: 1100px) { .ft-grid { grid-template-columns: 1fr 1fr 1fr; gap: 40px; } }
@media (max-width: 900px) {
  .ft-grid { grid-template-columns: 1fr; }
  .ft-bot { flex-direction: column; align-items: flex-start; }
}

/* ============================================================
   LOGIN PAGE
   ============================================================ */
.lg { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; }
.lg-side {
  position: relative;
  background:
    radial-gradient(ellipse 60% 50% at 80% 30%, rgba(255,92,138,.18) 0%, transparent 60%),
    radial-gradient(ellipse 50% 60% at 15% 75%, rgba(108,92,231,.2) 0%, transparent 65%),
    var(--bg);
  display: flex; flex-direction: column; justify-content: center;
  padding: 100px 56px;
  overflow: hidden;
  border-right: 1px solid var(--b-line);
}
.lg-side canvas { position: absolute; inset: 0; opacity: .55; mix-blend-mode: multiply; }
.lg-side > * { position: relative; z-index: 1; }
.lg-form-wrap {
  display: flex; align-items: center; justify-content: center;
  padding: 100px 56px;
  background: var(--bg-2);
}
.lg-card {
  max-width: 460px; width: 100%;
  background: var(--card);
  border: 1px solid var(--b-line);
  border-radius: var(--r-xl);
  padding: 44px;
  position: relative; overflow: hidden;
  box-shadow: var(--sh-lg);
}
.lg-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--grad); }
.lg-h { font-family: var(--f-disp); font-size: 2.4rem; font-weight: 800; line-height: 1; color: var(--ink); margin-bottom: 8px; letter-spacing: -.025em; }
.lg-sub { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ash); margin-bottom: 32px; font-weight: 500; }
.lg-link { display: block; text-align: center; margin-top: 18px; font-family: var(--f-body); font-size: .88rem; color: var(--ash); transition: color .2s; }
.lg-link:hover { color: var(--pri); }
@media (max-width: 900px) {
  .lg { grid-template-columns: 1fr; }
  .lg-side { padding: 130px 22px 56px; border-right: none; border-bottom: 1px solid var(--b-line); }
  .lg-form-wrap { padding: 56px 22px; }
}

/* ============================================================
   404
   ============================================================ */
.e404 {
  min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 140px 22px 60px; text-align: center;
  background:
    radial-gradient(ellipse 60% 80% at 30% 50%, rgba(108,92,231,.14) 0%, transparent 60%),
    radial-gradient(ellipse 60% 80% at 70% 50%, rgba(255,92,138,.14) 0%, transparent 60%);
}
.e404-n {
  font-family: var(--f-disp); font-weight: 800;
  font-size: clamp(7rem, 26vw, 20rem); line-height: .85;
  background: var(--grad-text); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  letter-spacing: -.04em;
}
.e404-h { font-family: var(--f-disp); font-size: clamp(1.6rem, 3.5vw, 2.6rem); font-weight: 700; color: var(--ink); margin-top: 24px; letter-spacing: -.015em; }
.e404-p { color: var(--paper); margin: 18px 0 36px; max-width: 520px; line-height: 1.65; }

/* ============================================================
   POST CONTENT
   ============================================================ */
.post-wrap { max-width: 760px; margin: 0 auto; padding: 60px 22px 0; }
.post-meta { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ash); margin-bottom: 18px; font-weight: 500; }
.post-meta .sep { margin: 0 8px; opacity: .55; }
.post-h1 { font-family: var(--f-disp); font-size: clamp(2rem, 5vw, 4rem); font-weight: 800; line-height: 1; color: var(--ink); letter-spacing: -.025em; }
.post-content { color: var(--paper); font-size: 1.08rem; line-height: 1.8; margin-top: 32px; }
.post-content p { margin-bottom: 22px; }
.post-content h2 { font-family: var(--f-disp); font-size: 1.9rem; font-weight: 700; color: var(--ink); margin-top: 44px; margin-bottom: 16px; letter-spacing: -.015em; }
.post-content h3 { font-family: var(--f-disp); font-size: 1.3rem; font-weight: 700; color: var(--pri); margin-top: 32px; margin-bottom: 12px; letter-spacing: -.01em; }
.post-content a { color: var(--pri); border-bottom: 1px solid currentColor; }
.post-content blockquote { font-family: var(--f-edit); font-style: italic; font-size: 1.4rem; color: var(--ink); border-left: 4px solid; border-image: var(--grad) 1; padding: 8px 0 8px 24px; margin: 32px 0; line-height: 1.5; }
.post-content code { font-family: var(--f-mono); font-size: .92em; background: var(--ink); color: var(--bg); padding: 3px 8px; border-radius: var(--r-xs); }
.post-content ul, .post-content ol { margin: 0 0 22px 22px; }
.post-content li { margin-bottom: 8px; }

/* ============================================================
   PAGINATION
   ============================================================ */
.page-numbers {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 44px; height: 44px; padding: 0 14px; margin: 0 4px;
  font-family: var(--f-body); font-size: .92rem; font-weight: 600;
  color: var(--paper);
  background: var(--card);
  border: 1px solid var(--b-line);
  border-radius: var(--r-sm);
  text-decoration: none;
  transition: all .2s;
}
.page-numbers:hover { color: var(--pri); border-color: var(--pri); transform: translateY(-1px); box-shadow: var(--sh-sm); }
.page-numbers.current { background: var(--grad); color: #fff; border-color: transparent; box-shadow: var(--sh-pri); }

/* ============================================================
   SAFETY OVERRIDES (limpian CSS legacy de Jupiter si activo)
   ============================================================ */
.hero, .ft, .cta-strip, .ph, .e404, .lg-side { position: relative; }
/* .nav excluido a propósito: ya declara position:fixed arriba: si este reset
   ganara la cascada, el nav pasaría a flujo normal (no fijo) y, combinado con
   el scroll-reveal (opacity:0 en carga), dejaría una franja en blanco reservada
   en su lugar en vez de desaparecer sin ocupar espacio. */
strong, b { color: inherit; }
input, select, textarea { font-family: var(--f-body); }
hr { border: none; border-top: 1px solid var(--b-line); }

/* ============================================================
   RESPONSIVE 320px — grids inline que no colapsaban.
   Los grid-template-columns inline ganan a las media queries;
   se fuerzan aquí con !important sobre clases añadidas al markup.
   ============================================================ */
@media (max-width: 900px) {
  .m-1c { grid-template-columns: 1fr !important; gap: 36px !important; }
}
.otros-grid { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .otros-grid { grid-template-columns: 1fr !important; } }
@media (max-width: 640px) {
  .qa-grid      { grid-template-columns: repeat(2, 1fr) !important; }
  .llegar-grid  { grid-template-columns: 1fr !important; }
}
@media (max-width: 420px) {
  .qa-grid, .gest-feats { grid-template-columns: 1fr !important; }
}
@media (max-width: 380px) {
  .disp-xl { font-size: clamp(2.4rem, 10vw, 3.4rem); }
}
/* Newsletter inline (noticias): el input flex no encogía (min-width:auto) y
   desbordaba junto al botón a <~360px. min-width:0 lo deja encoger; se apila en móvil. */
.nl-form input[type="email"] { min-width: 0; }
@media (max-width: 420px) {
  .nl-form { flex-direction: column; }
  .nl-form .btn { width: 100%; }
}

/* ============================================================
   PÁGINAS LEGALES — prose
   ============================================================ */
.legal { color: var(--paper); font-size: 1rem; line-height: 1.75; }
.legal h2 { font-family: var(--f-disp); font-weight: 800; font-size: 1.5rem; color: var(--ink); letter-spacing: -.02em; margin: 44px 0 14px; }
.legal h2:first-child { margin-top: 0; }
.legal h3 { font-family: var(--f-disp); font-weight: 700; font-size: 1.12rem; color: var(--ink); margin: 28px 0 10px; }
.legal p { margin: 0 0 16px; }
.legal ul { list-style: disc; padding-left: 22px; margin: 0 0 16px; }
.legal li { margin: 0 0 8px; }
.legal a { color: var(--pri); text-decoration: underline; text-underline-offset: 2px; word-break: break-word; }
.legal a:hover { opacity: .8; }
.legal strong, .legal b, .legal u { color: var(--ink); }
.legal table { width: 100%; border-collapse: collapse; margin: 8px 0 24px; font-size: .92rem; }
.legal th, .legal td { border: 1px solid var(--b-line); padding: 10px 12px; text-align: left; vertical-align: top; }
.legal table strong { color: var(--ink); }
/* En móvil la tabla scrollea dentro de sí misma, no empuja el ancho de la página */
@media (max-width: 600px) {
  .legal table { display: block; overflow-x: auto; white-space: nowrap; }
}

/* ============================================================
   CONSENTIMIENTO DE COOKIES — modal + botón persistente
   z-index: fab 94 (bajo .clave-dock 95) · scrim 9990 · modal 9991
   (por encima de #grain 9989, por debajo de .omnia-toast 10000)
   ============================================================ */
.ck-scrim {
  position: fixed; inset: 0; z-index: 9990;
  background: rgba(10, 10, 20, .5);
  opacity: 0; transition: opacity .2s var(--ez-emil);
}
.ck-scrim.on { opacity: 1; }

.ck {
  position: fixed; z-index: 9991;
  left: 50%; top: 50%;
  width: min(540px, calc(100vw - 32px));
  max-height: calc(100vh - 32px); overflow-y: auto;
  padding: 32px;
  background: var(--card);
  border: 1px solid var(--b-line);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-lg);
  transform: translate(-50%, calc(-50% + 8px)) scale(.98);
  opacity: 0;
  transition: opacity .22s var(--ez), transform .22s var(--ez);
}
.ck.on { opacity: 1; transform: translate(-50%, -50%) scale(1); }

.ck-h {
  font-family: var(--f-disp); font-weight: 800; font-size: 1.4rem;
  color: var(--ink); letter-spacing: -.02em;
}
.ck-p { margin-top: 10px; color: var(--paper); font-size: .94rem; line-height: 1.6; }

.ck-cats { margin: 24px 0; border-top: 1px solid var(--b-line); }
.ck-cat {
  display: flex; align-items: flex-start; gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--b-line);
}
.ck-cat-tx { flex: 1; min-width: 0; }
.ck-cat-h {
  font-family: var(--f-body); font-weight: 600; font-size: .95rem; color: var(--ink);
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.ck-cat-tag {
  font-family: var(--f-mono); font-size: .64rem; font-weight: 500;
  letter-spacing: .06em; text-transform: uppercase;
  color: var(--pri-d); background: var(--pri-soft);
  padding: 3px 8px; border-radius: 999px;
}
.ck-cat-p { margin-top: 5px; font-size: .84rem; line-height: 1.5; color: var(--ash); }
.ck-cat-p code { font-family: var(--f-mono); font-size: .95em; color: var(--paper); }

/* Switch: input nativo con apariencia de conmutador (accesible por teclado) */
.ck-sw { position: relative; flex: none; display: block; width: 44px; height: 26px; }
.ck-sw input {
  position: absolute; inset: 0; width: 100%; height: 100%;
  margin: 0; opacity: 0; cursor: pointer;
}
.ck-sw input:disabled { cursor: not-allowed; }
.ck-sw-tr {
  position: absolute; inset: 0; pointer-events: none;
  background: var(--tomb); border-radius: 999px;
  transition: background .18s var(--ez-emil);
}
.ck-sw-tr::after {
  content: ''; position: absolute; top: 3px; left: 3px;
  width: 20px; height: 20px; border-radius: 50%;
  background: #fff; box-shadow: var(--sh-sm);
  transition: transform .18s var(--ez-emil);
}
.ck-sw input:checked + .ck-sw-tr { background: var(--pri); }
.ck-sw input:checked + .ck-sw-tr::after { transform: translateX(18px); }
.ck-sw input:disabled + .ck-sw-tr { opacity: .55; }
.ck-sw input:focus-visible + .ck-sw-tr { outline: 2px solid var(--pri); outline-offset: 2px; }

.ck-act { display: flex; flex-wrap: wrap; gap: 10px; }
.ck-act .btn { flex: 1 1 auto; justify-content: center; padding: 12px 18px; font-size: .88rem; }
.ck-act .btn:focus-visible { outline: 2px solid var(--pri); outline-offset: 3px; }

.ck-link {
  display: inline-block; margin-top: 18px;
  font-size: .82rem; color: var(--ash);
  text-decoration: underline; text-underline-offset: 3px;
}
.ck-link:hover { color: var(--pri); }

/* Galleta persistente — abajo-izquierda, lejos del dock de clave (derecha)
   y del toast (abajo-derecha) */
.ck-fab {
  position: fixed; left: 20px; bottom: 20px; z-index: 94;
  display: grid; place-items: center;
  width: 46px; height: 46px;
  background: var(--card); color: var(--paper);
  border: 1px solid var(--b-line-2); border-radius: 50%;
  box-shadow: var(--sh);
  transition: transform .15s var(--ez-emil), color .15s var(--ez-emil), border-color .15s var(--ez-emil);
}
.ck-fab:hover { transform: translateY(-2px); color: var(--pri); border-color: var(--pri); }
.ck-fab:focus-visible { outline: 2px solid var(--pri); outline-offset: 3px; }

@media (max-width: 640px) {
  /* Hoja inferior: el pulgar llega a los botones */
  .ck {
    top: auto; bottom: 0; left: 0;
    width: 100%; max-height: 90vh;
    padding: 24px 20px calc(20px + env(safe-area-inset-bottom));
    border-radius: var(--r-lg) var(--r-lg) 0 0;
    border-bottom: none;
    transform: translate(0, 12px);
  }
  .ck.on { transform: translate(0, 0); }
  .ck-act .btn { flex: 1 1 100%; }
  .ck-fab { left: 14px; bottom: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .ck, .ck.on { transform: translate(-50%, -50%); transition: opacity .15s linear; }
  .ck-scrim { transition: opacity .15s linear; }
  .ck-sw-tr, .ck-sw-tr::after, .ck-fab { transition: none; }
}
@media (prefers-reduced-motion: reduce) and (max-width: 640px) {
  .ck, .ck.on { transform: none; }
}


/* Texto solo para lectores de pantalla y buscadores: no se ve, pero existe.
   Se usa en /equipo, donde el equipo se muestra con una imagen y los nombres,
   cargos y contactos son píxeles (ver el comentario de la vista). */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
