/* Ñaño IA public site. Colors and type follow brand/brand-identity.md (Vecino, set A). */

@font-face {
  font-family: "Unbounded";
  src: url("/fonts/unbounded.woff2") format("woff2");
  font-weight: 600 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Host Grotesk";
  src: url("/fonts/hostgrotesk.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Martian Mono";
  src: url("/fonts/martianmono.woff2") format("woff2");
  font-weight: 500 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --brick: #9a3412;
  --ink: #2b2420;
  --graphite: #5e534c;
  --paper: #ffffff;
  --surface: #f5f0e8;
  --sun: #f4b740;
  --celeste: #5db7e8;
  --linea: rgba(43, 36, 32, 0.14);
  --display: "Unbounded", "Host Grotesk", system-ui, sans-serif;
  --body: "Host Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --data: "Martian Mono", ui-monospace, monospace;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.65;
  overflow-x: hidden;
}

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

a {
  color: var(--brick);
}

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

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

.salto:focus {
  top: 0;
}

.contenedor {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 16px;
}

/* Header */

header.sitio {
  border-bottom: 1px solid var(--linea);
  background: var(--paper);
}

.barra {
  display: flex;
  align-items: center;
  gap: 32px;
  padding-top: 16px;
  padding-bottom: 16px;
}

.marca {
  display: inline-flex;
  flex: none;
}

.marca img {
  display: block;
  height: 36px;
  width: auto;
}

.navegacion {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-left: auto;
}

.navegacion a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.98rem;
}

.navegacion a:hover {
  color: var(--brick);
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* Buttons */

.boton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 22px;
  border: 2px solid var(--brick);
  border-radius: 10px;
  background: var(--brick);
  color: var(--paper);
  font-family: var(--body);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: filter 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}

.boton:hover {
  filter: brightness(0.9);
}

.boton--linea {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}

.boton--linea:hover {
  background: var(--surface);
  filter: none;
}

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

/* Hero */

.heroe {
  padding: clamp(40px, 6vw, 84px) 0 clamp(52px, 7vw, 92px);
}

.heroe-rejilla {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
  align-items: center;
  gap: clamp(32px, 5vw, 64px);
}

.etiqueta {
  margin: 0 0 14px;
  font-family: var(--data);
  font-weight: 500;
  font-size: 0.72rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--brick);
}

.heroe h1 {
  margin: 0 0 20px;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.95rem, 3.6vw, 3rem);
  line-height: 1.08;
  letter-spacing: -0.025em;
  word-spacing: 0.03em;
  text-wrap: balance;
}

.entrada {
  max-width: 46ch;
  margin: 0 0 30px;
  color: var(--graphite);
  font-size: 1.13rem;
  line-height: 1.6;
}

.acciones {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Chat demo */

.demo {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 236px;
  align-items: end;
  gap: 14px;
  width: 100%;
  max-width: 544px;
  margin-left: auto;
}

.telefono {
  width: 100%;
  max-width: 300px;
  overflow: hidden;
  justify-self: end;
  background: var(--paper);
  border: 1px solid var(--linea);
  border-radius: 30px;
  box-shadow: 0 22px 46px rgba(43, 36, 32, 0.13), 0 2px 6px rgba(43, 36, 32, 0.06);
}

.telefono-cabecera {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border-bottom: 1px solid var(--linea);
  background: var(--paper);
}

.telefono-cabecera img {
  flex: none;
  width: 32px;
  height: 32px;
}

.telefono-contacto strong {
  display: block;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.25;
}

.telefono-contacto span {
  display: block;
  color: var(--graphite);
  font-size: 0.72rem;
  line-height: 1.3;
}

.pantalla {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px;
  background: var(--paper);
}

.linea {
  display: flex;
}

.linea--cliente {
  justify-content: flex-end;
}

.linea--asistente {
  position: relative;
  justify-content: flex-start;
}

.burbuja {
  max-width: 88%;
  margin: 0;
  padding: 9px 12px;
  font-size: 0.82rem;
  line-height: 1.45;
  border-radius: 14px;
}

.linea--cliente .burbuja {
  background: var(--surface);
  border-bottom-right-radius: 5px;
}

.linea--asistente .burbuja {
  background: var(--paper);
  border: 1px solid var(--linea);
  border-bottom-left-radius: 5px;
}

.escribiendo {
  position: absolute;
  top: 0;
  left: 0;
  display: none;
  align-items: center;
  gap: 4px;
  padding: 10px 12px;
  background: var(--paper);
  border: 1px solid var(--linea);
  border-radius: 14px;
  border-bottom-left-radius: 5px;
}

.escribiendo.activo {
  display: inline-flex;
}

.escribiendo i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--graphite);
  animation: punto 1.05s infinite ease-in-out;
}

.escribiendo i:nth-child(2) {
  animation-delay: 0.15s;
}

.escribiendo i:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes punto {
  0%,
  60%,
  100% {
    opacity: 0.25;
    transform: translateY(0);
  }

  30% {
    opacity: 1;
    transform: translateY(-2px);
  }
}

.telegram {
  width: 100%;
  margin-bottom: 6px;
  padding: 12px;
  background: var(--paper);
  border: 1px solid var(--linea);
  border-radius: 16px;
  box-shadow: 0 16px 34px rgba(43, 36, 32, 0.14);
}

.telegram-etiqueta {
  margin: 0 0 10px;
  font-family: var(--data);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--graphite);
}

.telegram-titulo {
  margin: 0 0 7px;
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.35;
}

.telegram-dato {
  margin: 0 0 4px;
  color: var(--graphite);
  font-size: 0.79rem;
  line-height: 1.45;
}

.telegram-botones {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.tg-boton {
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 0.74rem;
  font-weight: 600;
  line-height: 1.3;
  transition: transform 0.12s ease, filter 0.12s ease;
}

.tg-boton--aceptar {
  background: var(--brick);
  color: var(--paper);
}

.tg-boton--rechazar {
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--linea);
}

.tg-boton.pulsado {
  transform: scale(0.96);
  filter: brightness(0.86);
}

.telegram-tarjeta [data-tg-aceptado] {
  display: none;
}

.telegram-tarjeta.aceptado [data-tg-nuevo] {
  display: none;
}

.telegram-tarjeta.aceptado [data-tg-aceptado] {
  display: block;
}

.telegram-tarjeta.aceptado .telegram-botones {
  display: none;
}

/* Sections */

.cambios,
.como-funciona,
.nunca,
.preguntas {
  padding: clamp(48px, 7vw, 84px) 0;
}

h2 {
  margin: 0 0 clamp(24px, 4vw, 38px);
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.5rem, 2.6vw, 2.05rem);
  line-height: 1.18;
  letter-spacing: -0.02em;
}

h3 {
  margin: 0;
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.02rem;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

.cambios-rejilla {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 36px);
}

.cambio {
  padding-top: 20px;
  border-top: 1px solid var(--linea);
}

.cambio h3 {
  margin-bottom: 8px;
}

.cambio p {
  margin: 0;
  color: var(--graphite);
  font-size: 1rem;
  line-height: 1.6;
}

/* How it works */

.pasos {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 36px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.paso {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 14px;
  padding-top: 20px;
  border-top: 1px solid var(--linea);
}

.paso-numero {
  color: var(--brick);
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.75rem;
  line-height: 1;
}

.paso h3 {
  margin-bottom: 8px;
}

.paso p {
  margin: 0;
  color: var(--graphite);
  font-size: 1rem;
  line-height: 1.6;
}

/* Never list */

.lista-nunca {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 40px;
  max-width: 920px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.lista-nunca li {
  position: relative;
  padding: 12px 0 12px 28px;
  border-bottom: 1px solid var(--linea);
  font-size: 1rem;
  line-height: 1.5;
}

.lista-nunca li:last-child {
  grid-column: 1 / -1;
}

.lista-nunca li::before {
  content: "✕";
  position: absolute;
  top: 9px;
  left: 0;
  color: var(--brick);
  font-weight: 700;
  font-size: 1.05rem;
}

/* Prices */

.planes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  gap: clamp(20px, 3vw, 36px);
}

.plan {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: clamp(24px, 3vw, 34px);
  background: var(--paper);
  border: 1px solid var(--linea);
  border-radius: 18px;
}

.plan--destacado {
  background: var(--sun);
  border-color: transparent;
  box-shadow: 0 18px 40px rgba(43, 36, 32, 0.16);
}

@media (min-width: 900px) {
  .plan--destacado {
    transform: rotate(-1.5deg);
  }
}

.plan--destacado .etiqueta {
  margin-bottom: 8px;
  color: var(--ink);
}

.plan h3 {
  margin-bottom: 4px;
  font-size: 1.18rem;
}

.plan--simple h3 {
  margin-bottom: 12px;
}

.precio-antes {
  margin: 6px 0 0;
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.35rem;
  line-height: 1.3;
  color: rgba(43, 36, 32, 0.7);
  text-decoration: line-through;
  text-decoration-color: var(--brick);
  text-decoration-thickness: 2px;
}

.precio {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
  margin: 2px 0 0;
}

.precio-cifra {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2.1rem, 4vw, 3.15rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--brick);
}

.plan--simple .precio-cifra {
  font-size: clamp(1.26rem, 2.4vw, 1.89rem);
  color: var(--ink);
}

.precio-iva {
  font-family: var(--data);
  font-weight: 500;
  font-size: 0.7rem;
  color: var(--ink);
}

.plan--simple .precio-iva {
  color: var(--graphite);
}

.plan-linea {
  margin: 12px 0 20px;
  font-weight: 600;
  line-height: 1.4;
}

.plan-incluye {
  display: grid;
  gap: 8px;
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
}

.plan-incluye li {
  position: relative;
  padding-left: 18px;
  font-size: 0.97rem;
  line-height: 1.5;
}

.plan-incluye li::before {
  content: "";
  position: absolute;
  top: 0.55em;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brick);
}

.plan .boton {
  margin-top: auto;
}

.nota {
  max-width: 660px;
  margin: 30px 0 0;
  color: var(--graphite);
  font-size: 0.9rem;
  line-height: 1.55;
}

/* FAQ */

.faq {
  max-width: 820px;
  border-top: 1px solid var(--linea);
}

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

.faq summary {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 0;
  cursor: pointer;
  font-weight: 600;
  font-size: 1.02rem;
  line-height: 1.45;
  list-style: none;
}

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

.faq summary::after {
  content: "+";
  flex: none;
  color: var(--brick);
  font-family: var(--data);
  font-size: 1.1rem;
  line-height: 1;
}

.faq details[open] summary::after {
  content: "−";
}

.faq details p {
  max-width: 68ch;
  margin: 0;
  padding: 0 0 20px;
  color: var(--graphite);
  font-size: 1rem;
  line-height: 1.65;
}

/* Closing band */

.cierre {
  padding: clamp(56px, 8vw, 96px) 0;
  background: var(--surface);
}

.cierre h2 {
  margin-bottom: 12px;
}

.cierre p {
  margin: 0 0 22px;
  color: var(--graphite);
  font-size: 1.12rem;
}

.cierre-enlace {
  display: inline-block;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.45rem, 4vw, 2.55rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--brick);
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}

/* Footer */

footer.sitio {
  padding: 30px 0;
  background: var(--ink);
  color: var(--surface);
  font-size: 0.9rem;
}

footer.sitio a {
  color: var(--surface);
  text-underline-offset: 3px;
}

footer.sitio :focus-visible {
  outline-color: var(--sun);
}

.pie {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 24px;
}

/* Privacy document */

.documento {
  max-width: 792px;
  padding-top: clamp(40px, 6vw, 64px);
  padding-bottom: clamp(40px, 6vw, 64px);
}

.documento h1 {
  margin: 0 0 10px;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.8rem, 3.4vw, 2.5rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.documento .fecha {
  margin: 0 0 34px;
  color: var(--graphite);
  font-size: 0.95rem;
}

.documento h2 {
  margin: 36px 0 10px;
  font-size: clamp(1.1rem, 1.8vw, 1.3rem);
  line-height: 1.35;
}

.documento p {
  margin: 0 0 14px;
}

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

.documento li {
  margin-bottom: 6px;
}

.documento .tabla {
  margin: 0 0 16px;
  overflow-x: auto;
}

.documento table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.94rem;
}

.documento th,
.documento td {
  padding: 10px 10px;
  border-bottom: 1px solid var(--linea);
  text-align: left;
  vertical-align: top;
}

.documento th {
  background: var(--surface);
  font-weight: 600;
}

/* Responsive */

@media (max-width: 960px) {
  .heroe-rejilla {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
  }

  .heroe-texto {
    max-width: 640px;
  }

  .demo {
    max-width: 520px;
    margin: 0 auto;
  }

  .entrada {
    max-width: 56ch;
  }
}

@media (max-width: 860px) {
  .cambios-rejilla,
  .pasos {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .cambio,
  .paso {
    padding-top: 16px;
  }
}

@media (max-width: 780px) {
  .navegacion {
    display: none;
  }

  .barra {
    gap: 16px;
  }

  .barra .boton {
    margin-left: auto;
  }

  .marca img {
    height: 32px;
  }

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

  .plan--destacado {
    transform: none;
  }

  .lista-nunca {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 560px) {
  .demo {
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    gap: 18px;
  }

  .telefono {
    justify-self: center;
    max-width: 320px;
  }

  .telegram {
    max-width: 320px;
    margin-bottom: 0;
  }

  .heroe h1 {
    font-size: clamp(1.85rem, 7.6vw, 2.25rem);
  }

  .entrada {
    font-size: 1.06rem;
  }

  .acciones .boton {
    flex: 1 1 auto;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
