/* =========================================================
   ACCENSUS | Estilos
   0. Fuentes        1. Variables      2. Base
   3. Componentes    4. Encabezado y menú
   5. Hero           6. Cinta          7. Secciones
   8. Pie            9. Animaciones    10. Responsive
   ========================================================= */

/* ---------- 0. Fuentes (IBM Plex, alojadas en el servidor) ---------- */
@font-face { font-family: "Plex Condensed"; src: url("../fonts/plex-condensed-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Plex Condensed"; src: url("../fonts/plex-condensed-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Plex Sans"; src: url("../fonts/plex-sans-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Plex Sans"; src: url("../fonts/plex-sans-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Plex Sans"; src: url("../fonts/plex-sans-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url("../fonts/plex-mono-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url("../fonts/plex-mono-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }

/* ---------- 1. Variables ---------- */
:root {
  /* Oscuros */
  --negro: #0b0c0d;
  --negro-2: #131517;
  /* Concreto (secciones claras) */
  --concreto: #e5e3de;
  --tinta: #17191b;
  /* Colores de la marca */
  --azul: #0a9be0;
  --magenta: #e6318a;

  /* Colores "de trabajo": cada sección los redefine (ver .section-light) */
  --fondo: var(--negro);
  --texto: #f3f3f0;
  --texto-2: #b9bcbf;   /* párrafos */
  --gris: #878b90;      /* etiquetas y detalles */
  --linea: rgba(243, 243, 240, .14);
  --acento: var(--azul);

  /* Tipografía */
  --display: "Plex Condensed", "Arial Narrow", "Segoe UI", sans-serif;
  --sans: "Plex Sans", "Segoe UI", system-ui, Arial, sans-serif;
  --mono: "Plex Mono", Consolas, "Courier New", monospace;

  --pad: clamp(20px, 5vw, 72px);
  --ease: cubic-bezier(.16, 1, .3, 1);
}

/* Secciones claras color concreto: solo se cambian las variables */
.section-light {
  --fondo: var(--concreto);
  --texto: var(--tinta);
  --texto-2: #43474b;
  --gris: #6a6e73;
  --linea: rgba(23, 25, 27, .16);
  --acento: #0072ad;          /* azul más oscuro para que se lea sobre claro */
  background-color: var(--fondo);
  color: var(--texto);
  /* Textura de grano muy suave, como concreto */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--negro);
  color: var(--texto);
  font-family: var(--sans);
  font-size: clamp(16px, 1.05vw, 18px);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, figure { margin: 0; }
::selection { background: var(--azul); color: #fff; }
:focus-visible { outline: 2px solid var(--azul); outline-offset: 4px; }

.skip-link { position: absolute; left: -9999px; top: 12px; z-index: 200; background: #fff; color: #000; padding: 8px 14px; }
.skip-link:focus { left: 12px; }

/* Títulos grandes */
.hero-title, .big, .huge, .service h3, .stat strong, .menu nav a, .footer-word {
  font-family: var(--display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -.015em;
  line-height: .95;
}

/* ---------- 3. Componentes ---------- */

/* Etiqueta de sección dibujada como línea de cota de plano:  |—— 01 · NOSOTROS ————————| */
.label {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--mono);
  font-size: .74rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gris);
  margin-bottom: clamp(32px, 5vw, 56px);
}
.label::before, .label::after {
  content: "";
  height: 11px;
  background: linear-gradient(currentColor, currentColor) center / 100% 1px no-repeat;
  opacity: .7;
}
.label::before { width: 44px; border-left: 1px solid currentColor; }
.label::after  { flex: 1; border-right: 1px solid currentColor; }
.label b { color: var(--acento); font-weight: 500; }

.mini {
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gris);
  font-weight: 400;
  margin-bottom: 14px;
}

.btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 15px 26px;
  border-radius: 2px;                       /* esquinas rectas: más técnico */
  background: var(--texto); color: var(--fondo);
  font-family: var(--sans); font-weight: 600; font-size: .95rem;
  transition: background .3s, color .3s, gap .3s var(--ease);
}
.btn:hover { background: var(--azul); color: #fff; gap: 20px; }

/* Pie de figura estilo plano: "FIG. 01 — ..." */
.fig-caption {
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gris);
  margin-top: 14px;
}

/* ---------- 4. Encabezado y menú ---------- */
.header {
  position: fixed; inset: 0 0 auto; z-index: 100;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 16px var(--pad);
  transition: background .4s, padding .4s var(--ease);
}
.header.is-scrolled {
  background: rgba(11, 12, 13, .78);
  backdrop-filter: blur(14px);
  padding-block: 10px;
  border-bottom: 1px solid rgba(243, 243, 240, .12);
}
.brand { display: flex; align-items: center; }
.brand-logo {
  height: 56px; width: auto;
  background: #fff;
  border-radius: 6px;
  padding: 4px 8px;
  transition: height .4s var(--ease);
}
.header.is-scrolled .brand-logo { height: 44px; }

.nav-inline { display: flex; gap: 32px; margin-left: auto; }
.nav-inline a { font-size: .92rem; font-weight: 500; position: relative; color: #f3f3f0; opacity: .8; transition: opacity .3s; }
.nav-inline a::after {
  content: ""; position: absolute; left: 0; bottom: -4px; width: 100%; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease);
}
.nav-inline a:hover, .nav-inline a.is-active { opacity: 1; }
.nav-inline a:hover::after, .nav-inline a.is-active::after { transform: scaleX(1); transform-origin: left; }

.menu-btn {
  display: flex; align-items: center; gap: 12px;
  background: none; border: 1px solid rgba(243, 243, 240, .2); border-radius: 2px;
  color: #f3f3f0; font-family: var(--mono); font-size: .78rem; letter-spacing: .1em; text-transform: uppercase;
  padding: 10px 16px; cursor: pointer; transition: border-color .3s;
}
.menu-btn:hover { border-color: #f3f3f0; }
.menu-btn-icon { width: 18px; height: 10px; position: relative; }
.menu-btn-icon i { position: absolute; left: 0; width: 100%; height: 2px; background: currentColor; transition: transform .4s var(--ease), top .4s var(--ease); }
.menu-btn-icon i:first-child { top: 0; }
.menu-btn-icon i:last-child { top: 8px; }
.menu-btn[aria-expanded="true"] .menu-btn-icon i:first-child { top: 4px; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-btn-icon i:last-child { top: 4px; transform: rotate(-45deg); }

.menu {
  position: fixed; inset: 0; z-index: 90;
  background: var(--negro);
  display: flex; flex-direction: column; justify-content: center;
  padding: 110px var(--pad) 40px;
  clip-path: inset(0 0 100% 0);
  transition: clip-path .7s var(--ease);
}
.menu.is-open { clip-path: inset(0 0 0 0); }
.menu nav { display: flex; flex-direction: column; }
.menu nav a {
  display: flex; align-items: baseline; gap: 18px;
  font-size: clamp(2.6rem, 8vw, 6.5rem);
  color: transparent; -webkit-text-stroke: 1px var(--texto);
  transform: translateY(30px); opacity: 0;
  transition: color .3s, transform .7s var(--ease), opacity .7s var(--ease);
}
.menu.is-open nav a { transform: none; opacity: 1; }
.menu.is-open nav a:nth-child(2) { transition-delay: .05s; }
.menu.is-open nav a:nth-child(3) { transition-delay: .1s; }
.menu.is-open nav a:nth-child(4) { transition-delay: .15s; }
.menu.is-open nav a:nth-child(5) { transition-delay: .2s; }
.menu.is-open nav a:nth-child(6) { transition-delay: .25s; }
.menu nav a:hover { color: var(--texto); }
.menu nav a small { font-family: var(--mono); font-size: .8rem; font-weight: 400; color: var(--gris); letter-spacing: .1em; -webkit-text-stroke: 0; }
.menu-foot { margin-top: auto; padding-top: 24px; font-family: var(--mono); font-size: .78rem; letter-spacing: .08em; color: var(--gris); }
.menu-foot a { color: var(--texto); }

/* ---------- 5. Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; align-items: flex-end;
  padding: 150px var(--pad) clamp(48px, 8vh, 96px);
  overflow: hidden;
  background: radial-gradient(ellipse 60% 50% at 75% 35%, rgba(10, 155, 224, .14), transparent 70%), var(--negro);
}

.hero-art {
  position: absolute; right: -9vw; top: 52%;
  width: min(60vw, 800px); height: auto;
  transform: translateY(-55%);
  fill: none; stroke-linecap: round; stroke-linejoin: round;
  pointer-events: none;
}
.hero-art .grid-lines path { stroke: rgba(255,255,255,.05); stroke-width: 1; }
.hero-art .construct path { stroke: rgba(255,255,255,.16); stroke-width: 1; stroke-dasharray: 6 8; }
.hero-art .swoosh { stroke: var(--azul); stroke-width: 10; }
.hero-art .tri { stroke: var(--magenta); stroke-width: 6; }

.hero-inner { position: relative; z-index: 1; width: 100%; }
.kicker {
  font-family: var(--mono); font-size: .76rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--gris); margin-bottom: 26px;
}
.hero-title { font-size: clamp(2.35rem, 9vw, 10rem); }
.hero-title .line { display: block; overflow: hidden; padding-bottom: .05em; }
.hero-title .line > span { display: block; }
.hero-title em { font-style: normal; color: transparent; -webkit-text-stroke: 1.5px var(--texto); }
.hero-bottom {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap;
  margin-top: clamp(32px, 5vw, 56px);
  padding-top: 26px; border-top: 1px solid var(--linea);
}
.hero-bottom p { max-width: 480px; color: var(--texto-2); }

.scroll-cue { position: absolute; left: 50%; bottom: 22px; width: 1px; height: 44px; background: var(--linea); overflow: hidden; }
.scroll-cue span { position: absolute; left: 0; top: -50%; width: 100%; height: 50%; background: #f3f3f0; animation: cue 2s var(--ease) infinite; }

/* ---------- 6. Cinta ---------- */
.marquee { overflow: hidden; border-block: 1px solid var(--linea); padding: 20px 0; background: var(--negro); }
.marquee-track { display: flex; width: max-content; animation: marquee 40s linear infinite; }
.marquee span {
  font-family: var(--display); font-weight: 600; text-transform: uppercase;
  font-size: clamp(1.4rem, 3vw, 2.6rem);
  padding-right: 44px; white-space: nowrap;
  color: transparent; -webkit-text-stroke: 1px rgba(243,243,240,.5);
}
.marquee span::after { content: "▲"; font-size: .42em; color: var(--magenta); -webkit-text-stroke: 0; margin-left: 44px; vertical-align: middle; }
.marquee:hover .marquee-track { animation-play-state: paused; }

/* ---------- 7. Secciones ---------- */
.section { padding: clamp(88px, 12vw, 160px) var(--pad); background-color: var(--fondo); color: var(--texto); }
.section-dark { --fondo: var(--negro-2); }

.big { font-size: clamp(2.6rem, 7vw, 6.5rem); margin-bottom: clamp(40px, 6vw, 72px); max-width: 16ch; }
.huge { font-size: clamp(4rem, 14vw, 14rem); }
.huge span { color: var(--azul); }

/* Nosotros */
.statement {
  font-size: clamp(1.6rem, 3.6vw, 3.3rem);
  font-weight: 500; line-height: 1.15; letter-spacing: -.02em;
  max-width: 1150px;
}
.statement .w { opacity: .18; transition: opacity .25s; }
.statement .w.on { opacity: 1; }

.about-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 4vw, 56px); margin-top: clamp(64px, 8vw, 110px); }
.about-grid > div { border-top: 1px solid var(--texto); padding-top: 20px; }
.about-grid .mini { margin-bottom: 8px; }
.about-grid h3 { font-size: 1.1rem; font-weight: 600; margin-bottom: 10px; }
.about-grid p { color: var(--texto-2); }

/* Servicios */
.services { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--linea); }
.service {
  position: relative;
  display: grid; grid-template-columns: 110px 1fr minmax(260px, 420px); align-items: center; gap: 24px;
  padding: clamp(20px, 2.6vw, 34px) 0;
  border-bottom: 1px solid var(--linea);
}
.service::before {
  content: ""; position: absolute; inset: 0 calc(var(--pad) * -1);
  background: var(--azul); transform: scaleY(0); transform-origin: bottom;
  transition: transform .5s var(--ease); z-index: 0;
}
.service > * { position: relative; z-index: 1; }
.service .num { font-family: var(--mono); color: var(--gris); font-size: .8rem; letter-spacing: .08em; transition: color .3s; }
.service h3 { font-size: clamp(1.8rem, 4vw, 3.6rem); transition: transform .5s var(--ease); }
.service p { color: var(--texto-2); transition: color .3s; }
.service:hover::before { transform: scaleY(1); }
.service:hover h3 { transform: translateX(16px); }
.service:hover .num, .service:hover p { color: #fff; }

/* Registro de campo: fotos en blanco y negro que se colorean */
.field { margin-top: clamp(56px, 7vw, 88px); }
.field-strip { display: flex; flex-wrap: wrap; gap: 10px; }
.field-strip img {
  height: 118px; width: auto;
  filter: grayscale(1) contrast(1.05);
  opacity: .8;
  transition: filter .5s var(--ease), opacity .5s;
}
.field-strip img:hover { filter: none; opacity: 1; }

/* Cifras */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); background: var(--negro); border-block: 1px solid var(--linea); }
.stat { padding: clamp(36px, 5vw, 64px) var(--pad); border-right: 1px solid var(--linea); }
.stat:last-child { border-right: 0; }
.stat .mini { display: block; }
.stat strong { display: block; font-size: clamp(3.6rem, 9vw, 8rem); }
.stat > span:last-child { color: var(--texto-2); }

/* Clientes */
.clients { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(32px, 5vw, 80px); align-items: start; }
.clients .big { margin-bottom: 36px; }
.sectors { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.sectors li {
  padding: 9px 18px; border: 1px solid var(--linea); border-radius: 2px;
  font-size: .98rem;
  transition: background .3s, color .3s, border-color .3s;
}
.sectors li:hover { background: var(--texto); color: var(--fondo); border-color: var(--texto); }
.map-figure img { width: 100%; border: 1px solid var(--linea); background: #fff; }

.two { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); margin-top: clamp(64px, 8vw, 110px); }
.plain { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--linea); }
.plain li { display: grid; grid-template-columns: 76px 1fr; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--linea); color: var(--texto-2); }
.plain b { color: var(--texto); font-family: var(--mono); font-weight: 500; font-size: .88rem; padding-top: 2px; }

/* Contacto */
.mail {
  display: inline-flex; gap: 14px; margin: clamp(24px, 3vw, 40px) 0 clamp(56px, 7vw, 96px);
  font-size: clamp(1.3rem, 3vw, 2.6rem); font-weight: 500; letter-spacing: -.02em;
  border-bottom: 1px solid currentColor; padding-bottom: 4px;
  transition: color .3s;
  word-break: break-all;
}
.mail:hover { color: var(--azul); }
.contact-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; max-width: 900px; }
.contact-grid > div { border-top: 1px solid var(--linea); padding-top: 20px; }
.contact-grid a { font-weight: 500; }
.contact-grid a:hover { color: var(--azul); }

/* Visite Honduras */
.honduras { padding-block: clamp(72px, 9vw, 120px); }
.honduras .two { margin-top: 0; }
.honduras-text { font-size: clamp(1.25rem, 2.2vw, 1.9rem); line-height: 1.3; letter-spacing: -.01em; }
.honduras-text a { display: inline-block; margin-top: 18px; font-size: 1rem; color: var(--acento); }
.municipios { color: var(--texto-2); line-height: 1.9; }

/* ---------- 8. Pie ---------- */
.footer { padding: 0 var(--pad) 28px; overflow: hidden; background: var(--negro); }
.footer-word {
  display: block; text-align: center;
  font-size: 19vw; line-height: .9;
  color: transparent; -webkit-text-stroke: 1px rgba(243,243,240,.16);
  margin: 0 calc(var(--pad) * -1);
  padding-top: 40px;
}
.footer-row {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-family: var(--mono); font-size: .74rem; letter-spacing: .06em; color: var(--gris);
  border-top: 1px solid var(--linea); padding-top: 22px;
}
.footer-row a:hover { color: var(--texto); }

/* ---------- 9. Animaciones ---------- */
.js .reveal { opacity: 0; transform: translateY(36px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

.js .hero-title .line > span { transform: translateY(105%); animation: rise 1.2s var(--ease) forwards; }
.js .hero-title .line:nth-child(2) > span { animation-delay: .12s; }
.js .hero-title .line:nth-child(3) > span { animation-delay: .24s; }

.js .hero-art path { stroke-dasharray: 1400; stroke-dashoffset: 1400; animation: draw 2.4s var(--ease) forwards; }
.js .hero-art .construct path { animation-delay: .2s; }
.js .hero-art .swoosh { animation-delay: .5s; animation-duration: 2s; }
.js .hero-art .tri { animation-delay: .9s; animation-duration: 1.8s; }

@keyframes rise { to { transform: translateY(0); } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes cue { 0% { top: -50%; } 100% { top: 100%; } }

/* ---------- 10. Responsive ---------- */
@media (max-width: 1000px) {
  .service { grid-template-columns: 80px 1fr; }
  .service p { grid-column: 2; }
  .about-grid, .clients { grid-template-columns: 1fr; }
}
@media (max-width: 800px) {
  .nav-inline { display: none; }
  .brand-logo { height: 44px; }
  .header.is-scrolled .brand-logo { height: 38px; }
  .hero-art { width: 120vw; right: -40vw; top: 32%; opacity: .55; }
  .two, .contact-grid, .stats { grid-template-columns: 1fr; }
  .stat { border-right: 0; border-bottom: 1px solid var(--linea); }
  .stat:last-child { border-bottom: 0; }
  .service { grid-template-columns: 1fr; gap: 8px; }
  .service p { grid-column: 1; }
  .service:hover h3 { transform: none; }
  .field-strip img { height: 84px; }
  .label::before { width: 20px; }
}

/* Personas que prefieren menos movimiento 
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal, .js .hero-title .line > span { opacity: 1; transform: none; }
  .js .hero-art path { stroke-dashoffset: 0; }
  .statement .w { opacity: 1; }
}
*/