/* Pharos Guard — sitio público.
   Concepto: la bitácora de un faro. La página avanza de la noche (el problema)
   al amanecer (la solución); el haz del logo es el gesto que se repite.
   Paleta de la marca (docs/marca/colores.txt): azul noche #14213D, azul haz
   #688CF0, azul claro #C7D5FF. Sobre fondo claro, el acento de texto es
   #3556C8 (6,3:1). Los colores de estado (ok, advertencia, crítico) son los
   mismos de la consola y solo se usan para la escala de notas.
   Tipografía: Bricolage Grotesque (la de los titulares de la consola) e
   IBM Plex Mono para las etiquetas de bitácora. */

:root {
  --night: #14213d;
  --deep: #0d1730;
  --beam: #688cf0;
  --light: #c7d5ff;
  --paper: #f4f6fa;
  --white: #ffffff;
  --ink: #14213d;
  --muted: #566079;
  --accent: #3556c8;
  --hair: rgba(199, 213, 255, 0.16);
  --hair-ink: #dde2ec;
  --ok: #12703f;
  --warn: #8a5d00;
  --crit: #c42d2d;

  --display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --nav-h: 68px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 20px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--night);
  color: var(--white);
  font-family: var(--display);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

h1,
h2,
h3,
h4,
p {
  margin: 0;
}

h1,
h2,
h3,
h4 {
  text-wrap: balance;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--beam);
  outline-offset: 3px;
  border-radius: 6px;
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.skip {
  position: absolute;
  left: 16px;
  top: -64px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  font-weight: 600;
}

.skip:focus {
  top: 12px;
}

.wrap {
  width: min(1200px, 100% - 32px);
  margin-inline: auto;
}

.wrap--narrow {
  width: min(840px, 100% - 32px);
}

/* Etiqueta de bitácora: monoespaciada, en el azul del haz. */
.label {
  font-family: var(--mono);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--beam);
}

.label--ink {
  color: var(--accent);
}

/* ---------------------------------------------------------------- navegación */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(20, 33, 61, 0.74);
  -webkit-backdrop-filter: saturate(150%) blur(14px);
  backdrop-filter: saturate(150%) blur(14px);
  border-bottom: 1px solid var(--hair);
}

.nav__inner {
  display: flex;
  align-items: center;
  gap: 28px;
  height: var(--nav-h);
}

.nav nav {
  margin-left: auto;
}

.nav__links {
  display: flex;
  gap: 30px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav__links a {
  color: var(--light);
  font-size: 0.95rem;
  text-decoration: none;
  transition: color 160ms ease;
}

.nav__links a:hover {
  color: var(--white);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  text-decoration: none;
}

.brand__symbol {
  width: 32px;
  height: 32px;
  flex: none;
}

.brand__name {
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.brand__name b {
  font-weight: 800;
}

/* ---------------------------------------------------------------- botones */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--display);
  font-size: 1rem;
  font-weight: 650;
  text-decoration: none;
  cursor: pointer;
  transition: transform 180ms ease, background-color 180ms ease, box-shadow 220ms ease, border-color 180ms ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn--small {
  min-height: 44px;
  padding: 0 18px;
  font-size: 0.95rem;
}

/* Azul claro sobre azul noche: 12:1. */
.btn--light {
  background: var(--light);
  color: var(--night);
}

.btn--light:hover {
  background: var(--white);
  box-shadow: 0 0 0 6px rgba(104, 140, 240, 0.18), 0 14px 40px -12px rgba(104, 140, 240, 0.7);
}

.btn--line {
  border-color: rgba(199, 213, 255, 0.45);
  color: var(--white);
}

.btn--line:hover {
  border-color: var(--light);
  background: rgba(199, 213, 255, 0.08);
}

/* ---------------------------------------------------------------- portada */

.hero {
  position: relative;
  overflow: hidden;
  padding: 96px 0 120px;
  background:
    radial-gradient(70% 60% at 85% 20%, rgba(104, 140, 240, 0.16), transparent 70%),
    var(--night);
}

/* Horizonte: una línea fina de luz en el borde inferior. */
.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(104, 140, 240, 0.7), transparent);
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  align-items: center;
  gap: 64px;
}

.hero h1 {
  margin-top: 22px;
  font-size: clamp(2.9rem, 6.4vw, 5.8rem);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.hero__lead {
  max-width: 33em;
  margin-top: 28px;
  color: var(--light);
  font-size: 1.2rem;
  line-height: 1.55;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 38px;
}

/* El haz: una cuña de luz que barre la lista y enciende cada chequeo. */
.scan {
  position: relative;
  overflow: hidden;
  margin: 0;
  padding: 26px 0 18px;
  border: 1px solid var(--hair);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(13, 23, 48, 0.85), rgba(13, 23, 48, 0.55));
  box-shadow: 0 30px 80px -40px rgba(0, 0, 0, 0.8);
}

.scan__beam {
  position: absolute;
  top: calc(50% - 900px);
  left: -940px;
  width: 1800px;
  height: 1800px;
  background: conic-gradient(from 72deg at 50% 50%, transparent 0deg, rgba(104, 140, 240, 0.05) 4deg, rgba(104, 140, 240, 0.34) 12deg, rgba(104, 140, 240, 0.05) 20deg, transparent 24deg);
  filter: blur(6px);
  transform: rotate(-24deg);
  animation: sweep 8s linear infinite;
  pointer-events: none;
}

@keyframes sweep {
  0% {
    transform: rotate(-24deg);
    opacity: 0;
  }
  6% {
    opacity: 1;
  }
  74% {
    opacity: 1;
  }
  82% {
    transform: rotate(26deg);
    opacity: 0;
  }
  100% {
    transform: rotate(26deg);
    opacity: 0;
  }
}

.scan__head,
.scan__foot {
  position: relative;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 0 26px;
}

.scan__meta,
.scan__foot {
  color: rgba(199, 213, 255, 0.7);
  font-family: var(--mono);
  font-size: 0.78rem;
}

.scan__foot {
  margin-top: 14px;
}

.scan__list {
  position: relative;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: none;
}

.scan__list li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 26px;
  border-top: 1px solid var(--hair);
  color: rgba(199, 213, 255, 0.72);
  font-size: 0.98rem;
  animation: lit 8s linear infinite;
}

.scan__list li:last-child {
  border-bottom: 1px solid var(--hair);
}

.tag {
  flex: none;
  width: 92px;
  padding: 3px 0;
  border: 1px solid rgba(199, 213, 255, 0.28);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-align: center;
  text-transform: uppercase;
}

/* Cada fila se enciende cuando el haz pasa por ella (8 filas en 6,4 s). */
.scan__list li:nth-child(1) { animation-delay: 0.1s; }
.scan__list li:nth-child(2) { animation-delay: 0.9s; }
.scan__list li:nth-child(3) { animation-delay: 1.7s; }
.scan__list li:nth-child(4) { animation-delay: 2.5s; }
.scan__list li:nth-child(5) { animation-delay: 3.3s; }
.scan__list li:nth-child(6) { animation-delay: 4.1s; }
.scan__list li:nth-child(7) { animation-delay: 4.9s; }
.scan__list li:nth-child(8) { animation-delay: 5.7s; }

@keyframes lit {
  0%,
  14%,
  100% {
    color: rgba(199, 213, 255, 0.72);
    background: transparent;
  }
  4%,
  8% {
    color: var(--white);
    background: rgba(104, 140, 240, 0.12);
  }
}

/* ---------------------------------------------------------------- capítulos */

.chapter {
  position: relative;
  padding: 120px 0;
  background: var(--night);
}

.chapter--deep {
  background: var(--deep);
}

.chapter__title {
  margin-top: 18px;
  font-size: clamp(2.1rem, 4.4vw, 3.6rem);
  font-weight: 750;
  line-height: 1.04;
  letter-spacing: -0.03em;
  max-width: 18em;
}

.chapter__lead {
  max-width: 42em;
  margin-top: 24px;
  color: var(--light);
  font-size: 1.15rem;
}

.chapter__lead--ink {
  color: var(--muted);
}

/* Capítulo 1: la frase grande; la segunda mitad se ilumina al desplazarse. */
.statement {
  margin-top: 22px;
  max-width: 15em;
  font-size: clamp(2.3rem, 5.6vw, 4.8rem);
  font-weight: 750;
  line-height: 1.02;
  letter-spacing: -0.035em;
}

.statement__dim {
  color: var(--beam);
}

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .statement__dim {
      animation: dawn linear both;
      animation-timeline: view();
      animation-range: entry 30% cover 50%;
    }

    @keyframes dawn {
      from {
        color: rgba(104, 140, 240, 0.25);
      }
      to {
        color: var(--beam);
      }
    }
  }
}

/* A oscuras frente a Pharos Guard */
.versus {
  margin-top: 64px;
  border-top: 1px solid var(--hair);
}

.versus__row {
  display: grid;
  grid-template-columns: 0.8fr 1.1fr 1.3fr;
  gap: 24px;
  padding: 22px 0;
  border-bottom: 1px solid var(--hair);
}

.versus__row--head {
  padding: 14px 0;
  font-family: var(--mono);
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(199, 213, 255, 0.6);
}

.versus__row--head [role="columnheader"]:last-child {
  color: var(--beam);
}

.versus [role="rowheader"] {
  font-weight: 650;
}

.versus [role="cell"]:first-of-type {
  color: rgba(199, 213, 255, 0.6);
}

.versus [role="cell"]:last-of-type {
  position: relative;
  padding-left: 22px;
}

.versus [role="cell"]:last-of-type::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 10px;
  height: 10px;
  clip-path: polygon(0 20%, 100% 0, 100% 100%);
  background: var(--beam);
}

/* Capítulo 2: bitácora de cuatro entradas */
.log {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  margin: 64px 0 0;
  padding: 0;
  list-style: none;
}

.log li {
  position: relative;
  padding-top: 30px;
  border-top: 1px solid var(--hair);
}

.log li::before {
  content: "";
  position: absolute;
  top: -5px;
  left: 0;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--beam);
  box-shadow: 0 0 0 5px rgba(104, 140, 240, 0.18);
}

.log__when {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--beam);
}

.log h3 {
  margin-top: 10px;
  font-size: 1.6rem;
  font-weight: 750;
  letter-spacing: -0.02em;
}

.log p {
  margin-top: 10px;
  color: var(--light);
  font-size: 1rem;
}

/* Capturas con marcadores de esquina, como en un visor */
.shot {
  position: relative;
  margin: 72px 0 0;
  padding: 14px;
}

.shot::before,
.shot::after {
  content: "";
  position: absolute;
  width: 40px;
  height: 40px;
  border-color: var(--beam);
  border-style: solid;
  pointer-events: none;
}

.shot::before {
  top: 0;
  left: 0;
  border-width: 2px 0 0 2px;
}

.shot::after {
  right: 0;
  bottom: 28px;
  border-width: 0 2px 2px 0;
}

.shot img {
  border-radius: 10px;
  box-shadow: 0 40px 90px -40px rgba(0, 0, 0, 0.85);
}

.shot figcaption {
  margin-top: 14px;
  color: rgba(199, 213, 255, 0.7);
  font-family: var(--mono);
  font-size: 0.78rem;
}

.shot--light figcaption {
  color: var(--muted);
}

.shot--light img {
  border: 1px solid var(--hair-ink);
  box-shadow: 0 30px 70px -40px rgba(20, 33, 61, 0.45);
}

/* Capítulo 3: el amanecer. Franja de transición de noche a papel. */
.chapter--dawn,
.chapter--paper {
  background: var(--paper);
  color: var(--ink);
}

.chapter--dawn {
  padding-top: 220px;
}

.chapter--dawn::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 180px;
  background: linear-gradient(180deg, var(--night) 0%, #3a4f86 38%, #a9bbec 72%, var(--paper) 100%);
}

.chapter--paper {
  border-top: 1px solid var(--hair-ink);
}

.grades {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  margin: 56px 0 0;
  padding: 0;
  list-style: none;
}

.grade {
  display: grid;
  gap: 2px;
  padding: 22px 22px 20px;
  border: 1px solid var(--hair-ink);
  border-top: 4px solid currentColor;
  border-radius: 12px;
  background: var(--white);
}

.grade b {
  font-size: clamp(2.6rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
}

.grade span {
  margin-top: 6px;
  color: var(--ink);
  font-weight: 650;
}

.grade small {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.76rem;
}

.grade--ok {
  color: var(--ok);
}

.grade--warn {
  color: var(--warn);
}

.grade--crit {
  color: var(--crit);
}

.subhead {
  margin-top: 96px;
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  font-weight: 750;
  letter-spacing: -0.02em;
}

.areas {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--hair-ink);
  border-left: 1px solid var(--hair-ink);
}

.areas li {
  padding: 30px 28px 32px;
  border-right: 1px solid var(--hair-ink);
  border-bottom: 1px solid var(--hair-ink);
  background: var(--white);
  transition: background-color 200ms ease;
}

.areas li:hover {
  background: #f8faff;
}

.icon {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.areas h4 {
  margin-top: 18px;
  font-size: 1.18rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.areas p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.98rem;
}

/* Capítulo 4: proveedores TI */
.split {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  align-items: center;
  gap: 72px;
}

.split .shot {
  margin-top: 0;
}

.ticks {
  display: grid;
  gap: 14px;
  margin: 34px 0 0;
  padding: 0;
  list-style: none;
}

.ticks li {
  position: relative;
  padding-left: 30px;
}

.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 14px;
  height: 14px;
  clip-path: polygon(0 20%, 100% 0, 100% 100%);
  background: var(--accent);
}

/* Capítulo 5: cumplimiento y seguridad */
.laws {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 40px 0 0;
  padding: 0;
  list-style: none;
}

.laws li {
  padding: 9px 16px;
  border: 1px solid rgba(199, 213, 255, 0.3);
  border-radius: 999px;
  color: var(--light);
  font-family: var(--mono);
  font-size: 0.85rem;
}

.laws .laws__cl {
  border-color: var(--beam);
  background: rgba(104, 140, 240, 0.16);
  color: var(--white);
}

.fine {
  margin-top: 20px;
  color: rgba(199, 213, 255, 0.7);
  font-size: 0.92rem;
}

.facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px 32px;
  margin: 72px 0 0;
  padding: 0;
  list-style: none;
}

.facts li {
  padding-top: 22px;
  border-top: 2px solid var(--beam);
}

.facts h3 {
  font-size: 1.25rem;
  font-weight: 700;
}

.facts p {
  margin-top: 10px;
  color: var(--light);
  font-size: 0.98rem;
}

/* Preguntas */
.faq {
  margin-top: 48px;
  border-top: 1px solid var(--hair-ink);
}

.faq details {
  border-bottom: 1px solid var(--hair-ink);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 68px;
  padding: 18px 0;
  font-size: 1.12rem;
  font-weight: 650;
  list-style: none;
  cursor: pointer;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  flex: none;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--hair-ink);
  border-radius: 50%;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 1.1rem;
  transition: transform 200ms ease, background-color 200ms ease;
}

.faq details[open] summary::after {
  content: "–";
  background: #ebf0ff;
}

.faq details p {
  padding: 0 56px 24px 0;
  color: var(--muted);
}

/* Cierre: el haz cruza la pantalla */
.finale {
  position: relative;
  overflow: hidden;
  padding: 150px 0 160px;
  background: var(--night);
  text-align: center;
}

.finale__beam {
  position: absolute;
  top: calc(50% - 1100px);
  left: calc(50% - 1100px);
  width: 2200px;
  height: 2200px;
  background: conic-gradient(from 0deg at 50% 50%, transparent 0deg, rgba(104, 140, 240, 0.22) 10deg, transparent 22deg, transparent 180deg, rgba(104, 140, 240, 0.14) 190deg, transparent 202deg);
  filter: blur(10px);
  animation: turn 22s linear infinite;
  pointer-events: none;
}

@keyframes turn {
  to {
    transform: rotate(360deg);
  }
}

.finale__inner {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 22px;
}

.finale__symbol {
  width: 76px;
  height: 76px;
  color: var(--white);
}

.finale h2 {
  font-size: clamp(3rem, 8vw, 6.6rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.045em;
}

.finale p {
  max-width: 34em;
  color: var(--light);
  font-size: 1.15rem;
}

.finale .btn {
  margin-top: 12px;
}

/* Pie */
.footer {
  padding: 44px 0;
  background: var(--deep);
  border-top: 1px solid var(--hair);
  color: var(--light);
  font-size: 0.93rem;
}

.footer__inner {
  display: grid;
  gap: 14px;
}

.footer a:not(.brand) {
  color: var(--white);
}

.footer__legal {
  color: rgba(199, 213, 255, 0.62);
  font-size: 0.82rem;
}

/* ---------------------------------------------------------------- aparición */

/* Solo con JavaScript: sin él, o con movimiento reducido, todo se ve desde el inicio. */
.js .reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 400ms ease-out, transform 400ms ease-out;
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ---------------------------------------------------------------- responsivo */

@media (max-width: 1024px) {
  .hero__grid,
  .split {
    grid-template-columns: 1fr;
    gap: 56px;
  }

  .log {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 44px;
  }

  .grades {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .areas {
    grid-template-columns: repeat(2, 1fr);
  }

  .facts {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 860px) {
  .nav nav {
    display: none;
  }

  .nav .btn--small {
    margin-left: auto;
  }
}

@media (max-width: 700px) {
  body {
    font-size: 1rem;
  }

  .hero {
    padding: 64px 0 80px;
  }

  .chapter {
    padding: 84px 0;
  }

  .chapter--dawn {
    padding-top: 180px;
  }

  .log,
  .areas,
  .facts {
    grid-template-columns: 1fr;
  }

  .grades {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 6px;
  }

  .grade {
    padding: 14px 8px;
    text-align: center;
  }

  .grade span {
    font-size: 0.72rem;
  }

  .grade small {
    font-size: 0.62rem;
  }

  .versus__row--head {
    display: none;
  }

  .versus__row {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .versus [role="cell"]:first-of-type::before {
    content: "A oscuras: ";
    font-family: var(--mono);
    font-size: 0.78rem;
    text-transform: uppercase;
  }

  .tag {
    width: 78px;
  }

  .scan__list li {
    padding: 11px 18px;
    font-size: 0.92rem;
  }

  .scan__head,
  .scan__foot {
    padding: 0 18px;
  }

  .brand__name {
    font-size: 1.05rem;
  }

  .nav .btn--small {
    padding: 0 14px;
    font-size: 0.88rem;
  }

  .faq details p {
    padding-right: 0;
  }
}

@media (max-width: 380px) {
  .nav .btn--small {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .scan__beam,
  .scan__list li,
  .hero__beam,
  .finale__beam {
    animation: none;
  }

  .scan__beam {
    transform: rotate(0deg);
  }

  .hero__beam {
    opacity: 0;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .btn,
  .areas li,
  .faq summary::after {
    transition: none;
  }
}

/* Página 404 */
.notfound__main {
  display: grid;
  place-items: center;
  min-height: 100vh;
}

.notfound h1 {
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}

/* Las columnas del grid no deben crecer más que la pantalla por una palabra larga. */
.hero__grid > *,
.split > * {
  min-width: 0;
}

.scan__head {
  flex-wrap: wrap;
}

@media (max-width: 700px) {
  .hero h1 {
    font-size: clamp(2.5rem, 12vw, 3.4rem);
  }
}

/* Revisión de textos v2: titular en forma de pregunta, más largo que el anterior. */
.hero h1 {
  max-width: 14em;
  font-size: clamp(2.5rem, 4.9vw, 4.5rem);
  line-height: 1.02;
}

.hero__channel {
  margin-top: 22px;
  color: rgba(199, 213, 255, 0.75);
  font-family: var(--mono);
  font-size: 0.82rem;
}

/* Pregunta a mitad de página: abre el amanecer. */
.hook {
  max-width: 900px;
  margin: 0 0 104px;
}

.hook__q {
  font-size: clamp(1.7rem, 3.4vw, 2.7rem);
  font-weight: 750;
  line-height: 1.12;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.hook__a {
  margin-top: 18px;
  color: var(--accent);
  font-size: clamp(1.1rem, 1.8vw, 1.35rem);
  font-weight: 600;
}

.laws__more {
  max-width: 44em;
  margin-top: 18px;
  color: var(--light);
}

@media (max-width: 700px) {
  .hero h1 {
    font-size: clamp(2.05rem, 9vw, 2.7rem);
  }

  .hook {
    margin-bottom: 72px;
  }
}

/* ------------------------------------------------ revisión del 23-nov: producto primero */

/* Portada: titular más corto y la ficha real del producto a la derecha. */
.hero h1 {
  max-width: 12em;
  font-size: clamp(2.3rem, 3.7vw, 3.7rem);
  line-height: 1.04;
}

.hero__grid {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 48px;
}

.hero__channel a {
  color: var(--white);
  text-underline-offset: 3px;
  white-space: nowrap;
}

.hero__shot {
  margin: 0;
}

.hero__frame {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--hair);
  border-radius: 14px;
  background: var(--paper);
  box-shadow: 0 40px 90px -40px rgba(0, 0, 0, 0.85), 0 0 0 8px rgba(104, 140, 240, 0.06);
}

/* El mismo haz de la marca, ahora barriendo el producto. */
.hero__beam {
  position: absolute;
  top: calc(50% - 900px);
  left: -940px;
  width: 1800px;
  height: 1800px;
  background: conic-gradient(from 72deg at 50% 50%, transparent 0deg, rgba(104, 140, 240, 0.03) 4deg, rgba(104, 140, 240, 0.2) 12deg, rgba(104, 140, 240, 0.03) 20deg, transparent 24deg);
  filter: blur(6px);
  transform: rotate(-24deg);
  animation: sweep 8s linear infinite;
  pointer-events: none;
}

.hero__shot figcaption {
  margin-top: 14px;
  color: rgba(199, 213, 255, 0.7);
  font-family: var(--mono);
  font-size: 0.78rem;
}

/* Capítulo 1: la frase y la lista animada lado a lado. */
.split--problem {
  align-items: center;
  gap: 64px;
}

.split--problem .statement {
  font-size: clamp(2.2rem, 4.2vw, 3.7rem);
}

/* Capítulo 2: la revisión de ejemplo, dos capturas. */
.example {
  margin-top: 88px;
}

.pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
  margin-top: 18px;
}

.pair .shot {
  margin: 0;
}

/* Capítulo 4: los permisos, uno por fila. */
.path {
  color: var(--white);
  font-weight: 600;
}

.scopes {
  margin: 48px 0 0;
  border-top: 1px solid var(--hair);
}

.scopes__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr);
  gap: 32px;
  padding: 22px 0;
  border-bottom: 1px solid var(--hair);
}

.scopes dt {
  display: grid;
  gap: 4px;
  align-content: start;
}

.scopes code {
  color: var(--beam);
  font-family: var(--mono);
  font-size: 0.88rem;
  overflow-wrap: anywhere;
}

.scopes dt span {
  font-weight: 650;
}

.scopes dd {
  margin: 0;
  color: var(--light);
}

/* Proveedores TI: franja breve, sin competir con el mensaje para pymes. */
.band {
  padding: 64px 0;
  background: var(--white);
  color: var(--ink);
  border-top: 1px solid var(--hair-ink);
}

.band__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr) auto;
  align-items: center;
  gap: 48px;
}

.band__title {
  margin-top: 12px;
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
  font-weight: 750;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.band__list {
  margin: 0;
  gap: 10px;
  color: var(--muted);
}

/* Acento sobre blanco: 6,3:1. */
.btn--ink {
  background: var(--accent);
  color: var(--white);
}

.btn--ink:hover {
  background: var(--night);
}

.band + .chapter--paper {
  border-top-color: var(--hair-ink);
}

@media (max-width: 1024px) {
  .hero__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .band__inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .band__inner .btn {
    justify-self: start;
  }
}

@media (max-width: 860px) {
  .pair {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .hero {
    padding: 44px 0 72px;
  }

  .hero__lead {
    margin-top: 20px;
    font-size: 1.08rem;
  }

  .hero__actions {
    margin-top: 28px;
  }

  .hero__actions .btn {
    flex: 1 1 100%;
  }

  .example {
    margin-top: 64px;
  }

  .scopes__row {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}
