/* =========================================================================
   GastroView · Web · Base
   Brand Kit v1.0: Marfil + Espresso + Terracota · Fraunces (títulos) + Manrope (interfaz).
   Proporción: base clara 60-70% · espresso 20-25% · terracota/caramelo 5-10%.
   ========================================================================= */

:root {
  /* Paleta oficial */
  --marfil: #F8F3EA;
  --espresso: #3E2E26;
  --terracota: #C66A45;
  --caramelo: #D7A574;
  --crema: #EEE2D2;
  --taupe: #89766C;

  /* Ajustes de accesibilidad (mínimos, dentro de la familia de marca)
     - CTA: terracota apenas más profundo para que el texto claro llegue a AA (4,6:1).
       El terracota oficial con texto claro da 3,4-3,8:1.
     - Texto secundario de lectura: taupe más profundo (5,2:1). El taupe oficial da 3,9:1. */
  /* v12 · terracota más profundo: el claro se leía "pastel" y el botón no pesaba.
     Texto claro sobre este tono: 5,5:1. Terracota sobre marfil: 5,1:1 (antes 4,6). */
  --terracota-cta: #A34F31;
  --terracota-cta-hover: #8F4429;
  --terracota-marca: #B85F3C;      /* versión de marca para trazos y filetes sobre claro */
  --taupe-texto: #74635A;
  --blanco-calido: #FFFCF8;

  --espresso-rgb: 62 46 38;
  --marfil-cab-rgb: 244 237 226;   /* marfil de la cabecera: apenas más cálido que el fondo */
  --fondo-bloque2: #F3ECE1;        /* tono con el que arranca el Bloque 2 (continuidad) */
  --linea: rgb(var(--espresso-rgb) / 0.1);

  --f-titulos: "Fraunces", Georgia, "Times New Roman", serif;
  --f-ui: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;

  --ancho: 1360px;
  --margen: clamp(20px, 5vw, 64px);
  --cab-alto: 72px;          /* v6: barra más fina */
  --cab-fila1: 48px;         /* móvil: fila del logo + acciones */
  --cab-fila2: 30px;         /* móvil: fila del carrusel */

  --ease: cubic-bezier(.22, .61, .36, 1);
  --t: 220ms;
}

@media (max-width: 899px) {
  :root { --cab-alto: calc(var(--cab-fila1) + var(--cab-fila2)); }   /* 82 px en dos niveles */
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--cab-alto) + 12px);
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: clip;
  background: var(--marfil);
  color: var(--espresso);
  font-family: var(--f-ui);
  font-size: 1rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg, picture { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
ul { margin: 0; padding: 0; list-style: none; }
h1, p { margin: 0; }

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

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

.saltar {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  padding: 10px 16px; border-radius: 999px;
  background: var(--espresso); color: var(--marfil);
  font-weight: 700; text-decoration: none;
  transition: top var(--t) var(--ease);
}
.saltar:focus { top: 12px; }

/* ---------- Botones ---------- */
.boton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 58px;
  padding: 0 30px;
  border-radius: 999px;
  font-family: var(--f-ui);
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: 0.005em;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color var(--t) var(--ease), color var(--t) var(--ease),
              box-shadow var(--t) var(--ease), transform var(--t) var(--ease), border-color var(--t) var(--ease);
}
.boton:active { transform: translateY(1px) scale(0.99); }

.boton--principal {
  background: var(--terracota-cta);
  color: var(--blanco-calido);
  box-shadow: 0 1px 0 rgb(255 255 255 / 0.18) inset, 0 10px 22px -14px rgb(180 92 58 / 0.75);
}
.boton--principal:hover {
  background: var(--terracota-cta-hover);
  box-shadow: 0 1px 0 rgb(255 255 255 / 0.18) inset, 0 14px 26px -14px rgb(169 84 52 / 0.8);
}

.boton--secundario {
  background: transparent;
  color: var(--espresso);
  box-shadow: inset 0 0 0 1.5px rgb(var(--espresso-rgb) / 0.32);
}
.boton--secundario:hover {
  background: var(--crema);
  box-shadow: inset 0 0 0 1.5px rgb(var(--espresso-rgb) / 0.55);
}

.boton__flecha {
  width: 18px; height: 18px; flex: none;
  transition: transform var(--t) var(--ease);
}
.boton:hover .boton__flecha { transform: translateX(3px); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 1ms !important; animation-duration: 1ms !important; animation-iteration-count: 1 !important; }
}

/* Pantallas muy anchas: el contenido crece un poco en lugar de dejar márgenes enormes */
@media (min-width: 1680px) {
  :root { --ancho: 1520px; }
}
