/* =========================================================
   BASE.CSS — Tokens de diseño, reset y estilos compartidos
   La Zoila · Dulces Bocados
   (Importa este archivo en TODAS las páginas del sitio)
   ========================================================= */


/* ─────────────────────────────────────────────────────────
   TOKENS DE DISEÑO
   Todos los colores, fuentes y espaciados en un solo lugar.
   Si cambias un color aquí, cambia en todo el sitio.
──────────────────────────────────────────────────────── */
:root {
  /* ── Colores (del logo) ── */
  --c-rojo:        #C8201E;   /* Rojo La Zoila — botones y acentos */
  --c-rojo-hover:  #A81A18;   /* Hover de elementos rojos */
  --c-teal:        #235F72;   /* Azul pizarra — sección servicios */
  --c-teal-hover:  #1C4E5E;   /* Hover teal */
  --c-verde:       #2A5828;   /* Verde hoja — decoraciones bordes.png */
  --c-dorado:      #8B6D18;   /* Dorado — detalles */

  /* ── Neutros ── */
  --c-blanco:      #FFFFFF;
  --c-crema:       #FFF8F5;   /* Fondo suave para secciones pares */
  --c-negro:       #1A0A0A;   /* Footer y textos muy oscuros */
  --c-gris:        #6B5050;   /* Texto secundario */
  --c-borde:       #EADADA;   /* Líneas y bordes suaves */

  /* ── Tipografía ── */
  --f-display:  'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --f-body:     'Nunito', system-ui, -apple-system, sans-serif;
  --f-label:    'Montserrat', system-ui, -apple-system, sans-serif;

  /* ── Espaciado ── */
  --container: 1100px;        /* Ancho máximo del contenido */
  --gap:       1.5rem;
  --header-h:  108px;         /* Altura fija del header */

  /* ── Transiciones ── */
  --ease:      0.25s ease;
  --ease-slow: 0.6s ease;
}


/* ─────────────────────────────────────────────────────────
   RESET
──────────────────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  background: var(--c-blanco);
  color: var(--c-negro);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}


/* ─────────────────────────────────────────────────────────
   CONTENEDOR CENTRADO
──────────────────────────────────────────────────────── */
.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 1.5rem;
}


/* ─────────────────────────────────────────────────────────
   TIPOGRAFÍA COMPARTIDA (usada en todas las páginas)
──────────────────────────────────────────────────────── */

/* Etiqueta roja sobre el título — "Nuestros Productos" */
.section-eyebrow {
  font-family: var(--f-label);
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--c-rojo);
  margin-bottom: .4rem;
}

/* Título de sección */
.section-title {
  font-family: var(--f-display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 700;
  line-height: 1.1;
  text-wrap: balance;
  margin-bottom: 1.5rem;
}


/* ─────────────────────────────────────────────────────────
   BOTONES (compartidos entre páginas)
──────────────────────────────────────────────────────── */

/* Botón rojo sólido — acción principal */
.btn-primary {
  display: inline-block;
  background: var(--c-rojo);
  color: var(--c-blanco);
  font-family: var(--f-label);
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  padding: 12px 32px;
  border-radius: 3px;
  border: 2px solid var(--c-rojo);
  transition:
    background var(--ease),
    border-color var(--ease),
    transform var(--ease);
}
.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--c-rojo-hover);
  border-color: var(--c-rojo-hover);
  transform: translateY(-2px);
}

/* Botón teal contorno — acción secundaria */
.btn-secondary {
  display: inline-block;
  background: transparent;
  color: var(--c-teal);
  font-family: var(--f-label);
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  padding: 11px 30px;
  border-radius: 3px;
  border: 2px solid var(--c-teal);
  transition:
    background var(--ease),
    color var(--ease),
    transform var(--ease);
}
.btn-secondary:hover,
.btn-secondary:focus-visible {
  background: var(--c-teal);
  color: var(--c-blanco);
  transform: translateY(-2px);
}


/* ─────────────────────────────────────────────────────────
   ACCESIBILIDAD
──────────────────────────────────────────────────────── */
:focus-visible {
  outline: 2px solid var(--c-rojo);
  outline-offset: 3px;
  border-radius: 2px;
}

/* Texto solo para lectores de pantalla */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}


/* Al navegar a un ancla (#menu) el header sticky no tapa el título */
html { scroll-padding-top: var(--header-h); }

/* El atributo hidden siempre oculta, aunque el elemento tenga display propio */
[hidden] { display: none !important; }
