/* =====================================================================
   Brief Creativo — estilos v2
   Recupera la identidad del sitio anterior (fondo oscuro, rojo + amarillo
   de Pereira y Risaralda, Plus Jakarta Sans + Inter, brillo al cursor,
   cinta en movimiento) sin depender de Tailwind: todo vive aquí.

   Código de color de las dos necesidades del cliente:
     ROJO      → comunicación comercial (presentar, vender, generar consultas)
     AMARILLO  → comunicación de avances (informar lo hecho y lo que sigue)
   ===================================================================== */

:root {
  --ink: #08090c;
  --ink-2: #0e1015;
  --ink-3: #151821;

  --rojo: #ed1c24;
  --rojo-2: #c2161d;
  --rojo-txt: #ff4d55;       /* rojo para texto pequeño sobre oscuro (6,1:1) */
  --amarillo: #ffba00;
  --amarillo-2: #ffd34d;
  --naranja: #ff6b3d;

  --t-100: #f4f4f5;
  --t-200: #e4e4e7;
  --t-300: #d4d4d8;
  --t-400: #a1a1aa;
  --t-500: #8b8b94;          /* metadatos: 5,9:1 sobre --ink */

  --line: rgba(255, 255, 255, 0.09);
  --line-2: rgba(255, 255, 255, 0.16);

  --paper: #ffffff;
  --paper-2: #f4f4f5;
  --paper-line: #e4e4e7;
  --paper-mute: #52525b;

  --f-display: "Plus Jakarta Sans", system-ui, sans-serif;
  --f-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --wrap: 80rem;
  --gut: 1.5rem;
  --nav-h: 4.5rem;
}
@media (min-width: 1024px) { :root { --gut: 2rem; --nav-h: 5rem; } }

/* ---------- Base ---------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 12px);
  overflow-x: clip;
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--ink);
  color: var(--t-100);
  font-family: var(--f-sans);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, h4, p, figure, dl, dd, blockquote { margin: 0; }
ul, ol { margin: 0; padding: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--amarillo); outline-offset: 3px; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gut); }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: -9999px; top: 12px; z-index: 200;
  background: var(--amarillo); color: #1a0405; padding: 10px 14px; border-radius: 9999px;
  font-weight: 700; text-decoration: none;
}
.skip:focus { left: 16px; }

/* ---------- Tipografía --------------------------------------------- */
.display { font-family: var(--f-display); font-weight: 800; letter-spacing: -0.02em; }
.kicker {
  display: inline-block; margin-bottom: 1.25rem;
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--rojo-txt);
}
.kicker--amarillo { color: var(--amarillo); }
.h2 {
  font-family: var(--f-display); font-weight: 800;
  font-size: clamp(2rem, 1.4rem + 2.8vw, 3.25rem); line-height: 1.05; letter-spacing: -0.02em;
  text-wrap: balance;
}
.h3 { font-family: var(--f-display); font-weight: 700; font-size: 1.2rem; line-height: 1.25; }
.lead { font-size: clamp(1.05rem, 1rem + 0.3vw, 1.2rem); font-weight: 300; line-height: 1.65; color: var(--t-400); max-width: 42rem; }
.muted { color: var(--t-400); }
.small { font-size: 0.875rem; line-height: 1.55; }
.accent-word {
  background-image: linear-gradient(100deg, var(--rojo) 0%, var(--naranja) 45%, var(--amarillo) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

/* "Por confirmar": marca visible que debe desaparecer antes de publicar */
.pc {
  display: inline; font-size: 0.85em; font-weight: 600; color: var(--amarillo-2);
  border: 1px dashed rgba(255, 186, 0, 0.6); background: rgba(255, 186, 0, 0.08);
  padding: 0.05em 0.4em; border-radius: 6px;
}
.pc::before { content: "Por confirmar: "; font-weight: 800; }

/* Banda de versión de prueba (la pone main.js si <html data-env="prueba">) */
.env-banner {
  position: relative; z-index: 60; text-align: center;
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.04em;
  padding: 7px var(--gut); color: #1a0405; background: var(--amarillo);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 17px;
}

/* ---------- Botones ------------------------------------------------- */
.btn-primary, .btn-ghost, .btn-dark, .btn-red {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  min-height: 3.25rem; padding: 0.9rem 1.6rem; border-radius: 9999px;
  font-family: var(--f-sans); font-size: 1rem; line-height: 1.2; text-decoration: none; cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.25s var(--ease-out), background-color 0.2s, border-color 0.2s, box-shadow 0.25s, color 0.2s;
}
.btn-primary {
  background: var(--amarillo); color: #1a0405; font-weight: 700;
  box-shadow: 0 8px 30px -8px rgba(255, 186, 0, 0.45);
}
.btn-primary:hover { background: #ffc933; transform: translateY(-2px); box-shadow: 0 14px 38px -8px rgba(255, 186, 0, 0.55); }
.btn-ghost { border-color: rgba(255, 255, 255, 0.22); color: var(--t-100); font-weight: 500; background: transparent; }
.btn-ghost:hover { border-color: rgba(255, 255, 255, 0.5); background: rgba(255, 255, 255, 0.05); }
.btn-dark { background: var(--ink); color: var(--t-100); font-weight: 600; }
.btn-dark:hover { background: #1c1f27; transform: translateY(-2px); }
.btn-red { background: var(--rojo-2); color: #fff; font-weight: 700; }
.btn-red:hover { background: #a91218; transform: translateY(-2px); }
.btn-primary .arrow, .btn-ghost .arrow { transition: transform 0.25s var(--ease-out); }
.btn-primary:hover .arrow { transform: translateX(4px); }
.btn-sm { min-height: 2.6rem; padding: 0.55rem 1.1rem; font-size: 0.875rem; }
.btn-block { width: 100%; }
button[disabled] { opacity: 0.65; cursor: progress; transform: none !important; }
.btn-primary svg, .btn-ghost svg, .btn-dark svg { width: 18px; height: 18px; flex: none; }

.link-u {
  display: inline-flex; align-items: center; gap: 0.45rem;
  font-weight: 600; text-decoration: none; color: var(--t-100);
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 100% 1px; background-position: 0 100%; background-repeat: no-repeat;
  padding-bottom: 3px; transition: color 0.2s, background-size 0.3s var(--ease-out);
}
.link-u:hover { color: var(--amarillo); }

.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.9rem 1.1rem; margin-top: 2.25rem; }
@media (max-width: 479px) { .actions > .btn-primary, .actions > .btn-ghost { width: 100%; } }

/* ---------- Navegación --------------------------------------------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  transition: background-color 0.3s, border-color 0.3s, backdrop-filter 0.3s, top 0.3s;
  border-bottom: 1px solid transparent;
}
.has-env .nav { top: 31px; }
.nav.is-scrolled {
  background: rgba(8, 9, 12, 0.88);
  border-bottom-color: rgba(255, 255, 255, 0.06);
}
@supports (backdrop-filter: blur(14px)) {
  .nav.is-scrolled { background: rgba(8, 9, 12, 0.78); backdrop-filter: blur(14px) saturate(160%); -webkit-backdrop-filter: blur(14px) saturate(160%); }
}
.nav__bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: var(--nav-h); }
.logo {
  display: inline-flex; align-items: center; gap: 0.55rem; text-decoration: none;
  font-family: var(--f-display); font-weight: 800; font-size: 1.125rem; letter-spacing: -0.02em;
}
.logo__dot { width: 10px; height: 10px; border-radius: 9999px; background: var(--rojo); box-shadow: 0 0 12px 2px rgba(237, 28, 36, 0.6); flex: none; }
.logo__light { font-weight: 500; color: var(--t-400); }
.nav__links { display: none; }
.nav__cta { display: none; }
.nav-link { position: relative; text-decoration: none; color: var(--t-300); font-size: 0.9rem; transition: color 0.2s; }
.nav-link:hover, .nav-link[aria-current="page"] { color: #fff; }
.nav-link::after {
  content: ""; position: absolute; left: 0; bottom: -6px; width: 100%; height: 1px; background: var(--rojo);
  transform: scaleX(0); transform-origin: left; transition: transform 0.3s var(--ease-out);
}
.nav-link:hover::after, .nav-link[aria-current="page"]::after { transform: scaleX(1); }
.burger {
  display: inline-flex; flex-direction: column; justify-content: center; gap: 6px;
  width: 44px; height: 44px; margin-right: -10px; padding: 10px; background: none; border: 0; cursor: pointer;
}
.burger span { display: block; height: 2px; background: var(--t-100); border-radius: 2px; transition: transform 0.3s var(--ease-out), opacity 0.2s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
.m-menu { border-top: 1px solid rgba(255, 255, 255, 0.1); background: rgba(8, 9, 12, 0.97); }
.m-menu__inner { display: flex; flex-direction: column; gap: 0.25rem; padding-block: 1rem 1.5rem; }
.m-menu a:not([class*="btn"]) {
  display: block; padding: 0.8rem 0; font-size: 1.1rem; font-weight: 500; text-decoration: none; color: var(--t-200);
  border-bottom: 1px solid var(--line);
}
.m-menu a[aria-current="page"] { color: var(--amarillo); }
.m-menu .btn-primary, .m-menu .btn-ghost { margin-top: 0.9rem; }
@media (min-width: 1024px) {
  .nav__links { display: flex; align-items: center; gap: 2rem; }
  .nav__cta { display: inline-flex; }
  .burger, .m-menu { display: none !important; }
}

/* ---------- Portada (hero) ------------------------------------------
   Capas: foto (--hero-img) con zoom lento, velo oscuro, resplandor que
   sigue al cursor en rojo/amarillo, líneas finas, grano y cinta inferior.
   -------------------------------------------------------------------- */
.hero {
  --hero-img: url("assets/img/hero.webp");
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center;
}
.hero-bg {
  position: absolute; inset: -2%; z-index: -5;
  background: var(--ink-2) var(--hero-img) center / cover no-repeat;
  transform: scale(1.04);
  animation: heroZoom 24s ease-in-out infinite alternate;
  filter: saturate(0.9) contrast(1.05);
}
@keyframes heroZoom { to { transform: scale(1.12); } }
.hero-tint {
  position: absolute; inset: 0; z-index: -4;
  background:
    linear-gradient(115deg, rgba(8, 9, 12, 0.94) 0%, rgba(8, 9, 12, 0.72) 38%, rgba(26, 6, 7, 0.3) 70%, rgba(8, 9, 12, 0.38) 100%),
    linear-gradient(180deg, rgba(8, 9, 12, 0.4) 0%, rgba(8, 9, 12, 0.25) 45%, rgba(8, 9, 12, 0.9) 88%, var(--ink) 100%);
}
.hero-glow {
  position: absolute; inset: 0; z-index: -3; pointer-events: none; mix-blend-mode: screen;
  background:
    radial-gradient(420px circle at var(--gx, 25%) var(--gy, 35%), rgba(237, 28, 36, 0.28) 0%, transparent 60%),
    radial-gradient(520px circle at calc(var(--gx, 25%) + 18%) calc(var(--gy, 35%) + 8%), rgba(255, 186, 0, 0.2) 0%, transparent 60%);
}
.hero-lines {
  position: absolute; inset: 0; z-index: -2; pointer-events: none; opacity: 0.5;
  background-image: linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 7vw 100%;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 40%, transparent 92%);
          mask-image: linear-gradient(180deg, transparent, #000 40%, transparent 92%);
}
.hero-grain, .grain {
  position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0.06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.hero__inner { position: relative; width: 100%; padding-top: calc(var(--nav-h) + 3rem); padding-bottom: 8.5rem; }
.hero__content { max-width: 60rem; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-size: 0.7rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: #ffe3b3;
  padding: 0.5rem 0.95rem; border-radius: 9999px;
  background: rgba(237, 28, 36, 0.1); border: 1px solid rgba(237, 28, 36, 0.3);
}
.live-dot { width: 8px; height: 8px; border-radius: 9999px; background: var(--rojo); flex: none; animation: pulse 1.8s ease-in-out infinite; }
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(237, 28, 36, 0.6); }
  50% { box-shadow: 0 0 0 6px rgba(237, 28, 36, 0); }
}
.hero-title {
  margin-top: 1.5rem;
  font-family: var(--f-display); font-weight: 800; text-transform: uppercase;
  font-size: clamp(2.35rem, 1.2rem + 5.4vw, 5.4rem); line-height: 0.95; letter-spacing: -0.025em;
  text-wrap: balance; max-width: 17ch;
}
.hero-title .accent-word { filter: drop-shadow(0 0 26px rgba(237, 28, 36, 0.35)); }
.hero-lead { margin-top: 1.75rem; max-width: 40rem; font-size: clamp(1.05rem, 1rem + 0.45vw, 1.3rem); font-weight: 300; line-height: 1.6; color: var(--t-300); }
.hero-lead strong { color: var(--t-100); font-weight: 500; }
.chips { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 2rem; list-style: none; }
.chip {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-size: 0.85rem; font-weight: 500; color: var(--t-300);
  padding: 0.5rem 0.95rem; border-radius: 9999px;
  background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.12);
}
.chip::before { content: ""; width: 6px; height: 6px; border-radius: 9999px; background: var(--rojo); flex: none; }
.chip--amarillo::before { background: var(--amarillo); }
.hero-ref {
  position: absolute; right: var(--gut); bottom: 4.6rem; z-index: 2;
  font-size: 0.7rem; color: var(--t-500); text-decoration: none;
}
.hero-ref:hover { color: var(--t-300); }

.ticker {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; overflow: hidden; padding: 1rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(180deg, rgba(8, 9, 12, 0) 0%, rgba(8, 9, 12, 0.7) 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.ticker__track {
  display: inline-flex; align-items: center; gap: 1.5rem; white-space: nowrap;
  font-family: var(--f-display); font-weight: 600; font-size: 0.92rem; letter-spacing: 0.04em; color: rgba(244, 244, 245, 0.8);
  animation: tickerScroll 42s linear infinite;
}
.ticker__track .sep { color: var(--rojo); font-size: 0.5rem; }
.ticker__track .sep--a { color: var(--amarillo); }
@keyframes tickerScroll { to { transform: translateX(-50%); } }

/* Palabras del título que suben al cargar (main.js añade .w a cada una) */
.hero-title .w { display: inline-block; opacity: 0; transform: translateY(0.45em); transition: opacity 0.7s var(--ease-out), transform 0.8s var(--ease-out); }
.hero-title.is-in .w { opacity: 1; transform: none; }
.hero-title .accent-word.is-split { background: none; }
.hero-title .accent-word .w, .hero-title .w.accent-word {
  background-image: linear-gradient(100deg, var(--rojo) 0%, var(--naranja) 45%, var(--amarillo) 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}

/* Portada con formulario a la derecha (inicio) */
.hero__inner--split { display: grid; gap: 2.75rem; }
.hero-form {
  position: relative; border-radius: 1.5rem; padding: 1.4rem;
  background: rgba(14, 16, 21, 0.92); border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.9);
}
@supports (backdrop-filter: blur(16px)) {
  .hero-form { background: rgba(14, 16, 21, 0.62); backdrop-filter: blur(16px) saturate(150%); -webkit-backdrop-filter: blur(16px) saturate(150%); }
}
.hero-form::before {
  content: ""; position: absolute; left: 1.5rem; right: 1.5rem; top: -1px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--rojo), var(--naranja), var(--amarillo));
}
.qform { display: grid; gap: 0.85rem; }
.qform__head .kicker { margin-bottom: 0.5rem; }
.qform__title { font-family: var(--f-display); font-weight: 800; font-size: 1.35rem; line-height: 1.15; letter-spacing: -0.01em; }
.qform__row { display: grid; gap: 0.85rem; }
.qform .form-input { min-height: 2.9rem; padding: 0.7rem 0.95rem; }
.qform .form-note { margin-top: 0; }
.hero-form .form-status { padding: 2rem 1rem; border: 0; background: transparent; }
@media (min-width: 480px) { .qform__row { grid-template-columns: 1fr 1fr; } .hero-form { padding: 1.75rem; } }
@media (min-width: 1100px) {
  .hero__inner--split { grid-template-columns: minmax(0, 1.4fr) minmax(20rem, 1fr); gap: 3.5rem; align-items: center; }
  .hero__inner--split .hero-title { font-size: clamp(2.6rem, 1rem + 3.6vw, 4.5rem); }
}

/* Portada interior (páginas secundarias) */
.page-hero { min-height: auto; }
.page-hero .hero__inner { padding-top: calc(var(--nav-h) + 4rem); padding-bottom: 4.5rem; }
.page-hero .hero-title { font-size: clamp(2.2rem, 1.3rem + 4vw, 4.2rem); max-width: 18ch; }
.page-hero .hero-bg { animation-duration: 30s; }
.breadcrumb { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--t-400); }
.breadcrumb a { text-decoration: none; color: var(--t-300); border-bottom: 1px solid var(--line-2); }
.breadcrumb a:hover { color: var(--amarillo); }

/* ---------- Secciones ---------------------------------------------- */
.sec { position: relative; padding-block: clamp(5rem, 3.5rem + 6vw, 8rem); }
.sec--tight { padding-block: clamp(3.5rem, 2.5rem + 4vw, 5.5rem); }
.sec--ink2 { background: var(--ink-2); }
.sec--light { background: var(--paper); color: var(--ink); }
.sec--light .kicker { color: var(--rojo-2); }
.sec--light .lead, .sec--light .muted { color: var(--paper-mute); }
.sec__head { max-width: 48rem; margin-bottom: clamp(2.75rem, 2rem + 2.5vw, 4.25rem); }
.sec__head .lead { margin-top: 1.4rem; }
.sec__head--split { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1.5rem; max-width: none; }
.sec__head--split > div { max-width: 44rem; }
.sec__foot { margin-top: clamp(2.25rem, 1.5rem + 2vw, 3.25rem); }
.halo {
  position: absolute; border-radius: 9999px; pointer-events: none; filter: blur(110px);
  width: 34rem; height: 34rem; background: rgba(237, 28, 36, 0.08);
}
.halo--amarillo { background: rgba(255, 186, 0, 0.07); }

/* Etiquetas de tipo de comunicación */
.tag {
  display: inline-flex; align-items: center; gap: 0.45rem; width: max-content; max-width: 100%;
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; line-height: 1.2;
  padding: 0.35rem 0.7rem; border-radius: 9999px;
  color: #ffd1d3; background: rgba(237, 28, 36, 0.14); border: 1px solid rgba(237, 28, 36, 0.4);
}
.tag::before { content: ""; width: 6px; height: 6px; border-radius: 9999px; background: var(--rojo); flex: none; }
.tag--av { color: #ffe7a8; background: rgba(255, 186, 0, 0.12); border-color: rgba(255, 186, 0, 0.4); }
.tag--av::before { background: var(--amarillo); }
.tag--ref { color: var(--t-200); background: rgba(8, 9, 12, 0.6); border-color: rgba(255, 255, 255, 0.25); }
.tag--ref::before { display: none; }
.sec--light .tag { color: var(--rojo-2); background: #fdecec; border-color: #f6b9bb; }
.sec--light .tag--av { color: #7a5200; background: #fff4d6; border-color: #f5d27a; }
.tags { display: flex; flex-wrap: wrap; gap: 0.45rem; }

/* ---------- Necesidades (sección clara) ---------------------------- */
.legend { display: grid; gap: 1rem; margin-top: 1.75rem; }
.legend p { font-size: 0.95rem; color: var(--paper-mute); line-height: 1.55; }
.legend .tag { margin-bottom: 0.5rem; }
@media (min-width: 768px) { .legend { grid-template-columns: 1fr 1fr; gap: 2rem; } }

.needs { display: grid; gap: 1.25rem; }
.need {
  display: flex; flex-direction: column; gap: 1rem; padding: 1.75rem;
  border-radius: 1.5rem; background: var(--paper-2); border: 1px solid var(--paper-line);
}
.need .h3 { font-size: clamp(1.35rem, 1.2rem + 0.6vw, 1.7rem); color: var(--ink); }
.need__sit { color: var(--paper-mute); font-weight: 300; line-height: 1.65; }
.need__do { margin-top: auto; padding-top: 1rem; border-top: 1px solid var(--paper-line); }
.need__do strong { display: block; margin-bottom: 0.35rem; font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink); }
.need__do p { color: #27272a; }
.need--feature {
  position: relative; overflow: hidden; isolation: isolate; color: var(--t-100);
  background: var(--ink) url("assets/img/presentar.webp") center / cover no-repeat; border: 0;
}
.need--feature::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(170deg, rgba(8, 9, 12, 0.72) 0%, rgba(8, 9, 12, 0.9) 55%, rgba(26, 6, 7, 0.95) 100%);
}
.need--feature::after {
  content: ""; position: absolute; top: -4rem; right: -4rem; width: 12rem; height: 12rem; border-radius: 9999px;
  background: rgba(237, 28, 36, 0.3); filter: blur(60px); z-index: -1;
}
.need--feature .h3 { color: #fff; }
.need--feature .need__sit { color: var(--t-300); }
.need--feature .need__do { border-color: rgba(255, 255, 255, 0.14); }
.need--feature .need__do strong { color: var(--rojo-txt); }
.need--feature .need__do p { color: var(--t-100); }
.need--feature .tag { color: #ffd1d3; background: rgba(237, 28, 36, 0.2); border-color: rgba(237, 28, 36, 0.5); }
.need .photo-ref { margin-top: 0.25rem; font-size: 0.7rem; color: var(--t-500); }
@media (min-width: 900px) {
  .needs { grid-template-columns: 5fr 7fr; grid-template-rows: auto auto; }
  .need--feature { grid-row: 1 / span 2; padding: 2.5rem; justify-content: flex-end; min-height: 34rem; }
  .need { padding: 2.25rem; }
}

/* ---------- Tarjetas de servicio (foto + texto) -------------------- */
.svc-grid { display: grid; gap: 1.5rem; }
@media (min-width: 640px) { .svc-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1200px) { .svc-grid { grid-template-columns: repeat(4, 1fr); } }
.svc-card {
  position: relative; display: flex; flex-direction: column;
  border-radius: 1.5rem; overflow: hidden;
  background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255, 255, 255, 0.09);
  transition: transform 0.4s var(--ease-out), border-color 0.3s, box-shadow 0.4s;
}
.svc-card__img { position: relative; overflow: hidden; aspect-ratio: 4 / 3; }
.svc-card__img img {
  width: 100%; height: 100%; object-fit: cover;
  filter: saturate(0.85) contrast(1.05) brightness(0.88);
  transition: filter 0.4s, transform 0.6s var(--ease-out);
}
.svc-card__img .tag--ref { position: absolute; left: 0.75rem; bottom: 0.75rem; font-size: 0.6rem; }
.svc-card__body { display: flex; flex-direction: column; gap: 0.85rem; padding: 1.4rem 1.35rem 1.6rem; flex: 1; }
.svc-num {
  display: inline-block; width: max-content;
  font-family: var(--f-display); font-weight: 800; font-size: 0.7rem; letter-spacing: 0.18em;
  color: #1a0405; background: var(--amarillo); padding: 0.25rem 0.55rem; border-radius: 9999px;
}
.svc-title { font-family: var(--f-display); font-weight: 700; font-size: 1.15rem; line-height: 1.25; color: #fafafa; }
.svc-text { font-size: 0.93rem; line-height: 1.6; color: var(--t-400); font-weight: 300; }
.mini-list { list-style: none; display: flex; flex-wrap: wrap; gap: 0.4rem; }
.mini-list li { font-size: 0.78rem; color: var(--t-300); padding: 0.28rem 0.6rem; border-radius: 9999px; border: 1px solid var(--line-2); }
.svc-get { margin-top: auto; padding-top: 0.9rem; border-top: 1px solid var(--line); font-size: 0.88rem; color: var(--t-200); }
.svc-get strong { display: block; margin-bottom: 0.25rem; font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--amarillo); }
.svc-note { font-size: 0.8rem; line-height: 1.5; color: var(--t-500); padding-left: 0.7rem; border-left: 2px solid rgba(255, 186, 0, 0.45); }
@media (hover: hover) {
  .svc-card:hover { border-color: rgba(237, 28, 36, 0.4); box-shadow: 0 26px 48px -24px rgba(0, 0, 0, 0.85); }
  .svc-card:hover .svc-card__img img { filter: saturate(1.05) contrast(1.05) brightness(1); transform: scale(1.05); }
}

/* Halo que sigue al cursor dentro de tarjetas con inclinación (main.js) */
[data-tilt] { transform-style: preserve-3d; will-change: transform; }
[data-tilt]::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit; opacity: 0;
  background: radial-gradient(380px circle at var(--hx, 50%) var(--hy, 50%), rgba(255, 186, 0, 0.12), transparent 60%);
  transition: opacity 0.3s;
}
[data-tilt].is-hover::after { opacity: 1; }

/* ---------- Etapas (textura de malla de acero) ---------------------- */
.mesh-texture::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: url("assets/img/g-malla.webp") center / cover no-repeat;
  opacity: 0.08; mix-blend-mode: luminosity; filter: grayscale(1) contrast(1.2);
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent);
          mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent);
}
.mesh-texture > .wrap { position: relative; z-index: 1; }
.stages-wrap { position: relative; }
.stages { list-style: none; display: grid; gap: 0; }
.stages__rail { display: none; }
.stage { position: relative; padding: 0 0 2.5rem 2.25rem; border-left: 1px solid rgba(255, 255, 255, 0.12); }
.stage:last-child { padding-bottom: 0; }
.stage__dot {
  position: absolute; left: -6px; top: 0.35rem; width: 11px; height: 11px; border-radius: 9999px;
  background: var(--rojo); box-shadow: 0 0 12px 2px rgba(237, 28, 36, 0.6);
}
.stage--av .stage__dot { background: var(--amarillo); box-shadow: 0 0 12px 2px rgba(255, 186, 0, 0.6); }
.stage__num { font-family: var(--f-display); font-weight: 800; font-size: 3.2rem; line-height: 1; letter-spacing: -0.04em; color: rgba(255, 255, 255, 0.1); }
.stage__when { margin-top: 0.4rem; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--rojo-txt); }
.stage--av .stage__when { color: var(--amarillo); }
.stage .h3 { margin-top: 0.4rem; font-size: 1.5rem; }
.stage__what { margin-top: 0.6rem; color: var(--t-400); font-weight: 300; }
.stage__list { list-style: none; margin-top: 1.1rem; display: grid; gap: 0.1rem; }
.stage__list li {
  display: flex; align-items: center; gap: 0.75rem; padding: 0.6rem 0; border-bottom: 1px solid var(--line);
  font-family: var(--f-display); font-size: 0.98rem; font-weight: 500; color: var(--t-200);
}
.stage__list li::before { content: ""; width: 6px; height: 6px; border-radius: 9999px; background: currentColor; opacity: 0.5; flex: none; }
@media (min-width: 1024px) {
  .stages-wrap { padding-top: 2.25rem; }
  .stages { grid-template-columns: repeat(4, 1fr); gap: 2rem; }
  .stages__rail { display: block; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: rgba(255, 255, 255, 0.1); border-radius: 2px; overflow: hidden; }
  .stages__fill {
    display: block; height: 100%; width: 100%; transform-origin: left; transform: scaleX(var(--p, 0));
    background: linear-gradient(90deg, var(--rojo), var(--naranja) 30%, var(--amarillo) 55%, var(--amarillo) 75%, var(--rojo));
  }
  .stage { border-left: 0; padding: 0; }
  .stage__dot { left: 0; top: -2.25rem; transform: translateY(-4px); }
}
.stages-close { margin-top: 3.5rem; font-family: var(--f-display); font-weight: 700; font-size: clamp(1.4rem, 1.1rem + 1.2vw, 2rem); line-height: 1.3; max-width: 46rem; }

/* ---------- Carrusel de proyectos ---------------------------------- */
.notice {
  display: flex; gap: 0.85rem; align-items: flex-start; max-width: 44rem;
  padding: 1rem 1.2rem; border-radius: 1.1rem; margin-top: 1.5rem;
  background: linear-gradient(135deg, rgba(255, 186, 0, 0.1), rgba(237, 28, 36, 0.06)); border: 1px solid rgba(255, 186, 0, 0.3);
  font-size: 0.92rem; line-height: 1.55; color: var(--t-300);
}
.notice strong { color: var(--t-100); }
.notice svg { width: 20px; height: 20px; flex: none; margin-top: 1px; color: var(--amarillo); }
.port-ctrls { display: flex; gap: 0.75rem; }
.port-ctrl {
  width: 48px; height: 48px; border-radius: 9999px; display: inline-grid; place-items: center; cursor: pointer;
  color: var(--t-100); font-size: 1.1rem; background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.14);
  transition: background-color 0.2s, border-color 0.2s, transform 0.2s, color 0.2s;
}
.port-ctrl:hover { background: var(--amarillo); color: #1a0405; border-color: var(--amarillo); transform: translateY(-2px); }
.port-viewport { margin-top: 1rem; margin-inline: calc(var(--gut) * -1); }
.port-track {
  display: flex; gap: 1.25rem; overflow-x: auto; overflow-y: visible;
  scroll-snap-type: x mandatory; scroll-behavior: smooth; touch-action: pan-x pan-y;
  padding: 1rem var(--gut) 2rem; scrollbar-width: none;
}
.port-track::-webkit-scrollbar { display: none; }
.port-card {
  position: relative; flex: 0 0 auto; display: block; text-decoration: none; isolation: isolate;
  width: clamp(260px, 78vw, 360px); aspect-ratio: 4 / 5;
  border-radius: 1.5rem; overflow: hidden; background: var(--ink-2);
  border: 1px solid rgba(255, 255, 255, 0.08); scroll-snap-align: start;
  transition: transform 0.5s var(--ease-out), border-color 0.3s, box-shadow 0.5s;
}
.port-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: saturate(1) contrast(1.05); transition: transform 0.7s var(--ease-out); z-index: -2; }
.port-card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(8, 9, 12, 0.25) 0%, transparent 30%, rgba(8, 9, 12, 0.55) 58%, rgba(8, 9, 12, 0.97) 100%); }
.port-card__top { position: absolute; top: 1rem; left: 1rem; right: 1rem; display: flex; flex-wrap: wrap; gap: 0.4rem; }
.port-card__top .tag, .svc-card__img .tag, .line__media .tag, .detail-cover .tag, .gallery .tag, .update__img .tag, .territory .tag { background-color: rgba(8, 9, 12, 0.78); }
.port-card__info { position: absolute; left: 0; right: 0; bottom: 0; padding: 1.3rem 1.3rem 1.45rem; display: grid; gap: 0.55rem; }
.port-card__title { font-family: var(--f-display); font-weight: 700; font-size: 1.2rem; line-height: 1.22; color: #fafafa; }
.port-card__text { font-size: 0.86rem; line-height: 1.5; color: var(--t-300); }
.port-card__more { font-size: 0.85rem; font-weight: 600; color: var(--amarillo); }
@media (hover: hover) {
  .port-card:hover { transform: translateY(-6px); border-color: rgba(237, 28, 36, 0.4); box-shadow: 0 28px 50px -22px rgba(0, 0, 0, 0.85); }
  .port-card:hover img { transform: scale(1.06); }
}
.port-dots { display: flex; justify-content: center; gap: 0.75rem; }
@media (min-width: 768px) { .port-dots { display: none; } }

/* ---------- Recuperación (tarjeta con foto) ------------------------ */
.purpose {
  position: relative; isolation: isolate; overflow: hidden; border-radius: 2rem;
  padding: clamp(2rem, 1.25rem + 4vw, 4.5rem);
  background: var(--ink-2) url("assets/img/recuperacion.webp") center 30% / cover no-repeat;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.purpose::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg, rgba(8, 9, 12, 0.96) 0%, rgba(8, 9, 12, 0.9) 45%, rgba(8, 9, 12, 0.78) 100%);
}
.purpose::after { content: ""; position: absolute; bottom: -6rem; left: -4rem; width: 20rem; height: 20rem; border-radius: 9999px; background: rgba(255, 186, 0, 0.14); filter: blur(80px); z-index: -1; }
.purpose__grid { display: grid; gap: 2.5rem; }
.purpose .lead { margin-top: 1.4rem; color: var(--t-300); }
.purpose .lead + .lead { margin-top: 1rem; }
.cal-list { list-style: none; display: flex; flex-direction: column; }
.cal-item { display: flex; gap: 1rem; padding: 1.05rem 0; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
.cal-item:first-child { border-top: 1px solid rgba(255, 255, 255, 0.1); }
.cal-dot { width: 9px; height: 9px; margin-top: 0.5rem; border-radius: 9999px; background: var(--amarillo); flex: none; box-shadow: 0 0 10px 1px rgba(255, 186, 0, 0.6); }
.cal-dot--rojo { background: var(--rojo); box-shadow: 0 0 10px 1px rgba(237, 28, 36, 0.6); }
.cal-item strong { display: block; font-family: var(--f-display); font-size: 1.08rem; font-weight: 700; color: #fafafa; }
.cal-item span { display: block; margin-top: 0.15rem; font-size: 0.93rem; color: var(--t-400); }
.purpose__ref { margin-top: 1.5rem; font-size: 0.7rem; color: var(--t-500); }
@media (min-width: 1024px) { .purpose__grid { grid-template-columns: 1.1fr 1fr; gap: 4rem; align-items: center; } }

/* ---------- Proceso ------------------------------------------------ */
.steps { list-style: none; display: grid; gap: 1rem; counter-reset: s; }
.step {
  position: relative; padding: 1.5rem 1.4rem; border-radius: 1.25rem;
  background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255, 255, 255, 0.09);
}
.step__num { font-family: var(--f-display); font-weight: 800; font-size: 2.4rem; line-height: 1; color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, 0.35); }
.step .h3 { margin-top: 0.9rem; font-size: 1.08rem; }
.step p { margin-top: 0.5rem; font-size: 0.92rem; color: var(--t-400); font-weight: 300; }
.step--key { border-color: rgba(255, 186, 0, 0.45); background: linear-gradient(160deg, rgba(255, 186, 0, 0.1), rgba(255, 255, 255, 0.02)); }
.step--key .step__num { -webkit-text-stroke-color: var(--amarillo); }
.step--key .tag { margin-top: 1rem; }
@media (min-width: 640px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .steps { grid-template-columns: repeat(5, 1fr); } }

/* ---------- Contacto ----------------------------------------------- */
.contact-head { text-align: center; max-width: 48rem; margin-inline: auto; }
.contact-head .h2 { font-size: clamp(2.3rem, 1.4rem + 4vw, 4rem); text-transform: uppercase; line-height: 1; }
.contact-head .lead { margin-inline: auto; margin-top: 1.4rem; }
.contact { display: grid; gap: 2rem; margin-top: 3rem; }
@media (min-width: 1024px) { .contact { grid-template-columns: 1.35fr 1fr; gap: 2.5rem; align-items: start; } }
.form {
  display: grid; gap: 1.1rem; padding: clamp(1.25rem, 1rem + 1.5vw, 2.25rem);
  border-radius: 1.75rem; background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255, 255, 255, 0.1);
}
@media (min-width: 640px) { .form { grid-template-columns: 1fr 1fr; } .field--full { grid-column: 1 / -1; } }
.field { display: grid; gap: 0.45rem; align-content: start; }
.form-label { font-size: 0.82rem; font-weight: 500; color: var(--t-300); }
.form-input, .form-select {
  width: 100%; min-height: 3.1rem; padding: 0.85rem 1rem; font-size: 1rem; color: var(--t-100);
  background: var(--ink-2); border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 0.85rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-input::placeholder { color: #6b6b75; }
.form-input:focus, .form-select:focus { outline: none; border-color: var(--rojo); box-shadow: 0 0 0 3px rgba(237, 28, 36, 0.2); }
.form-select {
  appearance: none; -webkit-appearance: none; padding-right: 2.6rem; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23ffba00' stroke-width='2'%3E%3Cpath d='M5 8l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 0.9rem center; background-size: 18px;
}
.form-select option, .form-select optgroup { background: var(--ink-2); color: var(--t-100); }
.field-hint { font-size: 0.78rem; color: var(--t-500); }
.field-error { font-size: 0.8rem; color: #ffb4b7; }
.field.is-invalid .form-input, .field.is-invalid .form-select { border-color: var(--rojo); }
.check { display: grid; grid-template-columns: 22px 1fr; gap: 0.7rem; align-items: start; font-size: 0.86rem; line-height: 1.5; color: var(--t-300); cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--amarillo); cursor: pointer; }
.check a { color: var(--t-100); }
.form-note { margin-top: 0.75rem; font-size: 0.78rem; line-height: 1.5; color: var(--t-500); text-align: center; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }

.form-status {
  display: grid; gap: 1rem; justify-items: center; text-align: center;
  padding: clamp(2rem, 1.5rem + 2vw, 3rem) 1.5rem; border-radius: 1.75rem;
  background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255, 186, 0, 0.35);
}
.form-status--error { border-color: rgba(237, 28, 36, 0.45); }
.form-status .h3 { font-size: 1.5rem; }
.form-status .kicker { margin: 0; }
.check-svg { width: 76px; height: 76px; }
.check-svg circle { fill: none; stroke: rgba(255, 186, 0, 0.25); stroke-width: 3; }
.check-svg path { fill: none; stroke: var(--amarillo); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 48; stroke-dashoffset: 48; }
.form-status.is-shown .check-svg path { animation: drawCheck 0.7s 0.25s var(--ease-out) forwards; }
@keyframes drawCheck { to { stroke-dashoffset: 0; } }

.aside { display: grid; gap: 1.25rem; }
.glass {
  padding: 1.6rem; border-radius: 1.5rem;
  background: rgba(255, 255, 255, 0.035); border: 1px solid rgba(255, 255, 255, 0.1);
}
.glass .h3 { font-size: 1.12rem; }
.glass > * + * { margin-top: 0.75rem; }
.wa-num { font-family: var(--f-display); font-weight: 700; font-size: 1.35rem; letter-spacing: 0.01em; }
.cov { display: grid; gap: 1rem; }
.cov div { padding-left: 1rem; border-left: 2px solid var(--rojo); }
.cov div + div { border-left-color: var(--amarillo); }
.cov strong { display: block; font-family: var(--f-display); font-size: 0.98rem; }
.cov p { margin-top: 0.2rem; font-size: 0.88rem; color: var(--t-400); }
.after-list { list-style: none; counter-reset: a; display: grid; gap: 0.8rem; }
.after-list li { counter-increment: a; display: grid; grid-template-columns: 1.9rem 1fr; gap: 0.6rem; font-size: 0.92rem; color: var(--t-300); }
.after-list li::before {
  content: counter(a); display: grid; place-items: center; width: 1.7rem; height: 1.7rem; border-radius: 9999px;
  font-family: var(--f-display); font-weight: 800; font-size: 0.78rem; color: #1a0405; background: var(--amarillo);
}

/* ---------- Soluciones (página) ------------------------------------ */
.jump { display: flex; flex-wrap: wrap; gap: 0.55rem; margin-top: 2rem; list-style: none; }
.jump a { display: inline-flex; align-items: center; min-height: 2.5rem; padding: 0.45rem 1rem; border-radius: 9999px; font-size: 0.88rem; text-decoration: none; color: var(--t-200); background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.14); transition: border-color 0.2s, color 0.2s; }
.jump a:hover { border-color: var(--amarillo); color: var(--amarillo); }

.line { display: grid; gap: 2rem; padding-block: clamp(3.5rem, 2.5rem + 3vw, 5.5rem); border-bottom: 1px solid var(--line); }
.line:last-child { border-bottom: 0; }
.line__media { position: relative; overflow: hidden; border-radius: 1.5rem; aspect-ratio: 4 / 3; border: 1px solid rgba(255, 255, 255, 0.08); }
.line__media img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.9) contrast(1.05); }
.line__media .tag--ref { position: absolute; left: 0.9rem; bottom: 0.9rem; font-size: 0.6rem; }
.line__head .svc-num { margin-bottom: 1rem; }
.line__head .lead { margin-top: 1rem; }
.line__head .tags { margin-top: 1.25rem; }
.line__cols { display: grid; gap: 1.75rem; margin-top: 2rem; }
.line__cols h4 { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--amarillo); margin-bottom: 0.75rem; }
.ticks { list-style: none; display: grid; gap: 0.6rem; }
.ticks li { position: relative; padding-left: 1.4rem; color: var(--t-300); font-size: 0.95rem; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 7px; height: 7px; border-radius: 9999px; background: var(--rojo); box-shadow: 0 0 8px rgba(237, 28, 36, 0.6); }
.ticks--av li::before { background: var(--amarillo); box-shadow: 0 0 8px rgba(255, 186, 0, 0.6); }
.ticks strong { color: var(--t-100); font-weight: 600; }
@media (min-width: 1024px) {
  .line { grid-template-columns: 5fr 7fr; gap: 4rem; align-items: start; }
  .line:nth-child(even) .line__media { order: 2; }
  .line__cols { grid-template-columns: 1fr 1fr; gap: 2rem 2.5rem; }
  .line__cols .span-2 { grid-column: 1 / -1; }
}

.modes { display: grid; gap: 1.25rem; }
@media (min-width: 1024px) { .modes { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; } }
.mode {
  position: relative; display: flex; flex-direction: column; gap: 1rem; padding: 1.75rem;
  border-radius: 1.5rem; background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255, 255, 255, 0.1);
}
.mode--feature { border-color: rgba(255, 186, 0, 0.45); background: linear-gradient(160deg, rgba(255, 186, 0, 0.09), rgba(237, 28, 36, 0.05)); }
.mode .h3 { font-size: 1.3rem; }
.mode__for { color: var(--t-400); font-size: 0.95rem; }
.mode dl { display: grid; border-top: 1px solid var(--line); }
.mode dl > div { padding-block: 0.85rem; border-bottom: 1px solid var(--line); display: grid; gap: 0.2rem; }
.mode dt { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--amarillo); }
.mode dd { font-size: 0.93rem; color: var(--t-200); }

.split { display: grid; gap: 1.25rem; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: 1.5rem; } }
.box { padding: 1.75rem; border-radius: 1.5rem; background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255, 255, 255, 0.1); display: grid; gap: 1rem; align-content: start; }
.box--no { border-style: dashed; border-color: rgba(255, 255, 255, 0.2); background: transparent; }
.xlist { list-style: none; display: grid; gap: 0.65rem; }
.xlist li { position: relative; padding-left: 1.6rem; color: var(--t-300); }
.xlist li::before { content: "✕"; position: absolute; left: 0; top: 0; font-size: 0.8rem; color: var(--rojo-txt); }

.faq { max-width: 54rem; border-top: 1px solid var(--line-2); }
.faq details { border-bottom: 1px solid var(--line-2); }
.faq summary {
  position: relative; cursor: pointer; list-style: none; padding: 1.25rem 2.5rem 1.25rem 0;
  font-family: var(--f-display); font-weight: 700; font-size: 1.08rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 0; top: 0.95rem; width: 30px; height: 30px; border-radius: 9999px;
  display: grid; place-items: center; font-size: 1.2rem; color: #1a0405; background: var(--amarillo); transition: transform 0.3s var(--ease-out);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 1.35rem; color: var(--t-400); max-width: 46rem; }

.principles { list-style: none; display: grid; gap: 1.25rem; }
@media (min-width: 720px) { .principles { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .principles { grid-template-columns: repeat(4, 1fr); } }
.principles li { padding: 1.5rem; border-radius: 1.25rem; background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255, 255, 255, 0.09); }
.principles li::before { content: ""; display: block; width: 28px; height: 3px; border-radius: 3px; background: linear-gradient(90deg, var(--rojo), var(--amarillo)); margin-bottom: 1rem; }
.principles p { margin-top: 0.5rem; font-size: 0.93rem; color: var(--t-400); }

.territory { position: relative; overflow: hidden; border-radius: 2rem; min-height: 22rem; isolation: isolate; display: flex; align-items: flex-end; padding: clamp(1.75rem, 1rem + 3vw, 3.5rem); border: 1px solid rgba(255, 255, 255, 0.08); }
.territory img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.territory::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(8, 9, 12, 0.1) 0%, rgba(8, 9, 12, 0.55) 55%, rgba(8, 9, 12, 0.95) 100%); }
.territory .tag--ref { position: absolute; top: 1rem; right: 1rem; font-size: 0.6rem; }

.cta-band {
  position: relative; overflow: hidden; isolation: isolate; display: grid; gap: 1.5rem;
  padding: clamp(2rem, 1.5rem + 3vw, 3.5rem); border-radius: 2rem;
  background: radial-gradient(120% 140% at 0% 0%, rgba(237, 28, 36, 0.22), transparent 55%), radial-gradient(120% 140% at 100% 100%, rgba(255, 186, 0, 0.16), transparent 55%), var(--ink-2);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.cta-band .h2 { font-size: clamp(1.7rem, 1.3rem + 1.8vw, 2.6rem); }
@media (min-width: 900px) { .cta-band { grid-template-columns: 1fr auto; align-items: center; gap: 2.5rem; } }

/* ---------- Ficha de proyecto -------------------------------------- */
.filters { display: flex; flex-wrap: wrap; gap: 0.55rem; margin-bottom: 2rem; }
.filter {
  min-height: 2.6rem; padding: 0.5rem 1.1rem; border-radius: 9999px; cursor: pointer; font-size: 0.9rem; font-weight: 500;
  color: var(--t-200); background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.14); transition: all 0.2s;
}
.filter:hover { border-color: rgba(255, 255, 255, 0.4); }
.filter[aria-pressed="true"] { color: #1a0405; background: var(--amarillo); border-color: var(--amarillo); font-weight: 700; }
.p-grid { display: grid; gap: 1.25rem; }
@media (min-width: 720px) { .p-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .p-grid { grid-template-columns: repeat(3, 1fr); } }
.p-grid .port-card { width: 100%; }
.detail-cover { position: relative; overflow: hidden; border-radius: 1.75rem; aspect-ratio: 16 / 9; border: 1px solid rgba(255, 255, 255, 0.08); }
.detail-cover img { width: 100%; height: 100%; object-fit: cover; }
.detail-cover .tag--ref, .gallery figure .tag--ref, .update__img .tag--ref { position: absolute; left: 0.9rem; bottom: 0.9rem; font-size: 0.6rem; }
.detail-grid { display: grid; gap: 1.25rem; margin-top: 2rem; }
@media (min-width: 900px) { .detail-grid { grid-template-columns: 1fr 1fr; } }
.detail-grid .glass h2 { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--amarillo); }
.detail-grid .glass p { color: var(--t-300); }
.gallery { display: grid; gap: 1rem; }
@media (min-width: 720px) { .gallery { grid-template-columns: repeat(3, 1fr); } }
.gallery figure { position: relative; overflow: hidden; border-radius: 1.25rem; aspect-ratio: 4 / 3; border: 1px solid rgba(255, 255, 255, 0.08); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease-out); }
@media (hover: hover) { .gallery figure:hover img { transform: scale(1.05); } }
.timeline { list-style: none; display: grid; }
.update { position: relative; display: grid; gap: 0.75rem; padding: 0 0 2.5rem 2rem; border-left: 1px solid rgba(255, 255, 255, 0.14); }
.update:last-child { padding-bottom: 0; }
.update::before { content: ""; position: absolute; left: -6px; top: 0.35rem; width: 11px; height: 11px; border-radius: 9999px; background: var(--amarillo); box-shadow: 0 0 12px 2px rgba(255, 186, 0, 0.55); }
.update__label { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--amarillo); }
.update p { color: var(--t-300); }
.update__img { position: relative; overflow: hidden; border-radius: 1rem; aspect-ratio: 4 / 3; max-width: 30rem; border: 1px solid rgba(255, 255, 255, 0.08); }
.update__img img { width: 100%; height: 100%; object-fit: cover; }
.update__src { font-size: 0.82rem; color: var(--t-500); border-top: 1px solid var(--line); padding-top: 0.6rem; }
@media (min-width: 900px) { .update { grid-template-columns: 1fr 22rem; column-gap: 2.5rem; } .update__img { grid-column: 2; grid-row: 1 / span 4; } }
.empty { padding: 2rem; border-radius: 1.25rem; border: 1px dashed rgba(255, 255, 255, 0.2); color: var(--t-400); }

/* ---------- Créditos ----------------------------------------------- */
.credits { list-style: none; display: grid; gap: 0.9rem; }
.credits li { display: grid; grid-template-columns: 96px 1fr; gap: 1rem; align-items: center; padding: 0.9rem; border-radius: 1rem; background: rgba(255, 255, 255, 0.03); border: 1px solid var(--line); }
.credits img { width: 96px; height: 64px; object-fit: cover; border-radius: 0.6rem; }
.credits p { min-width: 0; font-size: 0.88rem; color: var(--t-300); overflow-wrap: anywhere; }
.credits a { color: var(--t-100); }
.prose { max-width: 46rem; }
.prose p { color: var(--t-300); }
.prose p + p, .prose h2 + p { margin-top: 0.75rem; }
.prose h2 { margin-top: 2.25rem; font-family: var(--f-display); font-size: 1.25rem; }

/* ---------- Pie de página ------------------------------------------ */
.footer { background: var(--ink-2); border-top: 1px solid rgba(255, 255, 255, 0.05); padding-block: 3.5rem 6.5rem; }
@media (min-width: 1024px) { .footer { padding-bottom: 3rem; } }
.footer__grid { display: grid; gap: 2.25rem; }
@media (min-width: 768px) { .footer__grid { grid-template-columns: 1.8fr 1fr 1.3fr; gap: 3rem; } }
.footer__label { display: block; margin-bottom: 0.9rem; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--t-500); }
.footer__list { list-style: none; display: grid; gap: 0.55rem; font-size: 0.93rem; color: var(--t-300); }
.footer__list a { text-decoration: none; color: var(--t-300); transition: color 0.2s; }
.footer__list a:hover { color: var(--amarillo); }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.75rem 1.5rem; margin-top: 2.75rem; padding-top: 1.4rem; border-top: 1px solid var(--line); font-size: 0.82rem; color: var(--t-500); }
.footer__bottom a { color: var(--t-400); }

/* ---------- Barra de contacto en celular --------------------------- */
.mcta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
  display: flex; gap: 0.6rem; padding: 0.7rem var(--gut) calc(0.7rem + env(safe-area-inset-bottom));
  background: rgba(8, 9, 12, 0.92); border-top: 1px solid rgba(255, 255, 255, 0.1);
  transform: translateY(110%); visibility: hidden; transition: transform 0.3s var(--ease-out), visibility 0.3s;
}
@supports (backdrop-filter: blur(12px)) { .mcta { background: rgba(8, 9, 12, 0.75); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); } }
.mcta.is-visible { transform: none; visibility: visible; }
.mcta .btn-primary { flex: 1; min-height: 3rem; padding: 0.7rem 1rem; white-space: nowrap; }
.mcta .arrow { display: none; }
.mcta .btn-ghost { width: 3rem; min-height: 3rem; padding: 0; }
@media (min-width: 1024px) { .mcta { display: none; } }

/* ---------- Aviso de cookies (solo si se activa el Pixel) ---------- */
.cookie {
  position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 70; max-width: 40rem; margin-inline: auto;
  display: flex; flex-wrap: wrap; gap: 0.9rem; align-items: center; padding: 1rem 1.2rem; border-radius: 1.1rem;
  background: rgba(14, 16, 21, 0.96); border: 1px solid rgba(255, 255, 255, 0.12); box-shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.85);
  font-size: 0.85rem; color: var(--t-300);
}
.cookie p { flex: 1 1 18rem; }
.cookie div { display: flex; gap: 0.5rem; }

/* ---------- Aparición al hacer scroll ------------------------------
   Si el JS no corre, el contenido se ve igual (la clase .js la pone main.js). */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-split] { opacity: 1; transform: none; }   /* red de seguridad (gotcha A.4.5) */
.js .reveal-d1 { transition-delay: 0.08s; }
.js .reveal-d2 { transition-delay: 0.16s; }
.js .reveal-d3 { transition-delay: 0.24s; }

/* Solo se reducen los movimientos realmente intrusivos */
@media (prefers-reduced-motion: reduce) {
  .hero-bg { animation: none; }
  .live-dot { animation: none; }
  .ticker__track { animation-duration: 110s; }
}
