/* ==========================================================================
   Crónicas de Belleza · base.css
   Fuentes, colores, reset, tipografía y botones compartidos por toda la web.
   ========================================================================== */

/* ---------- Fuentes (alojadas en la propia web, sin Google) ---------- */
@font-face { font-family: 'Tinos'; font-style: normal; font-weight: 400; font-display: swap; src: url('../assets/fonts/tinos-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Tinos'; font-style: normal; font-weight: 700; font-display: swap; src: url('../assets/fonts/tinos-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Tinos'; font-style: italic; font-weight: 400; font-display: swap; src: url('../assets/fonts/tinos-latin-400-italic.woff2') format('woff2'); }
@font-face { font-family: 'Karla'; font-style: normal; font-weight: 400; font-display: swap; src: url('../assets/fonts/karla-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Karla'; font-style: normal; font-weight: 500; font-display: swap; src: url('../assets/fonts/karla-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Karla'; font-style: normal; font-weight: 700; font-display: swap; src: url('../assets/fonts/karla-latin-700-normal.woff2') format('woff2'); }

/* ---------- Colores y medidas ---------- */
:root {
  --ink: #3B2A20;
  --text: #5A4A3C;
  --muted: #7C6555;
  --copper: #7A3B1D;
  --copper-dark: #652F16;
  --copper-deep: #4E2412;
  --gold: #B8903F;
  --gold-soft: #C9A55C;
  --gold-light: #D9B871;
  --gold-pale: #E3C27A;
  --cream: #F6EFE5;
  --paper: #FBF5EC;
  --sand: #EFE4D3;
  --line: #E2D4BF;
  --sage: #6F7D55;
  --night: #2E221B;
  --night-soft: #3C2D24;
  --rose: #E7BDB2;
  --rose-pale: #F6DDD5;

  --font-serif: 'Tinos', 'Liberation Serif', Georgia, serif;
  --font-sans: 'Karla', system-ui, sans-serif;

  --ease-out: cubic-bezier(.2, .8, .2, 1);
  --container: 1240px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--cream); color: var(--ink); font-family: var(--font-sans); }
img, svg { display: block; max-width: 100%; }
[hidden] { display: none !important; }
a { color: var(--copper); }
a:hover { color: var(--copper-deep); }

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

/* ---------- Contenedor general ---------- */
.site { position: relative; overflow: hidden; }
.container { max-width: var(--container); margin: 0 auto; }

/* ---------- Tipografía ---------- */
.serif { font-family: var(--font-serif); }

.eyebrow {
  margin: 0;
  font-size: 13px;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--gold);
}
.eyebrow--small { font-size: 12px; letter-spacing: .24em; }

.heading {
  margin: 14px 0 0;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(38px, 5vw, 62px);
  line-height: 1.04;
}
.heading em { font-style: italic; color: var(--copper); }

.lead {
  margin: 20px 0 0;
  font-size: 18px;
  line-height: 1.65;
  color: var(--text);
}

/* Palabras de los títulos que suben una a una (las crea scroll.js) */
.wl { display: inline-block; overflow: hidden; vertical-align: top; padding: 0 .04em .1em; margin-bottom: -.1em; }
.w { display: inline-block; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 30px;
  border: 0;
  border-radius: 999px;
  font-family: inherit;
  font-size: 16px;
  letter-spacing: .02em;
  text-decoration: none;
  cursor: pointer;
  transition: transform .35s var(--ease-out), box-shadow .35s, background .35s, color .35s;
}
.btn:hover { transform: translateY(-3px); }

.btn--solid { background: var(--copper); color: var(--paper); box-shadow: 0 10px 24px -12px rgba(122, 59, 29, .7); }
.btn--solid:hover { background: var(--copper-dark); color: var(--paper); box-shadow: 0 18px 34px -14px rgba(122, 59, 29, .8); }

.btn--line { background: none; border: 1.5px solid var(--copper); color: var(--copper); }
.btn--line:hover { background: var(--copper); color: var(--paper); }

.btn--gold { background: var(--gold-light); color: var(--night); }
.btn--gold:hover { color: var(--night); }
.btn--gold-line { background: none; border: 1.5px solid var(--gold-light); color: #F4EADC; }
.btn--gold-line:hover { color: #F4EADC; }

.btn--sm { min-height: 46px; padding: 0 22px; font-size: 15px; }
.btn--xs { min-height: 44px; padding: 0 20px; font-size: 14px; }

/* Botón de texto (Saltar intro, Ver por dentro…) */
.ghost {
  min-height: 44px;
  padding: 0 12px;
  background: none;
  border: 0;
  font: inherit;
  font-size: 13px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  cursor: pointer;
}
.ghost:hover { color: var(--copper); }

/* Enlace del menú con subrayado dorado */
.navlink {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  font-size: 15px;
  letter-spacing: .04em;
  color: var(--ink);
  text-decoration: none;
}
.navlink::after {
  content: "";
  position: absolute;
  left: 14px; right: 14px; bottom: 8px;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .45s var(--ease-out);
}
.navlink:hover::after { transform: scaleX(1); }

/* Animaciones reutilizadas */
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes grow { from { transform: scale(0) rotate(-30deg); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes pop {
  from { transform: scale(0) rotate(-120deg); opacity: 0; }
  70% { transform: scale(1.15) rotate(8deg); opacity: 1; }
  to { transform: none; opacity: 1; }
}

/* Botón de idioma ES | EN en el menú */
.navlink--lang { font-size: 13px; letter-spacing: .14em; opacity: .75; }
.navlink--lang:hover { opacity: 1; }

/* Botones de compra todavía sin enlace («Muy pronto»): se ven, pero no se pueden pulsar */
.btn[aria-disabled="true"] { cursor: default; pointer-events: none; opacity: .7; }
