/* Página de la agencia. Misma paleta y tipografías que el panel: es la misma
   marca. Va aparte del servidor (es un sitio de archivos), así que los tokens
   se repiten acá en vez de importarse. */

@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/brand/Manrope400.ttf") format("truetype");
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/brand/Manrope700.ttf") format("truetype");
}
@font-face {
  font-family: "Piazzolla";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/brand/Piazzolla600.ttf") format("truetype");
}

:root {
  --papel: #f5f1ea;
  --tinta: #13223a;
  --tinta-suave: #4a5263;
  --oro: #c9a567;
  --oro-texto: #7a5d27;
  --superficie: #fffdf9;
  --linea: rgba(19, 34, 58, 0.12);
  --ancho: 60rem;
  --display: "Piazzolla", Georgia, "Times New Roman", serif;
  --texto: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
}

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

body {
  margin: 0;
  background: var(--papel);
  color: var(--tinta);
  font-family: var(--texto);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
}

h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.15;
  text-wrap: balance;
  margin: 0;
}

p {
  margin: 0;
  text-wrap: pretty;
}

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

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

/* ---------- portada ---------- */

.portada {
  max-width: var(--ancho);
  margin: 0 auto;
  padding: 3rem 1.25rem 2.5rem;
  display: grid;
  gap: 1.5rem;
  justify-items: start;
}

.marca {
  width: 148px;
  height: auto;
}

.portada h1 {
  font-size: clamp(2.1rem, 7vw, 3.6rem);
  max-width: 18ch;
  letter-spacing: -0.01em;
}

.bajada {
  font-size: clamp(1.0625rem, 2.6vw, 1.25rem);
  color: var(--tinta-suave);
  max-width: 52ch;
}

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

.boton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 1.4rem;
  border-radius: 999px;
  background: var(--tinta);
  color: var(--papel);
  font-weight: 700;
  text-decoration: none;
  border: 2px solid var(--tinta);
  transition: transform 0.15s ease;
}

.boton:hover {
  transform: translateY(-1px);
}

.boton-suave {
  background: transparent;
  color: var(--tinta);
}

.escanear {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 0.5rem;
  color: var(--tinta-suave);
  font-size: 0.95rem;
  max-width: 34ch;
}

.qr svg {
  display: block;
  width: 104px;
  height: 104px;
  border-radius: 8px;
  border: 1px solid var(--linea);
}

/* ---------- secciones ---------- */

.seccion {
  max-width: var(--ancho);
  margin: 0 auto;
  padding: 2.5rem 1.25rem;
  border-top: 1px solid var(--linea);
}

.seccion h2 {
  font-size: clamp(1.5rem, 4vw, 2rem);
  margin-bottom: 1.5rem;
}

.seccion h3 {
  font-size: 1.15rem;
  margin-bottom: 0.35rem;
}

.pasos {
  display: grid;
  gap: 1.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: paso;
}

.pasos li {
  counter-increment: paso;
  padding-left: 3rem;
  position: relative;
}

.pasos li::before {
  content: counter(paso);
  position: absolute;
  left: 0;
  top: -0.1rem;
  width: 2.1rem;
  height: 2.1rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 2px solid var(--oro);
  font-family: var(--display);
  color: var(--oro-texto);
}

.pasos p {
  color: var(--tinta-suave);
}

.lista {
  display: grid;
  gap: 0.85rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.lista li {
  padding-left: 1.6rem;
  position: relative;
  color: var(--tinta-suave);
}

.lista li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--oro);
}

.lista strong {
  color: var(--tinta);
}

/* ---------- la muestra ---------- */

.estilos {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.6rem;
  margin-bottom: 1.5rem;
}

.estilos button {
  display: grid;
  gap: 0.15rem;
  min-height: 56px;
  padding: 0.6rem 0.9rem;
  text-align: left;
  border-radius: 14px;
  border: 2px solid var(--linea);
  background: var(--superficie);
  color: var(--tinta);
  font: inherit;
  cursor: pointer;
}

.estilos button span {
  font-weight: 700;
}

.estilos button small {
  color: var(--tinta-suave);
  font-size: 0.82rem;
}

.estilos button[aria-selected="true"] {
  border-color: var(--tinta);
  background: var(--tinta);
  color: var(--papel);
}

.estilos button[aria-selected="true"] small {
  color: rgba(245, 241, 234, 0.75);
}

.nota-pie {
  margin-top: 1.25rem;
  text-align: center;
}

.seccion-muestra .nota {
  color: var(--tinta-suave);
  margin-bottom: 1.5rem;
}

.celular {
  width: min(360px, 100%);
  margin-inline: auto;
  aspect-ratio: 9 / 17;
  padding: 0.65rem;
  border-radius: 2.2rem;
  background: var(--tinta);
  box-shadow: 0 24px 50px -24px rgba(19, 34, 58, 0.55);
}

.celular iframe {
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 1.6rem;
  background: var(--superficie);
}

/* ---------- contacto y pie ---------- */

.seccion-contacto p {
  max-width: 46ch;
  color: var(--tinta-suave);
  margin-bottom: 1.25rem;
}

footer {
  max-width: var(--ancho);
  margin: 0 auto;
  padding: 2rem 1.25rem 3rem;
  border-top: 1px solid var(--linea);
  color: var(--tinta-suave);
  font-size: 0.9rem;
}

@media (min-width: 48rem) {
  .estilos {
    grid-template-columns: repeat(4, 1fr);
  }
  .portada {
    padding-top: 4.5rem;
  }
  .pasos {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
  .lista {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem 2.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}
