/* Estudios Védicos v2: the base tokens and the few base classes the shared sections use, for the two self contained
   pages (home v2, Diploma v5). Linked BEFORE their own stylesheet, so their own tokens and rules win. 26 Nov 2026. */
:root {
  /* Home v2's palette (Ben: forest, bone, copper, saffron). Copper carries icons and accents on light
     bands, saffron on dark ones; copper-t is the copper that may carry small text. */
  --ink: #131A15; --ink-2: #1B241D; --forest: #24372A; --forest-2: #2F4636;
  --bone: #F2ECE1; --paper: #FAF6EE; --bone-2: #E6DDCC;
  --copper: #A9592F; --copper-t: #8E4824; --saffron: #D39A35;
  --text: #1E2620; --muted: #5E6458; --sage: #A9B39A; --sage-l: #C9CFBD;

  /* The theme's own names, now pointing at the v2 palette: every theme rule and every page file reads these */
  --tinta: var(--text); --noche: var(--ink); --verde: var(--forest); --musgo: var(--muted);
  --oliva: var(--copper); --salvia: var(--sage); --salvia-claro: var(--sage-l); --ghee: var(--saffron);
  --hueso: var(--bone); --hueso-2: var(--bone-2); --papel: var(--paper); --white: #FFFFFF; --tinta-2: var(--ink-2);
  --scrim: rgba(19, 26, 21, 0.84);
  --glass-dark: rgba(19, 26, 21, 0.6);
  --glass-light: rgba(250, 246, 238, 0.94);
  --glass-quiet: rgba(250, 246, 238, 0.72);
  --track-dark: rgba(250, 246, 238, 0.18);
  --track-light: rgba(19, 26, 21, 0.14);
  --shadow-ink: rgba(19, 26, 21, 0.5);
  --line-light: rgba(19, 26, 21, 0.16);
  --line-dark: rgba(250, 246, 238, 0.2);
  --line-strong: rgba(19, 26, 21, 0.34);
  --glow: rgba(211, 154, 53, 0.45);       /* the active glow, now saffron */
  --glow-soft: rgba(211, 154, 53, 0.2);
  --halo: 0 0 22px 3px rgba(211, 154, 53, 0.45);

  /* Real platform brand colours (allowed exception, kept here) */
  --brand-youtube: #FF0000;
  --brand-instagram: #E4405F;
  --brand-tiktok: #000000;
  --brand-facebook: #0866FF;
  --brand-whatsapp: #25D366;
  --brand-google-blue: #4285F4;
  --brand-google-green: #34A853;
  --brand-google-yellow: #FBBC05;
  --brand-google-red: #EA4335;

  /* Texture: the grain over the deep forest to ink gradient, the saffron glow on textured bands */
  --noise: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix type='matrix' values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.25 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  --grid-noise: var(--noise);
  --deep: linear-gradient(155deg, color-mix(in srgb, var(--forest) 62%, var(--ink)) 0%, var(--ink) 64%);
  --surface-deep: var(--deep);
  --surface-paper: linear-gradient(160deg, var(--paper) 0%, var(--bone) 100%);
  --band-glow: radial-gradient(60% 50% at 85% 0%, rgba(211, 154, 53, 0.16), rgba(211, 154, 53, 0) 70%);
  --slim: linear-gradient(155deg, var(--forest-2) 0%, var(--forest) 60%);
  --hero-shade: linear-gradient(90deg, rgba(19, 26, 21, 0.92) 0%, rgba(19, 26, 21, 0.8) 42%, rgba(19, 26, 21, 0.4) 74%, rgba(19, 26, 21, 0.24) 100%), linear-gradient(0deg, rgba(19, 26, 21, 0.5) 0%, rgba(19, 26, 21, 0) 40%);
  --hero-shade-mobile: linear-gradient(to top, rgba(19, 26, 21, 0.95) 0%, rgba(19, 26, 21, 0.76) 55%, rgba(19, 26, 21, 0.42) 100%);

  /* Type: Fraunces for display, Instrument Sans for text */
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-text: "Instrument Sans", "Segoe UI", system-ui, sans-serif;
  --fd: var(--font-display); --ft: var(--font-text);
  --fs-small: 0.9375rem;
  --fs-body: 1.0625rem;
  --fs-lead: clamp(1.125rem, 1rem + .35vw, 1.3125rem);
  --fs-step1: clamp(1.25rem, 1.15rem + 0.5vw, 1.5rem);
  --fs-h3: clamp(1.25rem, 1.15rem + 0.5vw, 1.5rem);
  --fs-h2: clamp(2rem, 1.2rem + 2.6vw, 3.43rem);
  --fs-h1: clamp(2.67rem, 1.4rem + 4.9vw, 5.5rem);
  --lh-tight: 1.04;
  --lh-snug: 1.25;
  --lh-body: 1.6;

  /* Space: one band padding and one head gap on every page */
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px;
  --s-6: 40px; --s-7: 64px; --s-8: 96px;
  --sec: clamp(72px, 4vw + 52px, 112px);
  --section-y: var(--sec);
  --hg: clamp(40px, 3.5vw, 56px);
  --gutter: 16px; --gut: var(--gutter);
  --container: 1280px; --wrap: var(--container);

  /* Shape: one media corner and one shadow. Top-level media 14 px with the deep soft shadow, nested items 4 px. */
  --r: 4px;
  --r-media: 14px; --rm: var(--r-media);
  --shadow-pop: 0 28px 60px -24px var(--shadow-ink); --pop: var(--shadow-pop);
  --ring: var(--saffron);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --header-h: 68px; --hdr: var(--header-h);
}
.band { padding: var(--section-y) 0; position: relative; }
.band--papel, .band--paper { background-color: var(--paper); background-image: var(--noise), var(--surface-paper); background-blend-mode: soft-light, normal; }
.band--hueso { background: var(--hueso); }
.band--forest { background-color: var(--forest); background-image: var(--noise), radial-gradient(70% 120% at 100% 0%, rgba(211, 154, 53, .12), rgba(211, 154, 53, 0) 60%), var(--slim); background-blend-mode: overlay, normal, normal; color: var(--paper); }
.band--forest h2, .band--forest h3 { color: var(--paper); }
.band__head { max-width: 920px; margin: 0 auto var(--hg); text-align: center; }
.band__head .band__lede { max-width: 760px; }
.band__head--center { margin-left: auto; margin-right: auto; text-align: center; }
.band__head--center .band__lede { margin-left: auto; margin-right: auto; }
.band__lede { font-size: var(--fs-lead); line-height: 1.5; margin: 18px 0 0; color: var(--muted); text-wrap: pretty; }
.band--darker .band__lede, .band--textured .band__lede { color: var(--salvia-claro); }
.more { margin: var(--hg) 0 0; display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.more--start { justify-content: flex-start; }
.arrow-btn {
  position: relative; width: 48px; height: 48px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
  color: var(--paper); background: var(--forest); border: 1px solid var(--sage); border-radius: var(--r);
  box-shadow: none; cursor: pointer; transition: background-color .2s ease, border-color .2s ease, opacity .2s ease;
}
.arrow-btn svg { width: 23px; height: 23px; }
.arrow-btn:hover:not(:disabled), .arrow-btn:focus-visible { background: var(--copper); border-color: var(--copper); color: var(--paper); }
.arrow-btn:disabled { opacity: .35; cursor: default; }
.scrollbar { width: 160px; max-width: 50%; height: 3px; margin: 24px auto 0; border-radius: 1px; background: var(--track-light); overflow: hidden; position: relative; }
.band--darker .scrollbar, .band--textured .scrollbar { background: var(--track-dark); }
.scrollbar__thumb { position: absolute; top: 0; left: 0; height: 100%; width: 30%; border-radius: 1px; background: var(--oliva); }
.band--darker .scrollbar__thumb, .band--textured .scrollbar__thumb, .on-dark .scrollbar__thumb { background: var(--saffron); }
.band__head { margin-left: auto; margin-right: auto; text-align: center; max-width: 920px; }
.band__head .band__lede { max-width: 760px; margin-left: auto; margin-right: auto; text-wrap: pretty; }
.band__head h2 { text-wrap: balance; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
