:root {
  --color-primary: #0a3c3b;
  --color-primary-deep: #052b32;
  --color-secondary: #326b2f;
  --color-accent: #f2aa1f;
  --color-sky: #d9f0ec;
  --color-background: #f5f7f2;
  --color-surface: #ffffff;
  --color-text: #102a2c;
  --color-muted: #536466;
  --color-border: #d9e1dc;
  --color-help: #f6c24a;
  --radius-sm: 0.75rem;
  --radius-md: 1.25rem;
  --radius-lg: 2rem;
  --shadow: 0 18px 50px rgba(7, 45, 49, 0.12);
  --container: 75rem;
  --header-height: 5.5rem;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-height) + 1rem); }

body {
  margin: 0;
  background: var(--color-background);
  color: var(--color-text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 4px;
}

.container { width: min(calc(100% - 2rem), var(--container)); margin-inline: auto; }
.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; }
.skip-link { position: fixed; z-index: 1000; top: 0.75rem; left: 0.75rem; padding: 0.7rem 1rem; border-radius: 0.5rem; background: var(--color-surface); color: var(--color-primary-deep); font-weight: 800; transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: absolute;
  z-index: 50;
  inset: 0 0 auto;
  color: #fff;
}

.header-inner { min-height: var(--header-height); display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; border-bottom: 1px solid rgba(255,255,255,.2); }
.brand { display: inline-flex; align-items: center; gap: 0.75rem; text-decoration: none; font-weight: 850; letter-spacing: -0.02em; }
.brand img { width: 3.35rem; height: 3.35rem; object-fit: cover; border-radius: 50%; background: #fff; }
.main-nav ul { display: flex; align-items: center; gap: clamp(.9rem, 2vw, 1.65rem); margin: 0; padding: 0; list-style: none; }
.main-nav a { position: relative; display: inline-flex; min-height: 2.75rem; align-items: center; text-decoration: none; font-size: .92rem; font-weight: 700; }
.main-nav a::after { content: ""; position: absolute; inset: auto 0 .25rem; height: 2px; background: var(--color-accent); transform: scaleX(0); transform-origin: left; transition: transform .2s ease; }
.main-nav a:hover::after, .main-nav a:focus-visible::after, .main-nav a[aria-current="page"]::after { transform: scaleX(1); }
.main-nav .nav-help { padding-inline: 1rem; border: 1px solid rgba(255,255,255,.55); border-radius: 999px; }
.main-nav .nav-help::after { display: none; }
.main-nav .nav-help:hover { background: #fff; color: var(--color-primary); }
.menu-toggle { display: none; width: 3rem; height: 3rem; padding: .7rem; border: 1px solid rgba(255,255,255,.45); border-radius: 50%; background: transparent; color: #fff; }
.menu-toggle span:not(.sr-only) { display: block; width: 100%; height: 2px; margin-block: 4px; background: currentColor; transition: transform .2s ease, opacity .2s ease; }

.hero { position: relative; min-height: 49rem; padding: calc(var(--header-height) + 5.5rem) 0 6rem; color: #fff; background: radial-gradient(circle at 82% 18%, rgba(87,142,57,.72), transparent 28%), radial-gradient(circle at 32% 80%, rgba(21,101,85,.58), transparent 33%), linear-gradient(120deg, #052b32 0%, #0b4844 52%, #476f2d 100%); overflow: hidden; }
.hero::after { content: ""; position: absolute; inset: auto 0 0; height: 9rem; background: linear-gradient(to top, rgba(5,43,50,.45), transparent); pointer-events: none; }
.hero-decoration { position: absolute; border: 1px solid rgba(255,255,255,.16); border-radius: 50%; }
.hero-decoration-one { width: 34rem; height: 34rem; top: 4rem; right: -9rem; }
.hero-decoration-two { width: 18rem; height: 18rem; bottom: -8rem; left: 34%; }
.hero-grid { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, .92fr) minmax(28rem, 1.08fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.hero-copy { max-width: 41rem; }
.eyebrow { margin: 0 0 .85rem; color: #d5ecb4; font-size: .76rem; font-weight: 850; letter-spacing: .14em; text-transform: uppercase; }
.eyebrow-dark { color: var(--color-secondary); }
.hero h1 { margin: 0; font-size: clamp(4.5rem, 8vw, 7rem); line-height: .82; letter-spacing: -.075em; font-weight: 820; }
.hero h1 span { color: #bcd789; font-weight: 500; }
.hero-tagline { margin: 2rem 0 .75rem; font-size: clamp(1.3rem, 2vw, 1.8rem); line-height: 1.25; font-weight: 750; }
.hero-objective { max-width: 39rem; margin: 0; color: rgba(255,255,255,.82); font-size: .98rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: .65rem; min-height: 3.25rem; padding: .75rem 1.15rem; border: 1px solid transparent; border-radius: 999px; text-decoration: none; font-weight: 800; transition: transform .2s ease, background-color .2s ease, color .2s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--color-accent); color: #172c20; }
.button-primary:hover { background: #ffc34d; }
.button-secondary { border-color: rgba(255,255,255,.5); color: #fff; }
.button-secondary:hover { background: #fff; color: var(--color-primary-deep); }

.hero-visual { position: relative; margin: 0; align-self: end; }
.hero-image-frame { position: relative; aspect-ratio: 1.22; display: flex; align-items: end; border-radius: 50% 50% 2rem 2rem / 48% 48% 2rem 2rem; background: linear-gradient(160deg, rgba(255,255,255,.12), rgba(255,255,255,.03)); box-shadow: inset 0 0 0 1px rgba(255,255,255,.15); overflow: hidden; }
.hero-image-frame::before { content: ""; position: absolute; inset: 12% 9% 0; border-radius: 50% 50% 0 0; background: rgba(233,246,211,.13); }
.hero-image-frame img { position: relative; z-index: 1; width: 110%; max-width: none; margin-left: -5%; filter: drop-shadow(0 22px 24px rgba(2,31,32,.28)); }
.hero-visual figcaption { position: absolute; z-index: 2; right: 0; bottom: 1rem; max-width: 17rem; padding: .85rem 1rem; border-radius: var(--radius-sm) 0 0 var(--radius-sm); background: rgba(3,35,38,.88); color: #fff; font-size: .82rem; backdrop-filter: blur(8px); }

.stats-section { position: relative; z-index: 5; padding: 5.5rem 0 6.5rem; background: var(--color-surface); }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 2rem; margin-bottom: 2.25rem; }
.section-heading h2 { max-width: 43rem; margin: 0; font-size: clamp(2rem, 4vw, 3.35rem); line-height: 1.05; letter-spacing: -.045em; }
.section-heading > p, .section-heading > div + p { max-width: 30rem; margin: 0; color: var(--color-muted); }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.stat-card { position: relative; min-height: 18rem; padding: 1.75rem; border-radius: var(--radius-md); overflow: hidden; }
.stat-card::after { content: ""; position: absolute; width: 9rem; height: 9rem; right: -3rem; bottom: -3rem; border: 1px solid currentColor; border-radius: 50%; opacity: .16; }
.stat-card-green { background: #e3f0d4; color: #244f27; }
.stat-card-blue { background: #dceeed; color: #0b5553; }
.stat-card-gold { background: #fff0c8; color: #62430b; }
.stat-number { margin: 0 0 1.6rem; font-size: clamp(3.4rem, 6vw, 5rem); line-height: .9; letter-spacing: -.06em; font-weight: 850; }
.stat-number span { font-size: .5em; margin-left: .1em; }
.stat-card h3 { max-width: 17rem; margin: 0; font-size: 1.25rem; line-height: 1.2; }
.stat-card h3 + p { margin: .4rem 0 1.1rem; font-weight: 750; }
.stat-population { display: block; max-width: 16rem; padding-top: 1rem; border-top: 1px solid currentColor; font-size: .82rem; opacity: .76; }
.source-note { margin: 1.3rem 0 0; padding-left: 1rem; border-left: 3px solid var(--color-accent); color: var(--color-muted); font-size: .85rem; }
.source-note a { color: var(--color-primary); font-weight: 800; }
.data-deep-link { display: inline-flex; align-items: center; gap: .55rem; margin-top: 1.5rem; color: var(--color-primary); font-weight: 850; text-underline-offset: .28rem; }

.need-section { padding: 7rem 0; background: var(--color-background); }
.need-grid { display: grid; grid-template-columns: .72fr 1.28fr; gap: clamp(3rem, 8vw, 7rem); align-items: start; }
.need-intro { position: sticky; top: 2rem; display: block; margin: 0; }
.need-intro h2 { margin-bottom: 1.25rem; }
.need-intro > p:last-child { margin: 0; color: var(--color-muted); font-size: 1.08rem; }
.need-list { border-top: 1px solid var(--color-border); }
.need-list article { display: grid; grid-template-columns: 4rem 1fr; gap: 1.25rem; padding: 1.7rem 0; border-bottom: 1px solid var(--color-border); }
.need-number { color: var(--color-secondary); font-size: .8rem; font-weight: 850; letter-spacing: .1em; }
.need-list h3 { margin: 0 0 .35rem; font-size: 1.18rem; }
.need-list p { margin: 0; color: var(--color-muted); }

.participation-section { padding: 0 0 6.5rem; background: var(--color-background); }
.participation-card { display: grid; grid-template-columns: minmax(0, 1.2fr) auto; gap: 2rem; align-items: center; padding: 2rem 2.2rem; border: 1px solid var(--color-border); border-radius: var(--radius-lg); background: linear-gradient(135deg, #fff9ea, #edf5ef); box-shadow: 0 16px 34px rgba(7,45,49,.08); }
.participation-card h2 { margin: .5rem 0 .9rem; font-size: clamp(2rem, 4vw, 3.2rem); line-height: .95; letter-spacing: -.04em; }
.participation-card p:last-child { margin: 0; max-width: 43rem; color: var(--color-muted); }
.participation-link { justify-self: start; white-space: nowrap; }

.pathways { padding: 6.5rem 0; background: var(--color-surface); }
.pathway-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.pathway-card { display: flex; flex-direction: column; min-height: 20rem; padding: 1.7rem; border: 1px solid var(--color-border); border-radius: var(--radius-md); background: var(--color-surface); box-shadow: 0 12px 30px rgba(7,45,49,.05); }
.pathway-icon { display: grid; width: 3.2rem; height: 3.2rem; place-items: center; border-radius: 50%; background: var(--color-sky); color: var(--color-primary); font-size: .78rem; font-weight: 900; }
.pathway-card h3 { margin: auto 0 .7rem; font-size: 1.6rem; }
.pathway-card p { margin: 0 0 1.5rem; color: var(--color-muted); }
.status-label { width: fit-content; padding: .38rem .65rem; border-radius: 999px; background: #eef2ed; color: #4e5d56; font-size: .72rem; font-weight: 800; }
.pathway-link { width: fit-content; color: var(--color-primary); font-size: .86rem; font-weight: 850; text-underline-offset: .25rem; }
.pathway-link:hover { color: var(--color-secondary); }

.help-band { padding: 5.5rem 0; background: var(--color-primary-deep); color: #fff; }
.help-inner { display: grid; grid-template-columns: 1fr auto; gap: 3rem; align-items: center; }
.help-inner > div:first-child { max-width: 48rem; }
.help-inner h2 { margin: 0 0 1rem; font-size: clamp(2rem, 4vw, 3.3rem); line-height: 1.05; letter-spacing: -.04em; }
.help-inner p { margin: 0; color: rgba(255,255,255,.78); }
.emergency-card { min-width: 15rem; padding: 1.45rem 1.7rem; border-radius: var(--radius-md); background: var(--color-help); color: #2b3018; }
.emergency-card span, .emergency-card strong { display: block; }
.emergency-card span { font-size: .8rem; font-weight: 750; }
.emergency-card strong { margin-top: .2rem; font-size: 1.75rem; }

.site-footer { padding: 3rem 0 1.5rem; background: #041f25; color: #fff; }
.footer-grid { display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding-bottom: 2rem; border-bottom: 1px solid rgba(255,255,255,.14); }
.footer-brand { display: flex; align-items: center; gap: .9rem; }
.footer-brand img { width: 3.8rem; height: 3.8rem; object-fit: cover; border-radius: 50%; background: #fff; }
.footer-brand strong, .footer-brand span { display: block; }
.footer-brand span { color: rgba(255,255,255,.62); font-size: .76rem; text-transform: uppercase; letter-spacing: .1em; }
.site-footer nav ul { display: flex; flex-wrap: wrap; gap: 1.25rem; margin: 0; padding: 0; list-style: none; }
.site-footer nav a { color: rgba(255,255,255,.76); font-size: .9rem; font-weight: 700; }
.site-footer nav a:hover { color: #fff; }
.footer-details { display: grid; grid-template-columns: repeat(4, 1fr); gap: .75rem; padding-block: 1.5rem; }
.footer-details details { border: 1px solid rgba(255,255,255,.14); border-radius: .75rem; }
.footer-details summary { padding: .75rem; cursor: pointer; font-weight: 750; }
.footer-details p { margin: 0; padding: 0 .75rem .9rem; color: rgba(255,255,255,.65); font-size: .8rem; }
.footer-detail-link { display: inline-flex; align-items: center; gap: .35rem; margin: 0 .75rem .9rem; color: #fff; font-size: .78rem; font-weight: 800; text-underline-offset: .2rem; }
.footer-bottom { display: flex; justify-content: space-between; gap: 1rem; color: rgba(255,255,255,.52); font-size: .78rem; }

@media (max-width: 64rem) {
  :root { --header-height: 4.8rem; }
  .brand span { display: none; }
  .menu-toggle { display: block; }
  .main-nav { position: absolute; top: calc(100% + .4rem); right: 1rem; width: min(22rem, calc(100% - 2rem)); padding: .8rem; border-radius: 1rem; background: #fff; color: var(--color-text); box-shadow: var(--shadow); visibility: hidden; opacity: 0; transform: translateY(-.6rem); transition: opacity .2s ease, transform .2s ease, visibility .2s; }
  .main-nav.is-open { visibility: visible; opacity: 1; transform: translateY(0); }
  .main-nav ul { display: block; }
  .main-nav a { width: 100%; padding-inline: .8rem; }
  .main-nav .nav-help { margin-top: .25rem; border-color: var(--color-border); border-radius: .6rem; }
  .main-nav .nav-help:hover { background: var(--color-primary); color: #fff; }
  .menu-toggle[aria-expanded="true"] span:nth-of-type(1) { transform: translateY(6px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:nth-of-type(2) { opacity: 0; }
  .menu-toggle[aria-expanded="true"] span:nth-of-type(3) { transform: translateY(-6px) rotate(-45deg); }
  .hero { min-height: auto; padding-top: calc(var(--header-height) + 4rem); }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { max-width: 46rem; }
  .hero-visual { width: min(100%, 43rem); justify-self: center; }
  .stats-grid, .pathway-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-card:last-child, .pathway-card:last-child { grid-column: span 2; }
  .need-grid { grid-template-columns: 1fr; }
  .need-intro { position: static; }
  .participation-card { grid-template-columns: 1fr; }
  .help-inner { grid-template-columns: 1fr; }
  .emergency-card { width: fit-content; }
  .footer-details { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 43rem) {
  .container { width: min(calc(100% - 1.25rem), var(--container)); }
  .hero { padding-top: calc(var(--header-height) + 2.5rem); padding-bottom: 3.5rem; }
  .hero h1 { font-size: clamp(4rem, 19vw, 5.7rem); }
  .hero-objective { font-size: .93rem; }
  .hero-actions { display: grid; }
  .button { width: 100%; }
  .hero-image-frame { aspect-ratio: 1.05; border-radius: 50% 50% 1.3rem 1.3rem / 42% 42% 1.3rem 1.3rem; }
  .hero-image-frame img { width: 126%; margin-left: -13%; }
  .hero-visual figcaption { position: relative; right: auto; bottom: auto; max-width: none; border-radius: 0 0 1rem 1rem; }
  .stats-section, .need-section, .pathways { padding-block: 4.5rem; }
  .participation-section { padding-bottom: 4.5rem; }
  .section-heading { display: block; }
  .section-heading > p, .section-heading > div + p { margin-top: 1rem; }
  .stats-grid, .pathway-grid { grid-template-columns: 1fr; }
  .stat-card:last-child, .pathway-card:last-child { grid-column: auto; }
  .stat-card { min-height: 16rem; }
  .need-list article { grid-template-columns: 2.7rem 1fr; }
  .participation-card { padding: 1.5rem; }
  .footer-grid, .footer-bottom { align-items: flex-start; flex-direction: column; }
  .site-footer nav ul { display: grid; grid-template-columns: 1fr 1fr; }
  .footer-details { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

/* ================================================================
   Página de sustancias: portada, biblioteca y fichas educativas
   ================================================================ */

.substances-page { background: #071719; }
.substances-header { position: absolute; }
.substances-header .header-inner { border-bottom-color: rgba(255,255,255,.14); }

.substances-hero {
  position: relative;
  min-height: 44rem;
  display: grid;
  align-items: center;
  padding: calc(var(--header-height) + 5rem) 0 6rem;
  color: #fff;
  background:
    linear-gradient(180deg, rgba(4,20,23,.1), rgba(4,20,23,.78)),
    radial-gradient(circle at 88% 18%, rgba(48,114,70,.6), transparent 27%),
    radial-gradient(circle at 5% 72%, rgba(7,102,112,.46), transparent 28%),
    #071719;
  overflow: hidden;
}

.substances-hero::before {
  content: "";
  position: absolute;
  width: min(54vw, 45rem);
  aspect-ratio: 1;
  top: 7rem;
  right: -8rem;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 48% 52% 58% 42%;
  transform: rotate(24deg);
}

.substances-hero-inner { position: relative; z-index: 2; }
.substances-hero h1 { max-width: 64rem; margin: 0; font-size: clamp(5rem, 12vw, 10.5rem); line-height: .76; letter-spacing: -.08em; text-transform: uppercase; }
.substances-hero h1 span { display: block; margin-left: clamp(2rem, 10vw, 9rem); color: transparent; -webkit-text-stroke: 1.5px rgba(213,236,180,.85); font-size: .61em; font-weight: 580; letter-spacing: -.045em; }
.substances-lead { max-width: 42rem; margin: 3rem 0 2rem clamp(0rem, 13vw, 10rem); color: rgba(255,255,255,.74); font-size: 1.08rem; }
.substances-hero .button { margin-left: clamp(0rem, 13vw, 10rem); }

.orb { position: absolute; border-radius: 44% 56% 62% 38%; filter: blur(.2px); pointer-events: none; }
.orb::after { content: ""; position: absolute; inset: 8%; border: 1px solid rgba(255,255,255,.35); border-radius: inherit; }
.orb-one { width: 8rem; height: 8rem; top: 8.5rem; left: -2rem; background: linear-gradient(145deg, #0ac3b3, #173c7b); transform: rotate(26deg); }
.orb-two { width: 6rem; height: 6rem; right: 10%; bottom: 4rem; background: linear-gradient(145deg, #f1a921, #367b3c); transform: rotate(-18deg); }

.substances-overview { padding: 7rem 0; background: #f4f6f1; }
.overview-heading { display: grid; grid-template-columns: .6fr 1.4fr; gap: 2rem; align-items: end; margin-bottom: 2.5rem; }
.overview-heading h2 { max-width: 48rem; margin: 0; font-size: clamp(2.8rem, 6vw, 5.4rem); line-height: .92; letter-spacing: -.06em; }
.overview-grid { display: grid; grid-template-columns: .92fr 1.08fr; gap: 1rem; }
.overview-card { position: relative; min-height: 21rem; padding: 2rem; border: 1px solid var(--color-border); border-radius: var(--radius-lg); background: #fff; overflow: hidden; }
.overview-card-definition { background: var(--color-primary); color: #fff; }
.overview-card-classification { grid-column: 1 / -1; display: grid; grid-template-columns: 6rem 1fr; gap: .75rem 2rem; min-height: auto; }
.overview-number { display: block; margin-bottom: 4rem; color: var(--color-secondary); font-size: .78rem; font-weight: 900; letter-spacing: .12em; }
.overview-card-definition .overview-number { color: #d5ecb4; }
.overview-card h3 { max-width: 28rem; margin: 0 0 1rem; font-size: clamp(1.7rem, 3vw, 2.45rem); line-height: 1.05; letter-spacing: -.035em; }
.overview-card p { max-width: 35rem; margin: 0; color: var(--color-muted); }
.overview-card-definition p { color: rgba(255,255,255,.74); }
.overview-card-classification .overview-number { grid-row: 1 / span 2; margin: .25rem 0; }
.overview-card-classification h3, .overview-card-classification .classification-list { grid-column: 2; }
.classification-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem 1.5rem; margin: 0; padding: 0; list-style: none; }
.classification-list li { position: relative; padding-left: 1.6rem; color: var(--color-muted); }
.classification-dot { position: absolute; left: 0; top: .55rem; width: .65rem; height: .65rem; border-radius: 50%; }
.dot-blue { background: #18748b; }.dot-gold { background: #e9a921; }.dot-green { background: #4f8d38; }.dot-orange { background: #d86129; }.dot-purple { background: #7558a5; }
.teen-warning { display: grid; grid-template-columns: auto 1fr; gap: 1.2rem; align-items: center; margin-top: 1rem; padding: 1.35rem 1.5rem; border-radius: var(--radius-md); background: #fff0c8; color: #57400f; }
.warning-symbol { display: grid; width: 3rem; height: 3rem; place-items: center; border: 1px solid currentColor; border-radius: 50%; font-size: 1.4rem; font-weight: 900; }
.teen-warning h3 { margin: 0 0 .2rem; font-size: 1.1rem; }
.teen-warning p { margin: 0; color: #705c2c; font-size: .9rem; }

.substance-library { padding: 7rem 0 3rem; color: #fff; background: #071719; overflow: hidden; }
.library-heading { display: grid; grid-template-columns: 1.4fr .6fr; gap: 3rem; align-items: end; }
.library-heading h2 { margin: 0; font-size: clamp(3.2rem, 7vw, 6.5rem); line-height: .88; letter-spacing: -.065em; }
.library-heading h2 span { color: #a8c67b; font-weight: 500; }
.library-heading > p { max-width: 26rem; margin: 0; color: rgba(255,255,255,.62); }
.book-stage { position: relative; margin-top: 5rem; padding: 5rem 0 4rem; border-top: 1px solid rgba(255,255,255,.12); border-bottom: 1px solid rgba(255,255,255,.12); background: radial-gradient(ellipse at 50% 100%, rgba(45,121,83,.35), transparent 50%); overflow-x: auto; overflow-y: hidden; scrollbar-color: #79a76b #10272a; scrollbar-width: thin; }
.book-stage::after { content: ""; position: absolute; z-index: 0; left: 0; right: 0; bottom: 3.1rem; height: .8rem; background: linear-gradient(180deg, #294a42, #102d2d); box-shadow: 0 1rem 2rem rgba(0,0,0,.6); }
.book-shelf { position: relative; z-index: 1; width: max-content; min-width: max(74rem, calc(100% - 2rem)); display: flex; align-items: end; justify-content: center; gap: .6rem; perspective: 1200px; padding-inline: 2rem; }
.book { --book-bg: linear-gradient(155deg, #1b6f57, #0a382f); --book-ink: #fff; position: relative; display: grid; grid-template-columns: 1.4rem 7.2rem; width: 8.6rem; height: 18rem; color: var(--book-ink); text-decoration: none; transform-origin: bottom; transform-style: preserve-3d; transition: transform .35s cubic-bezier(.2,.8,.2,1), filter .35s ease; filter: drop-shadow(.5rem .9rem .7rem rgba(0,0,0,.45)); }
.book:nth-child(1) { --book-order: 1; }.book:nth-child(2) { --book-order: 2; }.book:nth-child(3) { --book-order: 3; }.book:nth-child(4) { --book-order: 4; }.book:nth-child(5) { --book-order: 5; }.book:nth-child(6) { --book-order: 6; }.book:nth-child(7) { --book-order: 7; }.book:nth-child(8) { --book-order: 8; }.book:nth-child(9) { --book-order: 9; }
.book:nth-child(2n) { height: 20rem; }.book:nth-child(3n) { height: 17rem; }
.book:hover, .book:focus-visible, .book.is-active { z-index: 4; transform: translateY(-2.2rem) rotateY(-8deg) scale(1.04); filter: drop-shadow(1rem 1.4rem 1rem rgba(0,0,0,.6)); }
.book:hover .book-cover, .book:focus-visible .book-cover, .book.is-active .book-cover { animation-play-state: paused; }
.book:focus-visible { outline: 3px solid var(--color-accent); outline-offset: .4rem; }
.book-spine { display: flex; align-items: end; justify-content: center; padding: 1rem .2rem; border-radius: .25rem 0 0 .25rem; background: var(--book-base, #1d7358); background: color-mix(in srgb, var(--book-base, #1d7358) 72%, #000); box-shadow: inset -4px 0 6px rgba(0,0,0,.25); }
.book-spine span { writing-mode: vertical-rl; transform: rotate(180deg); font-size: .64rem; font-weight: 900; letter-spacing: .14em; }
.book-cover { position: relative; display: flex; flex-direction: column; padding: 1rem .75rem .85rem; border-radius: 0 .35rem .35rem 0; background: var(--book-bg); overflow: hidden; box-shadow: inset 1px 0 rgba(255,255,255,.18), inset -4px 0 8px rgba(0,0,0,.18); animation: book-breathe 6s ease-in-out infinite; animation-delay: calc(var(--book-order, 0) * -.55s); }
.book-cover::before { content: ""; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(255,255,255,.18), transparent 28%), repeating-linear-gradient(115deg, transparent 0 18px, rgba(255,255,255,.05) 19px 20px); }
.book-cover > * { position: relative; z-index: 1; }
.book-category { font-size: .52rem; font-weight: 850; letter-spacing: .11em; text-transform: uppercase; }
.book-cover strong { margin-top: auto; font-size: 1.28rem; line-height: .92; letter-spacing: -.045em; overflow-wrap: anywhere; }
.book-cover small { margin-top: .6rem; font-size: .56rem; line-height: 1.35; opacity: .72; }
.book-open { margin-top: 1rem; padding-top: .55rem; border-top: 1px solid currentColor; font-size: .58rem; font-weight: 850; }
.book-alcohol { --book-base: #bd791a; --book-bg: linear-gradient(155deg, #f1b332, #8b4a0a); --book-ink: #241704; }
.book-tabaco { --book-base: #606865; --book-bg: linear-gradient(155deg, #d8ddd9, #59635e); --book-ink: #10231e; }
.book-vapeadores { --book-base: #17727b; --book-bg: linear-gradient(155deg, #67d6d0, #0c6673); --book-ink: #06282d; }
.book-cannabis { --book-base: #3f782f; --book-bg: linear-gradient(155deg, #96c768, #275c25); --book-ink: #10270e; }
.book-inhalables { --book-base: #b25529; --book-bg: linear-gradient(155deg, #f29442, #8e321f); --book-ink: #301006; }
.book-cocaina { --book-base: #405e84; --book-bg: linear-gradient(155deg, #b9ccdf, #274d78); --book-ink: #0b2239; }
.book-metanfetaminas { --book-base: #6f4e90; --book-bg: linear-gradient(155deg, #bda3d5, #59357b); --book-ink: #241234; }
.book-medicamentos { --book-base: #0d6d59; --book-bg: linear-gradient(155deg, #47b89a, #075141); --book-ink: #06271f; }
.book-nps { --book-base: #a83e4d; --book-bg: linear-gradient(155deg, #ed7d80, #7d263f); --book-ink: #340812; }
.library-hint { margin-top: 1rem; color: rgba(255,255,255,.54); font-size: .78rem; }

@keyframes book-breathe { 0%, 100% { transform: translateY(0) rotateY(0); } 50% { transform: translateY(-.45rem) rotateY(-2deg); } }

.substance-reader { background: #071719; }
.substance-reader.has-active { padding: 2rem 0 7rem; }
.substance-sheet { margin-bottom: 2rem; border: 1px solid rgba(255,255,255,.18); border-radius: 2.25rem; background: #f3f5f0; color: var(--color-text); box-shadow: 0 2rem 5rem rgba(0,0,0,.38); overflow: hidden; }
.substance-sheet[hidden] { display: none; }
.sheet-header { position: relative; display: grid; grid-template-columns: 8.5rem 1fr auto; gap: 1.5rem; align-items: start; min-height: 17rem; padding: 2rem; background: linear-gradient(135deg, #102c31, #235c51); color: #fff; overflow: hidden; }
.sheet-header::after { content: ""; position: absolute; width: 22rem; height: 22rem; right: -8rem; bottom: -14rem; border: 1px solid rgba(255,255,255,.18); border-radius: 50%; }
.sheet-number { margin: 0; color: rgba(255,255,255,.92); font-size: clamp(4.5rem, 9vw, 8rem); line-height: .78; letter-spacing: -.08em; font-weight: 900; }
.sheet-category { display: block; margin-bottom: 3rem; color: #cbe4a1; font-size: .7rem; font-weight: 900; letter-spacing: .13em; text-transform: uppercase; }
.sheet-header h2 { margin: 0; font-size: clamp(3.3rem, 7vw, 6.5rem); line-height: .82; letter-spacing: -.065em; }
.sheet-header div p { max-width: 38rem; margin: 1.4rem 0 0; color: rgba(255,255,255,.68); }
.reader-close { position: relative; z-index: 2; display: inline-flex; align-items: center; gap: .65rem; min-height: 2.7rem; padding: .5rem .85rem; border: 1px solid rgba(255,255,255,.45); border-radius: 999px; color: #fff; text-decoration: none; font-size: .75rem; font-weight: 800; }
.reader-close:hover { background: #fff; color: var(--color-primary-deep); }
.reader-close span { font-size: 1.2rem; line-height: 1; }
.sheet-body { padding: 1rem; }
.fact-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.fact-card { min-height: 16rem; padding: 1.55rem; border: 1px solid var(--color-border); border-radius: 1.4rem; background: #fff; }
.fact-card-lead { background: #dceeed; border-color: transparent; }
.myth-card { background: #fff0c8; border-color: transparent; }
.fact-label { display: block; margin-bottom: 4rem; color: var(--color-secondary); font-size: .65rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.myth-card .fact-label { color: #80560a; }
.fact-card h3 { margin: 0 0 .65rem; font-size: 1.35rem; line-height: 1.1; letter-spacing: -.025em; }
.fact-card p { margin: 0; color: var(--color-muted); font-size: .92rem; }
.prevention-panel { display: grid; grid-template-columns: .45fr .7fr 1.2fr; gap: 1.5rem; margin-top: 1rem; padding: 2rem; border-radius: 1.4rem; background: var(--color-primary); color: #fff; }
.prevention-panel > span { color: #d5ecb4; font-size: .68rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.prevention-panel h3 { margin: 0; font-size: 1.6rem; line-height: 1.08; }
.prevention-panel ul { margin: 0; padding-left: 1.25rem; color: rgba(255,255,255,.76); font-size: .9rem; }
.prevention-panel li + li { margin-top: .45rem; }
.sheet-source { margin: 1rem 0 0; padding: .75rem .5rem .25rem; color: var(--color-muted); font-size: .78rem; }
.sheet-source a { color: var(--color-primary); font-weight: 800; }
.reader-nav { display: flex; justify-content: space-between; gap: 1rem; padding: 1rem 1.5rem 1.5rem; }
.reader-nav a { display: inline-flex; align-items: center; min-height: 2.75rem; color: var(--color-primary); font-size: .84rem; font-weight: 850; text-underline-offset: .25rem; }

.sheet-alcohol .sheet-header { background: linear-gradient(135deg, #5a350a, #aa6c17); }
.sheet-tabaco .sheet-header { background: linear-gradient(135deg, #273531, #56655f); }
.sheet-vapeadores .sheet-header { background: linear-gradient(135deg, #064b54, #11828b); }
.sheet-cannabis .sheet-header { background: linear-gradient(135deg, #22491f, #4e7a32); }
.sheet-inhalables .sheet-header { background: linear-gradient(135deg, #5d2518, #a34525); }
.sheet-cocaina .sheet-header { background: linear-gradient(135deg, #152e4c, #365f86); }
.sheet-metanfetaminas .sheet-header { background: linear-gradient(135deg, #352348, #674684); }
.sheet-medicamentos .sheet-header { background: linear-gradient(135deg, #083b31, #13705d); }
.sheet-nps .sheet-header { background: linear-gradient(135deg, #4c1725, #8b3046); }

.substances-help { padding: 6rem 0; background: #0b363a; color: #fff; }
.substances-help-inner { display: grid; grid-template-columns: 1fr auto; gap: 3rem; align-items: center; }
.substances-help-inner > div:first-child { max-width: 48rem; }
.substances-help h2 { margin: 0 0 1rem; font-size: clamp(2.4rem, 5vw, 4.6rem); line-height: .95; letter-spacing: -.05em; }
.substances-help p { margin: 0; color: rgba(255,255,255,.7); }
.substances-sources { padding-block: 1.3rem; color: rgba(255,255,255,.58); font-size: .78rem; }

@media (max-width: 64rem) {
  .substances-hero { min-height: 40rem; }
  .overview-heading, .library-heading { grid-template-columns: 1fr; }
  .overview-grid { grid-template-columns: 1fr; }
  .overview-card-classification { grid-column: auto; grid-template-columns: 1fr; }
  .classification-list { grid-template-columns: 1fr; }
  .book-shelf { justify-content: flex-start; }
  .sheet-header { grid-template-columns: 6rem 1fr; }
  .sheet-header .reader-close { grid-column: 2; width: fit-content; }
  .prevention-panel { grid-template-columns: 1fr; }
  .substances-help-inner { grid-template-columns: 1fr; }
}

@media (max-width: 43rem) {
  .substances-hero { min-height: 37rem; padding-top: calc(var(--header-height) + 3.5rem); }
  .substances-hero h1 { font-size: clamp(3.8rem, 18vw, 5.5rem); line-height: .82; }
  .substances-hero h1 span { margin: .4rem 0 0; font-size: .54em; }
  .substances-lead, .substances-hero .button { margin-left: 0; }
  .substances-overview, .substance-library { padding-top: 4.5rem; }
  .overview-heading h2, .library-heading h2 { font-size: clamp(2.8rem, 14vw, 4.1rem); }
  .overview-card { min-height: auto; padding: 1.4rem; }
  .overview-number { margin-bottom: 2.5rem; }
  .overview-card-classification { display: block; }
  .overview-card-classification .classification-list { margin-top: 2rem; }
  .teen-warning { align-items: start; }
  .book-stage { margin-top: 3rem; padding-top: 3.5rem; scroll-snap-type: x proximity; }
  .book-shelf { min-width: 0; padding-inline: .8rem 2rem; }
  .book { scroll-snap-align: center; }
  .substance-reader.has-active { padding-top: .5rem; }
  .substance-sheet { border-radius: 1.4rem; }
  .sheet-header { grid-template-columns: 1fr; min-height: 0; padding: 1.35rem; }
  .sheet-number { font-size: 4.5rem; }
  .sheet-category { margin-bottom: 1.8rem; }
  .sheet-header h2 { font-size: clamp(3rem, 15vw, 4.4rem); overflow-wrap: anywhere; }
  .sheet-header .reader-close { grid-column: auto; }
  .fact-grid { grid-template-columns: 1fr; }
  .fact-card { min-height: auto; }
  .fact-label { margin-bottom: 2.5rem; }
  .prevention-panel { padding: 1.4rem; }
  .reader-nav { align-items: stretch; }
  .reader-nav a { max-width: 48%; }
  .reader-nav a:last-child { text-align: right; justify-content: flex-end; }
  .substances-help { padding: 4.5rem 0; }
}

@media (prefers-reduced-motion: reduce) {
  .book-cover { animation: none; }
  .book:hover, .book:focus-visible, .book.is-active { transform: translateY(-.65rem); }
}

/* ================================================================
   Página de datos: panorama, gráficas e interpretación
   ================================================================ */

.data-page { background: #f1f2ef; color: #122b35; }
.data-header { position: absolute; color: #122b35; }
.data-header .header-inner { border-bottom-color: rgba(18,43,53,.14); }
.data-header .menu-toggle { border-color: rgba(18,43,53,.3); color: #122b35; }
.data-header .main-nav .nav-help { border-color: rgba(18,43,53,.35); }
.data-header .main-nav .nav-help:hover { background: #122b35; color: #fff; }

.data-hero { position: relative; min-height: 43rem; display: grid; place-items: center; padding: calc(var(--header-height) + 4rem) 0 5rem; background: #fbfbfa; overflow: hidden; }
.data-hero::after { content: ""; position: absolute; width: min(74rem, 92vw); height: 1px; left: 50%; top: 52%; background: linear-gradient(90deg, transparent, rgba(18,43,53,.24), transparent); transform: translate(-50%, -50%) rotate(-12deg); }
.data-glow { position: absolute; border-radius: 50%; filter: blur(35px); opacity: .82; transform: rotate(-18deg); }
.data-glow-orange { width: 34rem; height: 6.5rem; top: 36%; left: 16%; background: linear-gradient(90deg, #ff6d21, #f7a323); }
.data-glow-purple { width: 28rem; height: 7.5rem; right: 15%; bottom: 29%; background: linear-gradient(90deg, #f44a39, #8f46d7 60%, #70a4ff); }
.data-hero-inner { position: relative; z-index: 2; text-align: center; }
.data-kicker { margin: 0 0 2rem; font-size: .68rem; font-weight: 850; letter-spacing: .17em; text-transform: uppercase; }
.data-hero h1 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(4.4rem, 10vw, 9rem); font-weight: 400; line-height: .78; letter-spacing: -.07em; }
.data-hero h1 span { display: block; font-family: Inter, ui-sans-serif, system-ui, sans-serif; font-size: .55em; font-weight: 760; letter-spacing: -.055em; }
.data-hero-inner > p:not(.data-kicker) { max-width: 31rem; margin: 2rem auto 0; font-weight: 650; }
.data-scroll-link { display: inline-flex; align-items: center; gap: .65rem; margin-top: 2rem; padding: .65rem 1rem; border: 1px solid rgba(18,43,53,.35); border-radius: 999px; color: #122b35; text-decoration: none; font-size: .8rem; font-weight: 800; background: rgba(255,255,255,.68); backdrop-filter: blur(10px); }
.data-scroll-link:hover { background: #122b35; color: #fff; }

.data-panorama { padding: 7rem 0; background: #f1f2ef; }
.data-section-heading { display: grid; grid-template-columns: 1.25fr .75fr; gap: 3rem; align-items: end; margin-bottom: 3rem; }
.data-section-heading h2 { max-width: 51rem; margin: 0; font-size: clamp(2.8rem, 6vw, 5rem); line-height: .94; letter-spacing: -.055em; }
.data-section-heading > p { max-width: 30rem; margin: 0; color: #5d6b70; }
.data-kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-block: 1px solid #cfd5d2; }
.data-kpi { min-height: 12rem; padding: 1.35rem; border-right: 1px solid #cfd5d2; }
.data-kpi:last-child { border-right: 0; }
.data-kpi > span { display: block; color: #76827e; font-size: .66rem; font-weight: 850; letter-spacing: .1em; }
.data-kpi strong { display: block; margin-top: 1.7rem; color: #123f4d; font-size: clamp(2.7rem, 5vw, 4.2rem); line-height: .9; letter-spacing: -.06em; }
.data-kpi p { min-height: 3rem; margin: 1rem 0 .3rem; font-weight: 780; line-height: 1.2; }
.data-kpi small { color: #687579; font-size: .72rem; }

.data-mosaic { display: grid; grid-template-columns: 1fr 1.15fr 1.15fr; grid-template-rows: auto auto; gap: 1rem; margin-top: 4rem; }
.mosaic-card { min-height: 19rem; display: flex; flex-direction: column; padding: 1.6rem; border: 1px solid #d5d9d7; border-radius: 1.5rem; background: #fbfbfa; }
.mosaic-card-feature { grid-row: span 2; min-height: 39rem; background: linear-gradient(155deg, #eef1ee, #fff); }
.mosaic-card-mint { background: #dceee9; border-color: transparent; }
.mosaic-card-dark { background: #123f4d; color: #fff; border-color: transparent; }
.mosaic-label { color: #71807c; font-size: .62rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.mosaic-card-dark .mosaic-label { color: #b9d6cf; }
.mosaic-card h3 { margin: auto 0 .8rem; font-size: clamp(1.45rem, 2.5vw, 2.15rem); line-height: 1.05; letter-spacing: -.035em; }
.mosaic-card > p:last-child { margin: 0; color: #687579; font-size: .85rem; }
.mosaic-card-dark > p:last-child { color: rgba(255,255,255,.68); }
.mosaic-big { margin: auto 0 1rem; font-size: clamp(4rem, 7vw, 6.5rem); font-weight: 820; line-height: .77; letter-spacing: -.075em; }
.mini-stat { margin: auto 0 1.2rem; }
.mini-stat strong { display: block; font-size: 4rem; line-height: 1; letter-spacing: -.06em; }
.mini-stat span { color: #6c777b; font-size: .75rem; font-weight: 750; }
.split-stat { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: auto 0 1.2rem; }
.split-stat span { color: #61706d; font-size: .72rem; font-weight: 700; }
.mosaic-card-dark .split-stat span { color: rgba(255,255,255,.65); }
.split-stat strong { display: block; color: #123f4d; font-size: 2.6rem; line-height: 1; letter-spacing: -.055em; }
.mosaic-card-dark .split-stat strong { color: #fff; }
.mosaic-card a { margin-top: 1.2rem; color: #123f4d; font-size: .8rem; font-weight: 850; text-underline-offset: .25rem; }
.data-citation { margin: 1.5rem 0 0; padding-left: 1rem; border-left: 3px solid #ef7c29; color: #617075; font-size: .8rem; }
.data-citation a { color: #0c5365; font-weight: 800; }

.data-charts-section { padding: 7rem 0; background: #e3f3ee; }
.data-chart-card { margin: 0 0 1.25rem; padding: 1.1rem; border: 1px solid #cadbd5; border-radius: 1.8rem; background: #fbfcfa; box-shadow: 0 1.2rem 3rem rgba(20,69,65,.08); overflow: hidden; }
.chart-heading { display: grid; grid-template-columns: 4rem 1fr auto; gap: 1.1rem; align-items: start; padding: 1rem .8rem 1.6rem; border-bottom: 1px solid #d8e0dd; }
.chart-index { display: grid; width: 3.1rem; height: 3.1rem; place-items: center; border-radius: 50%; background: #123f4d; color: #fff; font-size: .72rem; font-weight: 900; }
.chart-heading p { margin: 0 0 .3rem; color: #658078; font-size: .66rem; font-weight: 900; letter-spacing: .11em; text-transform: uppercase; }
.chart-heading h3 { margin: 0; font-size: clamp(1.45rem, 3vw, 2.35rem); line-height: 1.05; letter-spacing: -.035em; }
.chart-unit { padding: .45rem .7rem; border: 1px solid #ced9d5; border-radius: 999px; color: #61726c; font-size: .68rem; font-weight: 800; }
.chart-legend { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .8rem; color: #5e706a; font-size: .7rem; font-weight: 750; }
.chart-legend span { display: inline-flex; align-items: center; gap: .35rem; }
.chart-legend i { width: .7rem; height: .7rem; border-radius: 50%; }
.legend-men { background: #175f72; }.legend-women { background: #ef7c5a; }.legend-2016 { background: #a8b4af; }.legend-2025 { background: #175f72; }.legend-drugs { background: #8b55b5; }.legend-alcohol { background: #ef883a; }

.horizontal-bars, .period-bars { padding: 2.5rem 1rem 1.6rem; }
.bar-row { display: grid; grid-template-columns: 13rem 1fr 4rem; gap: 1rem; align-items: center; margin-bottom: 1rem; }
.bar-row > span:first-child { color: #334d55; font-size: .78rem; font-weight: 750; }
.bar-row strong { font-size: .8rem; text-align: right; }
.bar-track { position: relative; height: 1.15rem; border-radius: 999px; background: #e8ece9; overflow: visible; }
.bar-track::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: repeating-linear-gradient(90deg, transparent 0 calc(25% - 1px), rgba(18,63,77,.09) calc(25% - 1px) 25%); }
.bar-fill, .group-bar, .change-track span, .age-bars > span { --chart-size: 0%; display: block; width: 0; transition: width .8s cubic-bezier(.2,.8,.2,1); }
.data-chart-card.is-visible .bar-fill, .data-chart-card.is-visible .group-bar, .data-chart-card.is-visible .change-track span, .data-chart-card.is-visible .age-bars > span { width: var(--chart-size); }
.bar-fill { position: relative; z-index: 1; min-width: .35rem; height: 100%; border-radius: inherit; }
.bar-teal { background: #146a72; }.bar-green { background: #5d963e; }.bar-blue { background: #507eb2; }.bar-orange { background: #ef7c29; }.bar-purple { background: #8b55b5; }.bar-gold { background: #d9ad35; }
.bar-axis { display: grid; grid-template-columns: repeat(5, 1fr); margin: .6rem 4rem 0 14rem; color: #80908b; font-size: .65rem; }
.bar-axis span:last-child { text-align: right; }

.period-chart-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; padding: 1rem 0 0; }
.period-chart-grid > section { padding: 1.2rem; border-radius: 1.2rem; background: #f0f3f0; }
.period-chart-grid h4 { margin: 0; font-size: 1.4rem; }
.period-chart-grid h4 + p { margin: .2rem 0 0; color: #75827e; font-size: .68rem; }
.period-chart-grid .period-bars { padding-inline: 0; }
.period-chart-grid .bar-row { grid-template-columns: 6.2rem 1fr 3.5rem; gap: .6rem; }
.bar-row-na .bar-track { background: repeating-linear-gradient(135deg, #e2e6e3 0 6px, #f4f5f3 6px 12px); }

.grouped-bars { padding: 2rem .8rem 1rem; }
.group-row { display: grid; grid-template-columns: 16rem 1fr 1fr; gap: .8rem; align-items: center; padding: .75rem 0; border-bottom: 1px solid #e1e6e3; }
.group-row > span { font-size: .75rem; font-weight: 760; }
.group-row > div { position: relative; height: 1.8rem; border-radius: .55rem; background: #edf0ee; overflow: hidden; }
.group-bar { height: 100%; min-width: .35rem; }
.bar-men { background: #175f72; }.bar-women { background: #ef7c5a; }
.group-row strong { position: absolute; z-index: 2; right: .45rem; top: 50%; transform: translateY(-50%); color: #102f38; font-size: .66rem; }

.change-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .8rem; padding: 1rem 0; }
.change-card { padding: 1.25rem; border-radius: 1.2rem; background: #f0f3f0; }
.change-card h4 { min-height: 2.5rem; margin: 0; font-size: 1rem; line-height: 1.15; }
.change-values { display: flex; justify-content: space-between; margin: 1.5rem 0 .45rem; font-size: .72rem; font-weight: 850; }
.change-track { display: grid; gap: .28rem; }
.change-track span { height: .5rem; border-radius: 999px; }
.change-2016 { background: #a8b4af; }.change-2025 { background: #175f72; }
.change-card > strong { display: block; margin-top: 1rem; font-size: .76rem; }
.change-down { color: #315c54; }.change-up { color: #aa4924; }

.age-chart { padding: 2rem .8rem 1rem; }
.age-row { display: grid; grid-template-columns: 5rem 1fr; gap: 1rem; align-items: center; margin-bottom: 1.2rem; }
.age-row > span { font-size: .78rem; font-weight: 850; }
.age-bars { display: grid; gap: .35rem; }
.age-bars > span { position: relative; min-width: 5.8rem; height: 1.35rem; border-radius: 999px; }
.age-drugs { background: #8b55b5; }.age-alcohol { background: #ef883a; }
.age-bars strong { position: absolute; right: .55rem; top: 50%; transform: translateY(-50%); color: #fff; font-size: .65rem; }

.chart-meta { margin-top: 1rem; padding: 1.2rem; border-radius: 1.1rem; background: #122f38; color: #fff; }
.chart-meta dl { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin: 0; }
.chart-meta dl div { border-right: 1px solid rgba(255,255,255,.15); }
.chart-meta dl div:last-child { border-right: 0; }
.chart-meta dt { color: rgba(255,255,255,.52); font-size: .58rem; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.chart-meta dd { margin: .25rem 0 0; font-size: .78rem; font-weight: 760; }
.chart-meta p { margin: 1.2rem 0 0; padding-top: 1rem; border-top: 1px solid rgba(255,255,255,.13); color: rgba(255,255,255,.67); font-size: .72rem; }
.chart-data { margin-top: .8rem; border: 1px solid #d6ddda; border-radius: 1rem; background: #fff; }
.chart-data summary { padding: .8rem 1rem; cursor: pointer; color: #123f4d; font-size: .78rem; font-weight: 850; }
.table-scroll { overflow-x: auto; }
.chart-data table { width: 100%; border-collapse: collapse; font-size: .75rem; }
.chart-data caption { padding: .75rem 1rem; text-align: left; color: #5e716c; font-weight: 750; }
.chart-data th, .chart-data td { padding: .7rem 1rem; border-top: 1px solid #e1e5e3; text-align: left; }
.chart-data thead th { background: #edf2ef; color: #27464d; }
.chart-data tbody th { font-weight: 760; }

.data-interpretation { padding: 7rem 0; background: #f7f6f2; }
.interpretation-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.interpretation-card { min-height: 19rem; display: flex; flex-direction: column; padding: 1.6rem; border: 1px solid #d9dcd9; border-radius: 1.4rem; background: #fff; }
.interpretation-feature { background: #123f4d; color: #fff; border-color: transparent; }
.interpretation-warning { background: #fff0c8; border-color: transparent; }
.interpretation-card > span { color: #6e7c78; font-size: .66rem; font-weight: 900; letter-spacing: .1em; }
.interpretation-feature > span { color: #bcd8d0; }
.interpretation-card h3 { margin: auto 0 .9rem; font-size: 1.6rem; line-height: 1.05; letter-spacing: -.035em; }
.interpretation-card p { margin: 0; color: #627075; font-size: .88rem; }
.interpretation-feature p { color: rgba(255,255,255,.68); }
.period-definitions { margin: auto 0 0; }
.period-definitions div { display: grid; grid-template-columns: 6.5rem 1fr; gap: .7rem; padding: .5rem 0; border-top: 1px solid #e0e4e1; }
.period-definitions dt { font-weight: 830; }
.period-definitions dd { margin: 0; color: #677579; font-size: .78rem; }

.data-sources { padding: 7rem 0; background: #0b2932; color: #fff; }
.data-section-heading-light > p { color: rgba(255,255,255,.58); }
.primary-source-card { display: grid; grid-template-columns: 1fr auto; gap: 2rem; align-items: end; padding: 2rem; border-radius: 1.5rem; background: linear-gradient(135deg, #d8efe8, #f9ebc5); color: #12313a; }
.primary-source-card span { color: #4f7469; font-size: .65rem; font-weight: 900; letter-spacing: .11em; text-transform: uppercase; }
.primary-source-card h3 { margin: 1.5rem 0 .5rem; font-size: clamp(2.5rem, 5vw, 4.5rem); line-height: .9; letter-spacing: -.055em; }
.primary-source-card p { margin: 0; color: #536c69; }
.primary-source-card a { display: inline-flex; align-items: center; gap: .5rem; min-height: 3rem; padding: .65rem .95rem; border: 1px solid #315d58; border-radius: 999px; text-decoration: none; font-size: .78rem; font-weight: 850; }
.primary-source-card a:hover { background: #123f4d; color: #fff; }
.apa-citation { margin: 1rem 0 2.5rem; color: rgba(255,255,255,.57); font-size: .78rem; }
.source-directory { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; }
.source-directory article { min-height: 17rem; display: flex; flex-direction: column; padding: 1.4rem; border: 1px solid rgba(255,255,255,.13); border-radius: 1.2rem; background: rgba(255,255,255,.035); }
.source-directory article > span { color: #a8c67b; font-size: .65rem; font-weight: 900; }
.source-directory h3 { margin: auto 0 .7rem; font-size: 1.35rem; }
.source-directory p { margin: 0 0 1rem; color: rgba(255,255,255,.58); font-size: .8rem; }
.source-directory a { width: fit-content; color: #d6e7e0; font-size: .75rem; font-weight: 830; text-underline-offset: .25rem; }
.data-footer { background: #061e25; }

@media (max-width: 64rem) {
  .data-section-heading { grid-template-columns: 1fr; gap: 1rem; }
  .data-kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .data-kpi:nth-child(2) { border-right: 0; }
  .data-kpi:nth-child(-n+2) { border-bottom: 1px solid #cfd5d2; }
  .data-mosaic { grid-template-columns: 1fr 1fr; }
  .mosaic-card-feature { grid-row: span 2; }
  .mosaic-card:last-child { grid-column: 1 / -1; }
  .change-grid, .interpretation-grid, .source-directory { grid-template-columns: repeat(2, 1fr); }
  .bar-row { grid-template-columns: 10rem 1fr 3.6rem; }
  .bar-axis { margin-left: 11rem; }
  .group-row { grid-template-columns: 12rem 1fr 1fr; }
}

@media (max-width: 43rem) {
  .data-hero { min-height: 37rem; }
  .data-hero h1 { font-size: clamp(3.6rem, 18vw, 5.4rem); line-height: .83; }
  .data-glow-orange { width: 22rem; left: -5rem; }
  .data-glow-purple { width: 20rem; right: -7rem; }
  .data-panorama, .data-charts-section, .data-interpretation, .data-sources { padding: 4.5rem 0; }
  .data-section-heading h2 { font-size: clamp(2.7rem, 13vw, 4rem); }
  .data-kpi-grid { grid-template-columns: 1fr 1fr; }
  .data-kpi { min-height: 11rem; padding: 1rem; }
  .data-kpi strong { font-size: 2.6rem; }
  .data-kpi p { font-size: .82rem; }
  .data-mosaic { grid-template-columns: 1fr; }
  .mosaic-card, .mosaic-card-feature { grid-column: auto; grid-row: auto; min-height: 18rem; }
  .mosaic-card-feature { min-height: 27rem; }
  .chart-heading { grid-template-columns: 3rem 1fr; }
  .chart-index { width: 2.6rem; height: 2.6rem; }
  .chart-unit, .chart-heading .chart-legend { grid-column: 2; justify-content: flex-start; width: fit-content; }
  .horizontal-bars { padding-inline: .2rem; }
  .bar-row { grid-template-columns: 1fr 3.1rem; gap: .35rem .6rem; margin-bottom: 1.2rem; }
  .bar-row > span:first-child { grid-column: 1 / -1; }
  .bar-track { grid-column: 1; }
  .bar-axis { display: none; }
  .period-chart-grid { grid-template-columns: 1fr; }
  .period-chart-grid .bar-row { grid-template-columns: 1fr 3rem; }
  .period-chart-grid .bar-row > span:first-child { grid-column: 1 / -1; }
  .grouped-bars { padding-inline: .2rem; }
  .group-row { grid-template-columns: 1fr 1fr; gap: .4rem; }
  .group-row > span { grid-column: 1 / -1; margin-top: .5rem; }
  .change-grid, .interpretation-grid, .source-directory { grid-template-columns: 1fr; }
  .change-card h4 { min-height: 0; }
  .age-row { grid-template-columns: 3.5rem 1fr; gap: .5rem; }
  .chart-meta dl { grid-template-columns: 1fr 1fr; }
  .chart-meta dl div:nth-child(2) { border-right: 0; }
  .chart-meta dl div:nth-child(-n+2) { padding-bottom: .7rem; }
  .chart-data th, .chart-data td { min-width: 8rem; padding: .65rem .75rem; }
  .interpretation-card { min-height: 16rem; }
  .primary-source-card { grid-template-columns: 1fr; align-items: start; }
}

@media (prefers-reduced-motion: reduce) {
  .bar-fill, .group-bar, .change-track span, .age-bars > span { transition: none; }
}

/* ================================================================
   Página de privacidad: recopilación, protección y uso de datos
   ================================================================ */

.privacy-page { background: #f5f3ec; color: #0b2830; }
.privacy-header { color: #0b2830; }
.privacy-header .header-inner { border-bottom-color: rgba(11,40,48,.2); }
.privacy-header .menu-toggle { border-color: #0b2830; color: #0b2830; }
.privacy-header .main-nav .nav-help { border-color: rgba(11,40,48,.55); }
.privacy-header .main-nav .nav-help:hover { background: #0b2830; color: #fff; }

.privacy-hero { min-height: 43rem; padding: calc(var(--header-height) + 6rem) 0 5rem; background: linear-gradient(135deg, #e0eee6 0%, #f7f4e9 58%, #f7e7bc 100%); }
.privacy-hero-inner { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(19rem, .85fr); gap: clamp(2rem, 7vw, 6rem); align-items: end; }
.privacy-kicker, .privacy-label { margin: 0 0 .8rem; color: #26735b; font-size: .74rem; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
.privacy-hero h1 { grid-column: 1 / -1; margin: 0; font-size: clamp(5rem, 11vw, 9rem); line-height: .8; letter-spacing: -.08em; }
.privacy-hero-inner > p:not(.privacy-kicker) { max-width: 45rem; margin: 2rem 0 0; font-size: clamp(1.15rem, 2vw, 1.45rem); line-height: 1.35; font-weight: 720; }
.privacy-jump-nav { margin-top: 2rem; border-top: 2px solid #0b2830; }
.privacy-jump-nav a { display: flex; justify-content: space-between; gap: 1rem; padding: .9rem 0; border-bottom: 1px solid rgba(11,40,48,.28); text-decoration: none; font-size: .84rem; font-weight: 850; }
.privacy-jump-nav a span { transition: transform .2s ease; }
.privacy-jump-nav a:hover span { transform: translateY(.2rem); }

.privacy-summary { background: #0b2830; color: #fff; }
.privacy-summary-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.privacy-summary-grid > div { min-height: 8.5rem; padding: 1.5rem; border-right: 1px solid rgba(255,255,255,.16); }
.privacy-summary-grid > div:last-child { border-right: 0; }
.privacy-summary span, .privacy-summary strong { display: block; }
.privacy-summary span { color: #9fcabe; font-size: .68rem; font-weight: 900; letter-spacing: .11em; text-transform: uppercase; }
.privacy-summary strong { max-width: 17rem; margin-top: 1.25rem; line-height: 1.2; }

.privacy-collection, .privacy-services, .privacy-data { padding: 7rem 0; }
.privacy-section-heading { display: flex; justify-content: space-between; align-items: end; gap: 3rem; margin-bottom: 3rem; }
.privacy-section-heading > div { max-width: 50rem; }
.privacy-section-heading h2, .privacy-services-intro h2, .privacy-minors h2 { margin: 0; font-size: clamp(2.7rem, 5.4vw, 5rem); line-height: .94; letter-spacing: -.06em; }
.privacy-section-heading > p { max-width: 31rem; margin: 0; color: #5b6c68; }

.privacy-method-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.privacy-method-card { min-height: 32rem; padding: clamp(1.8rem, 4vw, 3rem); border-radius: 1.6rem; background: #dcece4; }
.privacy-method-form { background: #f8e8bc; }
.privacy-method-card > span, .privacy-data-grid article > span { display: block; color: #26735b; font-size: .71rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.privacy-method-card h3 { max-width: 28rem; margin: 4rem 0 .8rem; font-size: clamp(1.8rem, 3.5vw, 3rem); line-height: 1; letter-spacing: -.045em; }
.privacy-method-card p { max-width: 33rem; margin: 0; color: #50635f; }
.privacy-method-card ul { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem 1.4rem; margin: 2rem 0 0; padding: 0; list-style: none; }
.privacy-method-card li { position: relative; padding-left: 1rem; font-size: .88rem; font-weight: 720; }
.privacy-method-card li::before { content: ""; position: absolute; top: .6rem; left: 0; width: .38rem; height: .38rem; border-radius: 50%; background: #26735b; }
.privacy-do-not-ask { display: grid; grid-template-columns: 12rem 1fr; gap: 2rem; margin-top: 1rem; padding: 1.5rem; border: 1px solid #c8d2cc; border-radius: 1rem; background: #fff; }
.privacy-do-not-ask strong { color: #b62f31; font-size: 1.05rem; }
.privacy-do-not-ask p { margin: 0; color: #52635f; }

.privacy-services { background: #fff; }
.privacy-services-layout { display: grid; grid-template-columns: .72fr 1.28fr; gap: clamp(3rem, 8vw, 7rem); align-items: start; }
.privacy-services-intro { position: sticky; top: 2rem; }
.privacy-services-intro > p:last-child { color: #5b6b68; }
.privacy-service-list { border-top: 2px solid #0b2830; }
.privacy-service-list article { display: grid; grid-template-columns: minmax(11rem, .48fr) 1fr; gap: 2rem; padding: 1.6rem 0; border-bottom: 1px solid #c7d1cc; }
.privacy-service-list strong { font-size: 1.1rem; }
.privacy-service-list p { margin: 0; color: #5a6c68; }
.privacy-third-party-note { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin-top: 3rem; padding: 1.5rem; border-radius: 1rem; background: #edf2ef; }
.privacy-third-party-note p { margin: 0; color: #536661; font-size: .87rem; }

.privacy-minors { padding: 7rem 0; background: #0c3c3b; color: #fff; }
.privacy-minors-grid { display: grid; grid-template-columns: .72fr 1.28fr; gap: clamp(3rem, 9vw, 8rem); }
.privacy-minors .privacy-label { color: #b7d98b; }
.privacy-minors-grid > div:first-child > p:not(.privacy-label) { color: rgba(255,255,255,.7); }
.privacy-minors-grid > div:first-child > a { display: inline-flex; gap: .55rem; margin-top: 1.3rem; color: #fff; font-weight: 850; text-underline-offset: .25rem; }
.privacy-minors-rules { padding-left: 3rem; border-left: 2px solid rgba(255,255,255,.32); }
.privacy-minors-rules h3 { margin: 0 0 1.2rem; font-size: 1.45rem; }
.privacy-minors-rules ul { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem 1.5rem; margin: 0 0 2rem; padding: 0; list-style: none; }
.privacy-minors-rules li { position: relative; padding-left: 1.1rem; color: rgba(255,255,255,.86); font-weight: 720; }
.privacy-minors-rules li::before { content: "×"; position: absolute; left: 0; color: #f6c24a; font-weight: 950; }
.privacy-minors-rules p { color: rgba(255,255,255,.66); font-size: .9rem; }
.privacy-minors-rules > strong { display: block; margin-top: 1.5rem; padding: 1rem 1.2rem; border-radius: .8rem; background: #f6c24a; color: #252f1a; }
.privacy-minors-rules > strong a { font-size: 1.15em; }

.privacy-data { background: #f5f3ec; }
.privacy-data-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.privacy-data-grid article { min-height: 21rem; padding: 2rem; border: 1px solid #c9d3cd; border-radius: 1.35rem; background: #fff; }
.privacy-data-grid article h3 { margin: 3rem 0 .8rem; font-size: 1.75rem; line-height: 1; letter-spacing: -.04em; }
.privacy-data-grid article p { margin: 0; color: #536561; font-size: .91rem; }
.privacy-data-grid article p + p { margin-top: .8rem; }
.privacy-purpose { margin-top: 1rem; padding: clamp(2rem, 5vw, 3.5rem); border-radius: 1.5rem; background: #dcece4; }
.privacy-purpose h3 { margin: 0 0 1.8rem; font-size: clamp(1.8rem, 3vw, 2.7rem); letter-spacing: -.04em; }
.privacy-purpose ul { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem 2rem; margin: 0; padding-left: 1.2rem; }
.privacy-purpose > p { margin: 2rem 0 0; padding-top: 1.4rem; border-top: 1px solid #aebfb6; font-weight: 800; }
.privacy-activation-note { display: grid; grid-template-columns: .7fr 1.3fr; gap: 3rem; margin-top: 1rem; padding: 2rem; border: 2px solid #d09416; border-radius: 1.3rem; background: #fff3cf; }
.privacy-activation-note h3 { margin: 0; font-size: 1.7rem; line-height: 1.05; letter-spacing: -.035em; }
.privacy-activation-note > p { margin: 0; color: #66583b; }
.privacy-update { margin: 2rem 0 0; color: #60706c; font-size: .82rem; text-align: right; }

@media (max-width: 64rem) {
  .privacy-header .main-nav { background: #fff; color: #0b2830; }
  .privacy-hero { min-height: auto; padding-top: calc(var(--header-height) + 4rem); }
  .privacy-hero-inner { grid-template-columns: 1fr; }
  .privacy-hero h1 { grid-column: auto; }
  .privacy-jump-nav { max-width: 42rem; }
  .privacy-services-layout, .privacy-minors-grid { grid-template-columns: 1fr; }
  .privacy-services-intro { position: static; }
  .privacy-minors-rules { padding: 2rem 0 0; border-left: 0; border-top: 2px solid rgba(255,255,255,.32); }
}

@media (max-width: 43rem) {
  .privacy-hero { padding-top: calc(var(--header-height) + 3rem); padding-bottom: 4rem; }
  .privacy-hero h1 { font-size: clamp(4.5rem, 22vw, 6rem); }
  .privacy-summary-grid, .privacy-method-grid, .privacy-data-grid { grid-template-columns: 1fr; }
  .privacy-summary-grid > div { min-height: 6.5rem; border-right: 0; border-bottom: 1px solid rgba(255,255,255,.16); }
  .privacy-summary-grid > div:last-child { border-bottom: 0; }
  .privacy-collection, .privacy-services, .privacy-minors, .privacy-data { padding-block: 4.5rem; }
  .privacy-section-heading { display: block; }
  .privacy-section-heading > p { margin-top: 1.2rem; }
  .privacy-method-card { min-height: auto; }
  .privacy-method-card h3 { margin-top: 2.5rem; }
  .privacy-method-card ul, .privacy-minors-rules ul, .privacy-purpose ul { grid-template-columns: 1fr; }
  .privacy-do-not-ask, .privacy-service-list article, .privacy-third-party-note, .privacy-activation-note { grid-template-columns: 1fr; gap: .7rem; }
  .privacy-data-grid article { min-height: auto; }
  .privacy-data-grid article h3 { margin-top: 2rem; }
}

/* ================================================================
   Aviso legal y contacto
   ================================================================ */

.policy-page, .contact-page { background: #f5f3ec; color: #0b2830; }
.policy-header, .contact-header { color: #0b2830; }
.policy-header .header-inner, .contact-header .header-inner { border-bottom-color: rgba(11,40,48,.2); }
.policy-header .menu-toggle, .contact-header .menu-toggle { border-color: #0b2830; color: #0b2830; }
.policy-header .main-nav .nav-help, .contact-header .main-nav .nav-help { border-color: rgba(11,40,48,.55); }
.policy-header .main-nav .nav-help:hover, .contact-header .main-nav .nav-help:hover { background: #0b2830; color: #fff; }

.policy-hero { padding: calc(var(--header-height) + 6rem) 0 5rem; background:
  radial-gradient(circle at 18% 28%, rgba(38,115,91,.18), transparent 24%),
  radial-gradient(circle at 82% 22%, rgba(226,191,84,.26), transparent 20%),
  linear-gradient(130deg, #edf3ee, #f7e8bd); }
.policy-hero-inner { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(19rem, .9fr); gap: 2rem 5rem; align-items: end; }
.policy-hero-inner > p, .policy-label, .contact-kicker, .contact-label { margin: 0; color: #26735b; font-size: .74rem; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
.policy-hero-title { display: grid; gap: 1.25rem; }
.policy-hero h1 { margin: 0; font-size: clamp(5rem, 11vw, 8.5rem); line-height: .82; letter-spacing: -.07em; }
.policy-hero h1 span { display: block; }
.policy-hero h1 span:first-child { color: #0b2830; font-weight: 900; }
.policy-hero h1 span:last-child { color: #26735b; font-weight: 600; }
.policy-hero-copy { max-width: 32rem; padding: 1.4rem 0 0 2rem; border-left: 3px solid rgba(38,115,91,.5); align-self: center; }
.policy-hero strong { display: block; margin: 0; font-size: 1.18rem; line-height: 1.45; }
.policy-document { max-width: 68rem; padding-block: 6rem; }
.policy-introduction { padding-bottom: 4rem; border-bottom: 3px solid #0b2830; }
.policy-introduction p { max-width: 56rem; margin: 0; font-size: clamp(1.5rem, 3vw, 2.3rem); line-height: 1.3; font-weight: 800; letter-spacing: -.03em; }
.policy-document > section, .policy-document > aside { padding: 3.5rem 0; border-bottom: 1px solid #bdcac4; }
.policy-document h2 { margin: .8rem 0 1.3rem; font-size: clamp(2rem, 4vw, 3.4rem); line-height: .98; letter-spacing: -.05em; }
.policy-document section > p:not(.policy-label), .policy-two-column > div:last-child p { color: #526561; }
.policy-two-column { display: grid; grid-template-columns: .75fr 1.25fr; gap: 4rem; }
.policy-two-column h2 { margin-bottom: 0; }
.policy-two-column > div:last-child p:first-child { margin-top: 0; }
.policy-boundary { display: grid; grid-template-columns: 12rem 1fr; gap: 2rem; }
.policy-boundary strong { font-size: clamp(1.35rem, 3vw, 2rem); line-height: 1.3; }
.policy-update { margin: 2rem 0 0; color: #64736f; font-size: .82rem; text-align: right; }

.contact-hero { padding: calc(var(--header-height) + 7rem) 0 6rem; background: #dcece4; }
.contact-hero-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(3rem, 9vw, 8rem); align-items: end; }
.contact-hero h1 { margin: .8rem 0 0; font-size: clamp(5rem, 11vw, 9rem); line-height: .8; letter-spacing: -.08em; }
.contact-hero-grid > p { max-width: 37rem; margin: 0; padding-left: 2rem; border-left: 3px solid #26735b; font-size: 1.12rem; font-weight: 720; }
.contact-reasons, .contact-details { padding: 7rem 0; }
.contact-reasons { background: #fff; }
.contact-reasons-grid { display: grid; grid-template-columns: .72fr 1.28fr; gap: clamp(3rem, 9vw, 8rem); }
.contact-reasons h2, .contact-details h2 { margin: .8rem 0 0; font-size: clamp(2.7rem, 5vw, 4.7rem); line-height: .94; letter-spacing: -.06em; }
.contact-reasons ul { margin: 0; padding: 0; border-top: 2px solid #0b2830; list-style: none; }
.contact-reasons li { padding: 1.3rem 0; border-bottom: 1px solid #c7d1cc; font-weight: 720; }
.contact-details { background: #f5f3ec; }
.contact-details-heading { margin-bottom: 3rem; }
.contact-detail-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 1rem; }
.contact-project-card, .contact-team-card { min-height: 28rem; padding: clamp(2rem, 5vw, 3rem); border-radius: 1.5rem; }
.contact-project-card { background: #0c3c3b; color: #fff; }
.contact-team-card { background: #f7e7bc; }
.contact-project-card dl { margin: 0; }
.contact-project-card dl div { padding: 1.4rem 0; border-bottom: 1px solid rgba(255,255,255,.2); }
.contact-project-card dt { color: #a9d1c4; font-size: .7rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.contact-project-card dd { margin: .45rem 0 0; font-size: clamp(1.1rem, 2vw, 1.45rem); font-weight: 800; }
.contact-project-card a { color: #fff; overflow-wrap: anywhere; text-underline-offset: .25rem; }
.contact-team-card h3 { margin: 0 0 2rem; font-size: 1.8rem; }
.contact-team-card ul { margin: 0; padding: 0; list-style: none; }
.contact-team-card li { padding: .75rem 0; border-bottom: 1px solid rgba(72,61,23,.2); font-weight: 750; }

@media (max-width: 64rem) {
  .policy-header .main-nav, .contact-header .main-nav { background: #fff; color: #0b2830; }
  .policy-hero { padding-top: calc(var(--header-height) + 4rem); }
  .policy-hero-inner, .contact-hero-grid, .contact-reasons-grid { grid-template-columns: 1fr; }
  .policy-hero-copy { max-width: 40rem; padding: 1.5rem 0 0; border-left: 0; border-top: 3px solid rgba(38,115,91,.5); }
  .policy-two-column { grid-template-columns: 1fr; gap: 1.5rem; }
  .contact-hero { padding-top: calc(var(--header-height) + 4rem); }
  .contact-hero-grid > p { padding: 1.5rem 0 0; border-left: 0; border-top: 3px solid #26735b; }
}

@media (max-width: 43rem) {
  .policy-hero, .contact-hero { padding-top: calc(var(--header-height) + 3rem); padding-bottom: 4rem; }
  .policy-hero h1, .contact-hero h1 { font-size: clamp(4.4rem, 22vw, 6rem); }
  .policy-document { padding-block: 4rem; }
  .policy-document > section, .policy-document > aside { padding-block: 2.7rem; }
  .policy-boundary, .contact-detail-grid { grid-template-columns: 1fr; }
  .contact-reasons, .contact-details { padding-block: 4.5rem; }
  .contact-project-card, .contact-team-card { min-height: auto; }
}

/* ================================================================
   Consentimiento de analítica
   ================================================================ */

.privacy-consent {
  position: fixed;
  z-index: 1200;
  right: max(1rem, env(safe-area-inset-right));
  bottom: max(1rem, env(safe-area-inset-bottom));
  left: max(1rem, env(safe-area-inset-left));
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1.5rem;
  align-items: center;
  max-width: 72rem;
  margin-inline: auto;
  padding: 1.35rem;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 1.25rem;
  background: #082f31;
  color: #fff;
  box-shadow: 0 1.2rem 3.5rem rgba(3,24,25,.32);
}

.privacy-consent[hidden] { display: none; }
.privacy-consent-copy strong { display: block; margin-bottom: .35rem; font-size: 1.05rem; }
.privacy-consent-copy p { max-width: 48rem; margin: 0; color: #d7e9e4; font-size: .94rem; line-height: 1.55; }
.privacy-consent-copy a { color: #fff; font-weight: 800; text-underline-offset: .2rem; }
.privacy-consent-actions { display: flex; gap: .7rem; align-items: center; }
.privacy-consent-actions .button { min-height: 2.9rem; padding: .72rem 1rem; white-space: nowrap; }
.privacy-consent-actions .button-secondary { border-color: rgba(255,255,255,.55); color: #fff; background: transparent; }
.privacy-consent-actions .button-secondary:hover { background: #fff; color: #082f31; }
.privacy-preferences-button { padding: 0; border: 0; background: transparent; color: inherit; font: inherit; text-decoration: underline; text-underline-offset: .2rem; cursor: pointer; }
.privacy-preferences-button:hover { text-decoration-thickness: 2px; }
.privacy-preferences-button:focus-visible { outline: 3px solid currentColor; outline-offset: .25rem; }

@media (max-width: 48rem) {
  .privacy-consent { grid-template-columns: 1fr; gap: 1rem; }
  .privacy-consent-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .privacy-consent-actions .button { width: 100%; }
}

@media (max-width: 28rem) {
  .privacy-consent-actions { grid-template-columns: 1fr; }
}
