/* =====================================================================
   Estilos base de la app (los mismos colores y letras del catálogo PDF).
   Cada módulo tiene su propio archivo de estilos para lo que es solo suyo.
   ===================================================================== */

:root {
  /* Colores de la marca */
  --crema: #F7F2EA;
  --papel: #FFFDF9;
  --tinta: #2F2620;
  --gris: #6F6155;
  --dorado: #A8834F;
  --dorado-oscuro: #8A6A3C;
  --linea: #E4D9C8;
  --error: #A4402F;
  --exito: #4F6B3A;

  /* «Argentine roots, Canadian craft»: los colores de cada bandera, un poco
     más oscuros para que se lean sobre el fondo claro (21/11). */
  --celeste-argentina: #2F6DA8;
  --rojo-canada: #C8102E;

  /* Letras */
  --letra-titulos: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --letra-texto: Inter, "Segoe UI", Arial, sans-serif;

  /* Medidas */
  --ancho: 1120px;
  --radio: 10px;
  --sombra: 0 1px 2px rgb(47 38 32 / 6%), 0 4px 16px rgb(47 38 32 / 6%);
}

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

/* Lo que está oculto queda oculto, aunque otro estilo diga "display". */
[hidden] { display: none !important; }

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

body {
  margin: 0;
  background: var(--papel);
  color: var(--tinta);
  font-family: var(--letra-texto);
  font-size: 16px;
  line-height: 1.55;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

a { color: inherit; }
a:hover { color: var(--dorado-oscuro); }

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

h1 { font-size: clamp(2rem, 5vw, 2.9rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2rem); }
h3 { font-size: 1.35rem; }

p { margin: 0; }

:focus-visible { outline: 2px solid var(--dorado); outline-offset: 2px; }

.saltar {
  position: absolute;
  left: -9999px;
  top: 8px;
  background: var(--tinta);
  color: var(--papel);
  padding: 8px 12px;
  border-radius: var(--radio);
  z-index: 10;
}
.saltar:focus { left: 8px; }

/* ---------- Encabezado ---------- */
.encabezado {
  background: var(--papel);
  border-bottom: 1px solid var(--linea);
  position: sticky;
  top: 0;
  z-index: 5;
}

.encabezado__interior {
  max-width: var(--ancho);
  margin: 0 auto;
  padding: 12px 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
}

.marca { text-decoration: none; display: grid; }
.marca__nombre { font-family: var(--letra-titulos); font-size: 1.55rem; font-weight: 600; line-height: 1.1; }
.marca__lema { font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gris); }
.marca__raices { font-family: var(--letra-titulos); font-style: italic; font-size: 1.08rem; line-height: 1.2; color: var(--gris); }
.raices__ar { color: var(--celeste-argentina); }
.raices__ca { color: var(--rojo-canada); }

.menu { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 18px; font-size: 0.95rem; }
.menu a { text-decoration: none; padding: 6px 0; }
.menu a:hover { text-decoration: underline; text-underline-offset: 4px; }
.menu__pedido { display: inline-flex; align-items: center; gap: 6px; }
.menu__contador {
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--tinta);
  color: var(--papel);
  font-size: 0.75rem;
  font-weight: 600;
  display: inline-grid;
  place-items: center;
}

.boton-idioma {
  border: 1px solid var(--linea);
  background: var(--crema);
  border-radius: 999px;
  padding: 5px 12px;
  font: inherit;
  font-size: 0.85rem;
  cursor: pointer;
  color: var(--tinta);
}
.boton-idioma:hover { border-color: var(--dorado); }

/* ---------- Contenido ---------- */
.contenido { flex: 1; width: 100%; }
.contenido:focus { outline: none; }

.pantalla {
  max-width: var(--ancho);
  margin: 0 auto;
  padding: 28px 16px 56px;
}

.estado { text-align: center; color: var(--gris); padding: 48px 16px; display: grid; gap: 16px; justify-items: center; }
.estado--error { color: var(--error); }

/* ---------- Botones ---------- */
.boton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radio);
  border: 1px solid var(--tinta);
  background: var(--tinta);
  color: var(--papel);
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}
.boton:hover { background: #46392f; color: var(--papel); }
.boton--secundario { background: transparent; color: var(--tinta); }
.boton--secundario:hover { background: var(--crema); color: var(--tinta); }
.boton:disabled { opacity: 0.55; cursor: not-allowed; }

/* ---------- Etiquetas de categorías ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-block;
  padding: 6px 14px;
  border: 1px solid var(--linea);
  border-radius: 999px;
  background: var(--papel);
  font-size: 0.88rem;
  text-decoration: none;
  white-space: nowrap;
}
.chip:hover { border-color: var(--dorado); color: var(--tinta); }
.chip[aria-current="true"] { background: var(--tinta); border-color: var(--tinta); color: var(--papel); }

/* ---------- Pie ---------- */
.pie { background: var(--crema); border-top: 1px solid var(--linea); font-size: 0.92rem; }
.pie__interior {
  max-width: var(--ancho);
  margin: 0 auto;
  padding: 28px 16px;
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}
.pie__interior p + p { margin-top: 4px; }
.pie__marca { font-family: var(--letra-titulos); font-size: 1.3rem; font-weight: 600; }
.pie__titulo { font-weight: 600; }
.pie__raices { font-family: var(--letra-titulos); font-style: italic; font-size: 1.05rem; }
.pie__enlace { display: inline-flex; align-items: center; gap: 8px; }
.icono { width: 18px; height: 18px; flex: none; }

@media (prefers-reduced-motion: no-preference) {
  .tarjeta, .chip, .boton { transition: border-color 0.15s, background-color 0.15s, transform 0.15s; }
}
