/* ZORUN Labs · estilos del sitio. Colores en variables; modo oscuro según el sistema. */
:root {
  --tinta: #0c1222;
  --tinta-2: #16203a;
  --sobre-tinta: #e9edf6;
  --sobre-tinta-suave: #a9b3c8;
  --fondo: #f7f6f2;
  --fondo-alt: #efede6;
  --tarjeta: #ffffff;
  --texto: #171c2b;
  --suave: #566074;
  --borde: #e2dfd6;
  --acento: #2fd88f;
  --acento-texto: #0b7d4c;
  --radio: 18px;
  --sombra: 0 1px 2px rgb(12 18 34 / 6%), 0 10px 28px rgb(12 18 34 / 7%);
  --abajo: 0px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --fondo: #0e1424;
    --fondo-alt: #111a2e;
    --tarjeta: #151e35;
    --texto: #e7ebf4;
    --suave: #a3adc2;
    --borde: #26314f;
    --acento-texto: #5fe7aa;
    --sombra: none;
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --fondo: #0e1424;
  --fondo-alt: #111a2e;
  --tarjeta: #151e35;
  --texto: #e7ebf4;
  --suave: #a3adc2;
  --borde: #26314f;
  --acento-texto: #5fe7aa;
  --sombra: none;
  color-scheme: dark;
}

/* Netlify gratis pone un aviso fijo abajo a la derecha: se deja espacio para que no tape el pie. */
.con-aviso-netlify {
  --abajo: 64px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

body {
  margin: 0;
  background: var(--fondo);
  color: var(--texto);
  font: 400 1.0625rem/1.65 Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  padding-bottom: var(--abajo);
}

h1,
h2,
h3 {
  font-family: "Space Grotesk", Inter, system-ui, sans-serif;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0;
}

p {
  margin: 0;
}

a {
  color: var(--acento-texto);
}

img,
svg {
  display: block;
}

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

.saltar {
  position: absolute;
  left: -999px;
  top: 8px;
  background: var(--acento);
  color: var(--tinta);
  padding: 8px 14px;
  border-radius: 10px;
  z-index: 20;
}

.saltar:focus {
  left: 16px;
}

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

/* ---------- Botones ---------- */
.boton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  background: var(--acento);
  color: var(--tinta);
  font: 600 1rem/1 Inter, system-ui, sans-serif;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.boton:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgb(47 216 143 / 30%);
}

.boton--secundario {
  background: transparent;
  color: var(--sobre-tinta);
  box-shadow: inset 0 0 0 1.5px rgb(255 255 255 / 28%);
}

.boton--secundario:hover {
  box-shadow: inset 0 0 0 1.5px rgb(255 255 255 / 60%);
}

.boton--chico {
  min-height: 40px;
  padding: 0 18px;
  font-size: 0.95rem;
}

/* ---------- Cabecera ---------- */
.cabecera {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgb(12 18 34 / 88%);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgb(255 255 255 / 8%);
}

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

.marca {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--sobre-tinta);
  text-decoration: none;
  font: 700 1.2rem/1 "Space Grotesk", Inter, sans-serif;
  letter-spacing: 0.02em;
}

.navegacion {
  display: flex;
  align-items: center;
  gap: 26px;
}

.navegacion a:not(.boton) {
  color: var(--sobre-tinta-suave);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.97rem;
}

.navegacion a:not(.boton):hover {
  color: var(--sobre-tinta);
}

/* ---------- Héroe ---------- */
.heroe {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(60% 80% at 85% 10%, rgb(47 216 143 / 16%), transparent 60%),
    radial-gradient(50% 60% at 0% 100%, rgb(94 120 255 / 14%), transparent 60%),
    var(--tinta);
  color: var(--sobre-tinta);
  padding: clamp(56px, 9vw, 112px) 0 clamp(64px, 9vw, 120px);
}

.heroe__fila {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(32px, 6vw, 72px);
  align-items: center;
}

.antetitulo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--acento);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.antetitulo::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--acento);
  box-shadow: 0 0 0 4px rgb(47 216 143 / 20%);
}

.heroe h1 {
  font-size: clamp(2.2rem, 5.2vw, 3.7rem);
  font-weight: 700;
  max-width: 15ch;
}

.heroe h1 em {
  font-style: normal;
  color: var(--acento);
}

.heroe__texto {
  margin-top: 22px;
  max-width: 54ch;
  color: var(--sobre-tinta-suave);
  font-size: 1.15rem;
}

.heroe__acciones {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

/* Diagrama del flujo (decorativo) */
.flujo {
  list-style: none;
  margin: 0;
  padding: 22px;
  display: grid;
  gap: 20px;
  border: 1px solid rgb(255 255 255 / 10%);
  border-radius: 24px;
  background: linear-gradient(180deg, rgb(255 255 255 / 6%), rgb(255 255 255 / 2%));
}

.flujo li {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: var(--tinta-2);
  border: 1px solid rgb(255 255 255 / 8%);
  border-radius: 14px;
}

.flujo li + li::before {
  content: "";
  position: absolute;
  left: 32px;
  top: -21px;
  height: 20px;
  border-left: 2px dashed rgb(47 216 143 / 55%);
}

.flujo li.flujo__rama {
  margin-left: 32px;
  border-style: dashed;
  background: transparent;
}

.flujo li.flujo__rama::before {
  left: 0;
}

.flujo__icono {
  flex: none;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: rgb(47 216 143 / 14%);
  color: var(--acento);
}

.flujo__icono svg {
  width: 20px;
  height: 20px;
}

.flujo strong {
  display: block;
  color: var(--sobre-tinta);
  font-weight: 600;
  font-size: 0.98rem;
  line-height: 1.3;
}

.flujo small {
  display: block;
  color: var(--sobre-tinta-suave);
  font-size: 0.86rem;
  line-height: 1.4;
}

.flujo__estado {
  margin-left: auto;
  flex: none;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--acento);
  animation: latido 2.4s ease-in-out infinite;
}

@keyframes latido {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgb(47 216 143 / 45%);
  }
  50% {
    box-shadow: 0 0 0 7px rgb(47 216 143 / 0%);
  }
}

/* ---------- Secciones ---------- */
.seccion {
  padding: clamp(64px, 9vw, 112px) 0;
}

.seccion--alt {
  background: var(--fondo-alt);
}

.seccion__titulo {
  max-width: 640px;
  margin-bottom: clamp(32px, 5vw, 52px);
}

.seccion__titulo .antetitulo {
  color: var(--acento-texto);
}

.seccion__titulo .antetitulo::before {
  background: var(--acento-texto);
  box-shadow: 0 0 0 4px rgb(47 216 143 / 18%);
}

.seccion__titulo h2 {
  font-size: clamp(1.8rem, 3.6vw, 2.6rem);
}

.seccion__titulo p {
  margin-top: 14px;
  color: var(--suave);
  font-size: 1.1rem;
}

.rejilla {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.tarjeta {
  padding: 26px;
  background: var(--tarjeta);
  border: 1px solid var(--borde);
  border-radius: var(--radio);
  box-shadow: var(--sombra);
}

.tarjeta__icono {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  border-radius: 12px;
  background: rgb(47 216 143 / 14%);
  color: var(--acento-texto);
}

.tarjeta__icono svg {
  width: 24px;
  height: 24px;
}

.tarjeta h3 {
  font-size: 1.25rem;
  margin-bottom: 10px;
}

.tarjeta p {
  color: var(--suave);
  font-size: 1rem;
}

/* Pasos */
.pasos {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  counter-reset: paso;
}

.pasos li {
  position: relative;
  padding: 28px 26px 26px;
  border-top: 3px solid var(--acento);
  background: var(--tarjeta);
  border-radius: 4px 4px var(--radio) var(--radio);
  box-shadow: var(--sombra);
  counter-increment: paso;
}

.pasos li::before {
  content: "0" counter(paso);
  display: block;
  margin-bottom: 14px;
  color: var(--acento-texto);
  font: 700 0.95rem/1 "Space Grotesk", sans-serif;
  letter-spacing: 0.1em;
}

.pasos h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
}

.pasos p {
  color: var(--suave);
  font-size: 1rem;
}

/* Principios */
.principios {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.principio {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.principio .tarjeta__icono {
  flex: none;
  margin: 0;
}

.principio h3 {
  font-size: 1.15rem;
  margin-bottom: 6px;
}

.principio p {
  color: var(--suave);
  font-size: 1rem;
}

/* ---------- Contacto ---------- */
.contacto {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(32px, 6vw, 72px);
  align-items: start;
}

.contacto__lista {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
  color: var(--suave);
}

.contacto__lista li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.contacto__lista li::before {
  content: "";
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 4px;
  border-radius: 50%;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230c1222' 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,
    var(--acento);
}

.formulario {
  display: grid;
  gap: 16px;
  padding: clamp(22px, 4vw, 32px);
  background: var(--tarjeta);
  border: 1px solid var(--borde);
  border-radius: var(--radio);
  box-shadow: var(--sombra);
}

.formulario__fila {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.campo {
  display: grid;
  gap: 6px;
  font-weight: 500;
  font-size: 0.95rem;
}

.campo__texto {
  color: inherit;
}

.campo span span {
  color: var(--suave);
  font-weight: 400;
}

.campo input,
.campo textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--borde);
  border-radius: 12px;
  background: var(--fondo);
  color: var(--texto);
  font: inherit;
  font-weight: 400;
  font-size: 1rem;
}

.campo textarea {
  resize: vertical;
  min-height: 130px;
}

.campo input:focus,
.campo textarea:focus {
  outline: none;
  border-color: var(--acento-texto);
  box-shadow: 0 0 0 3px rgb(47 216 143 / 22%);
}

.casilla {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--suave);
  font-size: 0.92rem;
}

.casilla input {
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 3px;
  accent-color: var(--acento-texto);
}

.formulario .boton {
  justify-self: start;
}

.oculto {
  position: absolute;
  left: -9999px;
}

/* ---------- Pie ---------- */
.pie {
  background: var(--tinta);
  color: var(--sobre-tinta-suave);
  padding: 40px 0;
  font-size: 0.95rem;
}

.pie__fila {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.pie a {
  color: var(--sobre-tinta);
}

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

/* ---------- Páginas de texto (privacidad, gracias, 404) ---------- */
.documento {
  padding: clamp(48px, 7vw, 88px) 0;
}

.documento .contenedor {
  max-width: 760px;
}

.documento h1 {
  font-size: clamp(2rem, 4.5vw, 2.8rem);
}

.documento .fecha {
  margin-top: 10px;
  color: var(--suave);
}

.documento h2 {
  font-size: 1.35rem;
  margin: 40px 0 12px;
}

.documento p,
.documento li {
  color: var(--texto);
}

.documento p + p {
  margin-top: 12px;
}

.documento ul {
  padding-left: 22px;
  margin: 12px 0 0;
}

.documento li + li {
  margin-top: 6px;
}

.aviso {
  min-height: calc(100vh - 68px - 120px);
  display: grid;
  place-items: center;
  text-align: center;
  padding: 64px 0;
}

.aviso p {
  margin: 14px auto 28px;
  max-width: 46ch;
  color: var(--suave);
}

/* ---------- Responsive ---------- */
@media (max-width: 920px) {
  .heroe__fila,
  .contacto {
    grid-template-columns: 1fr;
  }

  .flujo {
    max-width: 520px;
  }

  .pasos,
  .principios {
    grid-template-columns: 1fr;
  }
}

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

  .navegacion a:not(.boton) {
    display: none;
  }

  .formulario__fila {
    grid-template-columns: 1fr;
  }

  .heroe__acciones .boton {
    flex: 1 1 100%;
  }

  .pie__fila {
    flex-direction: column;
    align-items: flex-start;
  }
}

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

  .flujo__estado {
    animation: none;
  }

  .boton {
    transition: none;
  }
}
