/*
 * La página de presentación (prescribe.com.ar). Misma paleta y misma
 * tipografía que la aplicación (src/index.css, docs/branding): la persona que
 * se registra desde acá tiene que sentir que entró al mismo lugar.
 *
 * Nada inline: la CSP es `style-src 'self'` (nginx.conf).
 */

@font-face {
  font-family: "Nunito Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 200 1000;
  src: url("/fuentes/nunito-latin-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304,
    U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --tinta: #16202b;
  --tinta-suave: #5b6b7c;
  --tinta-tenue: #8c9aa8;
  --fondo: #f4f6f8;
  --papel: #ffffff;
  --borde: #dde3e9;

  --marino: #054ea1;
  --azul: #0287fb;
  --turquesa: #02c6ce;
  --profundo: #04306a;
  --acento-tenue: #e8f1fe;

  --radio: 8px;
  --sombra: 0 1px 2px rgb(22 32 43 / 6%), 0 8px 24px rgb(4 48 106 / 8%);
  --ancho: 72rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Nunito Variable", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.55;
  color: var(--tinta);
  background: var(--papel);
}

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

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

h1,
h2,
h3 {
  line-height: 1.15;
  margin: 0;
  color: var(--profundo);
}

h2 {
  font-size: 2rem;
  font-weight: 800;
}

h3 {
  font-size: 1.1rem;
  font-weight: 750;
}

section {
  padding: 4.5rem 0;
}

section .sub {
  max-width: 44rem;
  margin: 0.75rem 0 2.5rem;
  font-size: 1.1rem;
  color: var(--tinta-suave);
}

.ancho {
  width: min(var(--ancho), 100% - 2rem);
  margin: 0 auto;
}

.boton {
  display: inline-block;
  padding: 0.75rem 1.4rem;
  border-radius: var(--radio);
  font-weight: 700;
  text-decoration: none;
  transition: background 0.15s, transform 0.15s;
}

.boton.principal {
  background: var(--marino);
  color: #fff;
}

.boton.principal:hover {
  background: var(--profundo);
}

.boton.vivo {
  background: var(--turquesa);
  color: var(--profundo);
  font-size: 1.05rem;
  padding: 0.9rem 1.7rem;
}

.boton.vivo:hover {
  background: #22d6dd;
  transform: translateY(-1px);
}

.boton.claro {
  background: rgb(255 255 255 / 12%);
  color: #fff;
  border: 1px solid rgb(255 255 255 / 45%);
  font-size: 1.05rem;
  padding: 0.9rem 1.7rem;
}

.boton.claro:hover {
  background: rgb(255 255 255 / 22%);
}

/* ------------------------------------------------------------------ barra */

.barra {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgb(255 255 255 / 92%);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--borde);
}

.barra .ancho {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4rem;
}

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

.barra nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.barra nav a:not(.boton) {
  color: var(--tinta);
  text-decoration: none;
  font-weight: 600;
}

.barra nav a:not(.boton):hover {
  color: var(--marino);
}

.menu {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 0.6rem;
  border: 0;
  background: none;
  cursor: pointer;
}

.menu span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--profundo);
}

/* ------------------------------------------------------------------- hero */

.hero {
  background: linear-gradient(135deg, var(--profundo) 0%, var(--marino) 60%, #0b63c4 100%);
  color: #fff;
  padding: 5rem 0 4rem;
  overflow: hidden;
}

.hero-grilla {
  display: grid;
  grid-template-columns: minmax(0, 11fr) minmax(0, 10fr);
  gap: 3rem;
  align-items: center;
}

.hero .sobre {
  margin: 0 0 1rem;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--turquesa);
}

.hero h1 {
  font-size: clamp(2.1rem, 4.2vw, 3.1rem);
  font-weight: 850;
  color: #fff;
}

.hero h1 em {
  font-style: normal;
  color: var(--turquesa);
}

.hero .sub {
  margin: 1.25rem 0 1.75rem;
  font-size: 1.15rem;
  color: rgb(255 255 255 / 85%);
  max-width: 36rem;
}

.hero .sub strong {
  color: #fff;
}

.hero .acciones {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 0;
}

.hero .nota {
  margin: 1rem 0 0;
  font-size: 0.95rem;
  color: rgb(255 255 255 / 70%);
}

.demo {
  margin: 0;
}

.demo .pantalla {
  border-radius: 12px;
  padding: 0.5rem;
  background: rgb(255 255 255 / 10%);
  box-shadow: 0 30px 60px rgb(0 0 0 / 35%);
}

.demo video {
  width: 100%;
  border-radius: 8px;
  background: #fff;
}

.demo figcaption {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
  margin-top: 1rem;
}

.demo figcaption span {
  font-size: 0.8rem;
  color: rgb(255 255 255 / 55%);
  border-top: 2px solid rgb(255 255 255 / 25%);
  padding-top: 0.5rem;
  transition: color 0.3s, border-color 0.3s;
}

.demo figcaption span.activa {
  color: #fff;
  border-color: var(--turquesa);
}

/* ------------------------------------------------------------------ cinta */

.cinta {
  padding: 0;
  background: var(--profundo);
  color: #fff;
}

.cinta ul {
  list-style: none;
  margin: 0;
  padding: 1.25rem 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.cinta li {
  display: flex;
  flex-direction: column;
  padding-left: 1rem;
  border-left: 3px solid var(--turquesa);
}

.cinta strong {
  font-size: 1rem;
}

.cinta span {
  font-size: 0.85rem;
  color: rgb(255 255 255 / 70%);
}

/* ------------------------------------------------- problema y para quién */

.tres {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.tres article {
  padding: 1.5rem;
  border: 1px solid var(--borde);
  border-radius: var(--radio);
  background: var(--papel);
  box-shadow: var(--sombra);
}

.tres article h3 {
  margin-bottom: 0.5rem;
}

.tres article p {
  margin: 0;
  color: var(--tinta-suave);
}

.tres article a {
  display: inline-block;
  margin-top: 1rem;
  font-weight: 700;
  text-decoration: none;
}

.tres article a::after {
  content: " →";
}

.problema {
  background: var(--fondo);
}

.quien .destacada {
  border-color: var(--marino);
  box-shadow: 0 0 0 3px var(--acento-tenue), var(--sombra);
}

/* -------------------------------------------------------------- funciones */

.funciones ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.funciones li {
  padding: 1.4rem;
  border: 1px solid var(--borde);
  border-radius: var(--radio);
  background: var(--papel);
}

.funciones svg {
  width: 32px;
  height: 32px;
  fill: none;
  stroke: var(--azul);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  margin-bottom: 0.75rem;
}

.funciones h3 {
  font-size: 1rem;
  margin-bottom: 0.4rem;
}

.funciones p {
  margin: 0;
  font-size: 0.93rem;
  color: var(--tinta-suave);
}

/* ------------------------------------------------------------------ pasos */

.pasos {
  background: var(--fondo);
}

.pasos ol {
  list-style: none;
  counter-reset: paso;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.pasos li {
  counter-increment: paso;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1.4rem;
  border-radius: var(--radio);
  background: var(--papel);
  border: 1px solid var(--borde);
}

.pasos li::before {
  content: counter(paso);
  width: 2.2rem;
  height: 2.2rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--marino);
  color: #fff;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.pasos li strong {
  font-size: 1.05rem;
  color: var(--profundo);
}

.pasos li span {
  color: var(--tinta-suave);
  font-size: 0.95rem;
}

/* ----------------------------------------------------------------- planes */

.planes .tarjetas {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
  gap: 1rem;
}

.plan {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 1.25rem;
  border: 1px solid var(--borde);
  border-radius: var(--radio);
  background: var(--papel);
  box-shadow: var(--sombra);
  font-size: 0.95rem;
}

.plan h3 {
  margin-bottom: 0.4rem;
}

.plan p {
  margin: 0;
}

.plan .precio {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--marino);
}

.plan .precio small {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--tinta-suave);
}

.plan .anual {
  font-size: 0.85rem;
  color: var(--tinta-suave);
  margin-bottom: 0.4rem;
}

/* `auto` empuja el pie y el botón al fondo: los cinco «Elegir» alineados. */
.plan .todo {
  margin-top: auto;
  padding-top: 0.75rem;
  border-top: 1px solid var(--borde);
  font-size: 0.85rem;
  color: var(--tinta-suave);
}

.plan .boton {
  margin-top: 0.75rem;
  text-align: center;
}

.planes .nota {
  margin: 1.5rem 0 0;
  font-size: 0.9rem;
  color: var(--tinta-suave);
}

/* -------------------------------------------------------------- preguntas */

.preguntas {
  background: var(--fondo);
}

.preguntas details {
  border-bottom: 1px solid var(--borde);
  padding: 0.9rem 0;
  max-width: 48rem;
}

.preguntas summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--profundo);
}

.preguntas details p {
  margin: 0.6rem 0 0;
  color: var(--tinta-suave);
}

/* ----------------------------------------------------------------- cierre */

.cierre {
  text-align: center;
  background: linear-gradient(135deg, var(--marino), var(--profundo));
  color: #fff;
}

.cierre h2 {
  color: #fff;
}

.cierre p {
  margin: 0.75rem 0 1.75rem;
  font-size: 1.1rem;
  color: rgb(255 255 255 / 80%);
}

/* -------------------------------------------------------------------- pie */

.pie {
  background: #0a1a2e;
  color: rgb(255 255 255 / 75%);
  padding: 2.5rem 0;
  text-align: center;
}

.pie img {
  height: 31px;
  width: auto;
  margin: 0 auto 1rem;
}

.pie a {
  color: #fff;
}

.pie p {
  margin: 0.4rem 0;
}

.pie .chica {
  font-size: 0.85rem;
  color: rgb(255 255 255 / 50%);
}

/* --------------------------------------------------------------- angosto */

@media (max-width: 900px) {
  .hero-grilla {
    grid-template-columns: 1fr;
  }

  .cinta ul,
  .funciones ul,
  .pasos ol {
    grid-template-columns: repeat(2, 1fr);
  }

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

@media (max-width: 640px) {
  section {
    padding: 3rem 0;
  }

  h2 {
    font-size: 1.6rem;
  }

  .menu {
    display: flex;
  }

  .barra nav {
    display: none;
    position: absolute;
    top: 4rem;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--papel);
    border-bottom: 1px solid var(--borde);
    padding: 0.5rem 1rem 1rem;
  }

  .barra nav.abierto {
    display: flex;
  }

  .barra nav a {
    padding: 0.7rem 0;
  }

  .barra nav a.boton {
    margin-top: 0.5rem;
    text-align: center;
  }

  .cinta ul,
  .funciones ul,
  .pasos ol {
    grid-template-columns: 1fr;
  }

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

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

  .boton {
    transition: none;
  }
}
