/* KYADEM — shared styles */
@font-face { font-family: "Inter"; font-weight: 400; font-display: swap; src: url("fonts/inter-400.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 500; font-display: swap; src: url("fonts/inter-500.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 600; font-display: swap; src: url("fonts/inter-600.woff2") format("woff2"); }
@font-face { font-family: "Inter Tight"; font-weight: 600; font-display: swap; src: url("fonts/inter-tight-600.woff2") format("woff2"); }
@font-face { font-family: "Inter Tight"; font-weight: 700; font-display: swap; src: url("fonts/inter-tight-700.woff2") format("woff2"); }

:root {
  --bg: #07090f;
  --bg-2: #0e121b;
  --line: rgba(255, 255, 255, .1);
  --ink: #f4f1ea;
  --ink-soft: #a7afbd;
  --gold: #f2a33a;
  --teal: #19b5bf;
  --error: #ff8a7a;
  --radius: 18px;
  --gutter: clamp(16px, 5vw, 64px);
  --font-display: "Inter Tight", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font-body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; }
img { max-width: 100%; display: block; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 6px; }
.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; }
.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--ink); color: #0b0d12; padding: 10px 16px; border-radius: 8px; }
.skip:focus { left: 8px; }
[data-lang-block][hidden] { display: none !important; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 70;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px var(--gutter);
  background: linear-gradient(180deg, rgba(7, 9, 15, .8), rgba(7, 9, 15, 0));
  border-bottom: 1px solid transparent;
  transition: background .3s, border-color .3s;
}
.site-header.is-solid { background: rgba(7, 9, 15, .85); backdrop-filter: blur(14px); border-color: var(--line); }
.logo { display: block; color: var(--ink); line-height: 0; }
.logo svg { height: 26px; width: auto; }
.header-right { display: flex; align-items: center; gap: 20px; }
.site-nav { display: flex; align-items: center; gap: 26px; }
.site-nav a { text-decoration: none; font-size: .92rem; color: var(--ink-soft); transition: color .2s; }
.site-nav a:hover { color: var(--ink); }.lang { display: flex; padding: 3px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255, 255, 255, .04); }
.lang button { font: inherit; font-size: .78rem; font-weight: 600; letter-spacing: .04em; color: var(--ink-soft); background: none; border: 0; padding: 6px 11px; border-radius: 999px; cursor: pointer; }
.lang button[aria-pressed="true"] { background: var(--ink); color: #0b0d12; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; font: inherit; font-weight: 600; font-size: .95rem; padding: 12px 22px; border-radius: 999px; border: 0; cursor: pointer; transition: transform .2s, opacity .2s; }
.btn:hover { transform: translateY(-2px); }
.btn:disabled { opacity: .6; cursor: wait; transform: none; }
.btn--light { background: var(--ink); color: #0b0d12; }
.btn--gold { background: var(--gold); color: #120d04; }
.btn--ghost { border: 1.5px solid rgba(255, 255, 255, .3); color: var(--ink); background: transparent; }
.menu-btn { display: none; background: none; border: 0; color: var(--ink); font-size: 1.6rem; cursor: pointer; padding: 4px; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; display: grid; align-items: end; padding: 120px var(--gutter) clamp(56px, 10vh, 110px); overflow: hidden; }
/* The image is sized to the screen, not to the hero, so it stays put when the text
   length changes (e.g. switching ES/EN); its bottom fades into the page background. */
.hero__bg { position: absolute; top: 0; left: 0; width: 100%; height: 100vh; height: 100svh; object-fit: cover; object-position: center 40%;
  -webkit-mask-image: linear-gradient(180deg, #000 75%, transparent 100%); mask-image: linear-gradient(180deg, #000 75%, transparent 100%); }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, var(--bg) 0%, rgba(7, 9, 15, .82) 35%, rgba(7, 9, 15, .4) 70%, rgba(7, 9, 15, .55) 100%); }
.hero__inner { position: relative; z-index: 1; max-width: 1240px; width: 100%; margin: 0 auto; }
.hero__inner > * { text-shadow: 0 2px 18px rgba(7, 9, 15, .6); }
.hero .btn { text-shadow: none; }
.hero h1 { font-family: var(--font-display); font-weight: 600; font-size: clamp(2.6rem, min(7.6vw, 11vh), 6.4rem); line-height: .98; letter-spacing: -.035em; margin: 16px 0 0; max-width: 16ch; text-wrap: balance; }
.hero .lead { margin-top: 22px; color: #d6dbe4; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* ---------- Sections ---------- */
.section { padding: clamp(72px, 12vw, 140px) var(--gutter); max-width: 1240px; margin: 0 auto; scroll-margin-top: 70px; }
.eyebrow { font-size: .8rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
h2 { font-family: var(--font-display); font-weight: 600; font-size: clamp(2.2rem, 5.4vw, 4.4rem); line-height: 1.02; letter-spacing: -.03em; margin: 14px 0 0; }
h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.3rem; letter-spacing: -.01em; margin: 0; }
.lead { font-size: clamp(1.05rem, 1.5vw, 1.25rem); line-height: 1.6; color: var(--ink-soft); max-width: 60ch; }
.center { text-align: center; } .center .lead { margin-left: auto; margin-right: auto; }
.note { font-size: .88rem; color: var(--ink-soft); margin-top: 28px; }
.statement h2 { max-width: 18ch; margin-left: auto; margin-right: auto; }

.facts { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.fact { padding: 40px var(--gutter); text-align: center; }
.fact + .fact { border-left: 1px solid var(--line); }
.fact strong { display: block; font-family: var(--font-display); font-size: clamp(1.4rem, 2.4vw, 2rem); font-weight: 600; letter-spacing: -.02em; }
.fact span { display: block; margin-top: 8px; color: var(--ink-soft); font-size: .95rem; }

.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 48px; }
.panel { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(28px, 4vw, 44px); }
.panel p { color: var(--ink-soft); line-height: 1.65; font-size: 1.08rem; margin: 14px 0 0; }

.tabs { margin-top: 48px; }
.tabs__list { display: flex; flex-wrap: wrap; gap: 8px; }
.tabs__btn { font: inherit; font-size: .95rem; font-weight: 500; color: var(--ink-soft); background: transparent; border: 1px solid var(--line); padding: 10px 18px; border-radius: 999px; cursor: pointer; transition: all .2s; }
.tabs__btn:hover { color: var(--ink); border-color: rgba(255, 255, 255, .3); }
.tabs__btn[aria-selected="true"] { background: var(--ink); color: #0b0d12; border-color: var(--ink); }
.tabs__panel { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(24px, 4vw, 56px); align-items: center; margin-top: 32px; padding: clamp(20px, 3vw, 36px); background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); }
.tabs__panel[hidden] { display: none; }
.tabs__panel p { color: var(--ink-soft); line-height: 1.65; font-size: 1.05rem; }
.tabs__panel img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 12px; }
/* Computers: the whole "Enfoque" section must fit under the header so the menu can
   center it. The image height follows the screen height (keeping 16:10) and the
   box spacing is tighter. Tablets/phones keep the stacked layout. */
@media (min-width: 961px) {
  #enfoque .tabs { margin-top: 32px; }
  #enfoque .tabs__panel { grid-template-columns: 1fr auto; margin-top: 20px; padding: 24px; }
  #enfoque .tabs__panel img { width: auto; max-width: 52vw; height: clamp(200px, calc(100vh - 510px), 360px); height: clamp(200px, calc(100svh - 510px), 360px); }
  #enfoque .note { margin-top: 20px; }
  #enfoque .chips { margin-top: 12px; }
}
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; padding: 0; list-style: none; }
/* las categorías van justo debajo de su título («Principales categorías…») */
.note + .chips { margin-top: 12px; }
.chips li { padding: 9px 16px; border-radius: 999px; border: 1px solid rgba(25, 181, 191, .35); background: rgba(25, 181, 191, .08); font-size: .92rem; }

.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin-top: 56px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.card { background: var(--bg); padding: 34px 28px; transition: background .25s; }
.card:hover { background: var(--bg-2); }
.card__icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: rgba(25, 181, 191, .12); color: var(--teal); margin-bottom: 22px; }
.card p { color: var(--ink-soft); line-height: 1.6; margin: 10px 0 0; }

.banner { position: relative; overflow: hidden; border-radius: 24px; padding: clamp(48px, 8vw, 110px) clamp(24px, 6vw, 80px); background: url("img/proveedores-fondo.webp") center / cover; }
.banner::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(7, 9, 15, .92) 0%, rgba(7, 9, 15, .7) 55%, rgba(7, 9, 15, .35) 100%); }
.banner > * { position: relative; }
.banner h2 { max-width: 14ch; }
.banner .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
/* Contact title uses the gold eyebrow style ("NUESTRO ENFOQUE" / "OUR FOCUS"), not the big h2 */
.contact__title { display: block; font-family: var(--font-body); line-height: 1.4; margin: 0; }
.contact__title + .lead { margin-top: 16px; }
.contact__list { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-top: 36px; }
.contact__item { background: var(--bg); padding: 20px 24px; display: flex; justify-content: space-between; align-items: center; gap: 16px; text-decoration: none; transition: background .2s; }
a.contact__item:hover { background: var(--bg-2); }
.contact__item > div { flex: 1; min-width: 0; } /* width set by the box, not the text: same in ES and EN */
.contact__item small { display: block; color: var(--ink-soft); font-size: .82rem; margin-bottom: 4px; }
.contact__item b { font-weight: 600; font-size: 1.02rem; line-height: 1.45; }

.form { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(22px, 3.5vw, 40px); display: grid; gap: 18px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 7px; }
.field label { font-size: .9rem; font-weight: 500; }
.field .opt { color: var(--ink-soft); font-weight: 400; }
.field input, .field select, .field textarea {
  font: inherit; color: var(--ink); background: var(--bg); border: 1px solid rgba(255, 255, 255, .18); border-radius: 12px; padding: 12px 14px; width: 100%;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(25, 181, 191, .25); }
.field [aria-invalid="true"] { border-color: var(--error); }
.field__q { margin: 0; font-size: .9rem; font-weight: 500; }
.form__sms { margin-top: 14px; }
.form__sms p { margin: 0 0 8px; }
.legal-clause { scroll-margin-top: 90px; }
.field__error { color: var(--error); font-size: .84rem; min-height: 0; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: .92rem; line-height: 1.5; color: #d6dbe4; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; flex: none; accent-color: var(--teal); }
.check a { color: var(--teal); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__status { border-radius: 12px; padding: 14px 16px; font-size: .95rem; line-height: 1.5; }
.form__status[hidden] { display: none; }
.form__status--ok { background: rgba(25, 181, 191, .12); border: 1px solid rgba(25, 181, 191, .4); }
.form__status--err { background: rgba(255, 138, 122, .1); border: 1px solid rgba(255, 138, 122, .4); }
.form__legal { font-size: .8rem; color: var(--ink-soft); line-height: 1.5; margin: 0; }
.form__legal a { color: var(--ink); }

/* Computers: compact form so the whole box is visible at once, even on 720px-tall laptops. */
@media (min-width: 961px) {
  .form { padding: 24px 28px; gap: 12px; }
  .form__row { gap: 14px; }
  .field { gap: 5px; }
  .field input, .field select, .field textarea { padding: 10px 13px; }
  .field textarea { min-height: 88px; height: clamp(88px, calc(100vh - 640px), 140px); height: clamp(88px, calc(100svh - 640px), 140px); }
  .check { font-size: .86rem; line-height: 1.45; }
  .form__legal { font-size: .76rem; }
  .form .btn { padding: 11px 22px; }
}

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 40px var(--gutter); display: grid; gap: 22px; color: var(--ink-soft); font-size: .88rem; }
.footer__top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px; }
.footer .logo svg { height: 20px; }
.footer nav { display: flex; gap: 10px 22px; flex-wrap: wrap; }
.footer a, .footer button.linklike { text-decoration: none; color: var(--ink-soft); }
.footer a:hover, .footer button.linklike:hover { color: var(--ink); }
.linklike { font: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; }
.footer address { font-style: normal; line-height: 1.6; }
.footer__tm { margin: 0; font-size: .8rem; line-height: 1.5; color: #8a93a3; }

/* ---------- Legal pages ---------- */
.legal { max-width: 820px; margin: 0 auto; padding: 130px var(--gutter) 90px; }
.legal h1 { font-family: var(--font-display); font-weight: 600; font-size: clamp(2.2rem, 5vw, 3.6rem); letter-spacing: -.03em; line-height: 1.05; margin: 12px 0 0; }
.legal .meta { color: var(--ink-soft); font-size: .92rem; margin-top: 14px; }
.legal h2 { font-size: clamp(1.4rem, 2.4vw, 1.8rem); letter-spacing: -.02em; margin: 48px 0 0; }
.legal h3 { font-size: 1.1rem; margin: 26px 0 0; }
.legal p, .legal li { color: #cfd5df; line-height: 1.7; font-size: 1.02rem; }
.legal ul { padding-left: 22px; }
.legal a { color: var(--teal); }
.legal .toc { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 26px; margin-top: 34px; }
.legal .toc ol { margin: 10px 0 0; padding-left: 20px; columns: 2; column-gap: 32px; }
.legal .toc li { font-size: .95rem; line-height: 1.8; }
.table-wrap { overflow-x: auto; margin-top: 18px; border: 1px solid var(--line); border-radius: 12px; }
.legal table { width: 100%; border-collapse: collapse; font-size: .92rem; min-width: 560px; }
.legal th, .legal td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; color: #cfd5df; }
.legal th { color: var(--ink); background: var(--bg-2); font-weight: 600; }
.legal tr:last-child td { border-bottom: 0; }
.draft-flag { display: inline-block; margin-top: 18px; padding: 6px 12px; border-radius: 999px; font-size: .78rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: #120d04; background: var(--gold); }

.notfound { min-height: 100svh; display: grid; place-items: center; text-align: center; padding: 120px var(--gutter); }
.notfound .actions { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-top: 28px; }

/* ---------- Cookie banner ---------- */
.cookie { position: fixed; z-index: 90; left: 16px; right: 16px; bottom: 16px; max-width: 560px; margin-left: auto; background: #10141e; border: 1px solid rgba(255, 255, 255, .16); border-radius: var(--radius); padding: 22px; box-shadow: 0 24px 60px rgba(0, 0, 0, .5); }
.cookie[hidden] { display: none; }
.cookie h2 { font-size: 1.15rem; letter-spacing: -.01em; margin: 0; }
.cookie p { color: #cfd5df; font-size: .92rem; line-height: 1.55; margin: 10px 0 0; }
.cookie p a { color: var(--teal); }
.cookie__prefs { display: grid; gap: 12px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.cookie__prefs[hidden] { display: none; }
.cookie__opt { display: flex; gap: 12px; align-items: flex-start; }
.cookie__opt input { width: 20px; height: 20px; margin: 2px 0 0; flex: none; accent-color: var(--teal); }
.cookie__opt b { display: block; font-size: .95rem; }
.cookie__opt span { display: block; color: var(--ink-soft); font-size: .85rem; line-height: 1.5; margin-top: 2px; }
.cookie__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.cookie__actions .btn { padding: 10px 18px; font-size: .9rem; }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s ease; }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } .btn:hover { transform: none; } }

@media (max-width: 960px) {
  .site-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: flex-start; gap: 0; padding: 8px var(--gutter) 20px; background: rgba(7, 9, 15, .97); border-bottom: 1px solid var(--line); }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 12px 0; font-size: 1.05rem; width: 100%; }
  .site-nav .btn { margin-top: 8px; width: auto; padding: 12px 22px; }
  .menu-btn { display: block; }
  .header-right { gap: 10px; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .contact, .tabs__panel { grid-template-columns: 1fr; }
  .tabs__panel img { order: -1; }
}
@media (max-width: 720px) {
  .facts, .duo, .tabs__panel, .grid, .form__row { grid-template-columns: 1fr; }
  .fact + .fact { border-left: 0; border-top: 1px solid var(--line); }
  .tabs__panel img { order: -1; }
  .logo svg { height: 22px; }
  .legal .toc ol { columns: 1; }
  .cookie { left: 10px; right: 10px; bottom: 10px; }
}

/* ---------- Account pages (/cuenta/) ---------- */
.account { min-height: 70vh; padding: 120px var(--gutter) 80px; }
.auth { max-width: 520px; margin: 0 auto; display: grid; gap: 22px; }
.auth--wide { max-width: 720px; }
.auth h1 { font-family: var(--font-display); font-weight: 600; font-size: clamp(2rem, 4.4vw, 3rem); letter-spacing: -.03em; line-height: 1.05; margin: 0; }
.auth .lead { margin: 0; }
.auth__h2 { font-size: 1.25rem; letter-spacing: -.01em; margin: 0; }
.form--danger { border-color: rgba(255, 138, 122, .35); }
.account-nav { display: flex; align-items: center; gap: 18px; font-size: .92rem; }
.account-nav a, .account-nav .linklike { color: var(--ink-soft); text-decoration: none; }
.account-nav a:hover, .account-nav .linklike:hover { color: var(--ink); }
.inline-form { display: inline; margin: 0; }
.lang a { font-size: .78rem; font-weight: 600; letter-spacing: .04em; color: var(--ink-soft); text-decoration: none; padding: 6px 11px; border-radius: 999px; }
.lang a[aria-current="true"] { background: var(--ink); color: #0b0d12; }
.page-account .header-right { gap: 14px; }

/* ---------- Same size in ES and EN ----------
   Buttons, menu links and tabs carry data-alt with the other language's text (added by
   tools/build_lang.py / layout.php). An invisible, zero-height copy reserves the width of the
   longer label, so switching languages never resizes them. visibility:hidden keeps it out of
   the accessibility tree. */
[data-alt] { display: inline-flex; flex-direction: column; align-items: center; }
.btn[data-alt] { gap: 0; }
[data-alt]::after { content: attr(data-alt); height: 0; overflow: hidden; visibility: hidden; pointer-events: none; user-select: none; }
@media (max-width: 960px) { .site-nav a[data-alt] { align-items: flex-start; } }

/* Account pages: site menu + back link */
.page-account .site-nav .inline-form { display: inline-flex; margin: 0; }
.page-account .site-nav .linklike { font-size: .92rem; color: var(--ink-soft); text-decoration: none; }
.page-account .site-nav .linklike:hover, .page-account .site-nav a[aria-current="page"] { color: var(--ink); }
.auth__back { max-width: 520px; margin: 0 auto 18px; font-size: .92rem; }
.account:has(.auth--wide) .auth__back { max-width: 720px; }
.auth__back a { color: var(--ink-soft); text-decoration: none; }
.auth__back a:hover { color: var(--ink); }
@media (max-width: 960px) { .page-account .site-nav .inline-form, .page-account .site-nav .linklike { width: 100%; padding: 12px 0; font-size: 1.05rem; text-align: left; } }

/* ------------------------------------------------------------------
   KYADEM LLC logo (images, 2026-11-14) and light banner hero
   ------------------------------------------------------------------ */
.logo img { display: block; height: 32px; width: auto; }
.footer .logo img { height: 26px; }
@media (max-width: 960px) { .logo img { height: 28px; } }
/* The banner is light: the header stays dark and solid over it */
body:has(.hero--banner) .site-header { background: rgba(7, 9, 15, .9); backdrop-filter: blur(14px); border-color: var(--line); }
.hero--banner { background: #f3f6fb; color: #031645; align-items: center; min-height: min(100svh, max(640px, calc(100vw / 3 + 140px))); padding-top: 120px; }
.hero--banner { --bx: 100%; } /* horizontal crop of the banner: 100% = right edge */
.hero--banner .hero__bg { height: 100%; object-position: var(--bx) center; }
/* Medium screens: the hero is taller than the banner's 3:1, so the crop is narrower and the
   globe would slide under the text. Shift the crop left so the globe starts after the text. */
@media (min-width: 961px) and (max-width: 1099px) { .hero--banner { --bx: 70%; } }
@media (min-width: 1100px) and (max-width: 1279px) { .hero--banner { --bx: 80%; } }
@media (min-width: 1280px) and (max-width: 1365px) { .hero--banner { --bx: 92%; } }
.hero--banner::after { background: linear-gradient(90deg, rgba(244, 246, 251, .9) 0%, rgba(244, 246, 251, .6) 38%, rgba(244, 246, 251, 0) 58%); }
.hero--banner .hero__inner > * { text-shadow: none; }
.hero__logo { display: block; width: min(500px, 82%); height: auto; margin: 0 0 22px -8px; }
.hero--banner .eyebrow { color: #0a5bd6; }
.hero--banner h1 { color: #031645; font-size: clamp(2.1rem, min(4.6vw, 7.5vh), 4.2rem); max-width: 15ch; }
.hero--banner .lead { color: #33415c; max-width: 44ch; }
.hero--banner .btn--ghost { color: #031645; border-color: rgba(3, 22, 69, .35); }
@media (max-width: 960px) {
  /* Phones: text on the light background, the globe (and its lights) below it */
  .hero--banner { min-height: 100svh; align-items: start; padding-top: 104px; padding-bottom: calc(46svh + 24px); }
  .hero--banner .hero__bg, .hero--banner .hero__fx { top: auto; bottom: 0; height: 46svh; }
  .hero--banner::after { inset: auto 0 0 0; height: 46svh; background: linear-gradient(180deg, #f3f6fb 0%, rgba(243, 246, 251, .85) 12%, rgba(243, 246, 251, 0) 42%); }
}
/* Connection lights over the banner globe (tools/build_banner_lights.py): same size and
   position as the banner, so they line up; hidden for reduced motion */
/* Same crop as the banner: as wide as the banner at this height (3:1), never narrower than the
   hero, and shifted like object-position (left: X% + translateX(-X%)). */
.hero__fx { position: absolute; top: 0; left: var(--bx, 100%); height: 100%; width: auto; aspect-ratio: 2172 / 724; min-width: 100%;
  transform: translateX(calc(var(--bx, 100%) * -1)); pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .hero__fx { display: none; } }

/* ---------- Movimiento (skill kyadem-web-motion, 28/11/2026) ----------
   Pocas animaciones con propósito: escalonado de valores (#6), cambio de pestaña (#9) y aviso de error del formulario (#11).
   Solo transform/opacity; todo se desactiva con «reducir movimiento». */
:root { --km-ease-out: cubic-bezier(.16, 1, .3, 1); --km-ease-in-out: cubic-bezier(.65, 0, .35, 1); --km-dur: 200ms; --km-dur-slow: 300ms; --km-stagger: 70ms; --km-slide: 12px; }
@keyframes km-rise { from { opacity: 0; transform: translateY(var(--km-slide)); } to { opacity: 1; transform: none; } }
@keyframes km-shake { 0%, 100% { transform: translateX(0); } 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
/* 6 · Stagger: el contenido de las cuatro tarjetas de valores entra una tras otra (--i lo asigna site.js; el fondo de la tarjeta no se anima) */
.grid.reveal { opacity: 1; transform: none; transition: none; }
.grid.reveal > .card > * { opacity: 0; }
.grid.reveal.is-in > .card > * { animation: km-rise var(--km-dur-slow) var(--km-ease-out) both; animation-delay: calc(var(--i, 0) * var(--km-stagger)); }
/* 9 · Fade y slide: el contenido de la pestaña elegida entra suavemente */
.tabs__panel.km-enter { animation: km-rise var(--km-dur) var(--km-ease-out) both; }
/* 11 · Shake: señala el primer campo con error (el texto del error siempre se muestra) */
.km-shake { animation: km-shake 280ms var(--km-ease-in-out); }
@media (prefers-reduced-motion: reduce) {
  .grid.reveal > .card > *, .grid.reveal.is-in > .card > * { opacity: 1; animation: none; }
  .tabs__panel.km-enter, .km-shake { animation: none; }
}
/* Sin JavaScript el contenido es visible (las secciones .reveal no esperan a un script que no corre) */
@media (scripting: none) { .reveal, .grid.reveal > .card > * { opacity: 1; transform: none; } }

/* Luces animadas del globo (banner): SUSPENDIDAS por decisión de José (28/11/2026).
   El SVG sigue en la página pero no se muestra ni consume recursos. Para reactivarlas, borrar esta regla. */
.hero__fx { display: none !important; }

/* ---------- Secciones «Cómo trabajamos», «Con quién trabajamos», «Dónde operamos» y FAQ (28/11/2026) ----------
   Iconos: trazo de Lucide (licencia ISC, ver assets/LICENSE-lucide.txt) como SVG en línea.
   Movimiento solo con CSS: el trazo se dibuja al aparecer (.is-in) y cada icono tiene un gesto corto en bucle
   que se pausa fuera de pantalla (.is-visible, site.js) y se desactiva con «reducir movimiento». */
.aicon { width: 56px; height: 56px; border-radius: 12px; display: grid; place-items: center; flex: none; background: rgba(25, 181, 191, .12); color: var(--teal); }
.aicon svg { width: 28px; height: 28px; overflow: visible; }
.aicon--sm { width: 44px; height: 44px; }
.aicon--sm svg { width: 22px; height: 22px; }
.section__lead { max-width: 62ch; margin: 18px auto 0; }

/* Trazo que se dibuja al aparecer */
.anim [pathLength] { stroke-dasharray: 1; stroke-dashoffset: 1; }
.anim.is-in [pathLength] { animation: ai-draw 1.1s var(--km-ease-in-out) forwards; animation-delay: calc(var(--i, 0) * 120ms + 150ms); }
@keyframes ai-draw { to { stroke-dashoffset: 0; } }

/* Gestos en bucle (empiezan cuando el trazo ya está dibujado) */
.anim .loop, .anim .speed, .anim .smoke circle, .anim .rows { transform-box: fill-box; transform-origin: center; }
.anim .loop { animation-delay: calc(var(--i, 0) * 120ms + 1.4s); }
.aicon--search .loop, .loop--search { animation: ai-orbit 4s ease-in-out infinite; }
.aicon--badge .loop, .loop--eye { animation: ai-pulse 3s ease-in-out infinite; }
.aicon--file .loop, .loop--tick { animation: ai-pop 3.6s ease-in-out infinite; }
.aicon--package .loop { animation: ai-bob 2.6s ease-in-out infinite; }
.aicon--truck .loop { animation: ai-drive 2.2s ease-in-out infinite; }
.aicon--return .loop { animation: ai-spin 7s linear infinite; }
.aicon--bag .loop { transform-origin: 50% 0; animation: ai-swing 3.2s ease-in-out infinite; }
.aicon--pin .loop { animation: ai-bounce 2.2s ease-in-out infinite; }
.loop--trend { animation: ai-rise 3s ease-in-out infinite; }
/* las cuatro de Principios heredan el retraso de su tarjeta (--i) */
.anim .loop--search, .anim .loop--eye, .anim .loop--tick, .anim .loop--trend { animation-delay: calc(var(--i, 0) * 120ms + 1.2s); }
.anim .aicon .loop { animation-delay: calc(var(--i, 0) * 120ms + 1.4s); }
.anim .speed { opacity: 0; animation: ai-speed 2.2s ease-in-out infinite; }
.anim .smoke circle { opacity: 0; animation: ai-smoke 3s ease-out infinite; }
.anim .smoke circle + circle { animation-delay: 1.5s; }
.anim .rows { animation: ai-blink 2.8s ease-in-out infinite; }
@keyframes ai-orbit { 0%, 100% { transform: translate(0, 0); } 25% { transform: translate(-1.5px, -1px); } 50% { transform: translate(1px, -1.5px); } 75% { transform: translate(1.5px, 1px); } }
@keyframes ai-pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.1); } }
@keyframes ai-pop { 0%, 70%, 100% { transform: scale(1); } 80% { transform: scale(1.25); } }
@keyframes ai-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-2px); } }
@keyframes ai-drive { 0%, 100% { transform: translateX(-1px); } 50% { transform: translateX(1.5px); } }
@keyframes ai-spin { to { transform: rotate(-360deg); } }
@keyframes ai-swing { 0%, 100% { transform: rotate(-5deg); } 50% { transform: rotate(5deg); } }
@keyframes ai-bounce { 0%, 60%, 100% { transform: translateY(0); } 30% { transform: translateY(-3px); } }
@keyframes ai-rise { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(1px, -1.5px); } }
@keyframes ai-speed { 0%, 100% { opacity: 0; transform: translateX(2px); } 50% { opacity: .9; transform: translateX(-1px); } }
@keyframes ai-smoke { 0% { opacity: 0; transform: translateY(4px) scale(.6); } 30% { opacity: .8; } 100% { opacity: 0; transform: translate(1px, -5px) scale(1.3); } }
@keyframes ai-blink { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

/* Cómo trabajamos: ruta con un destello que recorre el proceso */
.flow { margin-top: 56px; }
.route { position: relative; height: 10px; margin-bottom: 20px; overflow: hidden; }
.route__line { position: absolute; left: 0; right: 0; top: 4px; height: 2px; border-radius: 2px; background: var(--line); }
.route__dot { position: absolute; inset: 0; animation: ai-route 8s linear infinite; }
.route__dot::after { content: ""; position: absolute; left: 0; top: 2px; width: 90px; height: 6px; border-radius: 999px; background: linear-gradient(90deg, transparent, rgba(25, 181, 191, .9) 70%, var(--gold)); transform: translateX(-100%); }
@keyframes ai-route { from { transform: translateX(0); } to { transform: translateX(calc(100% + 90px)); } }
.flow__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.flow__step { background: var(--bg); padding: 32px 28px; display: grid; gap: 14px; align-content: start; transition: background .25s; }
.flow__step:hover, .who__card:hover { background: var(--bg-2); }
.flow__n { font-size: .8rem; font-weight: 600; letter-spacing: .16em; color: var(--gold); }
.flow__step p, .who__card p { margin: 0; color: var(--ink-soft); line-height: 1.6; }

/* Con quién trabajamos */
.who__head { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(24px, 4vw, 64px); align-items: center; }
.who__head .lead { margin-top: 18px; max-width: 52ch; }
.who__head + .who { margin-top: 40px; }
/* Bloque de proveedores: el texto deja sitio al palé animado en pantallas anchas */
@media (min-width: 1100px) { .banner .lead, .banner .note { max-width: 50ch; } }
@media (max-width: 1099px) { .banner .pale { display: none; } }
.who { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: 56px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.who__card { background: var(--bg); padding: 34px 28px; display: flex; flex-direction: column; gap: 16px; transition: background .25s; }
.who__link { margin-top: auto; color: var(--gold); font-weight: 600; text-decoration: none; }
.who__link:hover { text-decoration: underline; text-underline-offset: 4px; }

/* Dónde operamos: mapa con pulsos de radar */
.place { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.map { position: relative; aspect-ratio: 4 / 3; max-width: 100%; border-radius: var(--radius); border: 1px solid var(--line); overflow: hidden; display: grid; place-items: center;
  background: radial-gradient(circle at 50% 50%, rgba(25, 181, 191, .14), transparent 62%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, .045) 0 1px, transparent 1px 44px),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .045) 0 1px, transparent 1px 44px), var(--bg-2); }
.map__ring { position: absolute; width: 62%; aspect-ratio: 1; border-radius: 50%; border: 1px solid rgba(242, 163, 58, .6); opacity: 0; animation: ai-radar 3.6s ease-out infinite; }
.map__ring:nth-child(2) { animation-delay: 1.2s; }
.map__ring:nth-child(3) { animation-delay: 2.4s; }
@keyframes ai-radar { 0% { transform: scale(.15); opacity: 0; } 15% { opacity: .9; } 100% { transform: scale(1.25); opacity: 0; } }
.map__pin { position: relative; z-index: 1; background: rgba(7, 9, 15, .75); box-shadow: 0 0 0 1px rgba(25, 181, 191, .35); }
.map__label { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line); background: rgba(7, 9, 15, .72); font-size: .85rem; letter-spacing: .06em; white-space: nowrap; }
.place__text .lead { margin-top: 18px; }
.place__facts { list-style: none; padding: 0; margin: 32px 0 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.place__facts li { background: var(--bg); padding: 20px; display: flex; gap: 14px; align-items: flex-start; }
.place__facts li > div { flex: 1; min-width: 0; } /* ancho fijo: no depende del largo del texto de cada idioma */
.place__facts b { display: block; font-weight: 600; }
/* clase propia (no depende del contenedor): site.js mide una copia suelta para reservar el alto del otro idioma */
.place__sub { display: block; margin-top: 4px; color: var(--ink-soft); font-size: .9rem; line-height: 1.5; }

/* Preguntas frecuentes (details/summary: accesible sin JavaScript) */
.faq { max-width: 820px; margin: 48px auto 0; border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary { position: relative; list-style: none; cursor: pointer; padding: 22px 48px 22px 0; font-weight: 600; font-size: 1.08rem; line-height: 1.4; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: ""; position: absolute; right: 8px; top: 50%; width: 16px; height: 16px; color: var(--teal);
  background: linear-gradient(currentColor, currentColor) center / 16px 2px no-repeat, linear-gradient(currentColor, currentColor) center / 2px 16px no-repeat;
  transform: translateY(-50%); transition: transform var(--km-dur-slow) var(--km-ease-out); }
.faq__item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq__item summary:hover { color: #fff; }
.faq__item p { margin: 0 0 22px; max-width: 70ch; color: var(--ink-soft); line-height: 1.65; }
.faq__item[open] p { animation: km-rise var(--km-dur-slow) var(--km-ease-out) both; }

/* Fuera de pantalla todo bucle queda en pausa (va al final: las abreviaturas «animation» de arriba lo pondrían en marcha) */
.anim:not(.is-visible) :is(.loop, .speed, .smoke circle, .rows, .map__ring, .route__dot) { animation-play-state: paused; }

@media (max-width: 960px) {
  .flow__list { grid-template-columns: repeat(2, 1fr); }
  .who { grid-template-columns: 1fr; }
  .place { grid-template-columns: 1fr; }
  .place .escena { order: 2; }
  .who__head { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .flow__list, .place__facts { grid-template-columns: 1fr; }
  .flow__step, .who__card { padding: 26px 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .anim [pathLength], .anim.is-in [pathLength] { stroke-dasharray: none; stroke-dashoffset: 0; animation: none; }
  .anim .loop, .anim .speed, .anim .smoke circle, .anim .rows, .map__ring, .route__dot, .faq__item[open] p { animation: none; }
  .map__ring, .route__dot, .anim .speed, .anim .smoke circle { display: none; }
  .faq__item summary::after { transition: none; }
}
@media (scripting: none) { .anim [pathLength] { stroke-dasharray: none; stroke-dashoffset: 0; } }

/* ilus:start */
/* Ilustraciones (generadas por tools/ilustraciones.py; no editar a mano) */
.escena { position: relative; border-radius: var(--radius); border: 1px solid var(--line); overflow: hidden;
  background: radial-gradient(circle at 60% 40%, rgba(25, 181, 191, .1), transparent 60%), var(--bg-2); padding: 18px 18px 16px; }
.escena__svg { display: block; width: 100%; height: auto; }
.escena__chip { position: absolute; top: 16px; left: 16px; z-index: 1; display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px;
  border-radius: 999px; border: 1px solid var(--line); background: rgba(7, 9, 15, .78); font-size: .82rem; font-weight: 600; white-space: nowrap; }
.escena__chip > span { white-space: nowrap; }
.escena__dot { width: 8px; height: 8px; border-radius: 50%; background: #3ddc84; box-shadow: 0 0 0 0 rgba(61, 220, 132, .55); }
.anim .escena__dot { animation: ilus-vivo 2s ease-out infinite; }
.escena__pasos { list-style: none; margin: 6px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.escena__pasos li { position: relative; display: flex; align-items: center; gap: 10px; min-width: 0; padding: 10px 12px 14px; border-radius: 12px;
  background: rgba(7, 9, 15, .6); border: 1px solid var(--line); font-size: .88rem; font-weight: 600; }
.escena__pasos li > span[data-i18n] { flex: 1; min-width: 0; line-height: 1.25; } /* ancho fijo: no depende del idioma */
.escena__ico { width: 32px; height: 32px; flex: none; display: grid; place-items: center; border-radius: 9px; background: rgba(25, 181, 191, .14); color: var(--teal); }
.escena__ico svg { width: 17px; height: 17px; }
.escena__pasos li:nth-child(2) .escena__ico { background: rgba(242, 163, 58, .16); color: var(--gold); }
.escena__bar { position: absolute; left: 12px; right: 12px; bottom: 6px; height: 3px; border-radius: 3px; background: var(--gold); transform-origin: left; transform: scaleX(0); }
.anim .escena__bar { animation: esc-barra 12s var(--km-ease-in-out) infinite; }
.anim .escena__pasos li { animation: esc-paso 12s ease-in-out infinite; }
.escena__pasos li:nth-child(2), .escena__pasos li:nth-child(2) .escena__bar { animation-delay: 4s; }
.escena__pasos li:nth-child(3), .escena__pasos li:nth-child(3) .escena__bar { animation-delay: 8s; }
.anim .esc-cam { transform-box: view-box; transform-origin: 50% 50%; animation: esc-cam 14s ease-in-out infinite alternate; }
.anim .esc-camion { animation: esc-camion 12s cubic-bezier(.2, .7, .3, 1) infinite; }
.anim .esc-camion .esc-faro, .anim .esc-furgo .esc-faro { animation: esc-faro 12s ease-in-out infinite; }
.anim .esc-furgo { animation: esc-furgo 12s cubic-bezier(.2, .7, .3, 1) infinite; }
.anim .ilus-monta { animation: ilus-monta 12s var(--km-ease-in-out) infinite; }
.anim .esc-muelle { animation: esc-muelle 12s ease-in-out infinite; }
.anim .esc-puerta { animation: esc-puerta 12s ease-in-out infinite; }
.esc-muelle, .esc-puerta, .esc-casa-luz, .esc-casa-ven { opacity: .85; }
.anim .esc-casa-luz, .anim .esc-casa-ven { animation: esc-casa 12s ease-in-out infinite; }
.anim .esc-check { transform-box: fill-box; transform-origin: center; animation: esc-check 12s ease-out infinite; }
.anim .esc-pin { transform-box: fill-box; transform-origin: 50% 100%; animation: esc-pin 12s ease-out infinite; }
.anim .esc-onda { transform-box: fill-box; transform-origin: center; animation: esc-onda 12s ease-out infinite; }
.anim .esc-brillo { animation: esc-brillo 12s ease-in-out infinite; }
.anim .esc-charco { animation: esc-charco 5s ease-in-out infinite; }
.anim .ilus-carril { animation: ilus-marcha 1.6s linear infinite; }
.esc-c { transform-box: fill-box; }
.anim .ilus-ventana { animation: ai-blink 4s ease-in-out infinite; }
@keyframes ilus-vivo { 0% { box-shadow: 0 0 0 0 rgba(61, 220, 132, .55); } 80%, 100% { box-shadow: 0 0 0 9px rgba(61, 220, 132, 0); } }
@keyframes ilus-barra { 0% { transform: scaleX(0); opacity: 1; } 30%, 70% { transform: scaleX(1); opacity: 1; } 100% { transform: scaleX(1); opacity: 0; } }
@keyframes ilus-cae { 0%, 8% { transform: translateY(-46px); opacity: 0; } 22% { transform: translateY(0); opacity: 1; } 80% { transform: translateY(0); opacity: 1; } 92%, 100% { transform: translateY(0); opacity: 0; } }
@keyframes ilus-onda { 0% { transform: scale(.4); opacity: .9; } 100% { transform: scale(1.6); opacity: 0; } }

.red { max-width: 460px; margin: 0 auto; }
.red__svg { display: block; width: 100%; height: auto; overflow: visible; }
.anim .red-halo { transform-box: fill-box; transform-origin: center; animation: ilus-onda 2.8s ease-out infinite; }

.pale { position: absolute; right: clamp(24px, 5vw, 72px); bottom: 24px; width: clamp(180px, 22vw, 280px); pointer-events: none; }
.pale__svg { display: block; width: 100%; height: auto; overflow: visible; }
.anim .pale-c { transform-box: fill-box; animation: ilus-apila 7s cubic-bezier(.3, 1.35, .5, 1) infinite both; }
@keyframes ilus-apila { 0% { transform: translateY(-140px); opacity: 0; } 12% { transform: translateY(0); opacity: 1; } 82% { transform: translateY(0); opacity: 1; } 94%, 100% { transform: translateY(0); opacity: 0; } }

.chat { max-width: 340px; margin: 28px 0 0; padding: 14px 18px 6px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--bg-2); }
.chat__svg { display: block; width: 100%; height: auto; }
.anim .chat-d { transform-box: fill-box; transform-origin: center; animation: ilus-punto 1.4s ease-in-out infinite; }
.anim .chat-d1 { animation-delay: .2s; } .anim .chat-d2 { animation-delay: .4s; }
.anim .chat-b + .chat-b .chat-d { animation-duration: 1.7s; }
.anim .chat-s { animation: ilus-marcha 1.6s linear infinite; }
.anim .chat-p1 { transform-box: fill-box; transform-origin: 50% 100%; animation: ai-bob 2.6s ease-in-out infinite; }
@keyframes ilus-punto { 0%, 60%, 100% { transform: translateY(0); opacity: .45; } 30% { transform: translateY(-3px); opacity: 1; } }
@keyframes ilus-marcha { to { stroke-dashoffset: -24; } }

/* Barra dorada en las tarjetas al pasar el ratón (como las de la referencia) */
.flow__step, .who__card { position: relative; }
.card, .panel, .fact { position: relative; }
.panel { overflow: hidden; transition: background .25s, border-color .25s; }
.fact { transition: background .25s; }
.fact:hover, .fact:focus-within { background: var(--bg-2); }
.panel:hover, .panel:focus-within { background: #131826; border-color: rgba(242, 163, 58, .28); }
:is(.flow__step, .who__card, .card, .panel, .fact)::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: linear-gradient(90deg, var(--gold), var(--teal));
  transform: scaleX(0); transform-origin: left; transition: transform .45s var(--km-ease-out); z-index: 1; }
:is(.flow__step, .who__card, .card, .panel, .fact):is(:hover, :focus-within)::before { transform: scaleX(1); }

/* Pausa fuera de pantalla y movimiento reducido */
.anim:not(.is-visible) .mv, .anim:not(.is-visible).mv, .anim:not(.is-visible) .escena__dot { animation-play-state: paused; }
@media (max-width: 720px) { .pale { display: none; } .escena { padding: 14px 12px 12px; } .escena__pasos li { font-size: .8rem; padding: 8px 8px 12px; gap: 8px; } .escena__ico { width: 26px; height: 26px; } }
@media (max-width: 420px) { .escena__pasos { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) {
  .anim .mv, .anim.mv, .anim .escena__dot, .anim .escena__pasos li, :is(.flow__step, .who__card, .card, .panel, .fact)::before { animation: none !important; transition: none; }
  .ilus-cae, .pale-c, .esc-c, .esc-pin { opacity: 1; transform: none; }
  .esc-mota, .esc-check, .esc-brillo, .esc-onda { opacity: 0; }
  .escena__bar { transform: scaleX(1); }
}
@keyframes esc-camion { 0% { transform: translate(-285.8px, -165px); opacity: 0; } 4% { opacity: 1; } 24% { transform: translate(0, 0); animation-timing-function: linear; } 46% { transform: translate(0, 0); animation-timing-function: cubic-bezier(.5, 0, .9, .6); opacity: 1; } 60% { transform: translate(304.8px, 176px); opacity: 0; } 100% { transform: translate(304.8px, 176px); opacity: 0; } }
@keyframes esc-faro { 0%, 22% { opacity: 1; } 28%, 42% { opacity: .15; } 47%, 62% { opacity: 1; } 66%, 74% { opacity: .15; } 78%, 100% { opacity: 1; } }
@keyframes ilus-monta { 0%, 27% { transform: translate(0, 0); } 33% { transform: translate(26.7px, 33px); } 38% { transform: translate(0, 0); } 44% { transform: translate(26.7px, 33px); } 49% { transform: translate(0, 0); } 55% { transform: translate(26.7px, 33px); } 61%, 100% { transform: translate(0, 0); } }
@keyframes esc-muelle { 0%, 20% { opacity: 0; } 28%, 62% { opacity: 1; } 70%, 100% { opacity: 0; } }
@keyframes esc-puerta { 0%, 20% { opacity: 0; } 28%, 62% { opacity: .85; } 70%, 100% { opacity: 0; } }
@keyframes esc-pin { 0%, 59% { transform: translateY(-14px); opacity: 0; } 63% { transform: translateY(0); opacity: 1; } 66% { transform: translateY(-5px); } 69%, 72% { transform: translateY(0); opacity: 1; } 76%, 100% { opacity: 0; } }
@keyframes esc-onda { 0%, 61% { transform: scale(.4); opacity: 0; } 62% { opacity: .9; } 72%, 100% { transform: scale(1.7); opacity: 0; } }
@keyframes esc-furgo { 0%, 60% { transform: translate(-76.2px, -44px); opacity: 0; } 66% { transform: translate(0, 0); opacity: 1; } 74% { transform: translate(0, 0); animation-timing-function: cubic-bezier(.45, 0, .2, 1); } 88% { transform: translate(102.9px, 59.4px); opacity: 1; } 96% { transform: translate(102.9px, 59.4px); opacity: 1; } 100% { transform: translate(102.9px, 59.4px); opacity: 0; } }
@keyframes esc-casa { 0%, 86% { opacity: 0; } 90%, 97% { opacity: 1; } 100% { opacity: 0; } }
@keyframes esc-check { 0%, 88% { transform: scale(0); opacity: 0; } 92% { transform: scale(1.15); opacity: 1; } 94%, 97% { transform: scale(1); opacity: 1; } 100% { transform: scale(1); opacity: 0; } }
@keyframes esc-brillo { 0%, 70% { transform: translate(0, 0); opacity: 0; } 72% { opacity: .9; } 86% { transform: translate(133px, 77px); opacity: .9; } 88%, 100% { transform: translate(133px, 77px); opacity: 0; } }
@keyframes esc-cam { from { transform: scale(1) translate(0, 0); } to { transform: scale(1.045) translate(-8px, -5px); } }
@keyframes esc-mota { 0% { transform: translate(0, 0); opacity: 0; } 20% { opacity: .55; } 80% { opacity: .35; } 100% { transform: translate(18px, -34px); opacity: 0; } }
@keyframes esc-charco { 0%, 100% { opacity: .85; } 50% { opacity: 1; } }
@keyframes esc-paso { 0% { background: rgba(242, 163, 58, .1); border-color: rgba(242, 163, 58, .45); box-shadow: 0 0 22px rgba(242, 163, 58, .14); } 30% { background: rgba(242, 163, 58, .1); border-color: rgba(242, 163, 58, .45); box-shadow: 0 0 22px rgba(242, 163, 58, .14); } 36%, 100% { background: rgba(7, 9, 15, .6); border-color: var(--line); box-shadow: none; } }
@keyframes esc-barra { 0% { transform: scaleX(0); opacity: 1; } 28% { transform: scaleX(1); opacity: 1; } 33% { transform: scaleX(1); opacity: 1; } 38%, 100% { transform: scaleX(1); opacity: 0; } }
@keyframes esc-c0 { 0%, 30.0% { transform: translateY(-70px); opacity: 0; } 34.0% { transform: translateY(0); opacity: 1; } 35.2% { transform: translateY(-3px); } 36.0%, 69% { transform: translateY(0); opacity: 1; } 73%, 100% { transform: translate(-66.7px, 34.1px); opacity: 0; } }
.anim .esc-c0 { animation: esc-c0 12s cubic-bezier(.3, 1.3, .5, 1) infinite; }
@keyframes esc-c1 { 0%, 35.2% { transform: translateY(-70px); opacity: 0; } 39.2% { transform: translateY(0); opacity: 1; } 40.4% { transform: translateY(-3px); } 41.2%, 69% { transform: translateY(0); opacity: 1; } 73%, 100% { transform: translate(-66.7px, 34.1px); opacity: 0; } }
.anim .esc-c1 { animation: esc-c1 12s cubic-bezier(.3, 1.3, .5, 1) infinite; }
@keyframes esc-c2 { 0%, 40.4% { transform: translateY(-70px); opacity: 0; } 44.4% { transform: translateY(0); opacity: 1; } 45.6% { transform: translateY(-3px); } 46.4%, 69% { transform: translateY(0); opacity: 1; } 73%, 100% { transform: translate(-66.7px, 34.1px); opacity: 0; } }
.anim .esc-c2 { animation: esc-c2 12s cubic-bezier(.3, 1.3, .5, 1) infinite; }
@keyframes esc-c3 { 0%, 45.6% { transform: translateY(-70px); opacity: 0; } 49.6% { transform: translateY(0); opacity: 1; } 50.8% { transform: translateY(-3px); } 51.6%, 69% { transform: translateY(0); opacity: 1; } 73%, 100% { transform: translate(-66.7px, 34.1px); opacity: 0; } }
.anim .esc-c3 { animation: esc-c3 12s cubic-bezier(.3, 1.3, .5, 1) infinite; }
@keyframes esc-c4 { 0%, 50.8% { transform: translateY(-70px); opacity: 0; } 54.8% { transform: translateY(0); opacity: 1; } 56.0% { transform: translateY(-3px); } 56.8%, 69% { transform: translateY(0); opacity: 1; } 73%, 100% { transform: translate(-66.7px, 34.1px); opacity: 0; } }
.anim .esc-c4 { animation: esc-c4 12s cubic-bezier(.3, 1.3, .5, 1) infinite; }
@keyframes esc-c5 { 0%, 56.0% { transform: translateY(-70px); opacity: 0; } 60.0% { transform: translateY(0); opacity: 1; } 61.2% { transform: translateY(-3px); } 62.0%, 69% { transform: translateY(0); opacity: 1; } 73%, 100% { transform: translate(-66.7px, 34.1px); opacity: 0; } }
.anim .esc-c5 { animation: esc-c5 12s cubic-bezier(.3, 1.3, .5, 1) infinite; }
.anim .esc-m0 { animation: esc-mota 7s linear 0.0s infinite; }
.anim .esc-m1 { animation: esc-mota 8s linear -1.3s infinite; }
.anim .esc-m2 { animation: esc-mota 9s linear -2.6s infinite; }
.anim .esc-m3 { animation: esc-mota 10s linear -3.9s infinite; }
.anim .esc-m4 { animation: esc-mota 7s linear -5.2s infinite; }
.anim .esc-m5 { animation: esc-mota 8s linear -6.5s infinite; }
.anim .esc-m6 { animation: esc-mota 9s linear -7.8s infinite; }
.anim .esc-m7 { animation: esc-mota 10s linear -9.1s infinite; }
@keyframes red-p0 { 0% { transform: translate(0, 0); opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { transform: translate(0px, -73.6px); opacity: 0; } }
.red-p0 { animation: red-p0 3.2s var(--km-ease-in-out) 0.00s infinite; }
@keyframes red-p1 { 0% { transform: translate(63.7px, -36.8px); opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { transform: translate(0, 0); opacity: 0; } }
.red-p1 { animation: red-p1 3.2s var(--km-ease-in-out) 0.45s infinite; }
@keyframes red-p2 { 0% { transform: translate(0, 0); opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { transform: translate(63.7px, 36.8px); opacity: 0; } }
.red-p2 { animation: red-p2 3.2s var(--km-ease-in-out) 0.90s infinite; }
@keyframes red-p3 { 0% { transform: translate(0px, 73.6px); opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { transform: translate(0, 0); opacity: 0; } }
.red-p3 { animation: red-p3 3.2s var(--km-ease-in-out) 1.35s infinite; }
@keyframes red-p4 { 0% { transform: translate(0, 0); opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { transform: translate(-63.7px, 36.8px); opacity: 0; } }
.red-p4 { animation: red-p4 3.2s var(--km-ease-in-out) 1.80s infinite; }
@keyframes red-p5 { 0% { transform: translate(-63.7px, -36.8px); opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { transform: translate(0, 0); opacity: 0; } }
.red-p5 { animation: red-p5 3.2s var(--km-ease-in-out) 2.25s infinite; }
.pale-c0 { animation-delay: 0.00s; }
.pale-c1 { animation-delay: 0.35s; }
.pale-c2 { animation-delay: 0.70s; }
.pale-c3 { animation-delay: 1.05s; }
.pale-c4 { animation-delay: 1.40s; }
/* ilus:end */

/* ---------- Fotos de almacén en Principios y Con quién trabajamos (prueba, 30/11/2026) ----------
   Una foto 16:10 encima del icono de cada tarjeta; el icono animado se conserva. */
.card__img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 12px; margin: 0 0 22px; }
.who__card .card__img { margin-bottom: 6px; }
/* Quiénes somos + franja de datos se leen como un bloque: menos aire entre ambos para que
   el menú «Quiénes somos» los muestre completos también en laptops de 768 px de alto */
.section.statement { padding-bottom: clamp(56px, 7vw, 96px); }
@media (min-width: 961px) and (max-height: 820px) { .section.statement { padding-top: 112px; padding-bottom: 56px; } }

/* Corporate A · kyadem-web-motion (PR #12, Codex): scoped, short and optional.
   Adaptado a main del 30/11/2026: motion-a.js no anima .anim ni .grid (ya tienen su propio dibujo/escalonado)
   y el foco mantiene la separación de 3px de DESIGN.md. */
.km-corporate{--km-ease-out:cubic-bezier(.16,1,.3,1);--km-dur:200ms;--km-dur-fast:120ms}
.km-corporate .reveal,.km-corporate .reveal.is-in{opacity:1;transform:none;transition:none}
.km-corporate .btn{transition:transform var(--km-dur-fast) var(--km-ease-out),opacity var(--km-dur-fast) var(--km-ease-out)}
.km-corporate .btn:active:not(:disabled){transform:translateY(1px)}
.km-corporate .tabs__btn{transition:color var(--km-dur-fast),background-color var(--km-dur-fast),border-color var(--km-dur-fast)}
.km-corporate .card{transition:background-color var(--km-dur)}
.km-corporate :is(.btn,.tabs__btn,a,input,textarea):focus-visible{outline:2px solid var(--teal);outline-offset:3px}
.km-corporate .card:focus-within{background:var(--bg-2)}
@media(hover:hover){.km-corporate .btn:hover:not(:disabled){transform:translateY(-2px)}}
@media(hover:none){.km-corporate .btn:hover{transform:none}}
@media(prefers-reduced-motion:reduce){.km-corporate :is(.btn,.card,.tabs__btn){transition:none}.km-corporate .btn:hover,.km-corporate .btn:active:not(:disabled){transform:none}}
/* Portada: titular en dos frases (una por línea) y línea de actividades (propuesta 30/11/2026) */
.hero__title > span { display: block; }
.hero--banner h1.hero__title { max-width: none; }
.hero__tag { margin: 18px 0 0; font-weight: 600; font-size: .95rem; letter-spacing: .02em; color: #0a5bd6; }

/* Header dropdowns (Quiénes somos, Enfoque, Contacto) */
.nav-item { position: relative; display: flex; align-items: center; gap: 2px; }
.nav-caret { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 28px; padding: 0; background: none; border: 0; border-radius: 6px; color: var(--ink-soft); cursor: pointer; }
.nav-caret::before { content: ""; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .2s; }
.nav-caret:hover, .nav-caret[aria-expanded="true"] { color: var(--ink); }
.nav-caret[aria-expanded="true"]::before { transform: translateY(1px) rotate(-135deg); }
.nav-sub { position: absolute; top: calc(100% + 12px); left: -14px; z-index: 60; display: flex; flex-direction: column; min-width: 232px; padding: 8px; background: rgba(14, 18, 27, .98); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 18px 44px rgba(0, 0, 0, .5); opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .18s, transform .18s, visibility .18s; }
.nav-sub--end { left: auto; right: -14px; }
.nav-sub::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px; }
.site-nav .nav-sub a, .site-nav .nav-sub a[data-alt] { display: flex; flex-direction: column; align-items: flex-start; padding: 9px 12px; border-radius: 9px; font-size: .9rem; white-space: nowrap; }
.site-nav .nav-sub a:hover, .site-nav .nav-sub a:focus-visible { background: rgba(255, 255, 255, .06); color: var(--ink); }
.nav-sub__label { margin-top: 6px; padding: 10px 12px 4px; border-top: 1px solid var(--line); font-size: .68rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); opacity: .75; }
.nav-item.is-open .nav-sub { opacity: 1; visibility: visible; transform: none; }
@media (hover: hover) and (min-width: 961px) { .nav-item:hover .nav-sub { opacity: 1; visibility: visible; transform: none; } }
@media (prefers-reduced-motion: reduce) { .nav-sub, .nav-caret::before { transition: none; } }
@media (max-width: 960px) {
  .nav-item { flex-wrap: wrap; width: 100%; }
  .nav-item > a { flex: 1; }
  .nav-caret { width: 44px; height: 44px; }
  .nav-sub { position: static; display: none; width: 100%; min-width: 0; padding: 0 0 8px 16px; background: none; border: 0; box-shadow: none; opacity: 1; visibility: visible; transform: none; }
  .nav-sub::before { display: none; }
  .nav-item.is-open .nav-sub { display: flex; }
  .site-nav .nav-sub a { padding: 10px 0; font-size: .98rem; color: var(--ink-soft); }
  .nav-sub__label { padding: 12px 0 4px; }
}

/* Network animation (Con quién trabajamos): ElevenLabs video + KYADEM label in HTML */
.who__head { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.red-v { position: relative; width: 100%; max-width: 600px; margin: 0 auto; aspect-ratio: 1; container-type: inline-size; }
.red-v__video { display: block; width: 100%; height: 100%; object-fit: cover; background: var(--bg);
  -webkit-mask-image: radial-gradient(closest-side, #000 72%, transparent 100%); mask-image: radial-gradient(closest-side, #000 72%, transparent 100%); }
.red-v__label { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); font-family: var(--font-display, inherit); font-weight: 700; font-size: clamp(13px, 5.2cqi, 30px); letter-spacing: .06em; color: #fff; text-shadow: 0 0 18px rgba(25, 181, 191, .55); pointer-events: none; }
@media (max-width: 960px) { .who__head { grid-template-columns: 1fr; } .red-v { max-width: 460px; } }

/* Pallet animation (Proveedores y marcas): ElevenLabs video, boxes pile up one by one */
.pale-v { position: absolute; right: clamp(16px, 4vw, 56px); bottom: 0; width: clamp(260px, 30vw, 420px); aspect-ratio: 1; pointer-events: none; transition: opacity .45s ease; }
.pale-v.is-reset { opacity: 0; }
.pale-v__video { display: block; width: 100%; height: 100%; object-fit: cover;
  -webkit-mask-image: radial-gradient(closest-side, #000 62%, transparent 100%); mask-image: radial-gradient(closest-side, #000 62%, transparent 100%); }
@media (max-width: 1099px) { .banner .pale-v { display: none; } }
@media (prefers-reduced-motion: reduce) { .pale-v { transition: none; } }
