/* =========================================================
   Internovac Group SAS BIC — Estilos
   Lenguaje visual: expediente técnico sobre pergamino.
   Paleta neutra cálida + una única franja verde bosque.
   ========================================================= */
:root {
  --parchment: #f3f1ed;
  --white: #ffffff;
  --ink: #181011;
  --charcoal: #222222;
  --forest: #1d2a1c;      /* franja invertida (equivalente al aubergine) */
  --ash: #aaaaaa;
  --dim: #666666;
  --bone: #d8d4d4;
  --sage: #b9c9a6;        /* diamantes activos en la franja oscura */
  --night: #0e130d;       /* negro verdoso de las secciones dramáticas */
  --accent: #8fc25b;      /* verde de marca sobre fondo oscuro */
  --accent-ink: #3e7425;  /* verde de marca sobre fondo claro */
  --display: "Inter Tight", "Inter", ui-sans-serif, system-ui, sans-serif;
  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;

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

  --r: 4px;
  --r-pill: 100px;
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --section: clamp(80px, 10vw, 128px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-feature-settings: "ss01" on, "cv11" on;
  font-size: 17px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--parchment);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol, dl, dd { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { font-weight: 400; }
b, strong { font-weight: 700; }
:focus-visible { outline: 1px solid var(--ink); outline-offset: 3px; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }

.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 8px 16px; border-radius: var(--r); }
.skip-link:focus { top: 16px; }

/* ---------- Primitivas ---------- */
.label {
  display: inline-block; font-size: 12px; line-height: 1.4; letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink); background: var(--white); padding: 2px 8px; border-radius: var(--r);
}
.label--glass { background: rgba(255,255,255,.7); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 8px 20px; border: 1px solid var(--ink); border-radius: var(--r-pill);
  font: 400 15px/1.5 var(--font); color: var(--ink); background: transparent; cursor: pointer;
  transition: background .25s, color .25s;
}
.btn:hover { background: var(--ink); color: var(--parchment); }
.btn--solid { background: var(--ink); color: var(--parchment); padding: 10px 24px; }
.btn--solid:hover { background: transparent; color: var(--ink); }

.link-arrow { font-size: 15px; border-bottom: 1px solid var(--bone); padding-bottom: 2px; transition: border-color .25s; }
.link-arrow span { display: inline-block; transition: transform .25s var(--ease); }
.link-arrow:hover { border-color: var(--ink); }
.link-arrow:hover span { transform: translateX(4px); }

/* Icono de cuadrícula de diamantes (lo rellena main.js) */
.dgrid { display: grid; grid-template-columns: repeat(3, 8px); gap: 5px; color: var(--ink); }
.dgrid i { width: 8px; height: 8px; border: 1px solid currentColor; transform: rotate(45deg) scale(.8); }
.dgrid i.on { background: currentColor; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50; background: rgba(243,241,237,.9);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--bone); transition: background .35s, border-color .35s, color .35s;
}
.nav-wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-size: 15px; }
.brand img { width: 28px; height: 28px; object-fit: contain; }
.brand small { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); margin-left: 6px; transition: color .35s; }
.main-nav ul { display: flex; align-items: center; gap: 28px; }
.main-nav a:not(.btn) { font-size: 14px; color: var(--dim); transition: color .2s; }
.main-nav a:not(.btn):hover, .main-nav a.active { color: var(--ink); }
.nav-cta { margin-left: 8px; }
.nav-toggle { display: none; }
.site-header.is-dark { background: rgba(14,19,13,.55); border-color: rgba(255,255,255,.1); color: #fff; }
.site-header.is-dark .brand small, .site-header.is-dark .main-nav a:not(.btn) { color: rgba(255,255,255,.6); }
.site-header.is-dark .main-nav a:not(.btn):hover, .site-header.is-dark .main-nav a.active { color: #fff; }
.site-header.is-dark .btn { color: #fff; border-color: rgba(255,255,255,.5); }
.site-header.is-dark .btn:hover { background: #fff; color: var(--night); }
.site-header.is-dark .nav-toggle { border-color: #fff; }
.site-header.is-dark .nav-toggle span { border-color: #fff; }

/* ---------- Tipografía display (mezcla grotesca + serif itálica) ---------- */
.display {
  font-family: var(--display); font-weight: 300; text-transform: uppercase;
  font-size: clamp(44px, 8.6vw, 136px); line-height: .92; letter-spacing: -.045em;
}
.display em {
  font-family: var(--serif); font-style: italic; font-weight: 400; text-transform: none;
  font-size: .42em; letter-spacing: 0; vertical-align: .32em; margin: 0 .12em;
}
.display--md { font-size: clamp(36px, 5.4vw, 80px); }
.display .ln { display: block; white-space: nowrap; }
.display .line { display: block; overflow: hidden; padding-bottom: .04em; }
.display .line > span { display: inline-block; }
.js .hx .display .line > span, .js .cta-x .display .line > span { transform: translateY(105%); transition: transform 1.1s var(--ease); }
.js .hx.is-in .display .line > span, .js .cta-x.is-visible .display .line > span { transform: none; }
.js .display .line:nth-child(2) > span { transition-delay: .12s; }

/* ---------- Hero ---------- */
.hx {
  position: relative; min-height: 100svh; display: grid; grid-template-rows: auto 1fr auto;
  background: var(--night); color: #fff; overflow: hidden; padding-top: 64px;
  background-image: radial-gradient(rgba(255,255,255,.07) 1px, transparent 1.4px); background-size: 16px 16px;
}
.rings {
  position: absolute; left: 50%; top: 52%; width: min(120vh, 1100px); aspect-ratio: 1;
  transform: translate(-50%, -50%); color: rgba(143,194,91,.35); pointer-events: none;
}
.rings-spin { transform-origin: 400px 400px; animation: spin 90s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.hx-top { display: flex; justify-content: space-between; padding-top: 24px; position: relative; }
.hx-meta { display: grid; gap: 2px; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.55); }
.hx-meta--r { text-align: right; }
.hx-meta time { color: #fff; font-variant-numeric: tabular-nums; }
.hx-center { position: relative; align-self: center; text-align: center; padding-block: 48px; }
.hx-kicker { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.6); margin-bottom: 28px; }
.hx .display em { color: var(--accent); }
.hx-sub { max-width: 34em; margin: 32px auto 0; color: rgba(255,255,255,.7); font-size: 17px; }
.hx-cta { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 28px; margin-top: 40px; }
.hx-bottom { position: relative; display: flex; align-items: center; gap: 16px; padding-bottom: 24px; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.5); }
.hx-line { flex: 1; height: 1px; background: rgba(255,255,255,.18); position: relative; overflow: hidden; }
.hx-line::after { content: ""; position: absolute; inset: 0; width: 30%; background: var(--accent); animation: sweep 3s var(--ease) infinite; }
@keyframes sweep { from { transform: translateX(-100%); } to { transform: translateX(340%); } }

.btn--light { color: #fff; border-color: rgba(255,255,255,.6); }
.btn--light:hover { background: #fff; color: var(--night); }
.icon--arrow { width: 16px; height: 16px; stroke-width: 1.5; transition: transform .3s var(--ease); }
.btn:hover .icon--arrow, .tile:hover .icon--arrow { transform: translate(2px, -2px); }
.link-arrow--light { color: #fff; border-color: rgba(255,255,255,.3); }
.link-arrow--light:hover { border-color: #fff; }

.label--bracket { background: transparent; color: rgba(255,255,255,.6); padding: 0; }
.label--bracket::before { content: "[ "; } .label--bracket::after { content: " ]"; }

/* ---------- Manifiesto con palabras que se iluminan ---------- */
.manifesto { background: var(--night); color: #fff; padding: clamp(80px, 12vw, 160px) 0 0; overflow: hidden; }
.words {
  margin: 32px 0 48px; font-family: var(--display); font-weight: 400; text-transform: uppercase;
  font-size: clamp(22px, 3.1vw, 44px); line-height: 1.12; letter-spacing: -.02em; text-align: justify; hyphens: none;
}
.words mark { background: none; color: inherit; }
.words .w { color: rgba(255,255,255,.16); transition: color .35s; }
.words .w.lit { color: #fff; }
.words mark .w.lit { color: var(--accent); }
.mega-marquee { margin-top: clamp(80px, 10vw, 140px); border-top: 1px solid rgba(255,255,255,.1); padding: 24px 0; overflow: hidden; }
.mega-track { display: flex; width: max-content; animation: marquee 40s linear infinite; }
.mega-track span {
  font-family: var(--display); font-weight: 300; text-transform: uppercase; letter-spacing: -.04em;
  font-size: clamp(64px, 11vw, 180px); line-height: 1; padding-right: .35em; white-space: nowrap;
}
.mega-track span.o { color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.55); }
.mega-track span::after { content: ""; display: inline-block; width: .12em; height: .12em; margin-left: .35em; vertical-align: .3em; background: var(--accent); transform: rotate(45deg); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Bento ---------- */
.bento {
  display: grid; gap: 12px; grid-template-columns: repeat(4, 1fr); grid-auto-rows: minmax(220px, auto);
  grid-template-areas: "a a n w" "p d b w" "e e c c";
}
.t-a { grid-area: a; } .t-n { grid-area: n; } .t-w { grid-area: w; } .t-p { grid-area: p; }
.t-d { grid-area: d; } .t-b { grid-area: b; } .t-e { grid-area: e; } .t-c { grid-area: c; }
.tile {
  position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 24px;
  padding: 24px; border-radius: var(--r); background: var(--white); border: 1px solid var(--bone); overflow: hidden;
  transition: border-color .3s, transform .5s var(--ease);
}
.tile:hover { border-color: var(--ink); }
.tile .label { align-self: flex-start; background: var(--parchment); }
.tile-top { display: flex; justify-content: space-between; align-items: flex-start; }
.tile-big { font-family: var(--display); font-size: clamp(24px, 2.6vw, 36px); line-height: 1.1; letter-spacing: -.03em; max-width: 18em; }
.tile-cap { font-size: 14px; color: var(--dim); max-width: 24em; }
.count { position: relative; z-index: 1; font-family: var(--display); font-weight: 300; font-size: clamp(72px, 9vw, 132px); line-height: .85; letter-spacing: -.06em; font-variant-numeric: tabular-nums; }
.count--sm { font-size: clamp(56px, 6vw, 88px); }
.tile--ink { background: var(--night); border-color: var(--night); color: #fff; }
.tile--ink .tile-cap { color: rgba(255,255,255,.6); }
.tile--forest { background: var(--forest); border-color: var(--forest); color: #fff; }
.tile--green { background: var(--accent-ink); border-color: var(--accent-ink); color: #fff; }
.tile--ink .label, .tile--forest .label, .tile--green .label { background: rgba(255,255,255,.12); color: #fff; }
.t-c:hover { transform: translateY(-4px); }
.t-c .tile-big { padding-right: 64px; }
.tile-arrow { position: absolute; right: 24px; bottom: 24px; width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255,255,255,.4); display: grid; place-items: center; }
.tile-arrow .icon--arrow { width: 20px; height: 20px; }

.roll { position: relative; flex: 1; overflow: hidden; mask-image: linear-gradient(transparent, #000 25%, #000 75%, transparent); -webkit-mask-image: linear-gradient(transparent, #000 25%, #000 75%, transparent); }
.roll ul { animation: roll 18s linear infinite; }
.roll li { font-family: var(--serif); font-style: italic; font-size: clamp(36px, 3.6vw, 56px); line-height: 1.15; }
.roll li:nth-child(3n+2) { opacity: .55; } .roll li:nth-child(3n) { opacity: .3; }
@keyframes roll { to { transform: translateY(-50%); } }

.mini-orbit { position: absolute; right: -40px; top: 50%; width: 220px; aspect-ratio: 1; transform: translateY(-50%); border: 1px dashed rgba(255,255,255,.25); border-radius: 50%; animation: spin 30s linear infinite; }
.mini-orbit i { position: absolute; left: 50%; top: 50%; width: 9px; height: 9px; margin: -4.5px; background: var(--accent); transform: rotate(calc(var(--k) * 60deg)) translateY(-110px) rotate(45deg); }
.mini-orbit i:nth-child(1) { --k: 0; } .mini-orbit i:nth-child(2) { --k: 1; background: none; border: 1px solid var(--accent); }
.mini-orbit i:nth-child(3) { --k: 2; } .mini-orbit i:nth-child(4) { --k: 3; background: none; border: 1px solid var(--accent); }
.mini-orbit i:nth-child(5) { --k: 4; } .mini-orbit i:nth-child(6) { --k: 5; background: none; border: 1px solid var(--accent); }
.mini-orbit b { position: absolute; inset: 30%; border: 1px solid rgba(255,255,255,.3); border-radius: 50%; }

/* ---------- Lista grande de servicios ---------- */
.eco { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.eco-head { position: sticky; top: 120px; }
.eco-head h2 { margin-top: 16px; }
.eco-now { display: flex; align-items: center; gap: 10px; margin-top: 32px; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); }
.eco-dot { width: 8px; height: 8px; background: var(--accent-ink); transform: rotate(45deg); }
.biglist { border-top: 1px solid var(--ink); }
.biglist a {
  display: grid; grid-template-columns: 48px 1fr auto; align-items: baseline; gap: 16px;
  padding: 18px 0; border-bottom: 1px solid var(--bone); color: var(--ash); transition: color .35s, padding .35s var(--ease);
}
.bl-t { font-family: var(--display); font-weight: 400; font-size: clamp(26px, 3.4vw, 50px); line-height: 1.05; letter-spacing: -.035em; text-transform: uppercase; }
.bl-n, .bl-p { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; }
.biglist li.is-active a, .biglist a:hover { color: var(--ink); padding-left: 12px; }
.biglist li.is-active .bl-n { color: var(--accent-ink); }

/* ---------- CTA final ---------- */
.cta-x {
  position: relative; overflow: hidden; background: var(--night); color: #fff; text-align: center;
  padding: clamp(120px, 16vw, 220px) 0;
  background-image: radial-gradient(rgba(255,255,255,.07) 1px, transparent 1.4px); background-size: 16px 16px;
}
.cta-x .container { position: relative; }
.cta-x .rings { top: 50%; width: min(90vw, 900px); }
.cta-x .display em { color: var(--accent); }
.cta-x .btn { margin-top: 48px; }

/* ---------- Secciones ---------- */
.section { padding: var(--section) 0; }
.section--rule { padding-top: 0; }
.section--rule > .container { border-top: 1px solid var(--bone); padding-top: var(--section); }
.section-head { max-width: 680px; margin-bottom: 64px; }
.section-head h2:not(.display), .split-copy h2, .pillar-head h2 {
  font-family: var(--display); font-weight: 300; text-transform: uppercase;
  font-size: clamp(30px, 4vw, 58px); line-height: .98; letter-spacing: -.035em; margin-top: 16px;
}
.pillar-head h2 { font-size: clamp(40px, 6vw, 92px); }
#contact-title { margin-top: 16px; }
.section-sub { margin-top: 20px; color: var(--charcoal); }

.cols-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.cols-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

/* ADN */
.item { border-top: 1px solid var(--ink); padding-top: 24px; }
.item h3 { font-size: 20px; line-height: 1.4; font-weight: 700; margin-top: 24px; }
.item p { font-size: 15px; color: var(--dim); margin-top: 8px; max-width: 30em; }

/* Split (ilustración + texto) */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.split--top { align-items: start; }
.panel { position: relative; background: var(--white); border: 1px solid var(--bone); border-radius: var(--r); overflow: hidden; }
.schematic { display: block; width: 100%; height: auto; }
.inset-card {
  position: absolute; left: 16px; bottom: 16px; max-width: 260px;
  display: flex; flex-direction: column; gap: 4px; padding: 16px;
  background: var(--white); border: 1px solid var(--bone); border-radius: var(--r); font-size: 14px;
}
.inset-card .label { align-self: flex-start; background: var(--parchment); margin-bottom: 4px; }
.inset-card span:last-child { font-size: 13px; color: var(--dim); }

.index-list { margin-top: 32px; border-top: 1px solid var(--bone); }
.index-list li { display: flex; gap: 24px; padding: 12px 0; border-bottom: 1px solid var(--bone); font-size: 15px; }
.index-list span, .card-tag span, .steps span {
  font-size: 12px; letter-spacing: .1em; color: var(--ash); font-variant-numeric: tabular-nums; min-width: 20px;
}
.index-list span { padding-top: 2px; }

/* Encabezado de pilar */
.pillar-head { display: grid; grid-template-columns: 1fr 1fr; column-gap: 24px; align-items: end; margin-bottom: 48px; }
.pillar-head .label { grid-column: 1 / -1; justify-self: start; }
.pillar-head p:last-child { color: var(--dim); font-size: 15px; justify-self: end; text-align: right; max-width: 24em; padding-bottom: 8px; }

/* Tarjetas */
.card {
  background: var(--white); border: 1px solid var(--bone); border-radius: var(--r); padding: 24px;
  display: flex; flex-direction: column; transition: border-color .3s;
}
.card:hover { border-color: var(--ink); }
.card h3 { font-size: clamp(22px, 2.2vw, 28px); line-height: 1.3; letter-spacing: -.02em; margin-top: 8px; }
.card > p:not(.card-tag):not(.note) { font-size: 15px; color: var(--dim); margin-top: 12px; }
.cards-3 .card h3 { font-size: 20px; line-height: 1.4; font-weight: 700; letter-spacing: 0; }
.card-tag { display: flex; gap: 12px; align-items: baseline; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); margin-top: 32px; }
.note { display: grid; gap: 4px; margin-top: auto; padding-top: 24px; font-size: 14px; color: var(--charcoal); }
.note b { font-weight: 700; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; }
.card .note { border-top: 1px solid var(--bone); margin-top: 24px; }

/* Íconos de línea fina (sprite SVG en index.html) */
.icon { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.25; stroke-linecap: round; stroke-linejoin: round; }
.card-icon {
  width: 56px; height: 56px; display: grid; place-items: center; color: var(--ink);
  border: 1px solid var(--bone); border-radius: var(--r); background: var(--parchment);
  transition: background .3s, color .3s, border-color .3s;
}
.card-icon .icon { width: 28px; height: 28px; }
.card:hover .card-icon { background: var(--ink); border-color: var(--ink); color: var(--parchment); }
.icon-panel {
  position: relative; aspect-ratio: 4 / 3; display: grid; place-items: center; color: var(--ink);
  border: 1px solid var(--bone); border-radius: var(--r); background-color: var(--white);
  background-image: linear-gradient(#efece9 1px, transparent 1px), linear-gradient(90deg, #efece9 1px, transparent 1px);
  background-size: 20px 20px; background-position: center;
}
.icon-panel::before { content: ""; position: absolute; width: 46%; aspect-ratio: 1; border: 1px dashed var(--bone); border-radius: 50%; }
.icon--xl { width: 30%; height: auto; aspect-ratio: 1; stroke-width: .2; position: relative; transition: transform .6s var(--ease); }
.row:hover .icon--xl { transform: scale(1.06); }
.icon-panel-tl, .icon-panel-br {
  position: absolute; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--dim);
  background: var(--white); padding: 2px 8px; border-radius: var(--r);
}
.icon-panel-tl { top: 14px; left: 14px; }
.icon-panel-br { right: 14px; bottom: 14px; }

/* Filas destacadas */
.row {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: center;
  padding: 48px 0; border-top: 1px solid var(--bone); margin-top: 48px;
}
.pillar-head + .row { margin-top: 0; border-top: 0; padding-top: 0; }
.row + .cols-2 { margin-top: 0; }
.row--reverse .icon-panel { order: 2; }
.row-copy h3 { font-size: clamp(28px, 3vw, 32px); line-height: 1.3; letter-spacing: -.02em; margin-top: 8px; }
.row-copy > p:not(.card-tag):not(.statement) { color: var(--charcoal); margin-top: 16px; font-size: 15px; }
.row-copy .card-tag { margin-top: 0; }
.statement { margin-top: 24px; font-size: 20px; line-height: 1.4; letter-spacing: -.01em; }

.flow { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 32px; border-top: 1px solid var(--ink); }
.flow li { padding: 16px 16px 0 0; font-size: 15px; font-weight: 700; display: flex; flex-direction: column; gap: 4px; }
.flow li + li { padding-left: 16px; border-left: 1px solid var(--bone); }
.flow span { font-size: 12px; font-weight: 400; letter-spacing: .1em; text-transform: uppercase; color: var(--ash); }

.steps { margin-top: 32px; border-top: 1px solid var(--bone); }
.steps li { display: grid; grid-template-columns: 40px 140px 1fr; align-items: baseline; padding: 12px 0; border-bottom: 1px solid var(--bone); font-size: 15px; color: var(--dim); }
.steps b { color: var(--ink); }

.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.tags li { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; padding: 4px 10px; border: 1px solid var(--ink); border-radius: var(--r); }

.layers { margin-top: 32px; border-top: 1px solid var(--ink); }
.layers div { padding: 16px 0; border-bottom: 1px solid var(--bone); }
.layers dt { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); }
.layers dd { font-size: 15px; margin-top: 4px; }

/* ---------- Franja oscura ---------- */
.section--dark { background: var(--forest); color: var(--white); }
.versus-head { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--ash); padding-bottom: 16px; border-bottom: 1px solid rgba(255,255,255,.3); }
.versus-head--on { color: var(--white); }
.vlist li { display: grid; grid-template-columns: 48px 1fr; gap: 16px; padding: 24px 0; border-bottom: 1px solid rgba(255,255,255,.12); }
.vlist .dgrid { color: rgba(255,255,255,.35); margin-top: 6px; }
.vlist .dgrid--on { color: var(--sage); }
.vlist h3 { font-size: 20px; line-height: 1.4; font-weight: 700; }
.vlist p { font-size: 15px; color: var(--ash); margin-top: 4px; }
.vlist--muted h3 { color: rgba(255,255,255,.55); font-weight: 400; }
.vlist--muted p { color: rgba(255,255,255,.4); }

/* ---------- Organigrama (esquema) ---------- */
.org {
  border: 1px solid var(--bone); border-radius: var(--r); padding: clamp(24px, 4vw, 48px); background-color: var(--white);
  background-image: linear-gradient(#efece9 1px, transparent 1px), linear-gradient(90deg, #efece9 1px, transparent 1px);
  background-size: 20px 20px;
}
.org-root {
  display: flex; flex-direction: column; gap: 8px; align-items: flex-start; width: max-content; margin: 0 auto;
  padding: 16px 24px; border: 1px solid var(--ink); border-radius: var(--r); background: var(--white);
  font-size: 20px; font-weight: 700; position: relative;
}
.org-root .label { background: var(--parchment); font-weight: 400; }
.org-root::after { content: ""; position: absolute; left: 50%; top: 100%; height: 32px; border-left: 1px solid var(--ink); }
.org-branches { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 32px; padding-top: 32px; position: relative; }
.org-col { position: relative; }
.org-col::before { content: ""; position: absolute; left: 50%; top: -32px; height: 32px; border-left: 1px solid var(--ink); }
.org-col::after { content: ""; position: absolute; top: -32px; left: -8px; right: -8px; border-top: 1px solid var(--ink); }
.org-col:first-child::after { left: 50%; }
.org-col:last-child::after { right: 50%; }
.org-col h3 { font-size: 15px; font-weight: 700; line-height: 1.4; padding: 16px; border: 1px solid var(--ink); border-radius: var(--r); background: var(--white); min-height: 84px; }
.org-col ul { margin-left: 16px; border-left: 1px solid var(--bone); }
.org-col li { position: relative; font-size: 14px; color: var(--dim); padding: 10px 0 0 16px; }
.org-col li::before { content: ""; position: absolute; left: 0; top: 21px; width: 10px; border-top: 1px solid var(--bone); }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--bone); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 40px 20px 0; position: relative; font-size: 17px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before, .faq summary::after {
  content: ""; position: absolute; right: 4px; top: 50%; width: 14px; border-top: 1px solid var(--ink); transition: transform .3s var(--ease);
}
.faq summary::after { transform: rotate(90deg); }
.faq details[open] summary::after { transform: rotate(0); }
.faq details p { padding: 0 40px 24px 0; font-size: 15px; color: var(--dim); }
.faq details b { color: var(--ink); font-weight: 400; }

/* ---------- Contacto ---------- */
.contact-list { margin-top: 40px; border-top: 1px solid var(--ink); }
.contact-list div { display: grid; grid-template-columns: 120px 1fr; padding: 14px 0; border-bottom: 1px solid var(--bone); font-size: 15px; }
.contact-list dt { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); padding-top: 3px; }
.contact-list a { border-bottom: 1px solid var(--bone); }
.contact-list a:hover { border-color: var(--ink); }

.contact-form { background: var(--white); border: 1px solid var(--bone); border-radius: var(--r); padding: clamp(24px, 4vw, 40px); display: grid; gap: 20px; }
.field { display: grid; gap: 8px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field label { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); }
.field input, .field select, .field textarea {
  font: inherit; font-size: 15px; color: var(--ink); width: 100%;
  padding: 10px 12px; border: 1px solid var(--bone); border-radius: var(--r); background: var(--parchment);
  transition: border-color .2s, background .2s;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); background: var(--white); }
.field .is-invalid { border-color: #9b3b32; }
.form-foot { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.form-note { font-size: 14px; color: var(--dim); }

/* ---------- Footer ---------- */
.site-footer { background: var(--night); color: #fff; padding: 80px 0 24px; overflow: hidden; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
.footer-brand img { width: 48px; background: #fff; border-radius: var(--r); padding: 6px; }
.footer-brand p { margin-top: 20px; font-family: var(--display); font-size: clamp(24px, 2.6vw, 32px); letter-spacing: -.02em; max-width: 14em; line-height: 1.15; }
.site-footer .label { background: rgba(255,255,255,.1); color: #fff; }
.site-footer nav ul { display: grid; gap: 8px; margin-top: 16px; font-size: 15px; color: rgba(255,255,255,.6); }
.site-footer nav a:hover { color: #fff; }
.wordmark {
  margin-top: 64px; font-family: var(--display); font-weight: 300; text-transform: uppercase; text-align: center;
  font-size: clamp(56px, 15.5vw, 230px); line-height: .8; letter-spacing: -.06em; color: transparent;
  -webkit-text-stroke: 1px rgba(255,255,255,.35); white-space: nowrap; user-select: none;
}
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 32px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.12); font-size: 14px; color: rgba(255,255,255,.5); }
.footer-bottom a:hover { color: #fff; }

/* ---------- Entrada suave ---------- */
.js .reveal { opacity: 0; transform: translateY(12px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .js .hx .display .line > span, .js .cta-x .display .line > span { transform: none; }
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .bento { grid-template-columns: 1fr 1fr; grid-template-areas: "a a" "n w" "p w" "d b" "e e" "c c"; }
  .eco { grid-template-columns: 1fr; }
  .eco-head { position: static; }
  .split, .row { grid-template-columns: 1fr; }
  .row--reverse .icon-panel { order: 0; }
  .cols-3 { grid-template-columns: 1fr 1fr; }
  .org-branches { grid-template-columns: 1fr 1fr; row-gap: 32px; }
  .org-col::before, .org-col::after, .org-root::after { display: none; }
  .pillar-head { grid-template-columns: 1fr; }
  .pillar-head p:last-child { justify-self: start; text-align: left; margin-top: 12px; }
}

@media (max-width: 760px) {

  .cols-2, .cols-3, .field-row, .footer-grid, .org-branches { grid-template-columns: 1fr; }
  .steps li { display: flex; flex-wrap: wrap; column-gap: 12px; }
  .flow { grid-template-columns: 1fr; }
  .flow li, .flow li + li { padding: 12px 0; border-left: 0; border-bottom: 1px solid var(--bone); }
  .inset-card { position: static; max-width: none; border-width: 1px 0 0; border-radius: 0; }
  .contact-list div { grid-template-columns: 96px 1fr; }
  .hx-meta--r { display: none; }
  .hx-cta { flex-direction: column; gap: 20px; }
  .words { text-align: left; }
  .bento { grid-template-columns: 1fr; grid-template-areas: "a" "n" "w" "p" "d" "b" "e" "c"; grid-auto-rows: minmax(180px, auto); }
  .t-w { min-height: 260px; }
  .biglist a { grid-template-columns: 32px 1fr; }
  .bl-p { display: none; }
  .footer-brand { margin-bottom: 8px; }
}

/* Menú tipo hamburguesa en tablet y móvil */
@media (max-width: 900px) {
  .nav-toggle {
    display: grid; gap: 6px; place-content: center; width: 40px; height: 40px;
    border: 1px solid var(--ink); border-radius: var(--r-pill); background: transparent; cursor: pointer;
  }
  .nav-toggle span { display: block; width: 16px; border-top: 1px solid var(--ink); transition: transform .3s; }
  .nav-open .nav-toggle span:first-child { transform: translateY(3.5px) rotate(45deg); }
  .nav-open .nav-toggle span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
  .main-nav ul {
    position: fixed; inset: 64px 0 0 0; flex-direction: column; align-items: stretch; gap: 0;
    padding: 16px var(--gutter); background: var(--parchment);
    opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s;
  }
  .main-nav li { border-bottom: 1px solid var(--bone); }
  .main-nav a:not(.btn) { display: block; padding: 16px 0; font-size: 20px; color: var(--ink); }
  .main-nav .nav-cta { margin: 24px 0 0; border: 0; }
  .nav-open .main-nav ul { opacity: 1; visibility: visible; }
  .site-header.nav-open { background: var(--parchment); color: var(--ink); border-color: var(--bone); }
  .site-header.nav-open .main-nav a:not(.btn) { color: var(--ink); }
  .site-header.nav-open .btn { color: var(--ink); border-color: var(--ink); }
  .site-header.nav-open .brand small { color: var(--dim); }
  .site-header.nav-open .nav-toggle { border-color: var(--ink); }
  .site-header.nav-open .nav-toggle span { border-color: var(--ink); }
  .site-header.nav-open .main-nav a.btn { display: inline-flex; }
  .site-header.nav-open { backdrop-filter: none; -webkit-backdrop-filter: none; }
  .main-nav ul { height: calc(100dvh - 64px); overflow-y: auto; }
  .site-header.nav-open .main-nav a:not(.btn) { color: var(--ink); }
}

@media (max-width: 960px) {
  .row .icon-panel { aspect-ratio: 16 / 9; }
  .icon--xl { width: 22%; }
  .panel--schematic { max-width: 560px; width: 100%; justify-self: center; }
}

@media (max-width: 560px) {
  .display { font-size: 11.4vw; }
  .display--md { font-size: 10vw; }
  .hx-bottom span:last-child, .hx-line { display: none; }
  .hx-sub { font-size: 16px; }
  .words { font-size: 20px; line-height: 1.18; }
  .count { font-size: 88px; }
  .roll li { font-size: 38px; }
  .row .icon-panel { aspect-ratio: 4 / 3; }
  .icon-panel-tl, .icon-panel-br { font-size: 11px; }
  .bl-t { font-size: 24px; }
}
