/* Página de presentación de RYX. Misma paleta que la tienda (apps/web/src/index.css):
   verdes de campo sobre papel cálido. Sin build: CSS plano que sirve Caddy tal cual. */

@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("/fuentes/fraunces-latin-800-normal.woff2") format("woff2");
}

:root {
  color-scheme: light;
  --papel: #f7f5ef;
  --superficie: #ffffff;
  --suave: #f2ebdb;
  --borde: #e4d6b8;
  --texto: #43331f;
  --texto-suave: #7a5a34;
  --titulo: #1d3a25;
  --acento: #275832;
  --marca: #2f6f3e;
  --marca-hover: #275832;
  --marca-texto: #ffffff;
  --hoja: #c2dfc7;
  --sombra: 0 1px 2px rgb(67 51 31 / 0.06), 0 12px 32px -12px rgb(67 51 31 / 0.18);

  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --marca-fuente: "Fraunces", ui-serif, Georgia, serif;
}

/* El sitio sigue el tema del sistema. Valores del tema oscuro de la tienda. */
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --papel: #15120e;
    --superficie: #1f1a15;
    --suave: #29221b;
    --borde: #463a2d;
    --texto: #e7dbc5;
    --texto-suave: #c6b393;
    --titulo: #cdebd4;
    --acento: #93d1a3;
    --marca: #2f7a43;
    --marca-hover: #29693a;
    --hoja: #285236;
    --sombra: 0 1px 2px rgb(0 0 0 / 0.3), 0 12px 32px -12px rgb(0 0 0 / 0.6);
  }
}

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

html {
  scroll-behavior: smooth;
  -webkit-tap-highlight-color: transparent;
}

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

body {
  margin: 0;
  background: var(--papel);
  color: var(--texto);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  padding-bottom: env(safe-area-inset-bottom);
}

h1,
h2,
h3 {
  color: var(--titulo);
  line-height: 1.15;
  margin: 0;
  letter-spacing: -0.01em;
}

p {
  margin: 0;
}

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

[hidden] {
  display: none !important;
}

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

.envoltura {
  width: 100%;
  max-width: 68rem;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 640px) {
  .envoltura {
    padding: 0 1.5rem;
  }
}

.saltar {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--marca);
  color: var(--marca-texto);
  padding: 0.5rem 1rem;
  border-radius: 0.75rem;
  z-index: 100;
}

.saltar:focus {
  top: 1rem;
}

/* Botones */

.boton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  padding: 0.625rem 1.25rem;
  border-radius: 0.75rem;
  border: 1px solid transparent;
  font: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  text-align: center;
  transition:
    background-color 0.15s,
    border-color 0.15s;
}

.boton--marca {
  background: var(--marca);
  color: var(--marca-texto);
}

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

.boton--borde {
  background: var(--superficie);
  border-color: var(--borde);
  color: var(--acento);
}

.boton--borde:hover {
  border-color: var(--acento);
}

.boton--chico {
  min-height: 2.5rem;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

.boton--ancho {
  width: 100%;
}

/* Cabecera */

.cabecera {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--papel) 88%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid color-mix(in srgb, var(--borde) 70%, transparent);
}

.cabecera__fila {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  text-decoration: none;
  min-width: 0;
}

.logo__icono {
  width: 2.25rem;
  height: 2.25rem;
  flex: none;
  color: var(--marca);
}

.logo__texto {
  display: flex;
  flex-direction: column;
  line-height: 1;
  min-width: 0;
}

/* El logo va en mayúsculas; el nombre se guarda tal como lo escribe el dueño. */
.logo__marca {
  font-family: var(--marca-fuente);
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--acento);
}

.logo__lema {
  margin-top: 0.2rem;
  font-size: 0.7rem;
  color: var(--texto-suave);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.navegacion {
  display: none;
  gap: 1.75rem;
}

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

.navegacion a:hover {
  color: var(--acento);
}

@media (min-width: 820px) {
  .navegacion {
    display: flex;
  }
}

/* Portada */

.portada {
  padding: 2.5rem 0 3.5rem;
}

.portada__rejilla {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 900px) {
  .portada {
    padding: 5rem 0 6rem;
  }
  .portada__rejilla {
    grid-template-columns: 1.25fr 1fr;
    gap: 4rem;
  }
}

.antetitulo {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--texto-suave);
}

.titular {
  margin-top: 1rem;
  font-family: var(--marca-fuente);
  font-weight: 800;
  font-size: clamp(2.1rem, 6vw, 3.6rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.entrada {
  margin-top: 1.25rem;
  max-width: 34rem;
  font-size: 1.075rem;
  color: var(--texto);
}

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

/* La tarjeta de la jornada imita una boleta: borde punteado arriba, como si se
   desprendiera de un talonario. */
.boleta {
  position: relative;
  background: var(--superficie);
  border: 1px solid var(--borde);
  border-radius: 1.25rem;
  padding: 1.75rem 1.5rem 1.5rem;
  box-shadow: var(--sombra);
  scroll-margin-top: 6rem;
}

.boleta::before {
  content: "";
  position: absolute;
  inset: 0 1.5rem auto;
  border-top: 2px dashed var(--borde);
  transform: translateY(0.75rem);
}

.boleta__etiqueta {
  margin-top: 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--acento);
}

.boleta__fecha {
  margin-top: 0.5rem;
  font-family: var(--marca-fuente);
  font-weight: 800;
  font-size: 1.6rem;
  line-height: 1.15;
  color: var(--titulo);
}

.boleta__nota {
  margin: 0.75rem 0 1.5rem;
  color: var(--texto-suave);
}

.boleta__datos {
  margin: 1.25rem 0 1.25rem;
  display: grid;
  gap: 0.75rem;
}

.boleta__datos div {
  display: grid;
  grid-template-columns: 6.5rem 1fr;
  gap: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--borde);
}

.boleta__datos dt {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--texto-suave);
  padding-top: 0.1rem;
}

.boleta__datos dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.boleta__sello {
  display: inline-block;
  margin-bottom: 1.25rem;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  background: var(--hoja);
  color: var(--titulo);
  font-size: 0.8rem;
  font-weight: 600;
}

/* Secciones */

.seccion {
  padding: 4rem 0;
  scroll-margin-top: 4rem;
}

.seccion--suave {
  background: var(--suave);
}

.seccion__titulo {
  font-family: var(--marca-fuente);
  font-weight: 800;
  font-size: clamp(1.6rem, 4vw, 2.25rem);
  text-wrap: balance;
}

.seccion__entrada {
  margin-top: 0.75rem;
  max-width: 36rem;
  color: var(--texto-suave);
  font-size: 1.05rem;
}

.seccion__pie {
  margin-top: 2rem;
}

.pasos,
.razones,
.productos {
  list-style: none;
  margin: 2.5rem 0 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

@media (min-width: 640px) {
  .pasos {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1000px) {
  .pasos {
    grid-template-columns: repeat(4, 1fr);
  }
}

.paso {
  background: var(--superficie);
  border: 1px solid var(--borde);
  border-radius: 1rem;
  padding: 1.5rem;
}

.paso__numero {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.75rem;
  background: var(--marca);
  color: var(--marca-texto);
  font-family: var(--marca-fuente);
  font-weight: 800;
  font-size: 1.1rem;
}

.paso h3,
.razones h3 {
  margin-top: 1rem;
  font-size: 1.1rem;
}

.paso p,
.razones p {
  margin-top: 0.5rem;
  color: var(--texto-suave);
}

@media (min-width: 760px) {
  .razones {
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
  }
}

.razones li {
  border-top: 3px solid var(--marca);
  padding-top: 0.25rem;
}

/* Productos de la jornada */

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

@media (min-width: 640px) {
  .productos {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1000px) {
  .productos {
    grid-template-columns: repeat(4, 1fr);
  }
}

.producto {
  background: var(--superficie);
  border: 1px solid var(--borde);
  border-radius: 1rem;
  overflow: hidden;
}

.producto__foto {
  aspect-ratio: 1;
  width: 100%;
  object-fit: cover;
  display: block;
  background: var(--suave);
}

/* Sin foto: un brote sobre el color de la marca, como en el logo. */
.producto__foto--vacia {
  display: grid;
  place-items: center;
  color: var(--acento);
}

.producto__foto--vacia svg {
  width: 30%;
  height: 30%;
  opacity: 0.6;
}

.producto__cuerpo {
  padding: 0.75rem 0.875rem 1rem;
}

.producto__nombre {
  font-weight: 600;
  color: var(--titulo);
  line-height: 1.3;
}

.producto__precio {
  margin-top: 0.25rem;
  font-size: 0.9rem;
  color: var(--texto-suave);
}

/* Contacto */

.contacto {
  display: grid;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 860px) {
  .contacto {
    grid-template-columns: 1.2fr 1fr;
  }
}

.contacto__botones {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

@media (min-width: 480px) and (max-width: 859px) {
  .contacto__botones {
    flex-direction: row;
    flex-wrap: wrap;
  }
}

/* Pie */

.pie {
  border-top: 1px solid var(--borde);
  padding: 2rem 0 2.5rem;
  font-size: 0.875rem;
  color: var(--texto-suave);
}

.pie__fila {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
}

.pie a {
  color: var(--texto-suave);
}
