/* Más Técnica · base común (colores, tipografía, encabezado, pie, botones,
   lista LED, línea de tiempo y preguntas frecuentes). Referencia: prototipo v27. */

/* ---------- Fuente propia ---------- */
@font-face {
  font-family: 'Hanken Grotesk';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('/fonts/hanken-grotesk-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Colores y medidas ---------- */
:root {
  --fondo: #111111;
  --superficie: #1A1A1A;
  --linea: #444444;
  --linea-suave: #1A1A1A;
  --texto-2: #8A8A8A;
  --texto: #F4F4F2;
  --blanco: #FFFFFF;
  --verde-marca: #033b13;
  --verde-senal: #4CAF6E;

  --margen: clamp(24px, 6.5vw, 96px);
  --head-h: calc(clamp(96px, 8vw, 112px) * .616 + 25px);
  --ez: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--fondo);
  color: var(--blanco);
  font-family: 'Hanken Grotesk', system-ui, sans-serif;
  font-size: clamp(17px, 1.3vw, 18px);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { max-width: 100%; height: auto; }
a { color: var(--blanco); }
a:hover { color: var(--texto); }

a:focus-visible, button:focus-visible, summary:focus-visible,
input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--verde-senal);
  outline-offset: 3px;
}
#formulario :focus-visible { outline-color: var(--verde-marca); }

/* El encabezado fijo no tapa los títulos al llegar a una sección */
section[id], [id="formulario"] { scroll-margin-top: var(--head-h); }

.sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.wrap { padding-left: var(--margen); padding-right: var(--margen); }

/* ---------- Tipografía (celular / escritorio) ---------- */
h1, h2, h3 { margin: 0; letter-spacing: -.02em; }
h1 { font-size: clamp(40px, 5.2vw, 72px); line-height: 1.05; }
h2 { font-size: clamp(32px, 3.75vw, 48px); line-height: 1.1; }
h3 { font-size: clamp(22px, 1.9vw, 26px); line-height: 1.25; letter-spacing: -.01em; }
.t-light { font-weight: 300; }
.t-bold { font-weight: 700; }
.bajada { margin: 0; max-width: 34ch; font-size: clamp(19px, 1.6vw, 22px); line-height: 1.45; color: var(--texto); }
.cuerpo { margin: 0; max-width: 68ch; color: var(--texto); }
.leyenda { font-size: 14px; color: var(--texto-2); }
.lab { display: flex; align-items: center; gap: 16px; font-size: clamp(13px, 1vw, 14px); letter-spacing: .14em; text-transform: uppercase; color: var(--texto-2); }
.lab::after { content: ''; flex: 1; height: 1px; background: var(--linea); }

/* ---------- Botones ---------- */
.btn-w {
  display: inline-flex; align-items: center; min-height: 52px; padding: 0 26px;
  background: var(--blanco); color: var(--fondo); border-radius: 2px;
  font-weight: 700; font-size: 17px; text-decoration: none;
}
.btn-w:hover { color: var(--fondo); background: var(--texto); }

@property --a { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
.led {
  position: relative; isolation: isolate;
  display: inline-flex; align-items: center; min-height: 52px; padding: 0 24px;
  border: 1px solid var(--linea); border-radius: 2px;
  font-size: 17px; font-weight: 500; text-decoration: none; color: var(--blanco);
  transition: border-color .3s ease, text-shadow .3s ease;
  -webkit-tap-highlight-color: transparent;
}
.led::before, .led::after {
  content: ''; position: absolute; inset: -1px; border-radius: 2px; padding: 1.5px;
  background: conic-gradient(from var(--a), rgba(76,175,110,0) 0deg, rgba(76,175,110,0) 250deg, #4CAF6E 320deg, #DFF7E7 352deg, rgba(76,175,110,0) 360deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity .3s ease; pointer-events: none;
}
.led::after { filter: blur(7px); z-index: -1; }
.led:hover, .led:focus-visible, .led:active { border-color: rgba(76,175,110,.35); text-shadow: 0 0 12px rgba(76,175,110,.55); color: var(--blanco); }
.led:hover::before, .led:hover::after,
.led:focus-visible::before, .led:focus-visible::after,
.led:active::before, .led:active::after { opacity: 1; animation: spin 2.4s linear infinite; }
@keyframes spin { to { --a: 360deg; } }

.arrow-l { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; font-size: 17px; font-weight: 500; text-decoration: none; }

/* ---------- Lista LED ----------
   Se enciende fila por fila al llegar (clase .on, la pone el JS de efectos).
   Sin la clase .fx en <html> (sin efectos o con menos movimiento) queda encendida y se lee completa. */
.beam { position: absolute; left: 0; top: -1px; height: 1px; width: 0; background: rgba(76,175,110,.45); pointer-events: none; }
.beam::after { content: ''; position: absolute; right: -2px; top: -1px; width: 40px; height: 3px; border-radius: 2px; background: linear-gradient(90deg, rgba(76,175,110,0), #4CAF6E 60%, #DFF7E7); box-shadow: 0 0 10px rgba(76,175,110,.8); opacity: 0; }
.led-dot { display: block; width: 8px; height: 8px; border-radius: 1px; background: #262626; }
:root:not(.fx) .beam, .on > .beam { width: 100%; }
.on > .beam { transition: width 1s cubic-bezier(.45,0,.2,1) .18s; }
.on > .beam::after { animation: head 1.25s ease forwards; }
:root:not(.fx) .led-dot, .on .led-dot { background: var(--verde-senal); box-shadow: 0 0 10px rgba(76,175,110,.75); }
.on .led-dot { animation: flick .45s steps(1,end) 1; }
@keyframes head { 0%, 12% { opacity: 0; } 20% { opacity: 1; } 82% { opacity: 1; } 100% { opacity: 0; } }
@keyframes flick { 0% { background: #262626; box-shadow: none; } 25% { background: #4CAF6E; box-shadow: 0 0 10px rgba(76,175,110,.75); } 45% { background: #2B5A3A; box-shadow: none; } 65% { background: #4CAF6E; box-shadow: 0 0 10px rgba(76,175,110,.75); } }

/* Variante de las páginas de servicio («¿Qué incluye…?») */
.inc { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--linea-suave); }
.inc-row { position: relative; display: grid; grid-template-columns: 8px 30px minmax(0,1fr); column-gap: 14px; align-items: baseline; padding: 18px 0; border-top: 1px solid var(--linea-suave); }
.inc-row p { margin: 0; color: var(--texto); }
.inc-row strong { color: var(--blanco); font-weight: 700; }
.inc-row .led-dot { align-self: start; margin-top: 9px; }
.inc-n, .led-n { font-size: 13px; font-weight: 500; letter-spacing: .14em; color: var(--texto-2); }

/* Variante de Inicio («Cómo trabajamos»), con descripción desplegable */
.led-list { list-style: none; margin: 20px 0 0; padding: 0; border-bottom: 1px solid var(--linea-suave); }
.led-row { position: relative; border-top: 1px solid var(--linea-suave); }
.led-hit { display: grid; grid-template-columns: 8px 30px minmax(0,1fr) 24px; align-items: center; column-gap: 14px; width: 100%; min-height: 64px; padding: 12px 0; background: transparent; border: 0; color: var(--blanco); font: inherit; text-align: left; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.led-t { font-size: clamp(18px, 1.6vw, 22px); font-weight: 700; line-height: 1.25; color: var(--texto); transition: color .5s ease; }
.led-n { transition: color .5s ease; }
.led-chev { color: var(--texto-2); transition: transform .35s var(--ez), color .5s ease; }
.fx .led-row:not(.on) .led-n, .fx .led-row:not(.on) .led-t, .fx .led-row:not(.on) .led-chev { color: var(--linea); }
.led-hit:hover .led-t { color: var(--blanco); }
.led-row.open .led-chev { transform: rotate(180deg); color: var(--blanco); }
.led-d { min-height: 0; overflow: hidden; margin: 0; padding: 0 38px 18px 52px; font-size: 16px; line-height: 1.5; color: var(--texto-2); }
:root:not(.fx) .led-chev { display: none; }
.fx .led-dw { display: grid; grid-template-rows: 0fr; visibility: hidden; transition: grid-template-rows .45s var(--ez), visibility 0s linear .45s; }
.fx .led-row.open .led-dw { grid-template-rows: 1fr; visibility: visible; transition: grid-template-rows .45s var(--ez), visibility 0s; }
.fx .led-d { padding-bottom: 0; transition: padding .45s ease; }
.fx .led-row.open .led-d { padding-bottom: 18px; }

/* ---------- Línea de tiempo ---------- */
.tl { list-style: none; margin: 0; padding: 0; }
.tl-row { position: relative; padding: 0 0 30px 40px; }
.tl-row:last-child { padding-bottom: 0; }
.tl-row::before { content: ''; position: absolute; left: 5px; top: 16px; bottom: -4px; width: 1px; background: var(--linea); }
.tl-row::after { content: ''; position: absolute; left: 5px; top: 16px; width: 1px; height: 0; background: var(--blanco); transition: height .7s var(--ez); }
.tl-row:last-child::before, .tl-row:last-child::after { display: none; }
:root:not(.fx) .tl-row::after, .tl-row.pass::after { height: calc(100% - 12px); }
.tl-node { position: absolute; left: 0; top: 6px; width: 11px; height: 11px; border-radius: 50%; border: 1px solid var(--texto-2); background: var(--superficie); transition: background-color .4s ease, border-color .4s ease, transform .5s var(--ez); }
:root:not(.fx) .tl-node, .tl-row.on .tl-node { background: var(--blanco); border-color: var(--blanco); transform: scale(1.2); }
.tl-row p { margin: 0; font-size: clamp(18px, 1.5vw, 21px); line-height: 1.45; color: var(--texto); }
.tl-row strong { display: block; margin-bottom: 2px; color: var(--blanco); font-weight: 700; }

/* ---------- Preguntas frecuentes ---------- */
.faq { border-top: 1px solid var(--linea-suave); }
.faq:last-child { border-bottom: 1px solid var(--linea-suave); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; cursor: pointer; list-style: none; font-size: clamp(17px, 1.4vw, 20px); font-weight: 500; -webkit-tap-highlight-color: transparent; }
.faq summary::-webkit-details-marker { display: none; }
.faq svg { flex: none; color: var(--texto-2); transition: transform .3s ease; }
.faq[open] svg { transform: rotate(180deg); color: var(--blanco); }
.faq p { margin: 0; padding: 0 40px 20px 0; font-size: 17px; line-height: 1.55; color: var(--texto); }
.faq p a { text-underline-offset: 4px; }

/* ---------- Encabezado ---------- */
.site-head {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 12px var(--margen);
  background: var(--fondo); border-bottom: 1px solid var(--linea-suave);
}
.site-logo { display: block; line-height: 0; }
.site-logo img { width: clamp(96px, 8vw, 112px); height: auto; }
.nav-links { display: flex; align-items: center; gap: 32px; font-size: 15px; font-weight: 500; }
.nav-links a { text-decoration: none; }
.nav-cta { display: inline-flex; align-items: center; min-height: 44px; padding: 0 20px; background: var(--blanco); color: var(--fondo) !important; border-radius: 2px; font-weight: 700; }
.nav-cta:hover { background: var(--texto); }
.menu-btn { display: none; align-items: center; gap: 10px; min-height: 44px; padding: 0 4px; background: transparent; border: 0; color: var(--blanco); font: inherit; font-size: 15px; font-weight: 500; cursor: pointer; }
.mob-menu { position: absolute; left: 0; right: 0; top: 100%; display: flex; flex-direction: column; max-height: calc(100vh - var(--head-h)); overflow-y: auto; padding: 8px var(--margen) 24px; background: var(--fondo); border-bottom: 1px solid var(--linea); }
.mob-menu[hidden] { display: none; }
.mob-menu a { font-size: 22px; text-decoration: none; padding: 14px 0; border-bottom: 1px solid var(--linea); }
.mob-menu .mob-cta { margin-top: 20px; padding: 16px 20px; border: 0; background: var(--blanco); color: var(--fondo); border-radius: 2px; font-weight: 700; text-align: center; }

/* ---------- Pie ---------- */
/* 88 px de aire abajo: el botón flotante (16 + 56 px) no tapa la última línea al llegar al final */
.site-foot { padding: clamp(48px, 6vw, 80px) var(--margen) 88px; background: var(--fondo); }
.foot-cols { display: grid; grid-template-columns: minmax(0,1.4fr) repeat(4, minmax(0,1fr)); gap: 32px 24px; padding-top: 32px; border-top: 1px solid var(--linea); font-size: 15px; line-height: 1.8; }
.foot-cols a { display: block; text-decoration: none; }
.foot-cols span { display: block; }
.foot-brand img { display: block; width: clamp(110px, 9vw, 130px); height: auto; }
.foot-brand p { margin: 16px 0 0; color: var(--texto-2); }
.foot-tit { margin: 0 0 8px; color: var(--texto-2); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; }
.foot-salones { margin: 32px 0 0; padding-top: 24px; border-top: 1px solid var(--linea-suave); font-size: 14px; color: var(--texto-2); }
.foot-copy { margin: 16px 0 0; font-size: 13px; color: var(--texto-2); }

/* Botón flotante de WhatsApp: solo en el celular */
/* Botón flotante de WhatsApp: siempre a la vista, en el celular y en la computadora, abajo a la derecha.
   Con el verde y el logo oficiales de WhatsApp (única excepción a los colores del sitio, sección 5 de CLAUDE.md).
   Sin animación de entrada. */
.wa-float { display: flex; position: fixed; right: 16px; bottom: 16px; z-index: 60; width: 56px; height: 56px; align-items: center; justify-content: center; background: #25D366; color: #FFFFFF; border-radius: 50%; box-shadow: 0 6px 18px rgba(0,0,0,.35); }
.wa-float:hover { color: #FFFFFF; background: #1EBE5A; }

/* ---------- Entradas por sección ----------
   Se disparan una sola vez al llegar a la sección (la clase .in la pone js/efectos.js). */
.fx [data-rv] { opacity: 0; transform: translateY(24px); }
.fx [data-rv].in { opacity: 1; transform: none; transition: opacity .8s ease var(--d, 0ms), transform .9s var(--ez) var(--d, 0ms); }

/* ---------- Signo de pausa ---------- */
.pz { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; padding: 0; background: transparent; border: 0; color: var(--texto-2); cursor: pointer; -webkit-tap-highlight-color: transparent; }
.pz-i { display: block; width: 8px; height: 10px; border-left: 2px solid var(--texto-2); border-right: 2px solid var(--texto-2); opacity: .8; }
.pz.is-paused .pz-i { width: 0; height: 0; border-right: 0; border-left: 8px solid var(--texto-2); border-top: 5px solid transparent; border-bottom: 5px solid transparent; }
.pz:hover .pz-i { opacity: 1; }
html:not(.fx) .pz { display: none; }
/* Ahorro de datos: sin videos no hay nada que pausar (la cinta y la evolución del logo siguen) */
.sin-video .pz-hero, .sin-video .pz-sv { display: none; }

/* ---------- Celular ---------- */
@media (max-width: 820px) {
  .nav-links { display: none; }
  .menu-btn { display: inline-flex; }
  .led-hit { min-height: 58px; padding: 10px 0; column-gap: 12px; }
  .led-d { padding-left: 50px; padding-right: 30px; }
  .foot-cols { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 20px 24px; line-height: 1.6; }
  .foot-brand, .foot-contacto { grid-column: 1 / -1; }
}

/* ---------- Menos movimiento ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .pz { display: none !important; }
}
