/* ============================================================
   BASE — Destino Regalo
   Tokens, reset, tipografía
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400;1,600&family=Inter:wght@300;400;500;600&display=swap');

/* ── Tokens ───────────────────────────────────────────────── */
:root {
  /* Paleta */
  --arena:          #F5EFE6;
  --arena-claro:    #FAF6F0;
  --arena-oscuro:   #EDE4D7;
  --terracota:      #C97B5C;
  --terracota-osc:  #A85E42;
  --terracota-tint: #F0DDD3;
  --verde:          #6B7D5A;
  --verde-tint:     #E8EEE3;
  --tinta:          #2E2A26;
  --tinta-suave:    #5B544D;
  --tinta-muted:    #9A8F84;
  --crema:          #FFFCF7;
  --linea:          #E5DDD0;
  --linea-suave:    #EDE7DE;
  --blanco:         #FFFFFF;

  /* Sombras */
  --sombra-xs:   0 2px 8px rgba(46,42,38,0.06);
  --sombra-sm:   0 4px 16px rgba(46,42,38,0.08);
  --sombra:      0 8px 30px rgba(46,42,38,0.10);
  --sombra-md:   0 12px 40px rgba(46,42,38,0.12);
  --sombra-lg:   0 24px 60px rgba(46,42,38,0.14);

  /* Radios */
  --radio-xs:   4px;
  --radio-sm:   8px;
  --radio:      14px;
  --radio-md:   20px;
  --radio-lg:   28px;
  --radio-pill: 999px;

  /* Tipografía */
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'Inter', system-ui, -apple-system, sans-serif;

  /* Escala tipográfica */
  --text-xs:   0.75rem;    /* 12px */
  --text-sm:   0.875rem;   /* 14px */
  --text-base: 1rem;       /* 16px */
  --text-md:   1.125rem;   /* 18px */
  --text-lg:   1.25rem;    /* 20px */
  --text-xl:   1.5rem;     /* 24px */
  --text-2xl:  2rem;       /* 32px */
  --text-3xl:  2.5rem;     /* 40px */
  --text-4xl:  3.25rem;    /* 52px */
  --text-5xl:  4rem;       /* 64px */

  /* Espaciado (base 8px) */
  --sp-1:   4px;
  --sp-2:   8px;
  --sp-3:   12px;
  --sp-4:   16px;
  --sp-5:   20px;
  --sp-6:   24px;
  --sp-8:   32px;
  --sp-10:  40px;
  --sp-12:  48px;
  --sp-16:  64px;
  --sp-20:  80px;
  --sp-24:  96px;
  --sp-32:  128px;

  /* Layout */
  --max-width:       1160px;
  --max-width-prose: 680px;
  --nav-height:      72px;

  /* Transiciones */
  --ease:      cubic-bezier(0.25, 0.1, 0.25, 1);
  --ease-out:  cubic-bezier(0.0, 0.0, 0.2, 1);
  --duration:  200ms;
  --duration-md: 300ms;
}

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

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

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--tinta);
  background-color: var(--arena);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

input, button, textarea, select {
  font: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

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

ul, ol {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  line-height: 1.2;
  font-weight: 600;
  color: var(--tinta);
}

p {
  color: var(--tinta-suave);
  line-height: 1.7;
}

strong {
  color: var(--tinta);
  font-weight: 600;
}

/* ── Escala tipográfica ───────────────────────────────────── */
.display-1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.display-2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.015em;
}

.heading-1 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 600;
  line-height: 1.2;
}

.heading-2 {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-weight: 600;
  line-height: 1.25;
}

.heading-3 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 600;
  line-height: 1.3;
}

.label {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--tinta-muted);
}

/* ── Contenedor ───────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--sp-6);
}

@media (max-width: 640px) {
  .container { padding: 0 var(--sp-4); }
}

/* ── Utilidades ───────────────────────────────────────────── */
.text-center { text-align: center; }
.text-left   { text-align: left; }

.color-terracota { color: var(--terracota); }
.color-verde     { color: var(--verde); }
.color-muted     { color: var(--tinta-muted); }

.section-gap     { padding: var(--sp-24) 0; }
.section-gap-sm  { padding: var(--sp-16) 0; }

@media (max-width: 640px) {
  .section-gap    { padding: var(--sp-16) 0; }
  .section-gap-sm { padding: var(--sp-10) 0; }
}

.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;
}

.divider {
  width: 48px;
  height: 2px;
  background: var(--terracota);
  border-radius: var(--radio-pill);
  margin: var(--sp-4) auto;
}

.divider-left {
  margin: var(--sp-4) 0;
}
