/* ==========================================================================
   LOGYSTEEL · Sistema visual web
   Basado en el Manual de identidad v2.0. Tema oscuro: negro de fondo,
   navy en superficies, amarillo como acento, diagonal de 19°.
   ========================================================================== */

:root {
  /* Paleta corporativa (manual p. 17-18) */
  --yellow: #FDBF03;
  --yellow-70: #FED24F;
  --yellow-40: #FEE59A;
  --yellow-20: #FFF2CD;
  --yellow-shade: #C99700;
  --steel: #737373;
  --steel-50: #B9B9B9;
  --steel-25: #D9D9D9;
  --steel-10: #F2F2F2;
  --text-gray: #4A4A4A;
  --ink: #1A1A1A;
  --navy: #0E1B30;
  --navy-75: #4A5363;
  --navy-50: #878D97;
  --navy-25: #C3C6CB;
  --navy-10: #E7E8EA;
  --black: #000000;
  --white: #FFFFFF;
  --ok: #1E7F3C;
  --error: #C8102E;

  /* Superficies del tema oscuro */
  --bg: var(--black);
  --surface: var(--navy);
  --surface-2: #13243F;
  --line: rgba(255, 255, 255, .10);
  --line-strong: rgba(255, 255, 255, .18);
  --fg: var(--white);
  --fg-soft: var(--navy-25);
  --fg-mute: var(--navy-50);

  /* Diagonal de la marca: 19° */
  --skew: -19deg;
  --tan19: .3443;

  /* Tipografía */
  --font: "Montserrat", "Aptos", Arial, system-ui, sans-serif;
  --fs-display: clamp(2.6rem, 1.4rem + 5.4vw, 6.2rem);
  --fs-h1: clamp(2.2rem, 1.3rem + 3.8vw, 4.4rem);
  --fs-h2: clamp(1.8rem, 1.2rem + 2.4vw, 3.2rem);
  --fs-h3: clamp(1.15rem, 1rem + .6vw, 1.45rem);
  --fs-lead: clamp(1.05rem, .98rem + .35vw, 1.25rem);
  --fs-body: 1rem;
  --fs-small: .875rem;
  --fs-label: .75rem;

  /* Ritmo */
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1240px;
  --section: clamp(72px, 9vw, 140px);
  --radius: 2px;

  /* Movimiento: rápido y decidido */
  --ease: cubic-bezier(.2, .8, .2, 1);
  --fast: 160ms;
  --mid: 280ms;
  --slow: 600ms;

  --header-h: 72px;
}

/* --- Reset --------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4, p, ul, ol, figure, blockquote { margin: 0; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }
::selection { background: var(--yellow); color: var(--black); }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; top: 8px; left: 8px; z-index: 1000;
  background: var(--yellow); color: var(--black); font-weight: 800;
  padding: 10px 16px; transform: translateY(-150%); transition: transform var(--fast) var(--ease);
}
.skip-link:focus { transform: none; }

/* --- Layout -------------------------------------------------------------- */
.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); position: relative; }
.section--navy { background: var(--navy); }
.section--light { background: var(--white); color: var(--ink); --fg: var(--ink); --fg-soft: var(--text-gray); --fg-mute: var(--steel); --line: #E3E3E3; --line-strong: var(--steel-25); }
.section--gray { background: var(--steel-10); color: var(--ink); --fg: var(--ink); --fg-soft: var(--text-gray); --fg-mute: var(--steel); --line: #DDDDDD; --line-strong: var(--steel-25); }
.grid { display: grid; gap: clamp(16px, 2.4vw, 32px); }
.split { display: grid; gap: clamp(32px, 5vw, 80px); align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; } .split--wide-left { grid-template-columns: 1.2fr .8fr; } }

/* Cortes diagonales a 19° entre secciones */
.cut-top { clip-path: polygon(0 0, 100% clamp(32px, 6vw, 96px), 100% 100%, 0 100%); margin-top: calc(-1 * clamp(32px, 6vw, 96px)); padding-top: calc(var(--section) + clamp(32px, 6vw, 96px)); }
.cut-bottom { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 calc(100% - clamp(32px, 6vw, 96px))); padding-bottom: calc(var(--section) + clamp(32px, 6vw, 96px)); }

/* --- Tipografía ---------------------------------------------------------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: var(--fs-label); font-weight: 800; font-style: italic;
  letter-spacing: .16em; text-transform: uppercase; color: var(--fg-mute);
}
.eyebrow::before { content: ""; width: 22px; height: 6px; background: var(--yellow); transform: skewX(var(--skew)); }
.section--light .eyebrow, .section--gray .eyebrow { color: var(--steel); }

.display, .h1, .h2 {
  font-weight: 900; font-style: italic; text-transform: uppercase;
  line-height: .95; letter-spacing: -.015em; text-wrap: balance;
}
.display { font-size: var(--fs-display); }
.h1 { font-size: var(--fs-h1); }
.h2 { font-size: var(--fs-h2); }
.h3 { font-size: var(--fs-h3); font-weight: 800; font-style: italic; line-height: 1.2; }
.bar::after {
  content: ""; display: block; width: 84px; height: 9px; margin-top: .45em;
  background: var(--yellow); transform: skewX(var(--skew)); transform-origin: left bottom;
}
.center .bar::after { margin-inline: auto; }
.accent { color: var(--yellow); }
.section--light .accent, .section--gray .accent { color: inherit; box-shadow: inset 0 -.28em 0 var(--yellow); }
.lead { font-size: var(--fs-lead); color: var(--fg-soft); line-height: 1.55; max-width: 60ch; }
.muted { color: var(--fg-soft); }
.small { font-size: var(--fs-small); }
.section-head { display: grid; gap: 18px; margin-bottom: clamp(36px, 5vw, 64px); max-width: 780px; }
.section-head.center { margin-inline: auto; text-align: center; justify-items: center; }
.section-head--row { max-width: none; grid-template-columns: 1fr; align-items: end; }
@media (min-width: 900px) { .section-head--row { grid-template-columns: 1fr auto; } }

/* --- Botones ------------------------------------------------------------- */
.btn {
  --btn-bg: var(--yellow); --btn-fg: var(--black);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 28px; border: 0; cursor: pointer; isolation: isolate;
  font-size: .9rem; font-weight: 800; font-style: italic; letter-spacing: .06em; text-transform: uppercase;
  color: var(--btn-fg); background: none; white-space: nowrap;
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--btn-bg);
  transform: skewX(var(--skew)); transition: transform var(--mid) var(--ease), background var(--fast);
}
.btn::after {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--white);
  transform: skewX(var(--skew)) scaleX(0); transform-origin: left; transition: transform var(--mid) var(--ease);
}
.btn:hover::after { transform: skewX(var(--skew)) scaleX(1); }
.btn .arrow { transition: transform var(--mid) var(--ease); }
.btn:hover .arrow { transform: translateX(5px); }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--white); }
.btn--ghost::before { box-shadow: inset 0 0 0 2px var(--line-strong); }
.btn--ghost:hover { --btn-fg: var(--black); }
.btn--dark { --btn-bg: var(--black); --btn-fg: var(--white); }
.btn--dark:hover { --btn-fg: var(--black); }
.btn--dark::after { background: var(--yellow); }
.section--light .btn--ghost, .section--gray .btn--ghost { --btn-fg: var(--ink); }
.section--light .btn--ghost::before, .section--gray .btn--ghost::before { box-shadow: inset 0 0 0 2px var(--ink); }
.btn--sm { min-height: 42px; padding: 0 20px; font-size: .78rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px 22px; align-items: center; }
.link-arrow {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-style: italic;
  text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; color: var(--yellow);
}
.section--light .link-arrow, .section--gray .link-arrow { color: var(--ink); }
.link-arrow svg { transition: transform var(--mid) var(--ease); }
.link-arrow:hover svg { transform: translateX(6px); }

/* --- Íconos (línea gruesa, leve inclinación) ----------------------------- */
.icon { width: 1.5em; height: 1.5em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: square; stroke-linejoin: miter; }
.icon--slant { transform: skewX(-8deg); }

/* --- Header -------------------------------------------------------------- */
.progress { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 120; background: var(--yellow); transform-origin: left; transform: scaleX(0); }
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--header-h);
  transition: background var(--mid) var(--ease), box-shadow var(--mid) var(--ease), transform var(--mid) var(--ease);
}
.site-header.is-solid { background: rgba(0, 0, 0, .86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--line); }
.site-header.is-hidden { transform: translateY(-100%); }
.site-header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; flex: none; }
.brand img { height: 30px; width: auto; }
@media (min-width: 1100px) { .brand img { height: 34px; } }
.nav { display: none; }
.nav__list { display: flex; gap: clamp(14px, 2vw, 30px); align-items: center; }
.nav__link {
  position: relative; display: block; padding: 8px 0; font-size: .82rem; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase; color: var(--fg-soft); transition: color var(--fast);
}
.nav__link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--yellow);
  transform: skewX(var(--skew)) scaleX(0); transform-origin: left; transition: transform var(--mid) var(--ease);
}
.nav__link:hover, .nav__link[aria-current="page"] { color: var(--white); }
.nav__link:hover::after, .nav__link[aria-current="page"]::after { transform: skewX(var(--skew)) scaleX(1); }
.header-actions { display: flex; align-items: center; gap: 14px; }
.header-phone { display: none; align-items: center; gap: 8px; font-weight: 700; font-size: .85rem; color: var(--fg-soft); }
.header-phone:hover { color: var(--white); }
.header-cta { display: none; }
@media (min-width: 1100px) {
  .nav { display: block; }
  .header-cta { display: inline-flex; }
  .menu-toggle { display: none; }
}
@media (min-width: 1280px) { .header-phone { display: inline-flex; } }

.menu-toggle {
  width: 48px; height: 48px; display: grid; place-items: center; background: none; border: 0; cursor: pointer;
}
.menu-toggle span, .menu-toggle span::before, .menu-toggle span::after {
  content: ""; display: block; width: 26px; height: 3px; background: var(--white);
  transition: transform var(--mid) var(--ease), opacity var(--fast);
}
.menu-toggle span { position: relative; transform: skewX(var(--skew)); }
.menu-toggle span::before { position: absolute; top: -8px; }
.menu-toggle span::after { position: absolute; top: 8px; width: 18px; background: var(--yellow); }
.menu-open .menu-toggle span { background: transparent; }
.menu-open .menu-toggle span::before { transform: translateY(8px) rotate(45deg); }
.menu-open .menu-toggle span::after { transform: translateY(-8px) rotate(-45deg); width: 26px; background: var(--white); }

.mobile-nav {
  position: fixed; inset: 0; z-index: 90; background: var(--black);
  padding: calc(var(--header-h) + 24px) var(--gutter) 32px; display: flex; flex-direction: column; gap: 32px;
  clip-path: polygon(100% 0, 100% 0, calc(100% - 50vh) 100%, calc(100% - 50vh) 100%);
  visibility: hidden; transition: clip-path var(--slow) var(--ease), visibility 0s linear var(--slow);
  overflow-y: auto;
}
.menu-open .mobile-nav { clip-path: polygon(-60vh 0, 100% 0, 100% 100%, -60vh 100%); visibility: visible; transition: clip-path var(--slow) var(--ease); }
.mobile-nav__list { display: grid; gap: 4px; }
.mobile-nav__list a {
  display: flex; justify-content: space-between; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line);
  font-size: clamp(1.6rem, 7vw, 2.4rem); font-weight: 900; font-style: italic; text-transform: uppercase; line-height: 1.1;
}
.mobile-nav__list a[aria-current="page"] { color: var(--yellow); }
.mobile-nav__meta { display: grid; gap: 10px; color: var(--fg-soft); font-size: .95rem; }
.menu-open { overflow: hidden; }

/* --- Hero ---------------------------------------------------------------- */
.hero {
  position: relative; min-height: 100svh; display: grid; align-items: end;
  padding: calc(var(--header-h) + 48px) 0 clamp(40px, 7vw, 88px); overflow: hidden; isolation: isolate;
}
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 50%; animation: drift 24s var(--ease) both; }
@keyframes drift { from { transform: scale(1.12) translateX(2%); } to { transform: scale(1.02) translateX(0); } }
.hero__veil {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(0,0,0,.94) 0%, rgba(0,0,0,.78) 40%, rgba(0,0,0,.25) 75%, rgba(0,0,0,.35) 100%),
    linear-gradient(0deg, rgba(0,0,0,.9) 0%, rgba(0,0,0,0) 45%);
}
@media (max-width: 1199px) {
  .hero__veil { background: linear-gradient(0deg, rgba(0,0,0,.96) 0%, rgba(0,0,0,.82) 55%, rgba(0,0,0,.55) 100%); }
}
/* Franja diagonal de marca en la esquina */
.stripe {
  position: absolute; right: 0; bottom: 0; z-index: -1; pointer-events: none;
  width: clamp(120px, 22vw, 340px); height: clamp(160px, 36vh, 420px);
}
.stripe::before, .stripe::after { content: ""; position: absolute; inset: 0; transform-origin: bottom right; }
.stripe::before { background: var(--yellow); clip-path: polygon(calc(100% * var(--tan19) * 1.1) 100%, 100% 0, 100% 100%); clip-path: polygon(38% 100%, 100% 0, 100% 100%); }
.stripe::after { background: var(--white); clip-path: polygon(30% 100%, 92% 0, 95% 0, 33% 100%); }
.hero__content { display: grid; gap: clamp(20px, 3vw, 32px); max-width: 860px; }
.hero h1 { display: grid; gap: 16px; }
.hero h1 .eyebrow { color: var(--navy-25); }
.hero .display { animation: rise var(--slow) var(--ease) both .1s; }
.hero .lead { color: var(--navy-10); animation: rise var(--slow) var(--ease) both .2s; }
.hero .btn-row { animation: rise var(--slow) var(--ease) both .3s; }
@keyframes rise { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
.trust { display: flex; flex-wrap: wrap; gap: 10px 22px; padding-top: 22px; border-top: 1px solid var(--line); animation: rise var(--slow) var(--ease) both .4s; }
.trust li { display: inline-flex; align-items: center; gap: 8px; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--navy-25); }
.trust li::before { content: ""; width: 8px; height: 8px; background: var(--yellow); transform: skewX(var(--skew)); }

/* Líneas de velocidad */
.speed { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; mix-blend-mode: screen; }
.speed i {
  position: absolute; height: 2px; width: 22vw; left: -25vw;
  background: linear-gradient(90deg, transparent, rgba(253,191,3,.85));
  animation: streak linear infinite;
}
@keyframes streak { to { transform: translateX(150vw); } }

/* Hero interior (páginas internas) */
.page-hero {
  position: relative; padding: calc(var(--header-h) + clamp(56px, 9vw, 120px)) 0 clamp(56px, 8vw, 104px);
  overflow: hidden; isolation: isolate; background: var(--black);
}
.page-hero__media { position: absolute; inset: 0; z-index: -2; }
.page-hero__media img { width: 100%; height: 100%; object-fit: cover; }
.page-hero__veil { position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(0,0,0,.95), rgba(0,0,0,.72) 60%, rgba(14,27,48,.6)); }
.page-hero__content { display: grid; gap: 20px; max-width: 820px; }

/* Migas de pan */
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; font-size: .78rem; font-weight: 600; letter-spacing: .04em; color: var(--navy-50); }
.breadcrumbs li + li::before { content: "/"; margin-right: 6px; color: var(--yellow); }
.breadcrumbs a:hover { color: var(--white); }
.breadcrumbs [aria-current] { color: var(--navy-25); }

/* --- Ticker de rutas ----------------------------------------------------- */
.ticker { background: var(--yellow); color: var(--black); overflow: hidden; position: relative; z-index: 2; }
.ticker__track { display: flex; width: max-content; animation: ticker 40s linear infinite; }
.ticker:hover .ticker__track { animation-play-state: paused; }
.ticker__item {
  display: inline-flex; align-items: center; gap: 14px; padding: 16px 28px;
  font-weight: 900; font-style: italic; text-transform: uppercase; letter-spacing: .02em; font-size: clamp(.95rem, .8rem + .6vw, 1.25rem);
}
.ticker__item svg { width: 26px; height: 14px; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* --- Cifras -------------------------------------------------------------- */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
@media (min-width: 900px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { padding: clamp(22px, 3vw, 40px); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); display: grid; gap: 6px; align-content: start; }
.stat__value { font-size: clamp(2.2rem, 1.4rem + 3vw, 4rem); font-weight: 900; font-style: italic; line-height: 1; letter-spacing: -.02em; color: var(--yellow); font-variant-numeric: tabular-nums; }
.section--light .stat__value, .section--gray .stat__value { color: var(--ink); }
.stat__label { font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; color: var(--fg-soft); }
.stat__note { font-size: .72rem; color: var(--fg-mute); }

/* --- Tarjetas de servicio ------------------------------------------------ */
.services { grid-template-columns: 1fr; }
@media (min-width: 640px) { .services { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .services { grid-template-columns: repeat(3, 1fr); } }
.card {
  position: relative; display: flex; flex-direction: column; gap: 14px; min-height: 280px;
  padding: clamp(24px, 2.6vw, 36px); background: var(--navy); overflow: hidden; isolation: isolate;
  border: 1px solid var(--line); transition: transform var(--mid) var(--ease), border-color var(--mid);
}
.card::before {
  content: ""; position: absolute; z-index: -1; top: 0; bottom: 0; right: -14px; width: 26px;
  background: var(--yellow); transform: skewX(var(--skew)) translateX(160%); transition: transform var(--mid) var(--ease);
}
.card:hover { transform: translateY(-6px); border-color: rgba(253,191,3,.5); }
.card:hover::before { transform: skewX(var(--skew)) translateX(0); }
.card__icon { color: var(--yellow); font-size: 1.5rem; }
.card__num { position: absolute; top: 22px; right: 44px; font-weight: 900; font-style: italic; font-size: .85rem; color: var(--navy-50); letter-spacing: .1em; }
.card h3 { font-size: 1.3rem; font-weight: 900; font-style: italic; text-transform: uppercase; line-height: 1.1; }
.card p { color: var(--navy-25); font-size: .95rem; }
.card .link-arrow { margin-top: auto; }
.card__link::after { content: ""; position: absolute; inset: 0; }
.card--feature { background: var(--black); }

/* --- Pasos --------------------------------------------------------------- */
.steps { counter-reset: step; grid-template-columns: 1fr; gap: 0; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.step { position: relative; padding: 28px 24px 28px 0; border-top: 3px solid var(--line-strong); display: grid; gap: 10px; align-content: start; }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  font-size: 3rem; font-weight: 900; font-style: italic; line-height: 1; color: var(--yellow);
}
.section--light .step::before, .section--gray .step::before { color: var(--ink); -webkit-text-stroke: 0; }
.step::after { content: ""; position: absolute; top: -3px; left: 0; height: 3px; width: 0; background: var(--yellow); transition: width 900ms var(--ease); }
.step.is-in::after { width: 100%; }
.step h3 { font-size: 1.1rem; font-weight: 900; font-style: italic; text-transform: uppercase; }
.step p { color: var(--fg-soft); font-size: .95rem; }

/* --- LogyShield / tablero ------------------------------------------------ */
.shield-board {
  position: relative; aspect-ratio: 4 / 3; background: #050B16; border: 1px solid var(--line-strong);
  overflow: hidden; box-shadow: 0 40px 80px -30px rgba(0,0,0,.8);
}
.shield-board svg { width: 100%; height: 100%; }
.shield-board__bar { position: absolute; inset: 0 0 auto 0; display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; font-size: .68rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--navy-50); border-bottom: 1px solid var(--line); background: rgba(0,0,0,.4); }
.live { display: inline-flex; align-items: center; gap: 8px; color: var(--yellow); }
.live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--yellow); animation: blink 1.4s infinite; }
@keyframes blink { 50% { opacity: .2; } }
.shield-board__alert {
  position: absolute; left: 16px; bottom: 16px; right: 16px; max-width: 320px; padding: 12px 14px;
  background: rgba(14,27,48,.92); border-left: 4px solid var(--yellow); font-size: .8rem; color: var(--navy-10);
  animation: alert 8s var(--ease) infinite;
}
.shield-board__alert strong { display: block; color: var(--yellow); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; }
@keyframes alert { 0%, 30% { opacity: 0; transform: translateY(10px); } 38%, 80% { opacity: 1; transform: none; } 90%, 100% { opacity: 0; } }
.route-path { stroke-dasharray: 6 8; animation: dash 1.2s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -28; } }
.geofence { transform-box: fill-box; transform-origin: center; animation: pulse 2.4s var(--ease) infinite; }
@keyframes pulse { 0% { transform: scale(.6); opacity: .9; } 100% { transform: scale(1.6); opacity: 0; } }

.feature-list { display: grid; gap: 4px; }
.feature { display: grid; grid-template-columns: auto 1fr; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.feature .icon { color: var(--yellow); font-size: 1.3rem; margin-top: 2px; }
.section--light .feature .icon, .section--gray .feature .icon { color: var(--ink); }
.feature h3 { font-size: 1.02rem; font-weight: 800; font-style: italic; text-transform: uppercase; letter-spacing: .02em; }
.feature p { color: var(--fg-soft); font-size: .95rem; margin-top: 4px; }

/* --- Mapa de cobertura --------------------------------------------------- */
.network { position: relative; }
.network svg { width: 100%; height: auto; overflow: visible; }
.network .dot-grid { fill: rgba(255,255,255,.08); }
.network .route { fill: none; stroke: var(--yellow); stroke-width: 1.6; stroke-dasharray: var(--len); stroke-dashoffset: var(--len); opacity: .9; }
.network.is-in .route { animation: draw 1.6s var(--ease) forwards; animation-delay: var(--d, 0s); }
@keyframes draw { to { stroke-dashoffset: 0; } }
.network .route--intl { stroke: var(--white); stroke-dasharray: 4 6; stroke-dashoffset: 0; opacity: 0; }
.network.is-in .route--intl { animation: fade .6s var(--ease) forwards 1.6s; }
@keyframes fade { to { opacity: .7; } }
.network .node { fill: var(--black); stroke: var(--yellow); stroke-width: 2.5; }
.network .node--hq { fill: var(--yellow); }
.network .node--intl { stroke: var(--white); }
.network .label { fill: var(--white); font-size: 13px; font-weight: 800; font-style: italic; text-transform: uppercase; letter-spacing: .04em; }
.network .label--mute { fill: var(--navy-50); font-weight: 600; font-style: normal; font-size: 11px; }
.city-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 24px; }
.city-list li { padding: 12px 0; border-bottom: 1px solid var(--line); font-weight: 800; font-style: italic; text-transform: uppercase; display: flex; justify-content: space-between; gap: 10px; }
.city-list li span { font-weight: 500; font-style: normal; text-transform: none; color: var(--fg-mute); font-size: .82rem; }

/* --- Certificaciones ----------------------------------------------------- */
.certs { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.cert { padding: 28px; border: 1px solid var(--line-strong); background: var(--white); display: grid; gap: 8px; align-content: start; position: relative; }
.section--gray .cert { background: var(--white); }
.cert::before { content: ""; position: absolute; top: 0; left: 0; width: 56px; height: 6px; background: var(--yellow); transform: skewX(var(--skew)); transform-origin: left; }
.cert__sigla { font-size: 1.5rem; font-weight: 900; font-style: italic; line-height: 1.1; }
.cert__name { font-weight: 700; }
.cert__detail { font-size: .8rem; color: var(--steel); }

/* --- Clientes (marquesina) ----------------------------------------------- */
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee__track { display: flex; width: max-content; animation: ticker 32s linear infinite; }
.marquee__item { padding: 10px clamp(28px, 4vw, 56px); font-size: clamp(1.3rem, 1rem + 1.4vw, 2.1rem); font-weight: 900; font-style: italic; text-transform: uppercase; color: var(--steel-50); white-space: nowrap; transition: color var(--fast); }
.marquee__item:hover { color: var(--ink); }

/* --- Rating -------------------------------------------------------------- */
.rating { display: inline-flex; align-items: center; gap: 12px; padding: 12px 18px; border: 1px solid var(--line-strong); }
.rating__stars { color: var(--yellow); letter-spacing: 2px; font-size: 1.1rem; }
.rating strong { font-size: 1.4rem; font-weight: 900; font-style: italic; }
.rating span { font-size: .8rem; color: var(--fg-soft); }

/* --- FAQ ----------------------------------------------------------------- */
.faq { display: grid; border-top: 2px solid var(--ink); }
.section:not(.section--light):not(.section--gray) .faq { border-top-color: var(--white); }
.faq details { border-bottom: 1px solid var(--line-strong); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 22px 0; font-weight: 800; font-size: clamp(1rem, .95rem + .3vw, 1.15rem); line-height: 1.35;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 22px; height: 22px; transition: transform var(--mid) var(--ease);
  background: linear-gradient(currentColor, currentColor) center / 100% 3px no-repeat, linear-gradient(currentColor, currentColor) center / 3px 100% no-repeat;
}
.faq details[open] summary::after { transform: rotate(135deg); }
.faq details[open] summary { color: inherit; }
.faq .faq__a { padding: 0 0 24px; color: var(--fg-soft); max-width: 72ch; }

/* --- Banda CTA ----------------------------------------------------------- */
.cta-band { position: relative; background: var(--yellow); color: var(--black); overflow: hidden; isolation: isolate; }
.cta-band::before { content: ""; position: absolute; z-index: -1; top: 0; bottom: 0; right: -10%; width: 45%; background: var(--black); transform: skewX(var(--skew)); }
.cta-band::after { content: ""; position: absolute; z-index: -1; top: 0; bottom: 0; right: calc(35% + 14px); width: 12px; background: var(--navy); transform: skewX(var(--skew)); }
@media (max-width: 899px) { .cta-band::before, .cta-band::after { display: none; } }
.cta-band__inner { display: grid; gap: 28px; padding-block: clamp(56px, 7vw, 96px); }
@media (min-width: 900px) { .cta-band__inner { grid-template-columns: 1.3fr 1fr; align-items: center; } .cta-band__actions { justify-self: end; } }
.cta-band .h2 { color: var(--black); }
.cta-band p { font-size: var(--fs-lead); font-weight: 500; max-width: 46ch; }
.cta-band__actions { display: grid; gap: 14px; justify-items: start; }
@media (min-width: 900px) { .cta-band__actions .btn--dark { --btn-bg: var(--yellow); --btn-fg: var(--black); } .cta-band__actions .btn--dark::after { background: var(--white); } .cta-band__phone { color: var(--white); } }
.cta-band__phone { font-weight: 800; font-size: 1.1rem; display: inline-flex; gap: 10px; align-items: center; }

/* --- Noticias ------------------------------------------------------------ */
.posts { grid-template-columns: 1fr; }
@media (min-width: 720px) { .posts { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .posts { grid-template-columns: repeat(3, 1fr); } }
.post-card { position: relative; display: flex; flex-direction: column; background: var(--navy); border: 1px solid var(--line); transition: transform var(--mid) var(--ease); }
.section--light .post-card, .section--gray .post-card { background: var(--white); border-color: var(--line-strong); }
.post-card:hover { transform: translateY(-6px); }
.post-card__media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; clip-path: polygon(0 0, 100% 0, 100% 86%, 0 100%); }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--slow) var(--ease); }
.post-card:hover .post-card__media img { transform: scale(1.06); }
.post-card__body { display: grid; gap: 12px; padding: 20px 26px 28px; flex: 1; align-content: start; }
.post-card__meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--fg-mute); }
.tag { display: inline-block; padding: 3px 10px; background: var(--yellow); color: var(--black); font-weight: 800; font-style: italic; }
.post-card h3 { font-size: 1.2rem; font-weight: 900; font-style: italic; line-height: 1.2; }
.post-card p { color: var(--fg-soft); font-size: .95rem; }
.post-card .link-arrow { margin-top: 6px; }
.post-card a.post-card__link::after { content: ""; position: absolute; inset: 0; }
.post-card--lead { grid-column: 1 / -1; }
@media (min-width: 1024px) {
  .post-card--lead { flex-direction: row; }
  .post-card--lead .post-card__media { flex: 1.3; aspect-ratio: auto; min-height: 380px; clip-path: polygon(0 0, 100% 0, 86% 100%, 0 100%); }
  .post-card--lead .post-card__body { flex: 1; padding: 40px; align-content: center; }
  .post-card--lead h3 { font-size: 2rem; }
}
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 36px; }
.filters a { padding: 8px 18px; border: 1px solid var(--line-strong); font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; transition: background var(--fast), color var(--fast); }
.filters a:hover, .filters a[aria-current="true"] { background: var(--ink); color: var(--white); border-color: var(--ink); }

/* --- Artículo ------------------------------------------------------------ */
.article-hero { padding: calc(var(--header-h) + clamp(48px, 7vw, 96px)) 0 0; background: var(--black); }
.article-hero__head { display: grid; gap: 20px; max-width: 900px; padding-bottom: clamp(32px, 5vw, 56px); }
.article-meta { display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; font-size: .8rem; color: var(--navy-25); }
.article-meta time, .article-meta span { display: inline-flex; gap: 6px; align-items: center; }
.article-cover { position: relative; aspect-ratio: 21 / 9; overflow: hidden; clip-path: polygon(0 0, 100% 0, 100% 100%, 0 82%); }
.article-cover img { width: 100%; height: 100%; object-fit: cover; }
.article-layout { display: grid; gap: 48px; }
@media (min-width: 1024px) { .article-layout { grid-template-columns: minmax(0, 1fr) 300px; gap: 72px; } }
.prose { max-width: 720px; font-size: 1.08rem; line-height: 1.75; color: var(--text-gray); }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { margin-top: 2em; font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.1rem); font-weight: 900; font-style: italic; text-transform: uppercase; line-height: 1.1; color: var(--ink); }
.prose h2::after { content: ""; display: block; width: 56px; height: 7px; margin-top: .4em; background: var(--yellow); transform: skewX(var(--skew)); transform-origin: left; }
.prose h3 { margin-top: 1.6em; font-size: 1.2rem; font-weight: 800; font-style: italic; color: var(--ink); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .5em; }
.prose ul li::marker { content: "▰  "; color: var(--yellow-shade); font-size: .8em; }
.prose ol li::marker { font-weight: 900; font-style: italic; color: var(--ink); }
.prose strong { color: var(--ink); }
.prose a { color: var(--ink); box-shadow: inset 0 -3px 0 var(--yellow); }
.prose a:hover { background: var(--yellow-40); }
.prose blockquote { padding: 8px 0 8px 24px; border-left: 6px solid var(--yellow); font-size: 1.25rem; font-weight: 700; font-style: italic; color: var(--ink); }
.prose .callout { padding: 22px 26px; background: var(--navy); color: var(--white); font-weight: 600; position: relative; overflow: hidden; }
.prose .callout::after { content: ""; position: absolute; right: -12px; top: 0; bottom: 0; width: 40px; background: var(--yellow); transform: skewX(var(--skew)); }
.prose .callout p { padding-right: 36px; }
.prose figure img { width: 100%; }
.prose figcaption { font-size: .82rem; color: var(--steel); margin-top: 8px; }
.aside { display: grid; gap: 24px; align-content: start; }
@media (min-width: 1024px) { .aside { position: sticky; top: calc(var(--header-h) + 24px); } }
.aside__box { padding: 26px; border: 1px solid var(--line-strong); display: grid; gap: 14px; }
.aside__box--dark { background: var(--navy); color: var(--white); border: 0; }
.aside__box--dark p { color: var(--navy-25); }
.aside__title { font-size: .78rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.toc ol { list-style: none; padding: 0; display: grid; gap: 8px; font-size: .9rem; }
.toc a { color: var(--text-gray); display: block; padding-left: 12px; border-left: 3px solid var(--steel-25); transition: border-color var(--fast), color var(--fast); }
.toc a:hover, .toc a.is-active { color: var(--ink); border-color: var(--yellow); }
.share { display: flex; gap: 10px; }
.share a, .share button { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid var(--line-strong); background: none; cursor: pointer; color: var(--ink); transition: background var(--fast); }
.share a:hover, .share button:hover { background: var(--yellow); border-color: var(--yellow); }
.author { display: flex; gap: 14px; align-items: center; padding: 22px 0; border-top: 1px solid var(--line-strong); border-bottom: 1px solid var(--line-strong); }
.author img { width: 54px; height: 54px; background: var(--navy); padding: 8px; }
.author strong { display: block; color: var(--ink); }
.author span { font-size: .85rem; color: var(--steel); }

/* --- Formularios --------------------------------------------------------- */
.form { display: grid; gap: 18px; }
.form__row { display: grid; gap: 18px; }
@media (min-width: 640px) { .form__row--2 { grid-template-columns: 1fr 1fr; } .form__row--3 { grid-template-columns: repeat(3, 1fr); } }
.field { display: grid; gap: 8px; }
.field label, .field legend { font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--fg-soft); }
.field label .req { color: var(--yellow); }
.section--light .field label .req, .section--gray .field label .req { color: var(--error); }
.input, .select, .textarea {
  width: 100%; min-height: 52px; padding: 14px 16px; background: var(--surface-2); border: 0; border-bottom: 2px solid var(--line-strong);
  color: var(--white); border-radius: 0; transition: border-color var(--fast), background var(--fast);
}
.section--light .input, .section--light .select, .section--light .textarea,
.section--gray .input, .section--gray .select, .section--gray .textarea { background: var(--steel-10); color: var(--ink); border-bottom-color: var(--steel-50); }
.section--gray .input, .section--gray .select, .section--gray .textarea { background: var(--white); }
.textarea { min-height: 140px; resize: vertical; }
.input::placeholder, .textarea::placeholder { color: var(--navy-50); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-bottom-color: var(--yellow); }
.select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%); background-position: calc(100% - 22px) 52%, calc(100% - 16px) 52%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 44px; }
.field.has-error .input, .field.has-error .select, .field.has-error .textarea { border-bottom-color: var(--error); }
.field__error { font-size: .8rem; color: #FF6B7F; display: none; }
.section--light .field__error, .section--gray .field__error { color: var(--error); }
.field.has-error .field__error { display: block; }
.check { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start; font-size: .85rem; color: var(--fg-soft); }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--yellow); }
.check a { text-decoration: underline; }
.hp { position: absolute; left: -9999px; }
.form-status { padding: 16px 18px; font-weight: 600; display: none; }
.form-status.is-ok { display: block; background: rgba(30,127,60,.15); border-left: 4px solid var(--ok); }
.form-status.is-error { display: block; background: rgba(200,16,46,.12); border-left: 4px solid var(--error); }

.tabs { display: flex; flex-wrap: wrap; gap: 0; border-bottom: 2px solid var(--line-strong); margin-bottom: 36px; }
.tabs button {
  position: relative; padding: 16px 22px; background: none; border: 0; cursor: pointer;
  font-weight: 800; font-style: italic; text-transform: uppercase; letter-spacing: .04em; color: var(--fg-mute);
}
.tabs button[aria-selected="true"] { color: var(--fg); }
.tabs button::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 4px; background: var(--yellow); transform: scaleX(0); transform-origin: left; transition: transform var(--mid) var(--ease); }
.tabs button[aria-selected="true"]::after { transform: scaleX(1); }
.tab-panel[hidden] { display: none; }

.contact-card { display: grid; gap: 22px; padding: clamp(28px, 3vw, 40px); background: var(--navy); color: var(--white); align-content: start; position: relative; overflow: hidden; }
.contact-card::after { content: ""; position: absolute; right: -30px; bottom: -20px; width: 120px; height: 160px; background: var(--yellow); transform: skewX(var(--skew)); }
.contact-line { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: start; position: relative; z-index: 1; }
.contact-line .icon { color: var(--yellow); font-size: 1.25rem; }
.contact-line small { display: block; font-size: .7rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--navy-50); }
.contact-line a, .contact-line span { font-weight: 700; }
.contact-line a:hover { color: var(--yellow); }

/* --- Detalle de servicio ------------------------------------------------- */
.benefits { grid-template-columns: 1fr; }
@media (min-width: 720px) { .benefits { grid-template-columns: repeat(2, 1fr); } }
.benefit { padding: 28px; border: 1px solid var(--line-strong); display: grid; gap: 10px; align-content: start; position: relative; }
.benefit::before { content: ""; width: 34px; height: 7px; background: var(--yellow); transform: skewX(var(--skew)); }
.benefit h3 { font-size: 1.05rem; font-weight: 900; font-style: italic; text-transform: uppercase; }
.benefit p { color: var(--fg-soft); font-size: .95rem; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chips li { padding: 8px 16px; background: var(--navy); color: var(--white); font-weight: 700; font-size: .85rem; transform: skewX(var(--skew)); }
.chips li span { display: inline-block; transform: skewX(19deg); }
.media-slant { position: relative; overflow: hidden; clip-path: polygon(calc(var(--tan19) * 30%) 0, 100% 0, 100% 100%, 0 100%); aspect-ratio: 4 / 3; }
.media-slant img { width: 100%; height: 100%; object-fit: cover; }
.service-nav { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.service-nav a { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 20px; background: var(--black); font-weight: 700; font-size: .92rem; transition: background var(--fast), color var(--fast); }
.service-nav a:hover { background: var(--navy); color: var(--yellow); }
.service-nav a[aria-current="page"] { background: var(--yellow); color: var(--black); }

/* --- Valores / misión ---------------------------------------------------- */
.values { grid-template-columns: 1fr; }
@media (min-width: 720px) { .values { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .values { grid-template-columns: repeat(4, 1fr); } }
.value { padding: 30px 26px; background: var(--navy); display: grid; gap: 10px; align-content: start; }
.value::before { content: ""; width: 34px; height: 7px; background: var(--yellow); transform: skewX(var(--skew)); }
.value h3 { font-size: 1.3rem; font-weight: 900; font-style: italic; }
.value p { color: var(--navy-25); font-size: .95rem; }
.quote-block { padding: clamp(32px, 4vw, 56px); background: var(--navy); position: relative; overflow: hidden; }
.quote-block p { font-size: clamp(1.4rem, 1rem + 1.6vw, 2.2rem); font-weight: 900; font-style: italic; line-height: 1.15; max-width: 22ch; }
.quote-block::after { content: ""; position: absolute; right: 8%; top: 0; bottom: 0; width: 70px; background: var(--yellow); transform: skewX(var(--skew)); }
.statement { display: grid; gap: 14px; }
.statement h3 { font-size: 1.4rem; font-weight: 900; font-style: italic; text-transform: uppercase; }
.statement p { color: var(--fg-soft); }

/* --- Footer -------------------------------------------------------------- */
.site-footer { background: var(--black); border-top: 1px solid var(--line); position: relative; overflow: hidden; }
.site-footer::before { content: ""; position: absolute; top: 0; right: 6%; width: 110px; height: 6px; background: var(--yellow); transform: skewX(var(--skew)); }
.footer-top { display: grid; gap: 40px; padding-block: clamp(56px, 7vw, 96px) 40px; }
@media (min-width: 720px) { .footer-top { grid-template-columns: 1.4fr 1fr 1fr; } }
@media (min-width: 1100px) { .footer-top { grid-template-columns: 1.6fr 1fr 1fr 1.2fr; } }
.footer-brand { display: grid; gap: 18px; align-content: start; }
.footer-brand img { width: 230px; }
.footer-brand p { color: var(--navy-50); font-size: .9rem; max-width: 40ch; }
.footer-col h2 { font-size: .74rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--navy-50); margin-bottom: 16px; }
.footer-col ul { list-style: none; padding: 0; display: grid; gap: 10px; }
.footer-col a { color: var(--navy-25); font-size: .92rem; transition: color var(--fast); }
.footer-col a:hover { color: var(--yellow); }
.footer-col address { font-style: normal; display: grid; gap: 10px; color: var(--navy-25); font-size: .92rem; }
.social { display: flex; gap: 10px; }
.social a { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid var(--line-strong); color: var(--white); transition: background var(--fast), color var(--fast); }
.social a:hover { background: var(--yellow); color: var(--black); border-color: var(--yellow); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px 28px; padding-block: 24px 32px; border-top: 1px solid var(--line); font-size: .78rem; color: var(--navy-50); }
.footer-bottom nav ul { display: flex; flex-wrap: wrap; gap: 8px 22px; list-style: none; padding: 0; }
.footer-bottom a:hover { color: var(--white); }
.vigilado { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; color: var(--navy-25); }
.vigilado b { color: var(--yellow); font-weight: 800; }

/* Botón flotante WhatsApp / contacto */
.fab {
  position: fixed; right: 18px; bottom: 18px; z-index: 80; display: inline-flex; align-items: center; gap: 10px;
  padding: 0 20px 0 16px; height: 54px; background: var(--yellow); color: var(--black); font-weight: 800; font-size: .82rem;
  text-transform: uppercase; letter-spacing: .06em; box-shadow: 0 12px 30px -10px rgba(0,0,0,.6);
  clip-path: polygon(12px 0, 100% 0, calc(100% - 12px) 100%, 0 100%); transition: transform var(--mid) var(--ease);
}
.fab:hover { transform: translateY(-3px); }
.fab .icon { font-size: 1.3rem; }

/* --- Páginas de error ---------------------------------------------------- */
.error-page { min-height: 100svh; display: grid; align-items: center; padding: calc(var(--header-h) + 40px) 0 72px; position: relative; overflow: hidden; isolation: isolate; }
.error-page__code {
  position: absolute; z-index: -1; right: -2vw; bottom: -4vw; font-size: clamp(10rem, 34vw, 30rem); font-weight: 900; font-style: italic; line-height: .8;
  color: transparent; -webkit-text-stroke: 2px rgba(253,191,3,.25); letter-spacing: -.04em; user-select: none;
}
.error-page__content { display: grid; gap: 24px; max-width: 720px; }
.error-tag { display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px; background: var(--yellow); color: var(--black); font-weight: 900; font-style: italic; letter-spacing: .06em; text-transform: uppercase; width: max-content; }
.error-ref { font-size: .82rem; color: var(--navy-50); }
.error-ref code { color: var(--navy-25); }
.error-links { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); margin-top: 8px; }
@media (min-width: 640px) { .error-links { grid-template-columns: repeat(3, 1fr); } }
.error-links a { padding: 18px 20px; background: var(--black); font-weight: 700; display: flex; justify-content: space-between; align-items: center; transition: background var(--fast), color var(--fast); }
.error-links a:hover { background: var(--navy); color: var(--yellow); }
.admin-debug { margin-top: 24px; border: 1px dashed var(--yellow); background: #0A0F18; padding: 20px; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .8rem; color: var(--navy-10); overflow-x: auto; }
.admin-debug h2 { font-family: var(--font); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--yellow); margin-bottom: 12px; }
.admin-debug dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; }
.admin-debug dt { color: var(--navy-50); }
.admin-debug dd { margin: 0; word-break: break-all; }

/* --- Revelado al hacer scroll -------------------------------------------- */
.reveal { opacity: 0; transform: translateY(32px); transition: opacity var(--slow) var(--ease), transform var(--slow) var(--ease); transition-delay: var(--delay, 0s); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal-x { opacity: 0; transform: translateX(-40px) skewX(-6deg); transition: opacity var(--slow) var(--ease), transform var(--slow) var(--ease); transition-delay: var(--delay, 0s); }
.reveal-x.is-in { opacity: 1; transform: none; }
.no-js .reveal, .no-js .reveal-x { opacity: 1; transform: none; }

/* --- Utilidades ---------------------------------------------------------- */
.mt-s { margin-top: 16px; } .mt-m { margin-top: 32px; } .mt-l { margin-top: 56px; }
.stack { display: grid; gap: 18px; align-content: start; }
.stack-l { display: grid; gap: 32px; align-content: start; }
.notice { padding: 14px 18px; border-left: 4px solid var(--yellow); background: rgba(253,191,3,.08); font-size: .9rem; color: var(--fg-soft); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal, .reveal-x { opacity: 1; transform: none; }
  .ticker__track, .marquee__track { animation: none; flex-wrap: wrap; width: auto; }
  .speed { display: none; }
  .network .route { stroke-dashoffset: 0; }
}

@media print {
  .site-header, .site-footer, .fab, .progress, .speed, .ticker, .share, .cta-band { display: none !important; }
  body { background: #fff; color: #000; }
}
.icon .f { fill: currentColor; stroke: none; }

/* --- Ajustes de composición ---------------------------------------------- */
@media (min-width: 1100px) { .menu-toggle { display: none; } }
@media (min-width: 1400px) { .header-phone { display: inline-flex; } }
@media (max-width: 1399px) { .header-phone { display: none; } }
@media (min-width: 1200px) {
  /* Foto a la derecha, contenedor inclinado exactamente 19° con filete amarillo */
  .hero__media {
    left: 46%; right: -30%; overflow: hidden; transform: skewX(var(--skew)); transform-origin: bottom left;
    border-left: 14px solid var(--yellow); box-shadow: -10px 0 0 0 var(--black), -14px 0 0 0 var(--white);
  }
  .hero__media img { width: 85%; animation: driftSkew 24s var(--ease) both; transform-origin: center; object-position: 45% 50%; }
  @keyframes driftSkew { from { transform: skewX(19deg) scale(1.22) translateX(3%); } to { transform: skewX(19deg) scale(1.1); } }
  .hero__veil { background: linear-gradient(90deg, rgba(0,0,0,.6) 0%, rgba(0,0,0,0) 45%), linear-gradient(0deg, rgba(0,0,0,.7) 0%, rgba(0,0,0,0) 30%); }
  .hero__content { max-width: 640px; }
  .hero .lead { max-width: 46ch; }
  .hero .stripe { display: none; }
}

.site-header:not(.is-solid) { background: linear-gradient(180deg, rgba(0,0,0,.75) 0%, rgba(0,0,0,0) 100%); }
@media (min-width: 1200px) {
  .hero__media { left: 56%; }
  .hero .display { font-size: clamp(3rem, 1.2rem + 4.4vw, 5.6rem); }
}
.header-phone { white-space: nowrap; }
@media (max-width: 1519px) { .header-phone { display: none !important; } }
.split > * { min-width: 0; }
.split .stats { grid-template-columns: repeat(2, 1fr); }
html, body { overflow-x: clip; }
.hero, .page-hero, .ticker, .marquee, .cta-band, .error-page { overflow: clip; }
.prose p.callout { padding: 22px 64px 22px 26px; background: var(--navy); color: var(--white); font-weight: 600; position: relative; overflow: hidden; }
.prose p.callout::after { content: ""; position: absolute; right: -12px; top: 0; bottom: 0; width: 40px; background: var(--yellow); transform: skewX(var(--skew)); }
.prose .wp-block-image img, .prose img { height: auto; }

/* ==========================================================================
   v1.1 · Tema más claro y legible
   Negro solo como punto de partida de degradados; navy y blanco dominan.
   ========================================================================== */
:root { --deep: linear-gradient(160deg, #03070D 0%, #0B1729 45%, #0E1B30 70%, #16294A 100%); }
.section--deep { background: var(--deep); }
.section--navy { background: linear-gradient(180deg, #0E1B30 0%, #13284A 100%); }
.hero { background: linear-gradient(115deg, #000 0%, #07101D 40%, #0E1B30 100%); }
.page-hero, .article-hero { background: linear-gradient(115deg, #02050A 0%, #0B1729 50%, #13284A 100%); }
.site-footer { background: linear-gradient(180deg, #0E1B30 0%, #070E1A 100%); }
.footer-col a, .footer-col address { color: var(--navy-10); }
.footer-brand p, .footer-col h2, .footer-bottom { color: var(--navy-25); }
.site-header.is-solid { background: rgba(10, 20, 36, .9); }
.mobile-nav { background: linear-gradient(160deg, #03070D 0%, #0E1B30 100%); }

/* Componentes con fondo propio: el texto no hereda el color de la sección */
.card, .value, .quote-block, .contact-card, .chips li, .aside__box--dark { color: var(--white); }
.section--navy .value { background: rgba(255, 255, 255, .06); border: 1px solid var(--line); }
.section--light .value, .section--gray .value { background: var(--navy); }
.section--light .card, .section--gray .card { border-color: transparent; }
.section--light .quote-block, .section--gray .quote-block { background: var(--navy); }
.section--light .stat__value { color: var(--ink); }
.section--light .stat__value .stat__num { box-shadow: inset 0 -.18em 0 var(--yellow); }
.muted strong { color: var(--fg); }

/* Hero: en pantallas grandes el texto se alinea a la izquierda, lejos del camión */
@media (min-width: 1200px) {
  .hero > .container, .site-header .container { max-width: 1680px; }
  .hero__veil { background: linear-gradient(90deg, rgba(0,0,0,.35) 0%, rgba(0,0,0,0) 40%), linear-gradient(0deg, rgba(0,0,0,.6) 0%, rgba(0,0,0,0) 30%); }
}
@media (min-width: 1600px) { .hero__media { left: 54%; } }

/* Franjas decorativas: nunca detrás de texto en pantallas angostas */
@media (max-width: 899px) { .page-hero .stripe, .hero .stripe, .error-page .stripe { display: none; } }
/* Banda de cotización: entre 900 y 1199 px sin el bloque negro para que el teléfono se lea */
@media (min-width: 900px) and (max-width: 1199px) {
  .cta-band::before, .cta-band::after { display: none; }
  .cta-band__actions .btn--dark { --btn-bg: var(--black); --btn-fg: var(--white); }
  .cta-band__phone { color: var(--black); }
}
/* Velo de fotos interiores más uniforme para que todo el texto se lea */
.page-hero__veil { background: linear-gradient(90deg, rgba(2,5,10,.94) 0%, rgba(8,16,30,.86) 55%, rgba(14,27,48,.7) 100%); }
@media (min-width: 1200px) { .hero__content > * { max-width: 660px; } .hero .lead { max-width: 46ch; } }
@media (max-width: 1199px) {
  .hero__veil { background: linear-gradient(0deg, rgba(3,7,13,.97) 0%, rgba(5,11,20,.9) 55%, rgba(14,27,48,.66) 100%); }
}
@media (max-width: 700px) {
  .fab { width: 54px; padding: 0; justify-content: center; font-size: 0; clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%); }
  .fab .icon { width: 24px; height: 24px; }
}
