/* =========================================================
   Lluvia Dorada · base común (todas las páginas)
   Las fuentes (@font-face) las declara theme.json.
   ========================================================= */

:root {
  --gold: #C1A000;          /* dorado de marca (fondos, acentos sobre negro) */
  --gold-ink: #806A00;      /* dorado oscuro para texto sobre blanco (AA) */
  --gold-light: #F3D86A;    /* brillos */
  --black: #000000;
  --white: #FFFFFF;
  --grey: #D0D0D0;
  --line: #333333;
  --f-title: "DM Serif Display", Georgia, serif;
  --f-sub: "Poppins", system-ui, sans-serif;
  --f-body: "Montserrat", system-ui, sans-serif;
  --f-label: "Catamaran", "Montserrat", sans-serif;
  --radius: 22px;
  --radius-lg: 32px;
  --wrap: 1160px;
  --content: 760px;
  --gutter: clamp(20px, 5vw, 48px);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --header-h: 88px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body { margin: 0; background: var(--black); color: var(--white); font-family: var(--f-body); font-size: 16px; line-height: 1.7; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
picture { display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 600; }
h2 { font-family: var(--f-title); font-size: clamp(2.25rem, 1.4rem + 3.2vw, 3.5rem); line-height: 1.08; letter-spacing: -.5px; margin-bottom: 24px; }
h3 { font-family: var(--f-sub); font-weight: 400; font-size: 1.375rem; line-height: 1.35; }
p { margin: 0 0 16px; }
strong { font-weight: 600; }
:focus-visible { outline: 3px solid var(--gold-light); outline-offset: 3px; border-radius: 4px; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.visually-hidden, .screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; margin: -1px; padding: 0; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--white); color: var(--black); padding: 10px 16px; border-radius: 10px; font-weight: 700; }
.skip-link:focus { top: 12px; }
.site-main { display: block; }

/* ---------- Botones y etiquetas ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--f-label); font-size: 12px; font-weight: 700; letter-spacing: 4.2px; text-transform: uppercase;
  text-decoration: none; padding: 16px 34px; min-height: 48px; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--white); color: var(--gold-ink);
  transition: background .3s, color .3s, transform .3s var(--ease), box-shadow .3s;
  box-shadow: 0 10px 30px -12px rgba(0,0,0,.6);
}
.btn:hover, .btn:focus-visible { background: var(--black); color: var(--white); transform: translateY(-2px); }
.btn--sm { padding: 10px 22px; min-height: 40px; }
.btn--ghost { background: transparent; color: var(--white); box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.7); }
.btn--ghost:hover, .btn--ghost:focus-visible { background: var(--white); color: var(--black); }
.eyebrow { font-family: var(--f-label); font-size: 12px; font-weight: 700; letter-spacing: 4.2px; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; }
.sticker {
  position: absolute; font-family: var(--f-label); font-weight: 700; font-size: 13px; letter-spacing: 2px; text-transform: uppercase;
  background: var(--gold); color: var(--black); padding: 10px 16px; border-radius: 999px; white-space: nowrap;
  box-shadow: 0 8px 24px -8px rgba(0,0,0,.7), inset 0 0 0 2px rgba(255,255,255,.35);
}
.icon-line { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Cabecera ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50; display: flex; align-items: center; gap: 20px;
  padding: 12px var(--gutter); transition: background .35s, backdrop-filter .35s, padding .35s;
}
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
.site-header.is-scrolled, body:not(.ld-landing) .site-header { background: rgba(0,0,0,.78); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.site-header.is-scrolled { padding-block: 8px; }
.site-header__logo { flex-shrink: 0; }
.site-header__logo img { width: 64px; height: 64px; transition: width .35s, height .35s; }
.site-header.is-scrolled .site-header__logo img { width: 52px; height: 52px; }
.site-nav { margin-left: auto; }
.site-nav__list { list-style: none; margin: 0; padding: 0; display: flex; gap: 28px; }
.site-nav__list a { display: inline-block; font-family: var(--f-label); font-weight: 700; font-size: 12px; letter-spacing: 3px; text-transform: uppercase; text-decoration: none; padding: 8px 0; position: relative; text-shadow: 0 1px 8px rgba(0,0,0,.6); }
.site-nav__list a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 2px; height: 2px; background: var(--gold-light); transition: right .3s var(--ease); }
.site-nav__list a:hover::after, .site-nav__list .current-menu-item > a::after { right: 0; }
.site-nav__list .sub-menu { display: none; }
.site-header__actions { display: flex; align-items: center; gap: 14px; }
.cart-link { position: relative; display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; color: var(--white); text-decoration: none; transition: background .3s; }
.cart-link:hover { background: rgba(255,255,255,.12); }
.cart-link svg { width: 24px; height: 24px; }
.cart-link__count { position: absolute; top: 2px; right: 0; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 999px; background: var(--gold); color: var(--black); font-family: var(--f-label); font-size: 11px; font-weight: 700; line-height: 19px; text-align: center; }
.cart-link__count.is-empty { display: none; }
.nav-toggle { display: none; width: 44px; height: 44px; border: 0; border-radius: 50%; background: transparent; color: var(--white); cursor: pointer; padding: 10px; }
.nav-toggle svg { width: 24px; height: 24px; }
.nav-toggle__close { display: none; }

@media (max-width: 860px) {
  .nav-toggle { display: inline-grid; place-items: center; }
  .site-header__actions { margin-left: auto; gap: 6px; }
  .site-nav {
    position: fixed; inset: 0; z-index: -1; margin: 0; padding: 110px var(--gutter) 40px;
    background: rgba(0,0,0,.96); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
    opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s;
  }
  .site-nav__list { flex-direction: column; gap: 4px; }
  .site-nav__list a { font-family: var(--f-title); font-size: 2rem; letter-spacing: 0; text-transform: none; padding: 10px 0; }
  .site-nav__list a::after { display: none; }
  .site-header.is-open .site-nav { opacity: 1; visibility: visible; }
  .site-header.is-open .nav-toggle__open { display: none; }
  .site-header.is-open .nav-toggle__close { display: block; }
  .nav-open, .nav-open body { overflow: hidden; }
}
@media (max-width: 420px) { .site-header .btn--sm { padding: 10px 16px; letter-spacing: 3px; } }

/* ---------- Pie ---------- */
.footer { background: var(--black); border-top: 1px solid #1c1c1c; padding: 56px 0 40px; text-align: center; }
.footer__inner { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.footer__inner > img { width: 96px; height: 96px; }
.footer__legal { font-family: var(--f-sub); font-weight: 400; color: var(--white); margin: 0; }
.footer__links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 26px; }
.footer__links a { color: var(--grey); font-size: 14px; text-decoration: none; display: inline-block; padding: 8px 0; }
.footer__links a:hover { color: var(--gold-light); text-decoration: underline; }
.footer__copy { color: #A8A8A8; font-size: 13px; margin: 0; }
.footer__widgets { color: var(--grey); font-size: 14px; }

/* ---------- Aviso de consumo responsable ---------- */
.responsible { font-family: var(--f-sub); font-size: 14px; color: var(--grey); }

/* ---------- Verificación de edad ---------- */
.age { border: 0; padding: 0; background: transparent; color: var(--white); max-width: min(92vw, 520px); width: 100%; }
.age::backdrop { background: rgba(0,0,0,.55); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.age__box { position: relative; text-align: center; padding: clamp(32px, 6vw, 48px) clamp(22px, 5vw, 44px) 28px; border-radius: var(--radius-lg);
  background: linear-gradient(160deg, rgba(20,16,0,.96), rgba(0,0,0,.96)); border: 1px solid rgba(193,160,0,.55); box-shadow: 0 40px 100px -30px rgba(0,0,0,.9), 0 0 0 6px rgba(193,160,0,.08); }
.age__box > img { width: 96px; height: 96px; margin: 0 auto 10px; }
.age__title { font-family: var(--f-title); font-size: clamp(1.9rem, 1.4rem + 2vw, 2.5rem); line-height: 1.1; margin-bottom: 10px; color: var(--white); }
.age__title:focus { outline: none; }
.age__desc { color: var(--grey); font-size: 15px; margin-bottom: 24px; }
.age__actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.age__small { margin: 24px 0 0; font-size: 12px; color: #A8A8A8; }
.age[open] { animation: pop .45s var(--ease); }
@keyframes pop { from { opacity: 0; transform: translateY(16px) scale(.97); } }

/* ---------- Apariciones al hacer scroll (solo con JS) ---------- */
.js .reveal { opacity: 0; translate: 0 26px; transition: opacity .8s var(--ease), translate .8s var(--ease); }
.js .reveal.is-in { opacity: 1; translate: 0 0; }

/* ---------- Movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; translate: none; }
}
