/* Picada Vieja - estilos
   Paleta tomada del paquete: monte (verde), papel de paquete (kraft) y hoja de yerba.
   Tipografías propias, sin pedidos a servicios externos. */

@font-face {
  font-family: "Inter Display";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("/assets/fonts/inter-display-800.woff") format("woff");
}
@font-face {
  font-family: "PT Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/ptsans-400.woff2") format("woff2");
}
@font-face {
  font-family: "PT Sans";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/ptsans-700.woff2") format("woff2");
}

:root {
  --monte: #14301e;
  --monte-hondo: #0d2015;
  --monte-claro: #1f4230;
  --kraft: #c8a163;
  --kraft-claro: #dcc08e;
  --papel: #f1ebdd;
  --verde-papel: #e9ebdd;
  --hoja: #8cc76f;
  --wa: #25d366;
  --wa-hover: #3be07b;
  --ml: #ffe600;
  --error: #ffb4a2;

  --f-titulo: "Inter Display", "Arial Black", system-ui, sans-serif;
  --f-texto: "PT Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --ancho: 1120px;
  --gutter: 1.25rem;
  --foco: var(--hoja);
}

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

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

body {
  margin: 0;
  background: var(--monte);
  color: var(--papel);
  font-family: var(--f-texto);
  font-size: 1.125rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
h1, h2, h3, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; }

:focus-visible {
  outline: 3px solid var(--foco);
  outline-offset: 3px;
}

.solo-lectores {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.salto {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  padding: .7rem 1rem;
  background: var(--papel);
  color: var(--monte);
  font-weight: 700;
}
.salto:focus { top: 1rem; }

.contenedor {
  width: 100%;
  max-width: calc(var(--ancho) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.seccion {
  padding-block: clamp(3.5rem, 9vw, 7rem);
}

/* Títulos */
h1, h2, h3 {
  font-family: var(--f-titulo);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1;
}
h2 { font-size: clamp(2.2rem, 6.2vw, 3.7rem); }
h3 { font-size: clamp(1.45rem, 3.4vw, 1.8rem); letter-spacing: -.02em; }

/* Botones */
.icono {
  width: 1.35em;
  height: 1.35em;
  flex: none;
  fill: currentColor;
}

.boton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  min-height: 3.2rem;
  padding: .7rem 1.4rem;
  border: 2px solid transparent;
  border-radius: 3px;
  font-family: var(--f-titulo);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -.01em;
  line-height: 1.1;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.boton:active { transform: translateY(1px); }

.boton--chico { min-height: 2.6rem; padding: .4rem .95rem; font-size: .95rem; }

.boton--wa { background: var(--wa); color: #0b2a14; }
.boton--wa:hover { background: var(--wa-hover); }

.boton--kraft { background: var(--kraft); color: var(--monte); }
.boton--kraft:hover { background: var(--kraft-claro); }

.boton--contorno { border-color: var(--kraft); color: var(--kraft-claro); }
.boton--contorno:hover { background: var(--kraft); color: var(--monte); }

.boton--monte { background: var(--monte); color: var(--papel); }
.boton--monte:hover { background: var(--monte-claro); }

.boton--ml { background: var(--ml); color: var(--monte); border-color: var(--monte); }
.boton--ml:hover { background: #fff27a; }

/* Cabecera */
.cabecera {
  background: var(--kraft);
  color: var(--monte);
  --foco: var(--monte);
}
.cabecera__fila {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: .6rem;
}
.marca img { width: 3.5rem; height: 3.5rem; }
.cabecera__nav { display: none; }
.cabecera__nav a {
  padding: .5rem .2rem;
  font-weight: 700;
  text-decoration: none;
}
.cabecera__nav a:hover { text-decoration: underline; text-underline-offset: .25em; }

@media (min-width: 700px) {
  .cabecera__nav { display: flex; gap: 1.75rem; margin-left: auto; margin-right: 1rem; }
}

/* Inicio */
.hero {
  padding-top: clamp(2.5rem, 6vw, 5rem);
  background: var(--monte);
  overflow: hidden;
}
.hero__grilla {
  display: grid;
  gap: 2.75rem;
  align-items: center;
}
.hero h1 {
  font-size: clamp(3.4rem, 15.5vw, 8.2rem);
  letter-spacing: -.045em;
  line-height: .9;
  color: var(--papel);
}
.hero h1 .linea { display: block; }
.hero h1 .linea + .linea { color: var(--kraft); }
.hero__bajada {
  max-width: 30ch;
  margin-top: 1.5rem;
  font-size: clamp(1.2rem, 3.2vw, 1.45rem);
  line-height: 1.4;
}
.acciones {
  display: flex;
  flex-wrap: wrap;
  gap: .85rem;
  margin-top: 2rem;
}
.hero__foto img {
  width: 100%;
  border-radius: 2px;
  box-shadow: .6rem .6rem 0 0 var(--kraft);
}

@media (min-width: 900px) {
  .hero__grilla { grid-template-columns: 1.2fr .8fr; gap: 4rem; }
  .hero h1 { font-size: clamp(4rem, 7.6vw, 6.6rem); }
  .hero__foto img { box-shadow: 1rem 1rem 0 0 var(--kraft); }
}

/* Historia */
.historia {
  background: var(--kraft);
  color: var(--monte);
  --foco: var(--monte);
}
.historia__grilla {
  display: grid;
  gap: 2.75rem;
  align-items: start;
}
.historia__foto img {
  width: 100%;
  border-radius: 2px;
  box-shadow: .6rem .6rem 0 0 var(--monte);
}
.historia__texto { max-width: 38rem; }
.historia__texto h2 { margin-bottom: 1.5rem; }
.historia__texto p {
  font-size: clamp(1.15rem, 2.6vw, 1.3rem);
  line-height: 1.6;
}
.historia__texto p + p { margin-top: 1.1rem; }
.historia__cierre { font-weight: 700; }

@media (min-width: 900px) {
  .historia__grilla { grid-template-columns: .95fr 1.05fr; gap: 4.5rem; }
  .historia__foto img { box-shadow: 1rem 1rem 0 0 var(--monte); }
}

/* Rasgos */
.rasgos { background: var(--monte); }
.rasgos__lista {
  display: grid;
  gap: 2.25rem;
}
.rasgos__lista li {
  padding-top: 1.5rem;
  border-top: 2px solid rgba(200, 161, 99, .55);
}
.rasgos__lista h3 { margin-bottom: .8rem; color: var(--kraft); }
.rasgos__lista p { max-width: 28ch; }

@media (min-width: 800px) {
  .rasgos__lista { grid-template-columns: repeat(3, 1fr); gap: 0; }
  .rasgos__lista li {
    padding: .25rem 2rem 0 1.75rem;
    border-top: 0;
    border-left: 2px solid rgba(200, 161, 99, .55);
  }
  .rasgos__lista li:first-child { padding-left: 0; border-left: 0; }
}

/* Cómo comprar */
.comprar {
  background: var(--verde-papel);
  color: var(--monte);
  --foco: var(--monte);
}
.comprar__grilla {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}
.comprar__foto img { width: 100%; }
.comprar__texto h2 { margin-bottom: 1rem; }
.comprar__pack {
  max-width: 34ch;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.4;
}
.via {
  margin-top: 1.75rem;
  padding-top: 1.5rem;
  border-top: 2px solid rgba(20, 48, 30, .22);
}
.via h3 { margin-bottom: .5rem; }
.via p { max-width: 36ch; margin-bottom: 1.1rem; }

@media (min-width: 900px) {
  .comprar__grilla { grid-template-columns: .95fr 1.05fr; gap: 4.5rem; }
}

/* Pedido */
.pedido { background: var(--monte-hondo); }
.pedido__grilla {
  display: grid;
  gap: 2.75rem;
  align-items: start;
}
.pedido__texto h2 { margin-bottom: 1.1rem; color: var(--kraft); }
.pedido__texto > p { max-width: 34ch; margin-bottom: 1.5rem; }
.pedido__texto .pedido__correo {
  margin-top: 1.5rem;
  margin-bottom: 0;
  font-size: 1rem;
  overflow-wrap: anywhere;
}
.pedido__correo a { color: var(--kraft-claro); }

.formulario {
  display: grid;
  gap: 1rem;
  padding: clamp(1.25rem, 4vw, 2rem);
  background: var(--monte-claro);
  border: 2px solid rgba(200, 161, 99, .5);
  border-radius: 3px;
}
.campo { display: grid; gap: .4rem; }
.campo label { font-weight: 700; }
.campo input,
.campo textarea {
  width: 100%;
  min-height: 3.2rem;
  padding: .6rem .85rem;
  background: var(--monte-hondo);
  color: var(--papel);
  border: 2px solid rgba(241, 235, 221, .45);
  border-radius: 3px;
  font: inherit;
  font-size: 1.1rem;
}
.campo textarea {
  min-height: 7rem;
  line-height: 1.45;
  resize: vertical;
}
.campo input:hover,
.campo textarea:hover { border-color: var(--kraft-claro); }
.campo input:focus-visible,
.campo textarea:focus-visible { border-color: var(--kraft); outline-offset: 2px; }
.campo input[aria-invalid="true"],
.campo textarea[aria-invalid="true"] { border-color: var(--error); }
.campo__ayuda { font-size: .95rem; opacity: .85; }
.campo--trampa {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.formulario .boton { justify-self: start; min-width: 11rem; }
.formulario__estado { margin-block: -.5rem; font-weight: 700; }
.formulario__estado:not(:empty) { margin-block: 0; }
.formulario__estado[data-tipo="ok"] { color: var(--kraft-claro); }
.formulario__estado[data-tipo="error"] { color: var(--error); }
.formulario__nota { font-size: .95rem; opacity: .9; }
.formulario__nota a { color: var(--kraft-claro); }

@media (min-width: 900px) {
  .pedido__grilla { grid-template-columns: 1fr 1fr; gap: 4.5rem; }
}

/* Pie */
.pie {
  padding: 2.5rem 0 6rem;
  background: var(--monte-hondo);
  border-top: 1px solid rgba(200, 161, 99, .35);
  font-size: 1rem;
}
.pie__fila {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.75rem;
}
.pie__datos { display: grid; gap: .35rem; overflow-wrap: anywhere; }
.pie__nombre {
  margin-bottom: .35rem;
  font-family: var(--f-titulo);
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: -.02em;
  color: var(--kraft);
}
.pie a { color: var(--papel); text-underline-offset: .2em; }
.pie__fiscal img { width: 5.25rem; height: auto; }

@media (min-width: 900px) {
  .pie { padding-bottom: 3rem; }
}

/* Botón flotante de WhatsApp */
.flotante {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 50;
  display: grid;
  place-items: center;
  width: 3.6rem;
  height: 3.6rem;
  background: var(--wa);
  color: #0b2a14;
  border-radius: 50%;
  box-shadow: 0 3px 12px rgba(0, 0, 0, .4);
  transition: background-color .15s ease;
}
.flotante:hover { background: var(--wa-hover); }
.flotante .icono { width: 2rem; height: 2rem; }
.flotante:focus-visible { outline-color: var(--papel); }

/* Una sola entrada orquestada al cargar el inicio */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }

  @keyframes subir {
    from { opacity: 0; transform: translateY(.45em); }
    to { opacity: 1; transform: none; }
  }
  .hero h1 .linea,
  .hero__bajada,
  .hero .acciones,
  .hero__foto {
    animation: subir .7s cubic-bezier(.2, .7, .2, 1) both;
  }
  .hero h1 .linea:nth-child(2) { animation-delay: .12s; }
  .hero__bajada { animation-delay: .26s; }
  .hero .acciones { animation-delay: .36s; }
  .hero__foto { animation-delay: .2s; }
}

/* Páginas interiores (privacidad, 404) */
.pagina {
  padding-block: clamp(3rem, 8vw, 5.5rem);
  background: var(--monte);
}
.pagina h1 {
  margin-bottom: 1.25rem;
  font-size: clamp(2.4rem, 8vw, 4.2rem);
  letter-spacing: -.04em;
  color: var(--kraft);
}
.pagina h2 {
  margin: 2.25rem 0 .75rem;
  font-size: clamp(1.5rem, 4vw, 2rem);
  letter-spacing: -.02em;
}
.pagina p,
.pagina li { max-width: 62ch; }
.pagina p + p { margin-top: .9rem; }
.pagina ul {
  display: grid;
  gap: .45rem;
  padding-left: 1.25rem;
  list-style: disc;
}
.pagina a { color: var(--kraft-claro); text-underline-offset: .2em; }
.pagina a.boton { color: var(--monte); text-decoration: none; }
.pagina__actualizado { font-size: .95rem; opacity: .85; }
.pagina--error { min-height: 60vh; }
.pagina--error p { margin-bottom: 1.5rem; }
