/* MIIA · agentesmiia.com
   Identidad de mi-ia.ai: fondo carbón, acento violeta con degradado a fucsia, Geist + Instrument Serif.
   Fuentes servidas desde el propio sitio (sin peticiones a terceros). */

@font-face {
  font-family: "Geist";
  src: url("/fuentes/geist.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Geist Mono";
  src: url("/fuentes/geist-mono.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("/fuentes/instrument-serif.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("/fuentes/instrument-serif-cursiva.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

:root {
  --bg: #09090b;
  --surface: #111114;
  --surface-2: #17171b;
  --burbuja: #1c1c21;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --text: #fafafa;
  --text-2: #d4d4d8;
  --text-3: #a1a1aa;
  --text-4: #8a8a94;
  --v300: #c4b5fd;
  --v400: #a78bfa;
  --v500: #8b5cf6;
  --f400: #e879f9;
  --wa: #25d366;
  --wa-claro: #3ee27c;
  --wa-ink: #04200f;
  --grad: linear-gradient(100deg, var(--v400) 0%, #c084fc 45%, var(--f400) 100%);
  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --serif: "Instrument Serif", ui-serif, Georgia, "Times New Roman", serif;
  --mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --ancho: 1160px;
  --radio: 22px;
  --curva: cubic-bezier(0.2, 0.7, 0.2, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 88px;
  background: var(--bg);
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01" 0;
}

/* Grano fino sobre todo el fondo */
body::before {
  content: "";
  position: fixed;
  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='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

::selection {
  background: rgba(139, 92, 246, 0.45);
  color: #fff;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--v300);
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

a:hover {
  color: #ddd6fe;
}

:focus-visible {
  outline: 2px solid var(--v400);
  outline-offset: 3px;
  border-radius: 8px;
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.06;
  text-align: left;
  text-wrap: balance;
}

p {
  margin: 0;
}

/* Texto corrido: justificado y con partición de palabras (lang="es") */
p,
.lista-check li {
  text-align: justify;
  -webkit-hyphens: auto;
  hyphens: auto;
  text-wrap: pretty;
}

/* Lo que no es texto corrido se queda a la izquierda */
.eyebrow,
.msg p,
.chat__pie,
.acciones__nota,
.nota,
.pie p,
blockquote p,
.puerta__burbuja,
.cifra__que,
.etiqueta,
.puerta__quien,
.caso__lado-titulo,
.legal__fecha {
  text-align: left;
  -webkit-hyphens: manual;
  hyphens: manual;
}

h1 em,
h2 em,
h3 em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 1.07em;
  letter-spacing: -0.012em;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  padding-right: 0.05em;
}

.contenedor {
  width: min(var(--ancho), 100% - 40px);
  margin-inline: auto;
}

.salto {
  position: absolute;
  left: 12px;
  top: -80px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--text);
  color: var(--bg);
  font-weight: 600;
  text-decoration: none;
}

.salto:focus {
  top: 12px;
}

/* ---------- Cabecera ---------- */

.cabecera {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(9, 9, 11, 0.74);
  -webkit-backdrop-filter: saturate(150%) blur(14px);
  backdrop-filter: saturate(150%) blur(14px);
  border-bottom: 1px solid var(--line);
}

.cabecera__fila {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 64px;
}

.marca {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  color: var(--text);
  text-decoration: none;
}

.marca img {
  height: 18px;
  width: auto;
  flex: none;
}

.marca__giro {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding-left: 12px;
  border-left: 1px solid var(--line-2);
  font: 500 11.5px/1.2 var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
}

/* ---------- Botones ---------- */

.boton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 26px;
  border-radius: 999px;
  background: var(--wa);
  color: var(--wa-ink);
  font: 600 17px/1.1 var(--sans);
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 0 0 1px rgba(37, 211, 102, 0.45), 0 14px 34px -14px rgba(37, 211, 102, 0.7);
  transition: transform 0.25s var(--curva), background 0.25s, box-shadow 0.25s;
}

.boton:hover {
  color: var(--wa-ink);
  background: var(--wa-claro);
  transform: translateY(-1px);
  box-shadow: 0 0 0 1px rgba(62, 226, 124, 0.6), 0 18px 40px -14px rgba(37, 211, 102, 0.8);
}

.boton:active {
  transform: translateY(0);
}

.boton svg {
  width: 21px;
  height: 21px;
  flex: none;
  fill: currentColor;
}

.boton--chico {
  min-height: 40px;
  padding: 0 16px;
  gap: 8px;
  font-size: 15px;
  box-shadow: 0 0 0 1px rgba(37, 211, 102, 0.45);
}

.boton--chico svg {
  width: 18px;
  height: 18px;
}

.boton--grande {
  min-height: 62px;
  padding: 0 32px;
  font-size: 18.5px;
}

/* ---------- Portada de cada página ---------- */

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(44px, 7vw, 96px) 0 clamp(72px, 9vw, 120px);
}

.hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -10% -20% auto -20%;
  height: 120%;
  pointer-events: none;
  background:
    radial-gradient(50% 46% at 78% 26%, rgba(139, 92, 246, 0.3), transparent 70%),
    radial-gradient(34% 36% at 98% 72%, rgba(232, 121, 249, 0.16), transparent 70%),
    radial-gradient(40% 40% at 8% 0%, rgba(139, 92, 246, 0.1), transparent 70%);
}

.hero__rejilla {
  display: grid;
  gap: 56px;
  align-items: center;
}

@media (min-width: 980px) {
  .hero__rejilla {
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
    gap: 64px;
  }
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
  font: 500 12.5px/1.3 var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--v300);
}

.eyebrow::before {
  content: "";
  flex: none;
  width: 24px;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
}

.hero h1 {
  font-size: clamp(38px, 6.6vw, 72px);
  letter-spacing: -0.038em;
  line-height: 1.02;
}

.hero__lead {
  margin-top: 26px;
  max-width: 36em;
  font-size: clamp(17px, 1.55vw, 19.5px);
  line-height: 1.64;
  color: var(--text-2);
}

.acciones {
  margin-top: 34px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 22px;
}

.acciones__nota {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14.5px;
  line-height: 1.4;
  color: var(--text-3);
}

.punto {
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--wa);
}

/* ---------- La conversación ---------- */

.hero__visual {
  display: flex;
  justify-content: center;
}

.hero__marco {
  --hora: clamp(112px, 29vw, 216px);
  position: relative;
  width: min(100%, 410px);
  padding-top: calc(var(--hora) * 0.62);
}

.hero__hora {
  position: absolute;
  z-index: 0;
  top: 0;
  right: -0.17em;
  padding: 0 0.14em 0 0.08em;
  font: italic 400 var(--hora) / 1 var(--serif);
  letter-spacing: -0.045em;
  white-space: nowrap;
  pointer-events: none;
  -webkit-user-select: none;
  user-select: none;
  background: linear-gradient(180deg, rgba(196, 181, 253, 0.34) 0%, rgba(232, 121, 249, 0.1) 55%, rgba(232, 121, 249, 0) 88%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.chat {
  position: relative;
  z-index: 1;
  width: 100%;
  margin: 0;
  overflow: hidden;
  border-radius: 28px;
  background: linear-gradient(180deg, #141418 0%, #0d0d10 100%);
  border: 1px solid var(--line-2);
  box-shadow:
    0 40px 80px -36px rgba(0, 0, 0, 0.9),
    0 30px 120px -40px rgba(139, 92, 246, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.chat__barra {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 18px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}

.chat__avatar {
  flex: none;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--grad);
  color: #1a0b2e;
  font: 700 15px/1 var(--sans);
}

.chat__nombre {
  display: block;
  font-weight: 600;
  font-size: 15px;
  line-height: 1.25;
}

.chat__estado {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 2px;
  font: 500 11.5px/1.2 var(--mono);
  color: var(--text-3);
}

.chat__estado .punto {
  width: 7px;
  height: 7px;
}

.chat__hilo {
  list-style: none;
  margin: 0;
  padding: 18px 14px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background-image: radial-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 18px 18px;
}

.msg {
  position: relative;
  max-width: 86%;
  padding: 10px 13px 7px;
  border-radius: 18px;
  font-size: 15px;
  line-height: 1.45;
}

.msg time {
  display: block;
  margin-top: 4px;
  text-align: right;
  font: 500 10.5px/1 var(--mono);
  color: var(--text-4);
}

.msg--cliente {
  align-self: flex-start;
  background: var(--burbuja);
  border: 1px solid var(--line);
  border-bottom-left-radius: 6px;
}

.msg--agente {
  align-self: flex-end;
  background: linear-gradient(160deg, rgba(139, 92, 246, 0.32), rgba(139, 92, 246, 0.17));
  border: 1px solid rgba(167, 139, 250, 0.34);
  border-bottom-right-radius: 6px;
}

.msg--agente time {
  color: #b4a7d6;
}

.msg__firma {
  display: block;
  margin-bottom: 5px;
  font: 600 10.5px/1 var(--mono);
  letter-spacing: 0.12em;
  color: var(--v300);
}

.adjunto {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 2px 0 9px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--line);
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.3;
  color: var(--text);
}

.adjunto svg {
  flex: none;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: var(--v300);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.msg--escribiendo {
  align-self: flex-start;
  display: flex;
  gap: 4px;
  padding: 13px 14px;
  background: var(--burbuja);
  border: 1px solid var(--line);
  border-bottom-left-radius: 6px;
}

.msg--escribiendo span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-3);
  opacity: 0.6;
}

.chat__pie {
  padding: 12px 18px 14px;
  border-top: 1px solid var(--line);
  font: 500 11.5px/1.45 var(--mono);
  letter-spacing: 0.02em;
  color: var(--text-4);
}

/* ---------- Secciones ---------- */

.seccion {
  position: relative;
  padding: clamp(64px, 8.5vw, 112px) 0;
}

.seccion--borde {
  border-top: 1px solid var(--line);
}

.encabezado {
  max-width: 780px;
  margin-bottom: clamp(36px, 5vw, 56px);
}

h2 {
  font-size: clamp(31px, 4.6vw, 52px);
  line-height: 1.06;
}

.entrada {
  margin-top: 20px;
  font-size: clamp(17px, 1.5vw, 18.5px);
  line-height: 1.66;
  color: var(--text-2);
}

/* El dolor, en palabras del dueño */

.dolor__rejilla {
  display: grid;
  gap: 36px;
}

@media (min-width: 980px) {
  .dolor__rejilla {
    grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
    gap: 72px;
    align-items: end;
  }
}

.dolor blockquote {
  position: relative;
  margin: 0;
  font: 400 clamp(27px, 3.8vw, 46px) / 1.2 var(--serif);
  letter-spacing: -0.008em;
  color: var(--text);
}

.dolor blockquote p {
  text-indent: -0.36em;
  text-wrap: pretty;
}

.dolor__texto p {
  font-size: 17.5px;
  line-height: 1.72;
  color: var(--text-2);
}

.dolor__texto p + p {
  margin-top: 1em;
}

/* Lo que hace el agente */

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

@media (min-width: 660px) {
  .rejilla-hace {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1020px) {
  .rejilla-hace {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.tarjeta {
  position: relative;
  padding: 26px 24px 28px;
  border-radius: var(--radio);
  background: var(--surface);
  border: 1px solid var(--line);
  transition: border-color 0.3s, background 0.3s;
}

.tarjeta:hover {
  background: #141418;
  border-color: rgba(167, 139, 250, 0.3);
}

.tarjeta__num {
  display: block;
  font: 500 12.5px/1 var(--mono);
  letter-spacing: 0.08em;
  color: var(--v400);
}

.tarjeta h3 {
  margin: 18px 0 10px;
  font-size: 19.5px;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.tarjeta p {
  font-size: 16px;
  line-height: 1.62;
  color: var(--text-3);
}

/* Caso real */

.caso {
  position: relative;
  display: grid;
  gap: 32px;
  padding: clamp(26px, 4.4vw, 60px);
  border-radius: 32px;
  border: 1px solid transparent;
  background:
    radial-gradient(70% 90% at 0% 0%, rgba(139, 92, 246, 0.16), transparent 60%) padding-box,
    linear-gradient(#0e0e11, #0e0e11) padding-box,
    linear-gradient(135deg, rgba(167, 139, 250, 0.65), rgba(232, 121, 249, 0.18) 42%, rgba(255, 255, 255, 0.07)) border-box;
}

@media (min-width: 980px) {
  .caso {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: 64px;
    align-items: start;
  }
}

.caso h2 {
  margin-top: 20px;
  font-size: clamp(29px, 3.9vw, 46px);
}

.caso .entrada {
  margin-top: 22px;
}

.etiqueta {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 13px;
  border-radius: 999px;
  font: 500 11.5px/1 var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #86efac;
  background: rgba(37, 211, 102, 0.1);
  border: 1px solid rgba(37, 211, 102, 0.28);
}

.etiqueta .punto {
  width: 7px;
  height: 7px;
}

.etiqueta--montaje {
  color: var(--v300);
  background: rgba(139, 92, 246, 0.12);
  border-color: rgba(167, 139, 250, 0.32);
}

.etiqueta--montaje .punto {
  background: var(--v400);
}

.lista-check {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 16px;
}

.lista-check li {
  position: relative;
  padding-left: 38px;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-2);
}

.lista-check li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.12em;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid rgba(167, 139, 250, 0.4);
  background: rgba(139, 92, 246, 0.18) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c4b5fd' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 12px no-repeat;
}

.caso__lado {
  padding: 26px 22px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--line);
}

.caso__lado-titulo {
  margin-bottom: 20px;
  font: 500 12px/1.3 var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
}

/* Casos de otros giros (y portada) */

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

@media (min-width: 760px) {
  .casos {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1060px) {
  .casos--tres {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.caso-mini {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 26px 24px 28px;
  border-radius: var(--radio);
  background: var(--surface);
  border: 1px solid var(--line);
  color: inherit;
  text-decoration: none;
  transition: border-color 0.3s, background 0.3s, transform 0.35s var(--curva);
}

a.caso-mini:hover {
  color: inherit;
  background: #141418;
  border-color: rgba(167, 139, 250, 0.35);
  transform: translateY(-2px);
}

.caso-mini h3 {
  font-size: 20px;
  letter-spacing: -0.02em;
  line-height: 1.28;
}

.caso-mini p {
  font-size: 16px;
  line-height: 1.62;
  color: var(--text-3);
}

.caso-mini .etiqueta {
  align-self: flex-start;
}

.ir {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 15px;
  color: var(--v300);
}

.ir svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.3s var(--curva);
}

a:hover .ir svg {
  transform: translateX(4px);
}

/* Así trabaja (común a todas) */

.rejilla-trabaja {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1px;
  overflow: hidden;
  border-radius: var(--radio);
  background: var(--line);
  border: 1px solid var(--line);
}

@media (min-width: 720px) {
  .rejilla-trabaja {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .rejilla-trabaja li {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr);
    column-gap: 22px;
    align-content: start;
    padding: 34px 32px 36px;
  }
  .rejilla-trabaja .icono {
    grid-row: span 2;
  }
  .rejilla-trabaja h3 {
    margin-top: 10px;
  }
}

.rejilla-trabaja li {
  padding: 28px 24px 32px;
  background: var(--bg);
}

.rejilla-trabaja h3 {
  margin: 22px 0 10px;
  font-size: 19px;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.rejilla-trabaja p {
  font-size: 16px;
  line-height: 1.62;
  color: var(--text-3);
}

.icono {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 13px;
  background: rgba(139, 92, 246, 0.12);
  border: 1px solid rgba(167, 139, 250, 0.26);
  color: var(--v300);
}

.icono svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Portada: las cinco puertas */

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

@media (min-width: 700px) {
  .puertas {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .puerta:last-child {
    grid-column: 1 / -1;
  }
}

@media (min-width: 1060px) {
  .puertas {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
  .puerta,
  .puerta:last-child {
    grid-column: span 2;
  }
  .puerta:nth-child(-n + 2) {
    grid-column: span 3;
  }
}

.puerta {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 24px 24px 26px;
  border-radius: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: inherit;
  text-decoration: none;
  transition: transform 0.35s var(--curva), border-color 0.35s, background 0.35s;
}

.puerta::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(70% 70% at 100% 0%, rgba(139, 92, 246, 0.22), transparent 70%);
  opacity: 0;
  transition: opacity 0.35s;
}

.puerta:hover,
.puerta:focus-visible {
  color: inherit;
  transform: translateY(-3px);
  border-color: rgba(167, 139, 250, 0.42);
}

.puerta:hover::after,
.puerta:focus-visible::after {
  opacity: 1;
}

.puerta__cabeza {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.puerta h3 {
  font-size: 25px;
  letter-spacing: -0.03em;
}

.puerta__hora {
  flex: none;
  font: italic 400 26px/1 var(--serif);
  color: var(--v300);
  opacity: 0.85;
}

.puerta__quien {
  margin-top: -10px;
  font: 500 12px/1.4 var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-4);
}

.puerta__burbuja {
  align-self: flex-start;
  max-width: 94%;
  padding: 11px 14px;
  border-radius: 16px 16px 16px 5px;
  background: var(--burbuja);
  border: 1px solid var(--line);
  font-size: 15px;
  line-height: 1.42;
  color: var(--text);
}

.puerta__texto {
  font-size: 16px;
  line-height: 1.58;
  color: var(--text-3);
}

/* Precio (idéntico en todas) */

.precio__tarjeta {
  position: relative;
  overflow: hidden;
  padding: clamp(28px, 5vw, 64px);
  border-radius: 32px;
  border: 1px solid var(--line-2);
  background:
    radial-gradient(70% 110% at 100% 0%, rgba(139, 92, 246, 0.22), transparent 62%),
    #0e0e11;
}

.precio__cifras {
  display: grid;
  gap: 16px;
  margin-top: 36px;
}

@media (min-width: 720px) {
  .precio__cifras {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }
}

.cifra {
  padding: 24px 24px 26px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--line);
}

.cifra__desde {
  display: block;
  font: italic 400 24px/1 var(--serif);
  color: var(--v300);
}

.cifra__monto {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 12px;
  margin-top: 10px;
}

.cifra__monto strong {
  font-size: clamp(48px, 7vw, 74px);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.cifra__monto span {
  font-size: 19px;
  font-weight: 500;
  color: var(--text-3);
}

.cifra__que {
  display: block;
  margin-top: 14px;
  font: 500 12.5px/1.3 var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
}

.precio__frase {
  margin-top: 28px;
  max-width: 46em;
  font-size: 17px;
  line-height: 1.66;
  color: var(--text-2);
}

/* Cierre */

.cierre {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.cierre::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 20% -30% -40% -30%;
  pointer-events: none;
  background: radial-gradient(40% 50% at 50% 60%, rgba(139, 92, 246, 0.2), transparent 70%);
}

.cierre__caja {
  display: grid;
  gap: 30px;
}

@media (min-width: 980px) {
  .cierre__caja {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 72px;
    align-items: end;
  }
}

.cierre h2 {
  font-size: clamp(38px, 6vw, 70px);
  letter-spacing: -0.038em;
  line-height: 1.02;
}

.cierre__texto > p:first-child {
  font-size: 18px;
  line-height: 1.68;
  color: var(--text-2);
}

.cierre .acciones {
  margin-top: 30px;
}

.nota {
  margin-top: 18px;
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--text-3);
}

.nota a {
  color: var(--text-2);
}

/* Pie */

.pie {
  padding: 48px 0 44px;
  border-top: 1px solid var(--line);
}

.pie__giros {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 34px;
  padding: 0;
  list-style: none;
}

.pie__giros a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 15px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  color: var(--text-2);
  font-size: 14.5px;
  text-decoration: none;
  transition: border-color 0.25s, background 0.25s;
}

.pie__giros a:hover {
  color: var(--text);
  border-color: rgba(167, 139, 250, 0.45);
}

.pie__giros a[aria-current="page"] {
  color: var(--text);
  background: rgba(139, 92, 246, 0.14);
  border-color: rgba(167, 139, 250, 0.42);
}

.pie__legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px 32px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-4);
}

.pie__marca {
  display: flex;
  align-items: center;
  gap: 14px;
}

.pie__marca img {
  height: 14px;
  width: auto;
  opacity: 0.85;
}

.pie__enlaces {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
}

.pie a {
  color: var(--text-2);
}

/* Aviso de privacidad */

.legal {
  max-width: 740px;
}

.legal h1 {
  font-size: clamp(38px, 6vw, 60px);
  letter-spacing: -0.038em;
}

.legal__fecha {
  margin-top: 16px;
  font: 500 12.5px/1.4 var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-3);
  text-align: left;
}

.legal h2 {
  margin: 44px 0 14px;
  font-size: 22px;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.legal p:not([class]) {
  font-size: 17px;
  line-height: 1.72;
  color: var(--text-2);
}

.legal p:not([class]) + p:not([class]) {
  margin-top: 0.9em;
}

/* Página no encontrada */

.perdido {
  min-height: 60vh;
  display: grid;
  align-content: center;
}

.perdido h1 {
  font-size: clamp(40px, 7vw, 72px);
  letter-spacing: -0.04em;
}

.perdido .entrada {
  max-width: 34em;
}

/* ---------- Movimiento (solo si la persona no pidió reducirlo) ---------- */

@media (prefers-reduced-motion: no-preference) {
  .entra {
    animation: sube 0.8s var(--curva) both;
  }
  .entra--2 {
    animation-delay: 0.08s;
  }
  .entra--3 {
    animation-delay: 0.16s;
  }
  .entra--4 {
    animation-delay: 0.24s;
  }
  .hero__hora {
    animation: aparece 1.6s 0.1s ease-out both;
  }
  .chat {
    animation: sube 1s 0.2s var(--curva) both;
  }
  .chat__hilo > .msg {
    animation: burbuja 0.45s cubic-bezier(0.2, 0.8, 0.2, 1) both;
  }
  .chat__hilo > :nth-child(1) {
    animation-delay: 0.55s;
  }
  .chat__hilo > :nth-child(2) {
    animation-delay: 1s;
  }
  .chat__hilo > :nth-child(3) {
    animation-delay: 1.45s;
  }
  .chat__hilo > :nth-child(4) {
    animation-delay: 1.9s;
  }
  .chat__hilo > :nth-child(5) {
    animation-delay: 2.35s;
  }
  .chat__hilo > :nth-child(6) {
    animation-delay: 2.8s;
  }
  .msg--escribiendo span {
    animation: puntos 1.2s infinite;
  }
  .msg--escribiendo span:nth-child(2) {
    animation-delay: 0.15s;
  }
  .msg--escribiendo span:nth-child(3) {
    animation-delay: 0.3s;
  }
  .punto--vivo {
    animation: late 2.4s infinite;
  }
}

@keyframes sube {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes aparece {
  from {
    opacity: 0;
    transform: translateY(-14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes burbuja {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes puntos {
  0%,
  60%,
  100% {
    opacity: 0.35;
    transform: none;
  }
  30% {
    opacity: 1;
    transform: translateY(-3px);
  }
}

@keyframes late {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.55);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(37, 211, 102, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

/* ---------- Ajustes de celular ---------- */

@media (max-width: 520px) {
  body {
    font-size: 16.5px;
  }
  .contenedor {
    width: min(var(--ancho), 100% - 36px);
  }
  .cabecera__fila {
    height: 60px;
  }
  .marca__giro {
    font-size: 10.5px;
    letter-spacing: 0.08em;
    padding-left: 10px;
  }
  .boton--chico span {
    display: none;
  }
  .boton--chico {
    width: 44px;
    min-height: 44px;
    padding: 0;
  }
  .boton--chico svg {
    width: 21px;
    height: 21px;
  }
  .acciones .boton {
    width: 100%;
  }
  .msg {
    font-size: 14.5px;
  }
  .hero__hora {
    right: -0.06em;
  }
  .tarjeta,
  .caso-mini,
  .puerta {
    padding-left: 20px;
    padding-right: 20px;
  }
  .caso {
    padding: 26px 20px 22px;
    border-radius: 26px;
  }
  .caso__lado {
    margin: 0 -6px;
    padding: 22px 16px;
  }
  .lista-check li {
    padding-left: 34px;
    font-size: 16px;
  }
  .caso .entrada {
    font-size: 16.5px;
  }
  .precio__tarjeta {
    padding: 28px 20px;
    border-radius: 26px;
  }
  .cifra {
    padding: 22px 20px 24px;
  }
}
