/* ==========================================================================
   Acrópolis — Civil y Eléctrica
   Dirección visual: plano técnico (blueprint) + acento eléctrico ámbar.
   ========================================================================== */

:root {
  --ink: #0a1720;
  --ink-2: #0f222d;
  --ink-3: #16303d;
  --grid: rgba(143, 190, 206, 0.09);
  --grid-strong: rgba(143, 190, 206, 0.18);
  --steel: #8fa9b5;
  --steel-dim: #5f7f8e;
  --teal: #2b6f7e;
  --teal-bright: #56b4c6;
  --amber: #f4b32a;
  --amber-deep: #d9901a;
  --paper: #f1eee6;
  --paper-2: #e7e2d6;
  --paper-line: rgba(22, 48, 61, 0.1);
  --text-dark: #13222b;
  --text-dark-2: #3d525e;
  --text-light: #e8eff2;
  --text-light-2: #9fb6c0;
  --danger: #e0623f;
  --ok: #3fae7a;

  --f-display: "Big Shoulders Display", "Arial Narrow", sans-serif;
  --f-body: "IBM Plex Sans", system-ui, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, monospace;

  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 2px;
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-light);
  background: var(--ink);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.05; }
p { margin: 0 0 1em; }

::selection { background: var(--amber); color: var(--ink); }

:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }

.sr, .skip:not(:focus) {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
.skip:focus { position: fixed; top: 12px; left: 12px; z-index: 100; background: var(--amber); color: var(--ink); padding: 8px 14px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.mono { font-family: var(--f-mono); font-size: 0.8em; letter-spacing: 0.02em; }

/* --- Fondos ------------------------------------------------------------- */

.blueprint {
  background-color: var(--ink);
  background-image:
    linear-gradient(var(--grid-strong) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-strong) 1px, transparent 1px),
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px;
  background-position: -1px -1px;
}

.paper {
  color: var(--text-dark);
  background-color: var(--paper);
  background-image:
    linear-gradient(var(--paper-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--paper-line) 1px, transparent 1px);
  background-size: 48px 48px;
}

.section { padding: clamp(72px, 10vw, 136px) 0; position: relative; }

/* --- Encabezados de sección -------------------------------------------- */

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--f-mono); font-size: 12.5px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.paper .eyebrow { color: var(--teal); }

.h-display {
  font-family: var(--f-display);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.005em;
  font-size: clamp(40px, 6.4vw, 84px);
  line-height: 0.92;
}
.h-section {
  font-family: var(--f-display);
  font-weight: 800;
  text-transform: uppercase;
  font-size: clamp(34px, 4.6vw, 60px);
  line-height: 0.95;
}
.h-section em, .h-display em { font-style: normal; color: var(--amber); }
.paper .h-section em { color: var(--teal); }
.lead { font-size: clamp(17px, 1.6vw, 20px); color: var(--text-light-2); max-width: 62ch; }
.paper .lead { color: var(--text-dark-2); }

.sec-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px 64px; align-items: end; margin-bottom: clamp(40px, 6vw, 72px); }
.sec-head .lead { margin: 0; }

/* --- Botones ------------------------------------------------------------ */

.btn {
  --b: var(--amber);
  display: inline-flex; align-items: center; gap: 12px;
  padding: 15px 22px;
  font: 600 15px/1 var(--f-body); letter-spacing: 0.02em;
  text-decoration: none; cursor: pointer;
  color: var(--ink); background: var(--b); border: 1px solid var(--b);
  border-radius: var(--radius);
  position: relative;
  transition: transform 0.25s var(--ease), background 0.25s, color 0.25s, box-shadow 0.25s;
  box-shadow: 4px 4px 0 0 rgba(244, 179, 42, 0.25);
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 0 rgba(244, 179, 42, 0.35); }
.btn .arr { transition: transform 0.25s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }
.btn-ghost { background: transparent; color: var(--text-light); border-color: var(--grid-strong); box-shadow: none; }
.btn-ghost:hover { border-color: var(--amber); color: var(--amber); box-shadow: none; }
.paper .btn-ghost { color: var(--text-dark); border-color: rgba(19, 34, 43, 0.25); }
.paper .btn-ghost:hover { color: var(--teal); border-color: var(--teal); }
.btn-teal { --b: var(--teal); color: #fff; box-shadow: 4px 4px 0 0 rgba(43, 111, 126, 0.25); }
.btn[disabled] { opacity: 0.6; pointer-events: none; }

/* --- Cabecera ----------------------------------------------------------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 23, 32, 0.72);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, background 0.3s;
}
.site-header.scrolled { border-bottom-color: var(--grid-strong); background: rgba(10, 23, 32, 0.92); }
.bar { max-width: var(--wrap); margin: 0 auto; padding: 14px var(--gutter); display: flex; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-family: var(--f-display); font-weight: 800; font-size: 24px; letter-spacing: 0.12em; }
.brand-text small { font-family: var(--f-mono); font-size: 10.5px; color: var(--text-light-2); letter-spacing: 0.04em; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  text-decoration: none; font-size: 14.5px; font-weight: 500; color: var(--text-light-2);
  padding: 8px 12px; position: relative; transition: color 0.2s;
}
.nav a::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 2px; background: var(--amber);
  transform: scaleX(0); transform-origin: left; transition: transform 0.3s var(--ease);
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--text-light); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav .nav-cta { margin-left: 10px; color: var(--ink); background: var(--amber); border-radius: var(--radius); font-weight: 600; }
.nav .nav-cta::after { display: none; }
.nav .nav-cta:hover { color: var(--ink); background: #ffc445; }

.nav-toggle { display: none; background: none; border: 1px solid var(--grid-strong); width: 44px; height: 44px; padding: 0; cursor: pointer; position: relative; }
.nav-toggle span:not(.sr) { position: absolute; left: 11px; right: 11px; height: 2px; background: var(--text-light); transition: transform 0.3s var(--ease), opacity 0.2s; }
.nav-toggle span:nth-child(1) { top: 14px; }
.nav-toggle span:nth-child(2) { top: 21px; }
.nav-toggle span:nth-child(3) { top: 28px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* --- Hero --------------------------------------------------------------- */

.hero { position: relative; overflow: hidden; padding: clamp(48px, 7vw, 96px) 0 0; min-height: calc(100vh - 72px); display: flex; flex-direction: column; }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 60% 50% at 78% 38%, rgba(86, 180, 198, 0.16), transparent 70%),
              radial-gradient(ellipse 40% 40% at 10% 90%, rgba(244, 179, 42, 0.08), transparent 70%);
}
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 40px; align-items: center; flex: 1; }
.hero-coords { font-family: var(--f-mono); font-size: 12px; color: var(--text-light-2); letter-spacing: 0.08em; display: flex; gap: 18px; flex-wrap: wrap; margin-bottom: 28px; }
.hero-coords span { display: inline-flex; align-items: center; gap: 8px; }
.hero-coords .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px rgba(63, 174, 122, 0.18); animation: pulse 2.4s infinite; }
.hero h1 { margin-bottom: 28px; }
.hero h1 .line { display: block; overflow: hidden; }
.hero h1 .line > span { display: inline-block; transform: translateY(105%); animation: rise 0.9s var(--ease) forwards; }
.hero h1 .line:nth-child(2) > span { animation-delay: 0.1s; }
.hero h1 .line:nth-child(3) > span { animation-delay: 0.2s; }
.hero h1 .outline { color: transparent; -webkit-text-stroke: 1.5px var(--steel); }
.hero .lead { opacity: 0; animation: fade 0.8s 0.45s var(--ease) forwards; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; opacity: 0; animation: fade 0.8s 0.6s var(--ease) forwards; }

.hero-art { position: relative; aspect-ratio: 1 / 1; max-width: 600px; justify-self: end; width: 100%; }
.hero-art svg { width: 100%; height: 100%; overflow: visible; }
.draw path, .draw line, .draw polyline, .draw rect, .draw circle {
  fill: none; stroke-dasharray: var(--len, 1200); stroke-dashoffset: var(--len, 1200);
  animation: draw 2.4s var(--ease) forwards; animation-delay: var(--d, 0s);
}
.current { stroke-dasharray: 6 14; animation: flow 1.2s linear infinite; }
.spark { animation: spark 1.8s ease-in-out infinite; transform-origin: center; transform-box: fill-box; }
.anno { font-family: var(--f-mono); font-size: 10.5px; fill: var(--text-light-2); letter-spacing: 0.06em; opacity: 0; animation: fade 0.6s forwards; animation-delay: var(--d, 2s); }

.hero-stats {
  position: relative; margin-top: clamp(40px, 6vw, 72px);
  border-top: 1px solid var(--grid-strong);
  display: grid; grid-template-columns: repeat(4, 1fr);
}
.stat { padding: 26px 24px 30px; border-right: 1px solid var(--grid-strong); }
.stat:last-child { border-right: 0; }
.stat b { display: block; font-family: var(--f-display); font-weight: 800; font-size: clamp(38px, 4.4vw, 58px); line-height: 1; color: var(--text-light); }
.stat b sup { font-size: 0.45em; color: var(--amber); margin-left: 2px; }
.stat > span { display: block; margin-top: 8px; font-size: 13.5px; color: var(--text-light-2); max-width: 22ch; }

/* --- Cinta de servicios -------------------------------------------------- */

.ticker { background: var(--amber); color: var(--ink); overflow: hidden; border-block: 1px solid var(--amber-deep); }
.ticker-track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.ticker-track span {
  font-family: var(--f-display); font-weight: 800; text-transform: uppercase; font-size: 22px; letter-spacing: 0.04em;
  padding: 14px 0; display: inline-flex; align-items: center; white-space: nowrap;
}
.ticker-track span::after { content: "◆"; font-size: 11px; margin: 0 28px; opacity: 0.55; }

/* --- Nosotros ----------------------------------------------------------- */

.about-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(40px, 7vw, 96px); }
.about-intro p { font-size: 18px; color: var(--text-dark-2); }
.about-intro .h-section { margin-bottom: 28px; }
.mv { display: grid; gap: 20px; }
.mv-card { background: #fff; border: 1px solid var(--paper-line); padding: 32px 32px 28px; position: relative; }
.mv-card::before { content: ""; position: absolute; left: -1px; top: -1px; width: 56px; height: 4px; background: var(--teal); }
.mv-card h3 { font-family: var(--f-display); font-weight: 800; text-transform: uppercase; font-size: 30px; margin-bottom: 12px; display: flex; justify-content: space-between; align-items: baseline; }
.mv-card h3 .mono { color: var(--steel-dim); font-weight: 400; font-size: 12px; }
.mv-card p { margin: 0; color: var(--text-dark-2); }

.values { margin-top: clamp(56px, 8vw, 96px); display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid rgba(19, 34, 43, 0.18); border-left: 1px solid rgba(19, 34, 43, 0.18); }
.value { padding: 26px 22px; border-right: 1px solid rgba(19, 34, 43, 0.18); border-bottom: 1px solid rgba(19, 34, 43, 0.18); transition: background 0.3s; }
.value:hover { background: rgba(255, 255, 255, 0.6); }
.value .mono { color: var(--teal); }
.value h4 { font-family: var(--f-display); font-weight: 700; font-size: 23px; text-transform: uppercase; margin-top: 10px; }

/* --- Especialidades ----------------------------------------------------- */

.specs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 1px solid var(--grid-strong); }
.spec {
  position: relative; padding: 40px 34px 36px; border-right: 1px solid var(--grid-strong);
  background: linear-gradient(180deg, rgba(15, 34, 45, 0.6), rgba(10, 23, 32, 0.6));
  transition: background 0.4s var(--ease);
  overflow: hidden;
}
.spec:last-child { border-right: 0; }
.spec::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: var(--amber);
  transform: scaleX(0); transform-origin: left; transition: transform 0.5s var(--ease);
}
.spec:hover { background: linear-gradient(180deg, rgba(22, 48, 61, 0.9), rgba(15, 34, 45, 0.9)); }
.spec:hover::after { transform: scaleX(1); }
.spec-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 48px; }
.spec-num { font-family: var(--f-display); font-weight: 800; font-size: 88px; line-height: 0.8; color: transparent; -webkit-text-stroke: 1px var(--steel-dim); }
.spec-icon { width: 58px; height: 58px; color: var(--amber); }
.spec h3 { font-family: var(--f-display); font-weight: 800; text-transform: uppercase; font-size: 36px; margin-bottom: 14px; }
.spec p { color: var(--text-light-2); font-size: 15.5px; }
.spec ul { list-style: none; margin: 22px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.spec li { font-family: var(--f-mono); font-size: 12px; padding: 5px 10px; border: 1px solid var(--grid-strong); color: var(--text-light); }

/* --- Proceso ------------------------------------------------------------ */

.process { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; counter-reset: fase; position: relative; }
.process::before { content: ""; position: absolute; top: 27px; left: 0; right: 0; height: 1px; background: rgba(19, 34, 43, 0.22); }
.phase { position: relative; padding: 0 22px 0 0; }
.phase-dot {
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  background: var(--paper); border: 1px solid rgba(19, 34, 43, 0.3); position: relative; z-index: 1;
  font-family: var(--f-mono); font-size: 13px; font-weight: 500; color: var(--teal);
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}
.phase:hover .phase-dot, .phase.is-in .phase-dot { background: var(--teal); color: #fff; border-color: var(--teal); }
.phase h3 { font-family: var(--f-display); font-weight: 800; text-transform: uppercase; font-size: 24px; margin: 24px 0 14px; }
.phase ol { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.phase li { font-size: 14.5px; color: var(--text-dark-2); line-height: 1.5; padding-left: 14px; border-left: 2px solid var(--paper-2); }
.phase li b { color: var(--text-dark); display: block; font-weight: 600; }

/* --- Obras -------------------------------------------------------------- */

.work { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); border: 1px solid var(--grid-strong); background: var(--ink-2); }
.work-visual { position: relative; min-height: 460px; border-right: 1px solid var(--grid-strong); overflow: hidden; background: #0c1c26; }
.work-visual svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.work-tag { position: absolute; left: 24px; top: 24px; font-family: var(--f-mono); font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase; background: var(--amber); color: var(--ink); padding: 6px 10px; }
.work-body { padding: clamp(28px, 4vw, 48px); display: flex; flex-direction: column; }
.work-body h3 { font-family: var(--f-display); font-weight: 800; text-transform: uppercase; font-size: clamp(30px, 3.2vw, 42px); margin-bottom: 16px; }
.work-body > p { color: var(--text-light-2); }
.spec-table { width: 100%; border-collapse: collapse; margin-top: auto; font-size: 14.5px; }
.spec-table th, .spec-table td { text-align: left; padding: 12px 0; border-top: 1px solid var(--grid-strong); vertical-align: top; }
.spec-table th { font-family: var(--f-mono); font-weight: 400; font-size: 11.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-light-2); width: 38%; padding-right: 16px; }
.spec-table td { color: var(--text-light); }
.work-scope { margin-top: 28px; }
.work-scope summary { cursor: pointer; font-family: var(--f-mono); font-size: 12.5px; color: var(--amber); letter-spacing: 0.06em; text-transform: uppercase; list-style: none; }
.work-scope summary::-webkit-details-marker { display: none; }
.work-scope summary::before { content: "+ "; }
.work-scope[open] summary::before { content: "− "; }
.work-scope p { margin-top: 14px; font-size: 14px; color: var(--text-light-2); }

/* --- Equipo / organigrama ------------------------------------------------ */

.org { display: grid; justify-items: center; gap: 0; }
.org-node {
  background: #fff; border: 1px solid var(--paper-line); padding: 22px 26px; min-width: 260px; max-width: 340px; text-align: center; position: relative;
  box-shadow: 0 1px 0 rgba(19, 34, 43, 0.04), 0 12px 32px -18px rgba(19, 34, 43, 0.25);
}
.org-node .role { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--teal); }
.org-node h3 { font-family: var(--f-display); font-weight: 800; font-size: 25px; text-transform: uppercase; margin: 8px 0 6px; }
.org-node .ced { font-family: var(--f-mono); font-size: 11.5px; color: var(--text-dark-2); }
.org-node.lead-node { background: var(--ink); color: var(--text-light); border-color: var(--ink); }
.org-node.lead-node .role { color: var(--amber); }
.org-node.lead-node .ced { color: var(--text-light-2); }
.org-stem { width: 1px; height: 40px; background: rgba(19, 34, 43, 0.3); }
.org-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; position: relative; padding-top: 40px; width: 100%; }
.org-row::before { content: ""; position: absolute; top: 0; left: 16.66%; right: 16.66%; height: 1px; background: rgba(19, 34, 43, 0.3); }
.org-row .org-node { justify-self: center; width: 100%; }
.org-row .org-node::before { content: ""; position: absolute; top: -41px; left: 50%; width: 1px; height: 40px; background: rgba(19, 34, 43, 0.3); }

/* --- Banda de integridad ------------------------------------------------ */

.integrity-band { position: relative; overflow: hidden; background: var(--teal); color: #fff; }
.integrity-band::before {
  content: ""; position: absolute; inset: 0; opacity: 0.18;
  background-image: repeating-linear-gradient(-45deg, #fff 0 1px, transparent 1px 22px);
}
.integrity-inner { position: relative; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.integrity-band .eyebrow { color: #fff; }
.integrity-band .h-section em { color: var(--amber); }
.integrity-band p { color: rgba(255, 255, 255, 0.85); }
.pillars { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: rgba(255, 255, 255, 0.25); border: 1px solid rgba(255, 255, 255, 0.25); }
.pillars a { background: var(--teal); padding: 20px 20px; text-decoration: none; display: flex; flex-direction: column; gap: 6px; transition: background 0.25s; }
.pillars a:hover { background: #256372; }
.pillars .mono { color: var(--amber); }
.pillars strong { font-family: var(--f-display); font-weight: 700; font-size: 21px; text-transform: uppercase; line-height: 1.05; }

/* --- Contacto y formularios --------------------------------------------- */

.contact-grid { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(40px, 6vw, 88px); }
.contact-list { list-style: none; padding: 0; margin: 36px 0 0; display: grid; gap: 0; }
.contact-list li { display: grid; grid-template-columns: 110px 1fr; gap: 16px; padding: 16px 0; border-top: 1px solid var(--grid-strong); }
.contact-list li:last-child { border-bottom: 1px solid var(--grid-strong); }
.contact-list .mono { color: var(--text-light-2); text-transform: uppercase; letter-spacing: 0.08em; padding-top: 3px; }
.contact-list a { text-decoration: none; border-bottom: 1px solid var(--grid-strong); transition: border-color 0.2s, color 0.2s; word-break: break-word; }
.contact-list a:hover { color: var(--amber); border-color: var(--amber); }

.form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.form .full { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label, .field .label { font-family: var(--f-mono); font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-light-2); }
.field label .req { color: var(--amber); }
.field input, .field select, .field textarea {
  font: 16px/1.4 var(--f-body); color: var(--text-light);
  background: rgba(10, 23, 32, 0.6); border: 1px solid var(--grid-strong); border-radius: var(--radius);
  padding: 13px 14px; width: 100%; transition: border-color 0.2s, background 0.2s;
}
.field textarea { min-height: 150px; resize: vertical; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--amber) 50%), linear-gradient(135deg, var(--amber) 50%, transparent 50%); background-position: calc(100% - 20px) 55%, calc(100% - 15px) 55%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 40px; }
.field select option { background: var(--ink-2); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--amber); background: rgba(10, 23, 32, 0.9); }
.paper .field label, .paper .field .label { color: var(--text-dark-2); }
.paper .field input, .paper .field select, .paper .field textarea { color: var(--text-dark); background: #fff; border-color: rgba(19, 34, 43, 0.2); }
.paper .field input:focus, .paper .field select:focus, .paper .field textarea:focus { border-color: var(--teal); background: #fff; }
.paper .field select option { background: #fff; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 14.5px; color: var(--text-light-2); cursor: pointer; }
.paper .check { color: var(--text-dark-2); }
.check input { appearance: none; flex: none; width: 20px; height: 20px; margin: 2px 0 0; border: 1px solid var(--grid-strong); background: rgba(10, 23, 32, 0.6); display: grid; place-items: center; cursor: pointer; }
.paper .check input { border-color: rgba(19, 34, 43, 0.35); background: #fff; }
.check input::after { content: ""; width: 10px; height: 10px; background: var(--amber); transform: scale(0); transition: transform 0.15s; }
.paper .check input::after { background: var(--teal); }
.check input:checked::after { transform: scale(1); }
.check a { color: inherit; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { grid-column: 1 / -1; font-size: 15px; padding: 14px 16px; border-left: 3px solid; display: none; }
.form-status.show { display: block; }
.form-status.ok { border-color: var(--ok); background: rgba(63, 174, 122, 0.12); }
.form-status.err { border-color: var(--danger); background: rgba(224, 98, 63, 0.12); }
.form-status .folio { font-family: var(--f-mono); font-weight: 500; font-size: 15px; background: rgba(0, 0, 0, 0.08); padding: 2px 6px; }
.form-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; }

/* --- Páginas internas --------------------------------------------------- */

.page-hero { padding: clamp(56px, 8vw, 104px) 0 clamp(48px, 6vw, 72px); border-bottom: 1px solid var(--grid-strong); position: relative; overflow: hidden; }
.page-hero .lead { margin-top: 24px; }
.page-hero .meta { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 32px; font-family: var(--f-mono); font-size: 12.5px; color: var(--text-light-2); }
.page-hero .meta b { color: var(--text-light); font-weight: 500; }
.breadcrumb { font-family: var(--f-mono); font-size: 12px; color: var(--text-light-2); margin-bottom: 24px; letter-spacing: 0.04em; }
.breadcrumb a { text-decoration: none; color: var(--text-light-2); }
.breadcrumb a:hover { color: var(--amber); }

.doc-layout { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.toc { position: sticky; top: 96px; font-size: 14px; }
.toc .label { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--steel-dim); display: block; margin-bottom: 14px; }
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid rgba(19, 34, 43, 0.15); }
.toc a { display: block; padding: 7px 0 7px 16px; text-decoration: none; color: var(--text-dark-2); border-left: 2px solid transparent; margin-left: -1px; transition: color 0.2s, border-color 0.2s; line-height: 1.35; }
.toc a:hover { color: var(--text-dark); }
.toc a.active { color: var(--teal); border-left-color: var(--teal); font-weight: 600; }
.toc a.btn { margin: 24px 0 0; width: 100%; justify-content: center; padding: 15px 22px; color: #fff; border: 1px solid var(--b); }
.toc a.btn:hover { color: #fff; }

.doc { max-width: 780px; }
.doc > section { padding-bottom: 56px; margin-bottom: 56px; border-bottom: 1px solid rgba(19, 34, 43, 0.14); }
.doc > section:last-child { border-bottom: 0; margin-bottom: 0; }
.doc-num { font-family: var(--f-display); font-weight: 800; font-size: 72px; line-height: 0.8; color: transparent; -webkit-text-stroke: 1px var(--teal); display: block; margin-bottom: 14px; }
.doc h2 { font-family: var(--f-display); font-weight: 800; text-transform: uppercase; font-size: clamp(30px, 3.4vw, 44px); margin-bottom: 22px; }
.doc h3 { font-family: var(--f-display); font-weight: 700; text-transform: uppercase; font-size: 24px; margin: 36px 0 12px; color: var(--text-dark); }
.doc p, .doc li { color: var(--text-dark-2); }
.doc ul, .doc ol { padding-left: 22px; }
.doc li { margin-bottom: 8px; }
.doc li::marker { color: var(--teal); }
.doc strong { color: var(--text-dark); }
.callout { border-left: 3px solid var(--teal); background: #fff; padding: 20px 24px; margin: 24px 0; }
.callout.amber { border-left-color: var(--amber-deep); }
.callout p:last-child { margin: 0; }
.doc-download { display: inline-flex; align-items: center; gap: 10px; font-family: var(--f-mono); font-size: 12.5px; text-decoration: none; color: var(--teal); border: 1px solid rgba(43, 111, 126, 0.35); padding: 8px 12px; margin-top: 8px; transition: background 0.2s; }
.doc-download:hover { background: rgba(43, 111, 126, 0.08); }

.table-doc { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: 15px; background: #fff; }
.table-doc th, .table-doc td { padding: 12px 14px; border: 1px solid rgba(19, 34, 43, 0.14); text-align: left; vertical-align: top; }
.table-doc th { font-family: var(--f-mono); font-size: 11.5px; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 500; background: var(--paper-2); color: var(--text-dark); }
.table-doc td { color: var(--text-dark-2); }
.table-scroll { overflow-x: auto; }

.value-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; margin: 20px 0; }
.value-list div { background: #fff; border: 1px solid var(--paper-line); padding: 18px; }
.value-list b { font-family: var(--f-display); font-size: 21px; text-transform: uppercase; display: block; margin-bottom: 6px; color: var(--teal); }
.value-list span { font-size: 14.5px; color: var(--text-dark-2); line-height: 1.5; }

.flow { list-style: none; padding: 0 !important; margin: 24px 0; display: grid; gap: 0; counter-reset: paso; }
.flow li { counter-increment: paso; position: relative; padding: 0 0 26px 58px; margin: 0; }
.flow li::before {
  content: counter(paso, decimal-leading-zero); position: absolute; left: 0; top: -2px; width: 38px; height: 38px;
  display: grid; place-items: center; font-family: var(--f-mono); font-size: 12.5px; color: #fff; background: var(--teal);
}
.flow li::after { content: ""; position: absolute; left: 18.5px; top: 40px; bottom: 4px; width: 1px; background: rgba(43, 111, 126, 0.35); }
.flow li:last-child::after { display: none; }
.flow li b { display: block; color: var(--text-dark); font-weight: 600; }

.sanctions { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px; margin: 20px 0; padding: 0 !important; list-style: none; counter-reset: s; }
.sanctions li { counter-increment: s; background: #fff; border: 1px solid var(--paper-line); padding: 16px; margin: 0; font-size: 14.5px; position: relative; }
.sanctions li::before { content: counter(s, lower-alpha) ")"; display: block; font-family: var(--f-mono); color: var(--amber-deep); margin-bottom: 6px; }
.sanctions li:nth-child(n) { border-top: 3px solid color-mix(in srgb, var(--danger) calc(var(--i, 1) * 20%), var(--paper-2)); }

.pledge { background: var(--ink); color: var(--text-light); padding: clamp(28px, 4vw, 44px); position: relative; }
.pledge blockquote { margin: 0 0 28px; font-size: 18px; line-height: 1.6; color: var(--text-light); border-left: 3px solid var(--amber); padding-left: 20px; }
.pledge .form { margin-top: 8px; }

.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.info-card { background: #fff; border: 1px solid var(--paper-line); padding: 26px; }
.info-card .mono { color: var(--teal); text-transform: uppercase; letter-spacing: 0.1em; font-size: 11px; }
.info-card h3 { font-family: var(--f-display); font-weight: 800; font-size: 26px; text-transform: uppercase; margin: 8px 0 10px; }
.info-card p, .info-card li { color: var(--text-dark-2); font-size: 15px; }
.info-card a { color: var(--teal); }
.info-card ul { padding-left: 18px; margin: 0; }

.docs-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; border-top: 1px solid rgba(19, 34, 43, 0.15); }
.docs-list li { border-bottom: 1px solid rgba(19, 34, 43, 0.15); }
.docs-list a { display: grid; grid-template-columns: 56px 1fr auto; gap: 16px; align-items: center; padding: 18px 4px; text-decoration: none; transition: background 0.2s, padding 0.3s var(--ease); }
.docs-list a:hover { background: rgba(255, 255, 255, 0.7); padding-left: 14px; }
.docs-list .n { font-family: var(--f-display); font-weight: 800; font-size: 30px; color: var(--teal); }
.docs-list .t { font-weight: 600; color: var(--text-dark); }
.docs-list .t small { display: block; font-weight: 400; color: var(--text-dark-2); font-size: 14px; }
.docs-list .f { font-family: var(--f-mono); font-size: 12px; color: var(--text-dark-2); }

.channels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--grid-strong); border: 1px solid var(--grid-strong); margin-top: 48px; }
.channel { background: var(--ink-2); padding: 28px; text-decoration: none; display: flex; flex-direction: column; gap: 10px; transition: background 0.25s; }
a.channel:hover { background: var(--ink-3); }
.channel .mono { color: var(--amber); text-transform: uppercase; letter-spacing: 0.1em; font-size: 11px; }
.channel strong { font-size: 19px; font-weight: 600; word-break: break-word; }
.channel span:last-child { color: var(--text-light-2); font-size: 14px; }

/* --- Pie ---------------------------------------------------------------- */

.site-footer { background: #071118; border-top: 1px solid var(--grid-strong); padding: 72px 0 0; font-size: 15px; color: var(--text-light-2); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; }
.footer-name { font-family: var(--f-display); font-weight: 800; text-transform: uppercase; font-size: 24px; line-height: 1.05; color: var(--text-light); margin: 18px 0 12px; }
.footer-brand .mono { margin: 0 0 4px; }
.footer-h { font-family: var(--f-mono); font-weight: 500; font-size: 11.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--amber); margin-bottom: 18px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.site-footer a { text-decoration: none; transition: color 0.2s; word-break: break-word; }
.site-footer a:hover { color: var(--text-light); }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 28px; padding-bottom: 28px; margin-top: 56px; border-top: 1px solid var(--grid-strong); font-size: 13px; }

/* --- Revelado al hacer scroll ------------------------------------------- */

.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); transition-delay: var(--rd, 0s); }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* --- Animaciones -------------------------------------------------------- */

@keyframes rise { to { transform: translateY(0); } }
@keyframes fade { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes flow { to { stroke-dashoffset: -40; } }
@keyframes spark { 0%, 100% { opacity: 0.35; transform: scale(0.85); } 50% { opacity: 1; transform: scale(1.15); } }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 3px rgba(63, 174, 122, 0.25); } 50% { box-shadow: 0 0 0 7px rgba(63, 174, 122, 0.05); } }
@keyframes marquee { to { transform: translateX(-50%); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .ticker-track { animation: none; }
}

/* --- Responsivo --------------------------------------------------------- */

@media (max-width: 1080px) {
  .nav-toggle { display: block; }
  .nav {
    position: fixed; inset: 69px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--ink); border-bottom: 1px solid var(--grid-strong); padding: 8px var(--gutter) 20px;
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: all 0.25s var(--ease);
    max-height: calc(100vh - 69px); overflow-y: auto;
  }
  .nav.open { transform: none; opacity: 1; visibility: visible; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--grid); font-size: 16px; }
  .nav a::after { display: none; }
  .nav .nav-cta { margin: 16px 0 0; text-align: center; padding: 14px; }
  .process { grid-template-columns: repeat(2, 1fr); gap: 40px 24px; }
  .process::before { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .hero { min-height: auto; }
  .hero-grid, .about-grid, .contact-grid, .integrity-inner, .work, .sec-head, .doc-layout { grid-template-columns: minmax(0, 1fr); }
  .hero-art { justify-self: center; max-width: 440px; order: -1; margin-bottom: -20px; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n + 2) { border-bottom: 1px solid var(--grid-strong); }
  .specs { grid-template-columns: minmax(0, 1fr); }
  .spec { border-right: 0; border-bottom: 1px solid var(--grid-strong); }
  .spec:last-child { border-bottom: 0; }
  .values { grid-template-columns: repeat(2, 1fr); }
  .work-visual { min-height: 320px; border-right: 0; border-bottom: 1px solid var(--grid-strong); }
  .org-row { grid-template-columns: minmax(0, 1fr); padding-top: 0; gap: 0; }
  .org-row::before, .org-row .org-node::before { display: none; }
  .org-row .org-node { margin-top: 40px; }
  .org-row .org-node + .org-node::after { content: ""; }
  .toc { position: static; background: #fff; border: 1px solid var(--paper-line); padding: 20px; }
  .channels { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .brand-text small { display: none; }
  .form { grid-template-columns: minmax(0, 1fr); }
  .process { grid-template-columns: minmax(0, 1fr); }
  .values { grid-template-columns: minmax(0, 1fr); }
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .contact-list li { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .stat { padding: 20px 14px; }
  .org-node { min-width: 0; width: 100%; }
  .docs-list a { grid-template-columns: 40px 1fr; }
  .docs-list .f { display: none; }
}

/* Formularios oscuros dentro de secciones claras */
.paper .pledge .field label, .paper .pledge .field .label, .paper .pledge .check { color: var(--text-light-2); }
.paper .pledge .field input, .paper .pledge .field select, .paper .pledge .field textarea { color: var(--text-light); background: rgba(255, 255, 255, 0.04); border-color: var(--grid-strong); }
.paper .pledge .field input:focus, .paper .pledge .field select:focus, .paper .pledge .field textarea:focus { border-color: var(--amber); background: rgba(255, 255, 255, 0.07); }
.paper .pledge .field select option { background: var(--ink-2); }
.paper .pledge .check input { border-color: var(--grid-strong); background: transparent; }
.paper .pledge .check input::after { background: var(--amber); }
.pledge .check a { color: var(--amber); }
.pledge .field input[type="date"] { color-scheme: dark; }
[hidden] { display: none !important; }
