/* Modux · getmodux.cl
   Estética inspirada en linear.app: fondo casi negro, letra Inter, líneas finas,
   un violeta índigo de acento y tres colores de estado (amarillo, índigo y verde).
   Los colores están aquí arriba; si cambias uno, cambia en toda la página. */

@font-face {
  font-family: "Inter";
  src: url("/fuentes/inter.woff2") format("woff2-variations"),
       url("/fuentes/inter.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --fondo: #08090a;
  --fondo-2: #0f1011;
  --fondo-3: #1c1c1f;
  --borde: #23252a;
  --borde-2: #34343a;
  --texto: #f7f8f8;
  --texto-2: #d0d6e0;
  --texto-3: #8a8f98;
  --indigo: #5e6ad2;
  --indigo-hondo: #4f5bc4;
  --indigo-claro: #8f97ff;
  --amarillo: #f2c94c;
  --verde: #4cb782;
  --rojo: #eb5757;

  --hoja: 85rem;
  --margen: clamp(1rem, 4.5vw, 2.5rem);
  --corte: clamp(5rem, 13vw, 9rem);
  --radio: 12px;

  color-scheme: dark;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 4.5rem; scrollbar-color: var(--borde-2) var(--fondo); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--fondo);
  color: var(--texto);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.5;
  font-feature-settings: "cv01", "ss03";
  -webkit-font-smoothing: antialiased;
  caret-color: var(--indigo-claro);
}

::selection { background: rgb(94 106 210 / 0.55); color: #fff; }

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

a {
  color: inherit;
  text-decoration-line: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  text-decoration-color: var(--texto-3);
  transition: color 0.15s ease, text-decoration-color 0.15s ease;
}
a:hover { color: var(--indigo-claro); text-decoration-color: currentColor; }
/* Los enlaces dentro de un texto gris van un tono más claro que el texto, para que se noten */
.pregunta p a,
.formulario__nota a,
.otra-via a { color: var(--texto-2); }

:focus-visible { outline: 2px solid var(--indigo-claro); outline-offset: 3px; border-radius: 4px; }

.saltar {
  position: absolute;
  left: var(--margen);
  top: -4rem;
  padding: 0.5rem 0.9rem;
  border-radius: 8px;
  background: var(--indigo);
  color: #fff;
  z-index: 20;
}
.saltar:focus { top: 0.75rem; }
.saltar:hover { color: #fff; }

.hoja {
  width: 100%;
  max-width: var(--hoja);
  margin-inline: auto;
  padding-inline: var(--margen);
}

/* ── Barra de arriba ───────────────────────────────────── */

.barra {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgb(8 9 10 / 0.72);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid rgb(255 255 255 / 0.06);
}
.barra__dentro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 3.75rem;
}
.marca {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 2.75rem;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
}
.marca img { width: 1.6rem; height: auto; }
.barra__enlaces {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.875rem;
}
.barra__enlaces a:not(.boton) {
  display: inline-block;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  color: var(--texto-3);
  text-decoration: none;
}
.barra__enlaces a:not(.boton):hover { color: var(--texto); background: rgb(255 255 255 / 0.05); }
@media (max-width: 40rem) {
  .solo-amplio { display: none; }
  .portada { padding-top: clamp(0.9rem, 3vh, 2rem); }
  .titular { font-size: clamp(1.9rem, 1rem + 4.2vw, 2.2rem); line-height: 1.03; }
  /* La segunda frase del titular va más chica, para que el titular no ocupe 4 renglones grandes */
  .titular__tenue { margin-top: 0.3rem; font-size: 0.6em; letter-spacing: -0.02em; line-height: 1.15; }
  .bajada { font-size: 1rem; }
  .acciones { gap: 0.6rem 1rem; }
  .acciones .boton { min-height: 2.75rem; }
  .canales { font-size: 0.8rem; }
  /* En el celular el panel no muestra su cabecera, para que los tres pasos quepan en la primera pantalla */
  .panel__cabeza {
    position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); padding: 0; border: 0;
  }
  .panel { margin-top: clamp(1rem, 3vh, 1.5rem); }
  .renglon { padding-block: 0.6rem; }
  .renglon__detalle { font-size: 0.875rem; line-height: 1.4; }
}

/* ── Botones ───────────────────────────────────────────── */

.boton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 2.9rem;
  padding: 0 1.35rem;
  border: 0;
  border-radius: 999px;
  background: var(--indigo);
  color: #fff;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.18);
  font: inherit;
  font-size: 0.95rem;
  font-weight: 560;
  letter-spacing: -0.005em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, transform 0.1s ease;
}
.boton:hover { color: #fff; background: var(--indigo-hondo); }
.boton:active { transform: scale(0.98); }
.boton[disabled] { cursor: progress; opacity: 0.7; }
.boton--chico { min-height: 2.75rem; padding: 0 1.05rem; font-size: 0.85rem; }

/* ── Portada ───────────────────────────────────────────── */

.portada {
  position: relative;
  padding-block: clamp(1.1rem, 5vh, 5.5rem) 0;
}
.portada::before {
  /* Luz índigo muy suave detrás del panel */
  content: "";
  position: absolute;
  inset: 40% 0 auto;
  height: 30rem;
  background: radial-gradient(closest-side, rgb(94 106 210 / 0.16), transparent);
  pointer-events: none;
  z-index: -1;
}

.titular {
  margin: 0;
  font-size: clamp(2.05rem, 1.2rem + 3.9vw, 4.1rem);
  font-weight: 560;
  line-height: 1.04;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.titular > span { display: block; }
.titular__tenue { color: var(--texto-3); }

.bajada {
  margin: clamp(0.75rem, 2vh, 1.5rem) 0 0;
  max-width: 42ch;
  font-size: clamp(1.02rem, 0.95rem + 0.4vw, 1.2rem);
  line-height: 1.5;
  color: var(--texto-3);
  text-wrap: pretty;
}

.acciones {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.9rem 1.4rem;
  margin-top: clamp(1rem, 3vh, 2.2rem);
}
.canales {
  margin: 0;
  font-size: 0.875rem;
  color: var(--texto-3);
}

/* ── El panel: los tres pasos como una lista de estados ── */

.panel {
  margin-top: clamp(1.25rem, 4.5vh, 4rem);
  border: 1px solid var(--borde);
  border-radius: var(--radio);
  background: var(--fondo-2);
  position: relative;
}
.panel__cabeza {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.6rem 1rem;
  border-bottom: 1px solid var(--borde);
}
.panel__titulo {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 560;
  color: var(--texto-2);
}
.panel__meta { font-size: 0.8rem; color: var(--texto-3); }

.registro { margin: 0; padding: 0; list-style: none; }

.renglon {
  display: grid;
  grid-template-columns: 1rem 1fr auto;
  grid-template-areas:
    "icono paso estado"
    ".     detalle detalle";
  column-gap: 0.75rem;
  row-gap: 0.2rem;
  align-items: center;
  padding: clamp(0.6rem, 1.4vh, 1rem) 1rem;
}
.renglon + .renglon { border-top: 1px solid var(--borde); }
.renglon__icono { grid-area: icono; width: 1rem; height: 1rem; }
.icono-recibido { color: var(--amarillo); }
.icono-registrado { color: var(--indigo-claro); }
.icono-revisado { color: var(--verde); }
.renglon__paso { grid-area: paso; font-size: 1rem; font-weight: 560; }
.renglon__detalle {
  grid-area: detalle;
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.45;
  color: var(--texto-3);
  text-wrap: pretty;
}

@media (min-width: 48rem) {
  .renglon {
    grid-template-columns: 1rem minmax(8rem, 11rem) 1fr auto;
    grid-template-areas: "icono paso detalle estado";
    column-gap: 1.1rem;
    padding-inline: 1.4rem;
  }
  .panel__cabeza { padding-inline: 1.4rem; }
  .renglon__detalle { font-size: 0.95rem; }
}

/* ── Etiquetas de estado ───────────────────────────────── */

.estado {
  --tono: var(--texto-3);
  grid-area: estado;
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.22rem 0.6rem 0.22rem 0.5rem;
  border: 1px solid color-mix(in srgb, var(--tono) 35%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--tono) 12%, transparent);
  color: var(--texto-2);
  font-size: 0.78rem;
  font-weight: 520;
  line-height: 1.2;
  white-space: nowrap;
}
.estado::before {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--tono);
}
.estado--recibido { --tono: var(--amarillo); }
.estado--registrado { --tono: var(--indigo-claro); }
.estado--revisado { --tono: var(--verde); }
.estado--borrador { --tono: var(--amarillo); }
.estado--devuelto { --tono: var(--rojo); }

/* Cada etiqueta aparece una vez, en orden, y queda. */
@keyframes marcar {
  0%   { opacity: 0; transform: scale(1.25); filter: blur(4px); }
  60%  { opacity: 1; transform: scale(0.97); filter: blur(0); }
  100% { opacity: 1; transform: scale(1); }
}
@keyframes subir {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: no-preference) {
  .titular, .bajada, .acciones { animation: subir 0.7s cubic-bezier(0.16, 1, 0.3, 1) both; }
  .bajada { animation-delay: 0.08s; }
  .acciones { animation-delay: 0.16s; }
  .panel { animation: subir 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.25s both; }
  .registro .estado { animation: marcar 0.42s cubic-bezier(0.16, 1, 0.3, 1) both; }
  .renglon:nth-child(1) .estado { animation-delay: 0.75s; }
  .renglon:nth-child(2) .estado { animation-delay: 1.1s; }
  .renglon:nth-child(3) .estado { animation-delay: 1.45s; }
  .estado--recibido-final { animation: marcar 0.42s cubic-bezier(0.16, 1, 0.3, 1) 0.1s both; }
}

/* ── Secciones de abajo ────────────────────────────────── */

.parte {
  display: grid;
  gap: 2rem;
  margin-top: var(--corte);
  padding-top: clamp(2.5rem, 6vw, 4rem);
  /* La línea de arriba va solo a lo ancho del contenido, no del margen */
  background: linear-gradient(var(--borde), var(--borde)) top center / calc(100% - 2 * var(--margen)) 1px no-repeat;
}
@media (min-width: 56rem) {
  .parte { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.4fr); gap: 4rem; }
}
.parte__titulo {
  margin: 0;
  font-size: clamp(1.75rem, 1.2rem + 2vw, 2.6rem);
  font-weight: 560;
  line-height: 1.08;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.parte__intro {
  margin: 0.9rem 0 0;
  max-width: 34ch;
  color: var(--texto-3);
  text-wrap: pretty;
}
.otra-via { margin: 1.2rem 0 0; color: var(--texto-3); font-size: 0.95rem; }

/* ── Preguntas ─────────────────────────────────────────── */

.preguntas { border-top: 1px solid var(--borde); }
.pregunta { border-bottom: 1px solid var(--borde); }
.pregunta summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 3.5rem;
  padding-block: 0.8rem;
  font-size: 1rem;
  font-weight: 520;
  line-height: 1.4;
  cursor: pointer;
  list-style: none;
  transition: color 0.15s ease;
}
.pregunta summary::-webkit-details-marker { display: none; }
.pregunta summary:hover { color: var(--indigo-claro); }
.pregunta summary::after {
  content: "";
  flex: none;
  width: 0.75rem;
  height: 0.75rem;
  background:
    linear-gradient(currentColor, currentColor) center / 100% 1.5px no-repeat,
    linear-gradient(currentColor, currentColor) center / 1.5px 100% no-repeat;
  color: var(--texto-3);
}
.pregunta[open] summary::after {
  background: linear-gradient(currentColor, currentColor) center / 100% 1.5px no-repeat;
}
.pregunta p {
  margin: 0 0 1.1rem;
  max-width: 60ch;
  padding-right: 2rem;
  color: var(--texto-3);
}

/* ── Formulario ────────────────────────────────────────── */

.formulario {
  display: grid;
  gap: 1rem;
  padding: clamp(1.1rem, 3vw, 1.75rem);
  border: 1px solid var(--borde);
  border-radius: var(--radio);
  background: var(--fondo-2);
}
@media (min-width: 40rem) {
  .formulario { grid-template-columns: 1fr 1fr; column-gap: 1rem; }
  .campo--ancho, .formulario__pie, .formulario__estado { grid-column: 1 / -1; }
}
.campo { display: grid; gap: 0.4rem; align-content: start; }
.campo label { font-size: 0.875rem; font-weight: 520; color: var(--texto-2); }
.campo label small { margin-left: 0.3rem; font-size: 0.8rem; font-weight: 400; color: var(--texto-3); }
.campo input,
.campo textarea {
  width: 100%;
  min-height: 2.75rem;
  padding: 0.6rem 0.8rem;
  border: 1px solid var(--borde-2);
  border-radius: 8px;
  background: var(--fondo);
  color: var(--texto);
  font: inherit;
  font-size: 1rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.campo textarea { resize: vertical; min-height: 6rem; line-height: 1.5; }
.campo input::placeholder,
.campo textarea::placeholder { color: #7d828b; opacity: 1; }
.campo input:hover,
.campo textarea:hover { border-color: #4a4b52; }
.campo input:focus-visible,
.campo textarea:focus-visible {
  outline: none;
  border-color: var(--indigo);
  box-shadow: 0 0 0 3px rgb(94 106 210 / 0.3);
}
.campo [aria-invalid="true"] { border-color: var(--rojo); }
.campo__error { margin: 0; font-size: 0.85rem; font-weight: 500; color: #ff8a8a; }
.campo__error:empty { display: none; }

.formulario__pie {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.9rem 1.25rem;
  margin-top: 0.4rem;
}
.formulario__nota { margin: 0; font-size: 0.85rem; color: var(--texto-3); }
.formulario__estado { margin: 0; font-size: 0.95rem; color: var(--texto-2); }
.formulario__estado:empty { display: none; }

.trampa { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.recibido {
  display: grid;
  justify-items: start;
  gap: 1rem;
  padding: clamp(1.4rem, 3vw, 2rem);
  border: 1px solid var(--borde);
  border-radius: var(--radio);
  background: var(--fondo-2);
}
.recibido .estado { font-size: 0.95rem; padding: 0.35rem 0.85rem 0.35rem 0.7rem; }
.recibido p { margin: 0; font-size: 1.05rem; color: var(--texto-2); }

/* ── Pie ───────────────────────────────────────────────── */

.pie { margin-top: var(--corte); }
.pie__fila {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 1.5rem;
  margin: 0;
  padding-block: 1rem 1.5rem;
  border-top: 1px solid var(--borde);
  font-size: 0.85rem;
  color: var(--texto-3);
}
.pie__marca { display: inline-flex; align-items: center; gap: 0.5rem; color: var(--texto-2); }
.pie__fila a { display: inline-flex; align-items: center; min-height: 2.75rem; text-decoration: none; }
.pie__fila a:hover { color: var(--indigo-claro); }

/* ── Páginas legales y 404 ─────────────────────────────── */

.legal {
  max-width: 44rem;
  padding-block: clamp(2rem, 6vh, 4rem) 0;
  color: var(--texto-2);
}
.legal h1 {
  margin: 0;
  color: var(--texto);
  font-size: clamp(2rem, 1.4rem + 2.4vw, 3rem);
  font-weight: 560;
  line-height: 1.08;
  letter-spacing: -0.03em;
}
.legal__fecha { margin: 0.75rem 0 2rem; color: var(--texto-3); font-size: 0.9rem; }
.legal h2 {
  margin: 2.4rem 0 0.6rem;
  padding-top: 1rem;
  border-top: 1px solid var(--borde);
  color: var(--texto);
  font-size: 1.1rem;
  font-weight: 560;
  line-height: 1.3;
}
.legal p,
.legal li { max-width: 68ch; }
.legal strong { color: var(--texto); font-weight: 560; }
.legal ul { padding-left: 1.2rem; }
.legal li { margin-bottom: 0.4rem; }
.legal li::marker { color: var(--indigo-claro); }
.legal a { text-decoration-color: var(--texto-3); }

.borrador {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.8rem 1rem;
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--borde);
}
.borrador p { margin: 0; color: var(--texto); font-weight: 520; }
.borrador .estado { justify-self: start; }

.extraviada {
  display: grid;
  justify-items: start;
  gap: 1.25rem;
  padding-block: clamp(3rem, 14vh, 8rem) 0;
}
.extraviada h1 {
  margin: 0;
  font-size: clamp(2rem, 1.4rem + 2.6vw, 3.4rem);
  font-weight: 560;
  line-height: 1.05;
  letter-spacing: -0.035em;
}
.extraviada p { margin: 0; color: var(--texto-3); }

/* ── Redes (abajo a la derecha, siempre a la vista) ──── */

.redes {
  position: fixed;
  right: max(1rem, env(safe-area-inset-right));
  bottom: max(1rem, env(safe-area-inset-bottom));
  z-index: 15;
}
/* En pantallas donde el contenido llega casi al borde, los íconos se apartan
   mientras taparían el panel de los pasos, el formulario o el pie (efectos.js) */
.redes { transition: opacity 0.2s ease, translate 0.2s ease, visibility 0.2s; }
.redes--fuera { opacity: 0; translate: 0 0.75rem; visibility: hidden; }
@media (max-width: 88.99rem) {
  /* Espacio a la derecha de cada pregunta para que los íconos no tapen el "+" ni la respuesta */
  .pregunta summary { padding-right: 3.5rem; }
  .pregunta p { padding-right: 3.5rem; }
}
.redes__lista {
  display: grid;
  gap: 0.6rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.redes__lista li { position: relative; }
.redes__lista li[hidden] { display: none; }
.redes__enlace {
  display: grid;
  place-items: center;
  width: 2.9rem;
  height: 2.9rem;
  border: 1px solid var(--borde-2);
  border-radius: 50%;
  background: rgb(15 16 17 / 0.85);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  color: var(--texto-2);
  transition: color 0.15s ease, border-color 0.15s ease, background-color 0.15s ease;
}
.redes__enlace svg { width: 1.15rem; height: 1.15rem; }
.redes__enlace:hover { color: var(--texto); border-color: var(--indigo); background: rgb(28 28 31 / 0.95); }

/* El nombre de cada red aparece a la izquierda al pasar el mouse o con el teclado */
.redes__enlace::after {
  content: attr(data-nombre);
  position: absolute;
  right: calc(100% + 0.6rem);
  top: 50%;
  translate: 0 -50%;
  padding: 0.3rem 0.6rem;
  border: 1px solid var(--borde);
  border-radius: 6px;
  background: var(--fondo-2);
  color: var(--texto-2);
  font-size: 0.8rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
}
.redes__enlace:hover::after,
.redes__enlace:focus-visible::after { opacity: 1; }

@media (prefers-reduced-motion: no-preference) {
  .redes__lista li { animation: subir 0.6s cubic-bezier(0.16, 1, 0.3, 1) both; }
  .redes__lista li:nth-child(1) { animation-delay: 1.6s; }
  .redes__lista li:nth-child(2) { animation-delay: 1.7s; }
  .redes__lista li:nth-child(3) { animation-delay: 1.8s; }
}

/* ── Efectos del muestrario de 21st.dev (28-10-2026) ───── */

.visualmente-oculto {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* 1. La palabra del titular rota entre boleta, factura y gasto */
.rota {
  display: inline-grid;
  vertical-align: top;
  overflow: hidden;
  height: 1.04em;
  line-height: 1.04;
  color: var(--indigo-claro);
}
.rota > span { grid-area: 1 / 1; }
@media (prefers-reduced-motion: no-preference) {
  /* Cada palabra se ve unos 2 segundos; la primera parte visible */
  .rota > span { opacity: 0; transform: translateY(100%); animation: rotar 7.5s infinite; }
  .rota > span:nth-child(2) { animation-delay: 2.05s; }
  .rota > span:nth-child(3) { animation-delay: 4.55s; }
  .rota > span:first-child { animation-name: rotar-primera; animation-delay: 0s; }
}
@media (prefers-reduced-motion: reduce) {
  .rota > span:not(:first-child) { visibility: hidden; }
}
@keyframes rotar {
  0% { opacity: 0; transform: translateY(100%); }
  6%, 30% { opacity: 1; transform: none; }
  36%, 100% { opacity: 0; transform: translateY(-100%); }
}
/* La primera palabra parte visible (sin esperar) y después sigue el mismo ciclo */
@keyframes rotar-primera {
  0%, 30% { opacity: 1; transform: none; }
  36%, 94% { opacity: 0; transform: translateY(-100%); }
  95% { opacity: 0; transform: translateY(100%); }
  100% { opacity: 1; transform: none; }
}

/* 2. Borde con luz que sigue al mouse (panel de pasos y formulario) */
[data-foco] { --x: 50%; --y: 0%; position: relative; }
[data-foco]::before,
[data-foco]::after {
  content: "";
  position: absolute;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}
[data-foco]::before {
  inset: -1px;
  padding: 1px;
  background: radial-gradient(260px circle at var(--x) var(--y), var(--indigo-claro), transparent 60%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}
[data-foco]::after {
  inset: 0;
  background: radial-gradient(360px circle at var(--x) var(--y), rgb(94 106 210 / 0.08), transparent 60%);
}
@media (hover: hover) {
  [data-foco]:hover::before,
  [data-foco]:hover::after { opacity: 1; }
}

/* 3. Botón con flecha que entra y una luz que lo cruza */
.boton { position: relative; overflow: hidden; isolation: isolate; }
.boton .flecha {
  width: 0;
  height: 1em;
  margin-left: -0.4rem;
  opacity: 0;
  transform: translateX(-6px);
  transition: width 0.25s ease, margin 0.25s ease, opacity 0.25s ease, transform 0.25s ease;
}
.boton:hover .flecha,
.boton:focus-visible .flecha { width: 1em; margin-left: 0; opacity: 1; transform: none; }
.boton::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgb(255 255 255 / 0.12);
  transform: translateX(-101%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.boton:hover::before { transform: none; }
@media (prefers-reduced-motion: reduce) {
  .boton .flecha, .boton::before { transition: none; }
}
