/*
 * Wonderland Essentials — tokens de marca y base común de los widgets.
 *
 * Los tokens se definen en :root con los valores de marca y se pueden sobrescribir
 * desde Elementor › Ajustes del sitio › Wonderland (se aplican sobre el <body>).
 * Todo lo demás vive bajo .wl para no chocar con el tema ni con otros plugins.
 */
:root {
  /* Paleta */
  --wl-navy-start: #05265F;
  --wl-navy-end: #0B1336;
  --wl-ink: #0A1033;
  --wl-ink-900: #0D1B45;
  --wl-gold: #EED6AC;
  --wl-gold-deep: #C49A43;
  --wl-blue: #07375A;
  --wl-cream: #FAF7EF;
  --wl-cream-alt: #F1EAD6;
  --wl-line: #DED4B8;
  --wl-text: #14151B;
  --wl-text-muted: #524F46;

  /* Tipografías */
  --wl-font-display: 'Cormorant Garamond', serif;
  --wl-font-body: 'Inter', sans-serif;

  /* Maqueta */
  --wl-page-width: 1240px;
  --wl-page-pad: 40px;
}
@media (max-width: 720px) {
  :root { --wl-page-pad: 22px; }
}

/* Los degradados se recalculan en cada widget para que hereden los tokens sobrescritos. */
.wl {
  --wl-gradient: linear-gradient(90deg, var(--wl-navy-start) 0%, var(--wl-navy-end) 100%);
  --wl-gradient-v: linear-gradient(180deg, var(--wl-navy-start) 0%, var(--wl-navy-end) 100%);
  font-family: var(--wl-font-body);
  color: var(--wl-text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* ---------- Reset encapsulado ---------- */
.wl,
.wl *,
.wl *::before,
.wl *::after { box-sizing: border-box; }

.wl :where(h1, h2, h3, h4, p, ul, ol, figure, blockquote) { margin: 0; padding: 0; }
.wl :where(ul, ol) { list-style: none; }
/* :where() deja la especificidad en 0,1,0 para que cada componente pueda fijar su color */
.wl :where(a[class]) { color: inherit; text-decoration: none; }
.wl img { display: block; max-width: 100%; border: 0; border-radius: 0; box-shadow: none; }
.wl :where(button) { font: inherit; }

/* ---------- Utilidades compartidas ---------- */
.wl .wl-wrap {
  max-width: var(--wl-page-width);
  margin: 0 auto;
  padding: 0 var(--wl-page-pad);
}
.wl .wl-display { font-family: var(--wl-font-display); }
.wl .wl-eyebrow {
  display: block;
  font-family: var(--wl-font-body);
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  font-weight: 600;
}
/* Titular grande compartido por varias secciones */
.wl .wl-heading {
  font-family: var(--wl-font-display);
  font-size: clamp(2.6rem, 3.6vw, 4rem);
  line-height: .98;
  font-weight: 500;
  letter-spacing: -.025em;
}
.wl .wl-lead {
  font-family: var(--wl-font-body);
  font-size: .98rem;
  line-height: 1.65;
  font-weight: 400;
}

/* Foco visible accesible y coherente con la marca */
.wl a:focus-visible,
.wl button:focus-visible,
.wl input:focus-visible,
.wl [tabindex]:focus-visible {
  outline: 2px solid var(--wl-gold);
  outline-offset: 3px;
}

.wl .wl-sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0);
  white-space: nowrap; border: 0;
}

/* Las anclas del menú no quedan ocultas bajo la cabecera fija */
.wl[id] { scroll-margin-top: 88px; }
@media (max-width: 820px) {
  .wl[id] { scroll-margin-top: 70px; }
}

@media (prefers-reduced-motion: reduce) {
  .wl *, .wl *::before, .wl *::after { transition: none !important; scroll-behavior: auto !important; }
}
