/* ==========================================================================
   BASE.CSS — LEGADO DULCE
   Variables de marca, tipografías, reset y estilos globales.
   Editar aquí afecta TODAS las páginas.
   ========================================================================== */

/* --- Tipografías de Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=Montserrat:wght@300;400;500;600;700&display=swap');

/* --- Variables de marca --- */
:root {
  /* Cafés */
  --cafe-espresso: #0B0603;
  --cafe-principal: #291B11;
  --cafe-medio: #603D1C;

  /* Dorados */
  --dorado-brillante: #F8D14A;
  --dorado-profundo: #BE7B17;
  --dorado-crema: #FCFAA5;

  /* Neutros */
  --blanco: #FFFFFF;
  --negro: #000000;

  /* Tipografías */
  --fuente-titulo: 'Playfair Display', Georgia, serif;
  --fuente-cuerpo: 'Montserrat', system-ui, -apple-system, sans-serif;

  /* Tamaños de texto (mobile-first) */
  --texto-sm: 0.875rem;
  --texto-base: 1rem;
  --texto-lg: 1.125rem;
  --texto-xl: 1.5rem;
  --texto-2xl: 2rem;
  --texto-3xl: 2.5rem;

  /* Espaciados */
  --espacio-xs: 0.5rem;
  --espacio-sm: 1rem;
  --espacio-md: 1.5rem;
  --espacio-lg: 2.5rem;
  --espacio-xl: 4rem;

  /* Layout */
  --max-ancho: 1200px;
  --transicion: 0.3s ease;
}

/* --- Reset --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: var(--fuente-cuerpo);
  font-size: var(--texto-base);
  line-height: 1.6;
  color: var(--cafe-principal);
  background-color: var(--blanco);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transicion);
}

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

/* --- Tipografía --- */
h1, h2, h3, h4 {
  font-family: var(--fuente-titulo);
  font-weight: 600;
  line-height: 1.2;
  color: var(--cafe-espresso);
}

h1 { font-size: var(--texto-3xl); }
h2 { font-size: var(--texto-2xl); }
h3 { font-size: var(--texto-xl); }

p { margin-bottom: var(--espacio-sm); }

/* --- Utilidades --- */
.contenedor {
  width: 100%;
  max-width: var(--max-ancho);
  margin: 0 auto;
  padding: 0 var(--espacio-sm);
}

/* --- Botones de marca --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-size: var(--texto-base);
  font-weight: 500;
  letter-spacing: 0.02em;
  border-radius: 4px;
  transition: var(--transicion);
}

.btn-primario {
  background: var(--dorado-profundo);
  color: var(--blanco);
}

.btn-primario:hover {
  background: var(--dorado-brillante);
  color: var(--cafe-espresso);
}

.btn-secundario {
  background: transparent;
  color: var(--blanco);
  border: 1px solid var(--dorado-brillante);
}

.btn-secundario:hover {
  background: var(--dorado-brillante);
  color: var(--cafe-espresso);
}

/* --- Breakpoints (mobile-first) --- */
@media (min-width: 768px) {
  :root {
    --texto-2xl: 2.5rem;
    --texto-3xl: 3.5rem;
  }
  .contenedor { padding: 0 var(--espacio-lg); }
}

@media (min-width: 1024px) {
  :root {
    --texto-3xl: 4.5rem;
  }
}
