/* =================================================================
   ODUN ARTS — mockup v1 · extensiones sobre tokens Tandem
   (se carga después de style.css; solo overrides y piezas nuevas)
   ================================================================= */

/* -------- BRAND · odun arts -------- */
.brand__serif {
  font-style: italic;
  margin-right: 0.02em;
}
.brand__dot--sm { width: 0.18em; height: 0.18em; }

/* -------- RIBBON · toggle 3 idiomas -------- */
.lang-opt { color: var(--steel); transition: color 240ms var(--ease); }
.lang-opt.is-active { color: var(--bone); }

/* -------- CAPS · grid de 4 (2×2 en desktop) -------- */
@media (min-width: 1081px) {
  .caps__grid--four { grid-template-columns: repeat(2, 1fr); }
  .caps__grid--four .cap { min-height: auto; }
}

/* -------- PRICING · grid de 4 -------- */
@media (min-width: 1081px) {
  .pricing__grid--four { grid-template-columns: repeat(4, 1fr); }
  .pricing__grid--four .price { min-height: 620px; padding: var(--s-5); }
}
@media (min-width: 761px) and (max-width: 1080px) {
  .pricing__grid--four { grid-template-columns: repeat(2, 1fr); }
}

/* -------- DIAGNÓSTICO 48H · banda oscura -------- */
.diag {
  background: var(--ink);
  color: var(--bone);
  padding-block: var(--s-11, 7rem);
  border-top: 1px solid var(--line-d);
  border-bottom: 1px solid var(--line-d);
}
.diag__grid {
  display: grid;
  grid-template-columns: 1.4fr 0.6fr;
  gap: var(--s-8);
  align-items: center;
}
.diag__title {
  font-family: var(--f-display);
  font-size: var(--t-display-l);
  line-height: 1.04;
  letter-spacing: -0.02em;
  font-weight: 400;
  margin-top: var(--s-4);
  display: flex; flex-direction: column;
}
.diag__title em { color: var(--signal); font-style: italic; }
.diag__sub {
  margin-top: var(--s-4);
  max-width: 56ch;
  font-size: var(--t-body-l);
  line-height: 1.65;
  color: var(--ink-10);
}
.diag__sub strong { color: var(--bone); font-weight: 600; }
.diag__steps {
  margin-top: var(--s-5);
  display: flex; align-items: center; flex-wrap: wrap;
  gap: var(--s-3);
  font-family: var(--f-mono);
  font-size: var(--t-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-30);
}
.diag__step {
  display: inline-flex; align-items: center; gap: 0.55em;
  border: 1px solid var(--line-d);
  padding: 0.55em 0.9em;
  border-radius: 999px;
  color: var(--bone);
}
.diag__step-n {
  display: inline-grid; place-items: center;
  width: 1.5em; height: 1.5em;
  border-radius: 50%;
  background: var(--signal);
  color: var(--bone);
  font-weight: 500;
}
.diag__arrow { color: var(--signal); }
.diag .btn--primary {
  background: var(--signal);
  color: var(--bone);
}
.diag .btn--primary:hover { background: #C92C39; }
.diag .btn--primary .btn__dot { background: var(--bone); }
.diag__cta {
  display: flex; flex-direction: column;
  align-items: flex-start;
  gap: var(--s-3);
  justify-self: end;
}
.diag__note {
  font-family: var(--f-mono);
  font-size: var(--t-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-30);
  max-width: 24ch;
  line-height: 1.7;
}

/* -------- FOOTER simple -------- */
.footer {
  border-top: 1px solid var(--line-d);
  margin-top: var(--s-9);
}
.footer__inner {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: var(--s-3);
  padding-block: var(--s-5);
}
.footer__brand {
  font-family: var(--f-display);
  font-size: 1.3rem;
  letter-spacing: -0.02em;
  color: var(--bone);
  display: inline-flex; align-items: baseline;
}
.footer__legal, .footer__meta {
  font-family: var(--f-mono);
  font-size: var(--t-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--steel);
}
.footer__mono { color: var(--signal); }
.contact__fine {
  margin-top: var(--s-3);
  font-size: 0.78rem;
  color: var(--steel);
  line-height: 1.6;
}

/* -------- PORTRAIT sin foto · variante data -------- */
.about__portrait-img--data {
  background:
    radial-gradient(ellipse at 30% 20%, rgba(230,57,70,0.14), transparent 55%),
    var(--ink);
}

/* -------- WHATSAPP FLOTANTE -------- */
.wa-float {
  position: fixed;
  right: max(1.1rem, env(safe-area-inset-right));
  bottom: max(1.1rem, env(safe-area-inset-bottom));
  z-index: 90;
  display: grid; place-items: center;
  width: 3.4rem; height: 3.4rem;
  border-radius: 50%;
  background: var(--signal);
  color: var(--bone);
  box-shadow: 0 10px 30px rgba(11,11,14,0.35);
  transition: transform 280ms var(--ease-out), box-shadow 280ms var(--ease-out);
  cursor: pointer;
}
.wa-float svg { width: 1.7rem; height: 1.7rem; }
.wa-float:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 16px 40px rgba(230,57,70,0.35);
}
.wa-float:focus-visible {
  outline: 2px solid var(--bone);
  outline-offset: 3px;
}

/* -------- RESPONSIVE de las piezas nuevas -------- */
@media (max-width: 1080px) {
  .diag__grid { grid-template-columns: 1fr; gap: var(--s-6); }
  .diag__cta { justify-self: start; }
}
@media (max-width: 760px) {
  .wa-float { width: 3.1rem; height: 3.1rem; }
  .diag__steps { gap: 0.5rem; }
  .diag__arrow { display: none; }
}

/* =================================================================
   TECH LAYER · v2 — sans-forward + blueprint + terminal
   ================================================================= */

/* -------- 1 · Tipografía: sans al frente, serif solo como acento -------- */
.hero__title {
  font-family: var(--f-sans);
  font-weight: 650;
  letter-spacing: -0.045em;
  line-height: 0.98;
}
.hero__title em {
  font-family: var(--f-display);
  font-weight: 400;
  letter-spacing: -0.02em;
}
.section__title {
  font-family: var(--f-sans);
  font-weight: 650;
  letter-spacing: -0.035em;
  line-height: 1.02;
}
.section__title em {
  font-family: var(--f-display);
  font-weight: 400;
  font-style: italic;
  letter-spacing: -0.015em;
}
.diag__title, .contact__title {
  font-family: var(--f-sans);
  font-weight: 650;
  letter-spacing: -0.035em;
}
.diag__title em, .contact__title em {
  font-family: var(--f-display);
  font-weight: 400;
  font-style: italic;
}
.cap__title {
  font-family: var(--f-sans);
  font-weight: 600;
  font-size: 2rem;
  letter-spacing: -0.03em;
}
.price__title {
  font-family: var(--f-sans);
  font-weight: 600;
  font-size: 1.6rem;
  letter-spacing: -0.025em;
}
.note__title {
  font-family: var(--f-sans);
  font-weight: 600;
  font-size: 1.32rem;
  letter-spacing: -0.02em;
}
.faq__item summary { font-family: var(--f-sans); font-weight: 500; }
/* El manifiesto se queda en serif: es el alma editorial que sobrevive */

/* -------- 2 · Botones: mono uppercase, radio tech -------- */
.btn {
  border-radius: 12px;
  font-family: var(--f-mono);
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-size: 0.72rem;
  font-weight: 500;
}
.btn--lg { font-size: 0.78rem; padding: 16px 24px; }

/* -------- 3 · Nav glass al hacer scroll -------- */
.nav.is-stuck {
  background: rgba(245, 242, 236, 0.68);
  -webkit-backdrop-filter: blur(16px) saturate(1.5);
  backdrop-filter: blur(16px) saturate(1.5);
}

/* -------- 4 · Blueprint: retícula de puntos y líneas -------- */
.caps, .pricing, .stack, .notes { position: relative; }
.caps::before, .pricing::before, .stack::before, .notes::before {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(11,11,14,0.06) 0.5px, transparent 0.5px);
  background-size: 22px 22px;
  opacity: 0.5;
  pointer-events: none;
}
.caps > *, .pricing > *, .stack > *, .notes > * { position: relative; z-index: 1; }

.ritual, .diag { position: relative; }
.ritual::before, .diag::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(245,242,236,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(245,242,236,0.04) 1px, transparent 1px);
  background-size: 52px 52px;
  pointer-events: none;
}
.ritual > *, .diag > * { position: relative; z-index: 1; }

/* -------- 5 · Crosshairs "+" en intersecciones de cards -------- */
.caps__grid--four .cap::after,
.pricing__grid--four .price::after,
.stack__grid .stack__cell::after {
  content: '+';
  position: absolute;
  top: -0.62em; left: -0.3em;
  font-family: var(--f-mono);
  font-size: 0.95rem;
  line-height: 1;
  color: var(--ink-30);
  z-index: 2;
  pointer-events: none;
}

/* -------- 6 · Panel terminal: window dots + línea de comando -------- */
.panel__winbtns { display: inline-flex; gap: 5px; margin-right: 4px; }
.panel__winbtns i {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--ink-15);
}
.panel__winbtns i:nth-child(1) { background: rgba(180,38,38,0.75); }
.panel__winbtns i:nth-child(2) { background: rgba(201,123,31,0.75); }
.panel__winbtns i:nth-child(3) { background: rgba(31,138,91,0.75); }

.panel__cmd {
  display: flex; align-items: center; gap: 0.55em;
  font-family: var(--f-mono);
  font-size: 0.72rem;
  letter-spacing: 0.02em;
  color: var(--ink-30);
  padding-top: 10px;
  min-height: 1.6em;
  position: relative; z-index: 1;
}
.cmd-prompt { color: var(--signal); }
.cmd-line { color: #A9ADB4; white-space: nowrap; overflow: hidden; }
.caret {
  display: inline-block;
  width: 0.55em; height: 1.05em;
  background: var(--signal);
  animation: caretblink 1.05s steps(1) infinite;
}
@keyframes caretblink { 50% { opacity: 0; } }

/* -------- 7 · Glow de datos -------- */
.sparkline__line { filter: drop-shadow(0 0 5px rgba(230,57,70,0.55)); }
.panel__big { text-shadow: 0 0 26px rgba(230,57,70,0.28); }

/* -------- 8 · Detalles -------- */
::selection { background: var(--signal); color: var(--bone); }

@media (prefers-reduced-motion: reduce) {
  .caret { animation: none; }
}

/* =================================================================
   V3 · P1 del benchmark — cómo funciona, testimonios, garantía,
   calendly inline
   ================================================================= */

/* -------- HERO · línea de términos -------- */
.hero__terms {
  margin-top: 0.9rem;
  font-family: var(--f-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-30);
}

/* -------- CÓMO FUNCIONA · 3 pasos -------- */
.steps { position: relative; background: var(--bone-10); }
.steps::before {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(11,11,14,0.06) 0.5px, transparent 0.5px);
  background-size: 22px 22px;
  opacity: 0.5;
  pointer-events: none;
}
.steps > * { position: relative; z-index: 1; }
.steps .wrap { padding-block: var(--s-10, 6rem); }
.steps__grid {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  counter-reset: paso;
}
.step {
  position: relative;
  background: var(--bone);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: var(--s-6);
  display: flex; flex-direction: column; gap: var(--s-3);
  transition: background 400ms var(--ease);
}
.step:hover { background: var(--paper); }
.step::after {
  content: '+';
  position: absolute; top: -0.62em; left: -0.3em;
  font-family: var(--f-mono); font-size: 0.95rem; line-height: 1;
  color: var(--ink-30); z-index: 2; pointer-events: none;
}
.step__n {
  font-family: var(--f-mono);
  font-size: 0.75rem;
  color: var(--signal);
  letter-spacing: 0.1em;
}
.step__t {
  font-family: var(--f-sans);
  font-weight: 600;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--ink);
}
.step__p { margin: 0; font-size: 0.95rem; line-height: 1.6; color: var(--ink-70); }
.step__p strong { color: var(--ink); font-weight: 600; }
.step__meta {
  margin-top: auto;
  padding-top: var(--s-3);
  border-top: 1px dashed var(--line);
  font-family: var(--f-mono);
  font-size: 0.68rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink-50);
}
.steps__terms {
  margin: var(--s-5) auto 0;
  max-width: 62ch;
  text-align: center;
  font-family: var(--f-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 2;
  color: var(--ink-50);
}
.steps__terms strong { color: var(--signal); font-weight: 500; }

/* -------- TESTIMONIOS -------- */
.testi { position: relative; background: var(--bone); }
.testi::before {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(11,11,14,0.06) 0.5px, transparent 0.5px);
  background-size: 22px 22px;
  opacity: 0.5;
  pointer-events: none;
}
.testi > * { position: relative; z-index: 1; }
.testi .wrap { padding-block: var(--s-10, 6rem); }
.testi__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.testi__card {
  position: relative;
  margin: 0;
  background: var(--bone);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: var(--s-6);
  display: flex; flex-direction: column; gap: var(--s-4);
  transition: background 400ms var(--ease);
}
.testi__card:hover { background: var(--paper); }
.testi__card::after {
  content: '+';
  position: absolute; top: -0.62em; left: -0.3em;
  font-family: var(--f-mono); font-size: 0.95rem; line-height: 1;
  color: var(--ink-30); z-index: 2; pointer-events: none;
}
.testi__q {
  margin: 0;
  font-family: var(--f-display);
  font-style: italic;
  font-size: 1.22rem;
  line-height: 1.42;
  letter-spacing: -0.005em;
  color: var(--ink);
}
.testi__who { display: flex; flex-direction: column; gap: 2px; margin-top: auto; }
.testi__name { font-weight: 650; font-size: 0.95rem; color: var(--ink); }
.testi__role {
  font-family: var(--f-mono);
  font-size: 0.68rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink-50);
}
.testi__metric {
  padding-top: var(--s-3);
  border-top: 1px dashed var(--line);
  font-family: var(--f-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--signal);
}

/* -------- PRICING · cupos -------- */
.pricing__slots {
  display: block;
  margin-top: var(--s-3);
  font-family: var(--f-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--signal);
}

/* -------- CONTACTO · calendly + form alterno -------- */
.contact__right { display: flex; flex-direction: column; gap: var(--s-4); min-width: 0; }
.contact__book {
  border: 1px solid var(--line-d);
  border-radius: 14px;
  background: var(--ink-05);
  padding: var(--s-4);
}
.contact__book .contact__form-head { margin-bottom: var(--s-3); }
.calendly-inline-widget { border-radius: 10px; overflow: hidden; }
.contact__alt {
  border: 1px solid var(--line-d);
  border-radius: 14px;
  background: transparent;
}
.contact__alt > summary {
  cursor: pointer;
  list-style: none;
  padding: var(--s-4);
  font-family: var(--f-mono);
  font-size: 0.72rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--bone);
  display: flex; align-items: center; gap: 0.6em;
}
.contact__alt > summary::before { content: '+'; color: var(--signal); font-family: var(--f-mono); }
.contact__alt[open] > summary::before { content: '−'; }
.contact__alt .contact__form { padding: 0 var(--s-4) var(--s-4); }

/* -------- responsive v3 -------- */
@media (max-width: 1080px) {
  .steps__grid, .testi__grid { grid-template-columns: 1fr; }
}

/* =================================================================
   V3.1 · POLISH — el momento, composición, materia, detalle
   ================================================================= */

:root {
  --grain: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='140' height='140'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix type='saturate' values='0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='0.55'/></svg>");
  --cross-i: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='15' height='15'><path d='M7.5 0v15M0 7.5h15' stroke='%230B0B0E' stroke-opacity='0.22' stroke-width='1'/></svg>");
  --cross-b: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='15' height='15'><path d='M7.5 0v15M0 7.5h15' stroke='%23F5F2EC' stroke-opacity='0.18' stroke-width='1'/></svg>");
}

/* ================= A · EL MOMENTO ================= */

/* -------- Preloader -------- */
body.is-booting { overflow: hidden; }
.loader {
  position: fixed; inset: 0; z-index: 300;
  background: var(--ink);
  display: flex; align-items: center; justify-content: center;
  transition: opacity 550ms var(--ease-out), transform 550ms var(--ease-out), visibility 0s 550ms;
}
.loader::after {
  content: ''; position: absolute; inset: 0;
  background-image: var(--grain);
  opacity: 0.05; pointer-events: none;
}
.loader.is-done { opacity: 0; transform: translateY(-1.5%); visibility: hidden; }
.loader.is-skipped { display: none; }
.loader__inner {
  display: flex; flex-direction: column; align-items: center;
  gap: 1.1rem;
  position: relative; z-index: 1;
}
.loader__brand {
  font-family: var(--f-display);
  font-size: 2rem;
  letter-spacing: -0.02em;
  color: var(--bone);
  display: inline-flex; align-items: baseline;
}
.loader__line {
  display: flex; align-items: center; gap: 0.55em;
  font-family: var(--f-mono);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: #A9ADB4;
  min-height: 1.4em;
}
.loader__count {
  font-family: var(--f-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: var(--signal);
}
.loader__bar {
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 2px; background: var(--ink-15);
}
.loader__bar span {
  display: block; height: 100%; width: 0;
  background: var(--signal);
}

/* -------- Hero · reveal escalonado post-boot -------- */
.hero .eyebrow, .hero__sub, .hero__cta, .hero__terms, .hero__chips {
  opacity: 0; transform: translateY(14px);
  transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out);
}
.is-booted .hero .eyebrow  { opacity: 1; transform: none; transition-delay: 60ms; }
.is-booted .hero__sub      { opacity: 1; transform: none; transition-delay: 300ms; }
.is-booted .hero__cta      { opacity: 1; transform: none; transition-delay: 400ms; }
.is-booted .hero__terms    { opacity: 1; transform: none; transition-delay: 480ms; }
.is-booted .hero__chips    { opacity: 1; transform: none; transition-delay: 560ms; }

/* -------- Panel · encendido -------- */
.hero__panel .panel__cmd,
.hero__panel .panel__hero,
.hero__panel .panel__row,
.hero__panel .panel__foot {
  opacity: 0; transform: translateY(8px);
  transition: opacity 520ms var(--ease-out), transform 520ms var(--ease-out);
}
.panel--on .panel__cmd  { opacity: 1; transform: none; transition-delay: 60ms; }
.panel--on .panel__hero { opacity: 1; transform: none; transition-delay: 140ms; }
.panel--on .panel__row:nth-child(1) { opacity: 1; transform: none; transition-delay: 260ms; }
.panel--on .panel__row:nth-child(2) { opacity: 1; transform: none; transition-delay: 340ms; }
.panel--on .panel__row:nth-child(3) { opacity: 1; transform: none; transition-delay: 420ms; }
.panel--on .panel__row:nth-child(4) { opacity: 1; transform: none; transition-delay: 500ms; }
.panel--on .panel__row:nth-child(5) { opacity: 1; transform: none; transition-delay: 580ms; }
.panel--on .panel__foot { opacity: 1; transform: none; transition-delay: 700ms; }

@keyframes panelflick {
  0% { opacity: 0.35; } 25% { opacity: 1; } 40% { opacity: 0.6; }
  60% { opacity: 1; } 75% { opacity: 0.85; } 100% { opacity: 1; }
}
.panel--flicker { animation: panelflick 340ms steps(4, end) 1; }

/* sparkline se dibuja al encender */
.hero__panel .sparkline__line {
  stroke-dasharray: 280; stroke-dashoffset: 280;
  transition: stroke-dashoffset 1100ms var(--ease-out) 500ms;
}
.hero__panel .sparkline__fill {
  opacity: 0; transition: opacity 600ms var(--ease) 1300ms;
}
.hero__panel .sparkline__dot {
  opacity: 0; transition: opacity 300ms var(--ease) 1500ms;
}
.panel--on .sparkline__line { stroke-dashoffset: 0; }
.panel--on .sparkline__fill { opacity: 1; }
.panel--on .sparkline__dot  { opacity: 1; }

/* ================= B · COMPOSICIÓN ================= */

/* -------- Numerales fantasma -------- */
section:has(> .ghost) { position: relative; overflow: clip; }
section:has(> .ghost) > .wrap,
section:has(> .ghost) > div { position: relative; z-index: 1; }
.ghost {
  position: absolute;
  left: -0.06em; top: -0.14em;
  font-family: var(--f-sans);
  font-weight: 700;
  font-size: clamp(9rem, 21vw, 19rem);
  line-height: 1;
  letter-spacing: -0.06em;
  color: var(--ink);
  opacity: 0.035;
  z-index: 0;
  pointer-events: none;
  user-select: none;
}
.ritual > .ghost, .diag > .ghost, .contact > .ghost {
  color: var(--bone);
  opacity: 0.042;
}

/* -------- Crosshairs en fronteras de sección -------- */
section[data-num] {
  background-image: var(--cross-i), var(--cross-i);
  background-repeat: no-repeat;
  background-position: 16px -7.5px, calc(100% - 16px) -7.5px;
  background-size: 15px 15px;
}
.ritual[data-num], .contact[data-num] {
  background-image: var(--cross-b), var(--cross-b);
}
/* diag: crosses + la luz roja en la misma pila (no se pisan) */
.diag[data-num] {
  background-image:
    var(--cross-b), var(--cross-b),
    radial-gradient(640px 420px at 82% 12%, rgba(230, 57, 70, 0.10), transparent 65%);
  background-repeat: no-repeat;
  background-position: 16px -7.5px, calc(100% - 16px) -7.5px, 0 0;
  background-size: 15px 15px, 15px 15px, 100% 100%;
}
.steps[data-num] { background-color: var(--bone-10); }
.testi[data-num] { background-color: var(--bone); }
.ritual[data-num] { background-color: var(--ink); }
.diag[data-num]   { background-color: var(--ink); }

/* -------- HUD · índice lateral -------- */
.hud {
  position: fixed;
  right: 14px; top: 50%;
  transform: translateY(-50%);
  z-index: 80;
  display: flex; flex-direction: column; gap: 7px;
  transition: opacity 400ms var(--ease);
}
.is-booting .hud { opacity: 0; }
.hud a {
  display: flex; align-items: center; gap: 7px;
  font-family: var(--f-mono);
  font-size: 0.56rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--steel);
  text-decoration: none;
  line-height: 1;
  transition: color 250ms var(--ease);
}
.hud a i { font-style: normal; }
.hud a span {
  opacity: 0; transform: translateX(4px);
  transition: opacity 250ms var(--ease), transform 250ms var(--ease);
}
.hud a:hover { color: var(--ink); }
.hud a:hover span, .hud a.is-active span { opacity: 1; transform: none; }
.hud a.is-active { color: var(--signal); }
@media (max-width: 1279px) { .hud { display: none; } }

/* -------- H1 más grande, más apretado -------- */
.hero__title {
  font-size: clamp(3.4rem, 8.8vw, 7.4rem);
  line-height: 0.94;
  letter-spacing: -0.05em;
}

/* ================= C · MATERIA ================= */

/* -------- Grano en secciones oscuras -------- */
.ritual::after, .contact::after {
  content: ''; position: absolute; inset: 0;
  background-image: var(--grain);
  opacity: 0.045;
  pointer-events: none;
  z-index: 0;
}
.diag::after {
  content: ''; position: absolute; inset: 0;
  background-image: var(--grain);
  opacity: 0.05;
  pointer-events: none;
  z-index: 0;
}
.ritual, .contact { position: relative; }

/* -------- El rojo como luz -------- */
.hero__panel {
  box-shadow:
    0 30px 110px -18px rgba(230, 57, 70, 0.16),
    0 10px 45px rgba(11, 11, 14, 0.45);
}
.diag {
  background-image:
    radial-gradient(640px 420px at 82% 12%, rgba(230, 57, 70, 0.10), transparent 65%);
}
.ritual { box-shadow: inset 0 1px 0 rgba(230, 57, 70, 0.22); }

/* -------- Cursor propio -------- */
.has-cursor, .has-cursor * { cursor: none !important; }
.has-cursor input, .has-cursor textarea, .has-cursor select { cursor: text !important; }
.cursor {
  position: fixed; left: 0; top: 0;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--signal);
  border: 1.5px solid transparent;
  pointer-events: none;
  z-index: 400;
  opacity: 0;
  margin: -4px 0 0 -4px;
  transition:
    width 260ms var(--ease-out), height 260ms var(--ease-out),
    margin 260ms var(--ease-out), background 260ms var(--ease-out),
    border-color 260ms var(--ease-out), opacity 200ms var(--ease);
}
.cursor.is-visible { opacity: 1; }
.cursor.is-on {
  width: 34px; height: 34px;
  margin: -17px 0 0 -17px;
  background: rgba(230, 57, 70, 0.08);
  border-color: var(--signal);
}

/* ================= D · DETALLE ================= */

/* -------- Wipe rojo en primarios -------- */
.btn--primary { overflow: hidden; }
.btn--primary::before {
  content: ''; position: absolute; inset: 0;
  background: var(--signal);
  transform: translateX(-101%);
  transition: transform 420ms var(--ease-out);
  z-index: 0;
}
.btn--primary:hover::before { transform: translateX(0); }
.btn--primary > * { position: relative; z-index: 1; }
.btn--primary:hover .btn__dot { background: var(--bone); }
.diag .btn--primary::before { background: #A82230; }

/* -------- Barras del demo re-animan al hover -------- */
@keyframes barpop {
  0% { transform: scaleY(0.25); }
  62% { transform: scaleY(1.07); }
  100% { transform: scaleY(1); }
}
.demo--bars .demo__bars span { transform-origin: bottom; }
.demo--bars:hover .demo__bars span { animation: barpop 520ms var(--ease-out) both; }
.demo--bars:hover .demo__bars span:nth-child(2) { animation-delay: 40ms; }
.demo--bars:hover .demo__bars span:nth-child(3) { animation-delay: 80ms; }
.demo--bars:hover .demo__bars span:nth-child(4) { animation-delay: 120ms; }
.demo--bars:hover .demo__bars span:nth-child(5) { animation-delay: 160ms; }
.demo--bars:hover .demo__bars span:nth-child(6) { animation-delay: 200ms; }
.demo--bars:hover .demo__bars span:nth-child(7) { animation-delay: 240ms; }

/* -------- Marquees pausan al hover -------- */
.logos__marquee:hover .logos__track,
.ticker:hover .ticker__track { animation-play-state: paused; }

/* -------- Colofón footer -------- */
.footer__colophon {
  font-family: var(--f-mono);
  font-size: var(--t-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--steel);
}
.footer__colophon #footer-time { color: var(--signal); }

/* -------- Fixes -------- */
@media (max-width: 760px) {
  .hero__chips { padding-right: 3.4rem; }
  .ghost { font-size: clamp(7rem, 34vw, 11rem); opacity: 0.03; }
}

/* -------- Reduced motion · sin teatro -------- */
@media (prefers-reduced-motion: reduce) {
  .loader { display: none; }
  body.is-booting { overflow: auto; }
  .hero .eyebrow, .hero__sub, .hero__cta, .hero__terms, .hero__chips,
  .hero__panel .panel__cmd, .hero__panel .panel__hero,
  .hero__panel .panel__row, .hero__panel .panel__foot {
    opacity: 1; transform: none;
  }
  .hero__panel .sparkline__line { stroke-dasharray: none; stroke-dashoffset: 0; }
  .hero__panel .sparkline__fill, .hero__panel .sparkline__dot { opacity: 1; }
  .panel--flicker { animation: none; }
  .cursor { display: none; }
}

/* -------- V3.2 · Dúo de socios + prueba de origen -------- */
.about__duo {
  display: flex; flex-direction: column;
  gap: var(--s-4);
}
.about__duo .about__portrait-img { aspect-ratio: 16/9; }
.about__origin {
  list-style: none;
  margin: var(--s-3) 0 var(--s-4);
  padding: 0;
  display: flex; flex-wrap: wrap;
  gap: 0.5rem;
}
.about__origin li {
  font-family: var(--f-mono);
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.5em 0.85em;
  color: var(--ink-50);
  background: var(--bone-0, #fff);
}
.about__origin b { color: var(--signal); font-weight: 500; margin-right: 0.35em; }
.about__bio strong { color: var(--ink); font-weight: 650; }

/* -------- V3.2b · Responsive fixes (audit 320/375/768) -------- */

/* La cmd-line nowrap forzaba el min-width del panel (h-scroll en 320px):
   flex item con min-width:0 → se encoge y el overflow se clippea adentro */
.panel__cmd { min-width: 0; }
.panel__cmd .cmd-line { flex: 1 1 auto; min-width: 0; }
.loader__line { max-width: 86vw; }
.loader__line .loader__cmd { overflow: hidden; white-space: nowrap; }

/* Títulos display sans: en móvil se apilan y se re-escalan (se cortaban) */
@media (max-width: 760px) {
  .contact__title span, .contact__title em { display: block; }
  .contact__title, .diag__title {
    font-size: clamp(2.05rem, 10.5vw, 2.6rem);
    overflow-wrap: anywhere;
  }
  .section__title { overflow-wrap: anywhere; }
  .hero__cta { flex-wrap: wrap; }
}

/* ≤380px: los btn--lg mono nowrap (ghost del hero) excedían el viewport */
@media (max-width: 380px) {
  .btn--lg { font-size: 0.68rem; padding: 14px 15px; letter-spacing: 0.06em; }
  .btn--lg .btn__arrow { display: none; }
}

/* -------- V3.3 · Dieta: banda "No" + marquee dentro de La prueba -------- */
.nos {
  background: var(--bone-10);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding-block: var(--s-5);
}
.nos__line {
  margin: 0;
  display: flex; flex-wrap: wrap;
  justify-content: center; align-items: center;
  gap: 0.6rem 1rem;
  font-family: var(--f-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-70);
  text-align: center;
}
.nos__line b { color: var(--signal); font-weight: 500; }
.nos__line i { color: var(--ink-30); font-style: normal; }
.testi .logos__marquee { margin: var(--s-2) 0 var(--s-7); }

/* Contacto: la URL larga (calendly.com/…) forzaba el min-content de la
   columna del grid → 47px cortados en móvil. Cadena completa de min-width:0 */
.contact__grid > * { min-width: 0; }
.contact__copy { min-width: 0; }
.contact__channels li { flex-wrap: wrap; }
.contact__channels a { overflow-wrap: anywhere; min-width: 0; }

/* Calendly trae min-width:300px inline — en 320px sobresalía del contenedor */
.calendly-inline-widget { min-width: 0 !important; width: 100% !important; }

/* =================================================================
   TANDEM · extensiones presentación agencia (casos + servicios)
   ================================================================= */
.caps__also{
  display:flex; flex-wrap:wrap; align-items:center;
  gap:var(--s-3) var(--s-5);
  margin-top:var(--s-7); padding-top:var(--s-6);
  border-top:1px solid var(--line);
}
.caps__also-k{
  font-family:var(--f-mono); font-size:var(--t-mono);
  letter-spacing:0.14em; text-transform:uppercase; color:var(--ink-50);
}
.caps__also-list{ display:flex; flex-wrap:wrap; gap:var(--s-2) var(--s-3); }
.caps__also-list li{
  font-family:var(--f-mono); font-size:0.72rem; letter-spacing:0.01em;
  color:var(--ink-90); background:var(--bone-10);
  border:1px solid var(--line-strong); border-radius:var(--r-pill);
  padding:6px var(--s-4);
}
/* Casos · reusan .cap, más compactos + tag de industria */
.caso{ min-height:auto; }
.caso .cap__head{ display:flex; align-items:center; justify-content:space-between; gap:var(--s-3); }
.caso__tag{
  font-family:var(--f-mono); font-size:var(--t-mono);
  letter-spacing:0.1em; text-transform:uppercase; color:var(--signal);
  background:var(--signal-fade); border:1px solid var(--signal-fade);
  padding:4px var(--s-3); border-radius:var(--r-pill); white-space:nowrap;
}
.caso .cap__quote{ color:var(--ink-90); }
@media (max-width:900px){ .caso__tag{ font-size:0.6rem; } }
