/* =========================================================
   BORA Idea Sustentable — estilos
   Breakpoints: móvil ≤ 767px · tablet ≤ 1023px · menú compacto ≤ 1179px
   ========================================================= */

:root {
  /* Marca */
  --green: #5e7368;
  --green-dark: #4a5d53;
  --green-soft: rgba(94, 115, 104, 0.12);
  --orange: #ffc874;
  --orange-deep: #f2a93b;
  --navy: #111727;
  --navy-2: #1a2236;

  /* Superficies y texto (cambian en modo oscuro) */
  --bg: #ffffff;
  --surface: #ffffff;
  --beige: #f4f4ea;
  --ink: #1f2523;
  --text: #4f5d56;
  --line: rgba(31, 37, 35, 0.1);
  --header-bg: rgba(250, 250, 244, 0.82);

  --footer: #1d2329;
  --white: #ffffff;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 2px 8px rgba(17, 23, 39, 0.06);
  --shadow: 0 10px 30px -12px rgba(17, 23, 39, 0.18);
  --shadow-lg: 0 30px 60px -20px rgba(17, 23, 39, 0.35);
  --ease: cubic-bezier(.2, .7, .2, 1);

  --font: "Poppins", sans-serif;
  --container: 1240px;
  --gutter: clamp(20px, 4vw, 40px);
  --section-y: clamp(72px, 9vw, 128px);
  --topbar-h: 38px;
  --nav-h: 80px;
  --header-h: calc(var(--topbar-h) + var(--nav-h));
}

html.is-dark {
  --bg: #0f1418;
  --surface: #172026;
  --beige: #131b20;
  --ink: #eef2ef;
  --text: #b6c3bc;
  --line: rgba(255, 255, 255, 0.1);
  --header-bg: rgba(15, 20, 24, 0.82);
  --green-soft: rgba(141, 170, 155, 0.16);
  --shadow: 0 10px 30px -12px rgba(0, 0, 0, 0.6);
  --footer: #0b0f12;
  color-scheme: dark;
}

/* ---------- Base ---------- */
/* Lo que lleva el atributo hidden queda oculto aunque su clase defina display;
   sin esto, el menú de idioma cerrado seguía invisible pero clickeable */
[hidden] { display: none !important; }
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color .4s ease, color .4s ease;
}
body.menu-open { overflow: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
p, blockquote { margin: 0; }
h1, h2, h3, h4 { margin: 0; color: var(--ink); line-height: 1.2; letter-spacing: -0.01em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; cursor: pointer; color: inherit; }
strong { font-weight: 600; color: var(--ink); }
::selection { background: var(--orange); color: var(--navy); }
:focus-visible { outline: 2px solid var(--orange-deep); outline-offset: 3px; border-radius: 6px; }

.icon { width: 1em; height: 1em; flex-shrink: 0; }

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.skip-link {
  position: fixed;
  top: -60px;
  left: 16px;
  z-index: 300;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  background: var(--navy);
  color: var(--white);
  transition: top .2s;
}
.skip-link:focus { top: 16px; }

/* ---------- Tipografía ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  line-height: 1;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--green);
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--orange-deep), var(--orange));
}
.eyebrow--light, .section--navy .eyebrow { color: var(--orange); }

.heading {
  font-size: clamp(26px, 3.2vw, 40px);
  font-weight: 600;
  line-height: 1.2;
}
.heading--light { color: var(--white); }

.text { font-size: 16px; line-height: 1.75; color: var(--text); }
.text--light { color: rgba(255, 255, 255, 0.9); }
.text--muted { color: rgba(255, 255, 255, 0.72); }
.text--light strong, .text--muted strong { color: var(--white); }

.lead { font-size: clamp(17px, 1.4vw, 19px); line-height: 1.7; color: var(--text); max-width: 540px; }

.text-gradient {
  background: linear-gradient(100deg, var(--green) 10%, #7c9a6e 55%, var(--orange-deep) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.section-head { display: flex; flex-direction: column; gap: 18px; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head .text { max-width: 720px; }
.section-head--center { align-items: center; text-align: center; }
.section-head--center .heading { max-width: 860px; }
.section-head--split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: end;
  gap: clamp(24px, 5vw, 72px);
}
.section-head--split > div { display: flex; flex-direction: column; gap: 18px; }

/* Píldora (etiqueta con punto animado) */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  align-self: flex-start;
  padding: 8px 16px 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  font-size: 13.5px;
  line-height: 1.4;
  font-weight: 500;
  color: var(--green);
}
.pill--dark { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.14); color: var(--orange); box-shadow: none; align-self: center; }
.pill__dot {
  position: relative;
  width: 8px;
  height: 8px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--orange-deep);
}
.pill__dot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: inherit;
  animation: ping 2s var(--ease) infinite;
}
@keyframes ping { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(3); opacity: 0; } }

/* ---------- Botones ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 26px;
  border: 1.5px solid transparent;
  border-radius: 999px;
  font-size: 15px;
  line-height: 1.2;
  font-weight: 600;
  overflow: hidden;
  isolation: isolate;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background-color .3s, color .3s, border-color .3s;
}
.btn .icon { font-size: 18px; transition: transform .3s var(--ease); }
.btn:hover { transform: translateY(-2px); }
.btn:hover .icon { transform: translateX(3px); }
.btn:hover .icon:first-child:not(:last-child) { transform: translateY(2px); }
.btn:active { transform: translateY(0); }

/* Brillo que cruza el botón al pasar el mouse */
.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, 0.35) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform .7s var(--ease);
}
.btn:hover::after { transform: translateX(120%); }

.btn--primary { background: var(--green); color: var(--white); box-shadow: 0 10px 24px -10px rgba(94, 115, 104, 0.8); }
.btn--primary:hover { background: var(--green-dark); box-shadow: 0 16px 30px -12px rgba(94, 115, 104, 0.9); }
.btn--accent { background: var(--orange); color: var(--navy); box-shadow: 0 10px 30px -10px rgba(255, 200, 116, 0.7); }
.btn--accent:hover { background: #ffd28e; }
.btn--ghost { border-color: var(--green); color: var(--green); background: transparent; }
.btn--ghost:hover { background: var(--green); color: var(--white); }
.btn--sm { padding: 11px 20px; font-size: 14px; }
.btn--block { width: 100%; }

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }
.btn-row--center { justify-content: center; }

/* ---------- Redes sociales ---------- */
.social { display: flex; gap: 10px; }
.social__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--green);
  font-size: 18px;
  transition: transform .3s var(--ease), background-color .3s, color .3s, border-color .3s;
}
.social__link:hover { transform: translateY(-3px); background: var(--green); border-color: var(--green); color: var(--white); }

/* ---------- Listas con check ---------- */
.ticks { display: flex; flex-direction: column; gap: 12px; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; line-height: 1.6; }
.ticks .icon {
  width: 22px;
  height: 22px;
  margin-top: 1px;
  padding: 4px;
  border-radius: 50%;
  background: var(--green-soft);
  color: var(--green);
}
.ticks--light li { color: rgba(255, 255, 255, 0.82); }
.ticks--light strong { color: var(--white); }
.ticks--light .icon { background: rgba(255, 200, 116, 0.16); color: var(--orange); }

/* =========================================================
   CABECERA
   ========================================================= */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 200;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--green), var(--orange));
  transform: scaleX(0);
  transform-origin: left;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  transition: transform .4s var(--ease);
}

.topbar {
  height: var(--topbar-h);
  background: var(--green);
  color: rgba(255, 255, 255, 0.92);
  overflow: hidden;
  transition: height .4s var(--ease), opacity .3s;
}
.topbar__inner { display: flex; justify-content: space-between; align-items: center; height: 100%; }
.topbar__group { display: flex; align-items: center; gap: 22px; }
.topbar__item { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 500; }
.topbar__item .icon { opacity: .8; }
.topbar__item--muted { opacity: .75; }
a.topbar__item:hover { color: var(--orange); }
/* Redes en la barra superior: botones circulares con el color de cada red al pasar el mouse */
.topbar__social {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  font-size: 14px;
  overflow: hidden;
  isolation: isolate;
  transition: transform .3s var(--ease), border-color .3s, box-shadow .3s;
}
.topbar__social::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0;
  transition: opacity .3s;
}
.topbar__social--linkedin::before { background: #0a66c2; }
.topbar__social--instagram::before { background: radial-gradient(circle at 30% 110%, #feda75 0%, #fa7e1e 25%, #d62976 50%, #962fbf 75%, #4f5bd5 100%); }
.topbar__social:hover { transform: translateY(-2px); border-color: transparent; box-shadow: 0 6px 14px -6px rgba(0, 0, 0, .45); }
.topbar__social:hover::before { opacity: 1; }
.topbar__group .topbar__social + .topbar__social { margin-left: -14px; }

.navbar {
  position: relative;
  border-bottom: 1px solid transparent;
  transition: border-color .4s, box-shadow .4s;
}
/* El desenfoque va en un pseudo-elemento: en el propio .navbar convertiría
   al panel del menú móvil (position: fixed) en hijo recortado de la barra */
.navbar::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--header-bg);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
  transition: background-color .4s;
}
.navbar__inner { display: flex; align-items: center; gap: 28px; height: var(--nav-h); transition: height .4s var(--ease); }
.navbar__logo { flex-shrink: 0; display: flex; }
.navbar__logo img { width: auto; height: 56px; transition: height .4s var(--ease); }
html.is-dark .navbar__logo img { filter: brightness(1.6) saturate(.8); }

/* Al bajar: se oculta la barra superior y la cabecera se compacta */
.site-header.is-scrolled .topbar { height: 0; opacity: 0; }
.site-header.is-scrolled .navbar { border-color: var(--line); box-shadow: 0 8px 30px -18px rgba(17, 23, 39, 0.4); }
.site-header.is-scrolled .navbar__inner { height: 66px; }
.site-header.is-scrolled .navbar__logo img { height: 46px; }

.main-nav { position: relative; margin-left: auto; }
.main-nav__list { position: relative; z-index: 1; display: flex; align-items: center; gap: 2px; }
.main-nav__list a {
  display: block;
  padding: 9px 14px;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink);
  white-space: nowrap;
  transition: color .3s;
}
.main-nav__list a:hover { color: var(--green); }
.main-nav__list a.is-active { color: var(--green); font-weight: 600; }
.main-nav__num { display: none; }
/* En escritorio, las secciones secundarias quedan solo en el menú del celular (el logo lleva al inicio) */
@media (min-width: 1180px) { .main-nav__secondary { display: none; } }

/* Píldora que se desliza hasta la sección activa */
.main-nav__indicator {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  border-radius: 999px;
  background: var(--green-soft);
  opacity: 0;
  pointer-events: none;
  transition: transform .45s var(--ease), width .45s var(--ease), opacity .3s;
}
.main-nav__extra { display: none; }

.navbar__cta { flex-shrink: 0; }

/* ---------- Selector de país e idioma ---------- */
.lang { position: relative; flex-shrink: 0; }
.lang__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
  transition: border-color .3s, color .3s;
}
.lang__btn > .icon:first-child { font-size: 17px; color: var(--green); }
.lang__btn:hover { border-color: var(--green); }
.lang__chevron { font-size: 14px; transition: transform .3s var(--ease); }
.lang.is-open .lang__chevron { transform: rotate(180deg); }

.lang__menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 230px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transform: translateY(-6px) scale(.98);
  transform-origin: top right;
  transition: opacity .25s var(--ease), transform .25s var(--ease);
}
.lang:not(.is-open) .lang__menu { pointer-events: none; }
.lang.is-open .lang__menu { opacity: 1; transform: none; }
.lang__option {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 10px 12px;
  border: 0;
  border-radius: var(--radius-sm);
  background: none;
  text-align: left;
  color: var(--ink);
  transition: background-color .2s;
}
.lang__option:hover { background: var(--green-soft); }
.lang__option[aria-current="true"] { background: var(--green-soft); }
.lang__option[aria-current="true"]::after {
  content: "";
  width: 8px;
  height: 8px;
  margin-left: auto;
  border-radius: 50%;
  background: var(--green);
}
.lang__flag { font-size: 22px; line-height: 1; }
.lang__name { display: flex; flex-direction: column; font-size: 14.5px; font-weight: 600; line-height: 1.3; }
.lang__name small { font-size: 12px; font-weight: 400; color: var(--text); }

/* Mientras cargan los textos de otra versión, el contenido espera oculto */
.i18n-pending main,
.i18n-pending .site-footer,
.i18n-pending .navbar__inner { opacity: 0; }
main, .site-footer, .navbar__inner { transition: opacity .3s ease; }

.nav-toggle {
  display: none;
  position: relative;
  width: 46px;
  height: 46px;
  margin-left: auto;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
}
.nav-toggle__bar {
  position: absolute;
  left: 13px;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform .35s var(--ease), opacity .2s, top .35s var(--ease);
}
.nav-toggle__bar:nth-child(1) { top: 16px; }
.nav-toggle__bar:nth-child(2) { top: 22px; }
.nav-toggle__bar:nth-child(3) { top: 28px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) { top: 22px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) { top: 22px; transform: rotate(-45deg); }

.nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(17, 23, 39, 0.45);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  opacity: 0;
  transition: opacity .35s;
}
.nav-overlay.is-visible { opacity: 1; }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: min(100vh, 940px);
  padding: calc(var(--header-h) + 48px) 0 96px;
  overflow: hidden;
  background: linear-gradient(180deg, #fbfbf6 0%, var(--bg) 100%);
}
html.is-dark .hero { background: var(--bg); }
.hero__bg { position: absolute; inset: 0; pointer-events: none; }
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: .55;
  animation: drift 18s ease-in-out infinite alternate;
}
.blob--green { width: 520px; height: 520px; top: -120px; right: -80px; background: rgba(94, 115, 104, 0.35); }
.blob--orange { width: 420px; height: 420px; bottom: -160px; left: -120px; background: rgba(255, 200, 116, 0.45); animation-delay: -6s; }
@keyframes drift {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-60px, 40px) scale(1.12); }
}
.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse at 70% 40%, #000 0%, transparent 65%);
  mask-image: radial-gradient(ellipse at 70% 40%, #000 0%, transparent 65%);
  opacity: .6;
}

.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
  align-items: center;
  gap: clamp(40px, 5vw, 72px);
}
.hero__text { display: flex; flex-direction: column; gap: 26px; }
.hero__title { font-size: clamp(36px, 4.6vw, 58px); font-weight: 700; line-height: 1.08; letter-spacing: -0.025em; }

.hero__stat {
  display: flex;
  align-items: center;
  gap: 18px;
  max-width: 560px;
  margin-top: 6px;
  padding: 16px 20px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--orange);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.hero__stat-num { flex-shrink: 0; font-size: 38px; line-height: 1; font-weight: 700; color: var(--green); letter-spacing: -0.03em; }
.hero__stat-text { flex: 1; min-width: 0; }

/* Contadores: cifras de ancho fijo y lugar reservado para el número final,
   así nada se mueve mientras cuentan */
[data-count] {
  display: inline-block;
  min-width: calc(var(--digits, 2) * 1ch);
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.hero__stat-text { font-size: 13.5px; line-height: 1.55; color: var(--text); }

.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 28px;
  width: 26px;
  height: 42px;
  margin-left: -13px;
  border: 2px solid var(--line);
  border-radius: 999px;
}
.hero__scroll span {
  position: absolute;
  top: 8px;
  left: 50%;
  width: 4px;
  height: 8px;
  margin-left: -2px;
  border-radius: 2px;
  background: var(--green);
  animation: scrollcue 1.8s var(--ease) infinite;
}
@keyframes scrollcue { 0% { transform: translateY(0); opacity: 1; } 80% { transform: translateY(14px); opacity: 0; } 100% { opacity: 0; } }

/* Marco tipo ventana para las capturas */
.frame {
  position: relative;
  border-radius: var(--radius-lg);
  background: #0e1422;
  padding: 0 8px 8px;
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255, 255, 255, 0.06) inset;
  transform-style: preserve-3d;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
  will-change: transform;
}
.frame img { border-radius: 14px; width: 100%; }
.frame__bar { display: flex; gap: 6px; padding: 12px 8px; }
.frame__bar span { width: 10px; height: 10px; border-radius: 50%; background: #ff6058; }
.frame__bar span:nth-child(2) { background: #ffbe2f; }
.frame__bar span:nth-child(3) { background: #29c941; }
.frame--float { animation: float 7s ease-in-out infinite; }
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -14px; } }
.frame::before {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: -1;
  border-radius: inherit;
  background: radial-gradient(60% 60% at 50% 100%, rgba(94, 115, 104, 0.55), transparent 70%);
  filter: blur(30px);
  transform: translateY(24px);
}

/* =========================================================
   SECCIONES
   ========================================================= */
/* overflow-x: clip evita que las animaciones laterales ensanchen la página sin romper position: sticky */
.section { position: relative; padding: var(--section-y) 0; overflow-x: clip; }
.section--beige { background: var(--beige); }
.section--green { background: var(--green); background-image: radial-gradient(80% 60% at 0% 0%, rgba(255, 255, 255, 0.08), transparent 60%); }
.section--navy { background: var(--navy); color: rgba(255, 255, 255, 0.75); overflow: hidden; }

.split {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: start;
  gap: clamp(32px, 5vw, 72px);
}
.split--center { grid-template-columns: 1fr 1.15fr; align-items: center; }
.split__body { display: flex; flex-direction: column; gap: 24px; }

/* ---------- Riesgo: datos ---------- */
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.stat {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.stat:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.stat__num { font-size: clamp(38px, 4vw, 52px); line-height: 1; font-weight: 700; letter-spacing: -0.03em; color: var(--green); }
.stat__label { margin-top: 10px; font-size: 14px; line-height: 1.5; }

.callout {
  position: relative;
  padding: 4px 0 4px 22px;
  border-left: 3px solid var(--orange);
  font-size: 17px;
  line-height: 1.6;
  font-style: italic;
  font-weight: 500;
  color: var(--ink);
}
.callout--light { color: var(--white); }

/* ---------- Solución: tarjetas ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 34px 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  font-size: 15px;
  overflow: hidden;
  transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .45s;
}
.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--green), var(--orange));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .5s var(--ease);
}
.card:hover { transform: translateY(-8px); box-shadow: var(--shadow); border-color: transparent; }
.card:hover::before { transform: scaleX(1); }
.card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: var(--green-soft);
  color: var(--green);
  font-size: 26px;
  transition: transform .45s var(--ease);
}
.card:hover .card__icon { transform: rotate(-6deg) scale(1.06); }
.card__title { font-size: 20px; font-weight: 600; }
.card__tag {
  align-self: flex-start;
  margin-top: -6px;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(255, 200, 116, 0.22);
  color: #8a5a10;
  font-size: 12.5px;
  font-weight: 600;
}
html.is-dark .card__tag { color: var(--orange); }
.card__strong { font-weight: 600; color: var(--green); }

.card--featured { background: var(--green); border-color: var(--green); color: rgba(255, 255, 255, 0.88); }
.card--featured .card__title, .card--featured .card__strong { color: var(--white); }
.card--featured .card__icon { background: rgba(255, 255, 255, 0.14); color: var(--orange); }
.card--featured:hover { box-shadow: 0 30px 50px -24px rgba(94, 115, 104, 0.9); }

.quote {
  max-width: 820px;
  margin: clamp(48px, 6vw, 80px) auto 0;
  text-align: center;
  font-size: clamp(20px, 2.2vw, 28px);
  line-height: 1.45;
  font-weight: 500;
  color: var(--ink);
}
.quote::before {
  content: "“";
  display: block;
  height: 48px;
  font-size: 96px;
  line-height: 1;
  color: var(--orange);
}
.quote span { color: var(--green); }

/* ---------- CTA oscuro ---------- */
.cta__glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(40% 70% at 15% 20%, rgba(94, 115, 104, 0.45), transparent 70%),
    radial-gradient(35% 60% at 85% 90%, rgba(255, 200, 116, 0.18), transparent 70%);
  animation: glow 12s ease-in-out infinite alternate;
}
@keyframes glow { to { transform: scale(1.15) translate(2%, -3%); } }
.cta__inner { position: relative; display: flex; flex-direction: column; align-items: center; gap: 22px; text-align: center; }
.cta__inner .heading { max-width: 760px; }
.cta__inner .text { max-width: 640px; }

/* ---------- Retorno ---------- */
.highlight { position: relative; display: inline-block; z-index: 0; white-space: nowrap; }
.highlight svg {
  position: absolute;
  left: -3%;
  bottom: -14px;
  width: 106%;
  height: 24px;
  z-index: -1;
  overflow: visible;
}
.highlight path {
  fill: none;
  stroke: var(--orange);
  stroke-width: 4px;
  vector-effect: non-scaling-stroke;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1500;
  stroke-dashoffset: 1500;
  transition: stroke-dashoffset 1.4s ease-in-out .5s;
}
.highlight.is-drawn path { stroke-dashoffset: 0; }

.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chips li {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  font-size: 15px;
  font-weight: 500;
  transition: background-color .3s, transform .3s var(--ease);
}
.chips li:hover { background: rgba(255, 255, 255, 0.16); transform: translateY(-2px); }
.chips .icon { width: 22px; height: 22px; padding: 4px; border-radius: 50%; background: var(--orange); color: var(--navy); }

/* ---------- Servicio: línea de pasos ---------- */
.steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  counter-reset: step;
}
.steps::before {
  content: "";
  position: absolute;
  top: 32px;
  left: 10%;
  right: 10%;
  height: 2px;
  background: linear-gradient(90deg, var(--green), var(--orange));
  opacity: .35;
}
.step {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
}
.step__num {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  margin-bottom: 16px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  font-size: 20px;
  font-weight: 700;
  box-shadow: 0 0 0 8px var(--bg);
  transition: transform .45s var(--ease), background-color .45s;
}
.step:hover .step__num { transform: scale(1.1); background: var(--green); }
.step__kicker { font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--orange-deep); }
.step__label { font-size: 16px; line-height: 1.45; font-weight: 600; color: var(--ink); }

/* ---------- Demo y brochure ---------- */
.demo { display: grid; grid-template-columns: 1.55fr 1fr; gap: 28px; align-items: stretch; }
.demo__video { display: flex; flex-direction: column; gap: 20px; }

.video-facade {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #0b0f1a;
  color: var(--white);
  box-shadow: var(--shadow-lg);
}
.video-facade__thumb {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .45;
  filter: saturate(.7);
  transition: transform .8s var(--ease), opacity .4s;
}
.video-facade::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11, 15, 26, 0.85) 0%, rgba(11, 15, 26, 0.2) 45%, rgba(11, 15, 26, 0.7) 100%);
}
.video-facade:hover .video-facade__thumb { transform: scale(1.05); opacity: .6; }
.video-facade__title {
  position: absolute;
  top: 22px;
  left: 24px;
  right: 24px;
  z-index: 1;
  font-size: 17px;
  line-height: 1.4;
  font-weight: 600;
  text-align: left;
}
.video-facade__play {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: var(--orange);
  color: var(--navy);
  font-size: 32px;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 0 0 rgba(255, 200, 116, 0.6);
  animation: pulse 2.2s infinite;
  transition: transform .35s var(--ease);
}
.video-facade__play .icon { margin-left: 4px; }
.video-facade:hover .video-facade__play { transform: translate(-50%, -50%) scale(1.1); }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255, 200, 116, 0.55); } 100% { box-shadow: 0 0 0 26px rgba(255, 200, 116, 0); } }
.video-facade iframe { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; border: 0; }

.demo__note { font-size: 13px; line-height: 1.6; color: rgba(255, 255, 255, 0.6); }
.demo__note strong { color: var(--orange); }

.brochure-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 30px;
  border-radius: var(--radius-lg);
  background: var(--beige);
  color: var(--text);
  overflow: hidden;
}
html.is-dark .brochure-card { background: var(--surface); }
.brochure-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--orange), var(--orange-deep));
}
.brochure-card__head { display: flex; align-items: center; justify-content: space-between; }
.brochure-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--green);
  color: var(--white);
  font-size: 26px;
}
.brochure-card__badge { padding: 6px 12px; border-radius: 999px; background: var(--green-soft); color: var(--green); font-size: 12.5px; font-weight: 600; }
.brochure-card__title { font-size: 26px; font-weight: 700; }
.brochure-card__text { font-size: 15px; line-height: 1.65; }
.brochure-card .ticks li { font-size: 14px; }
.brochure-card .btn { margin-top: auto; }
.brochure-card__meta { font-size: 12.5px; text-align: center; opacity: .8; }

/* ---------- Preguntas frecuentes ---------- */
.faq { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.faq__aside { position: sticky; top: calc(var(--nav-h) + 32px); display: flex; flex-direction: column; gap: 20px; }
.faq__aside .frame { margin-top: 16px; }

.accordion { display: flex; flex-direction: column; gap: 12px; }
.accordion__item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  transition: box-shadow .4s var(--ease), border-color .4s;
}
.accordion__item:hover { box-shadow: var(--shadow-sm); }
.accordion__item.is-open { border-color: rgba(94, 115, 104, 0.4); box-shadow: var(--shadow); }
.accordion__title {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  padding: 20px 22px;
  border: 0;
  background: none;
  font-size: 17px;
  line-height: 1.4;
  font-weight: 600;
  text-align: left;
  color: var(--ink);
}
.accordion__num { font-size: 13px; font-weight: 700; color: var(--orange-deep); }
.accordion__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  margin-left: auto;
  border-radius: 50%;
  background: var(--green-soft);
  color: var(--green);
  font-size: 18px;
  transition: transform .4s var(--ease), background-color .3s, color .3s;
}
.accordion__item.is-open .accordion__icon { transform: rotate(180deg); background: var(--green); color: var(--white); }

/* Altura animada con grid */
.accordion__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s var(--ease); }
.accordion__item.is-open .accordion__panel { grid-template-rows: 1fr; }
.accordion__content { overflow: hidden; }
.accordion__content p { padding: 0 22px 22px 54px; font-size: 15px; line-height: 1.75; }

/* =========================================================
   PIE DE PÁGINA
   ========================================================= */
.site-footer { background: var(--footer); color: rgba(255, 255, 255, 0.7); padding-top: clamp(56px, 7vw, 88px); }
.site-footer strong { color: var(--white); }

.footer__cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: clamp(28px, 4vw, 40px);
  border-radius: var(--radius-lg);
  background: linear-gradient(120deg, var(--green) 0%, #3f5249 100%);
  box-shadow: var(--shadow-lg);
}
.footer__cta-title { font-size: clamp(20px, 2.2vw, 26px); font-weight: 600; color: var(--white); line-height: 1.3; }
.footer__cta-text { margin-top: 6px; color: rgba(255, 255, 255, 0.8); }
.footer__cta .btn { flex-shrink: 0; }

.footer__cols {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: clamp(32px, 5vw, 64px);
  padding: clamp(48px, 6vw, 72px) 0;
}
.footer__col { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; font-size: 15px; line-height: 1.7; }
.footer__logo { width: auto; height: 72px; }
.footer__heading { font-size: 13px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--orange); }
.footer__heading--spaced { margin-top: 10px; }
.footer__italic { font-style: italic; color: rgba(255, 255, 255, 0.55); font-size: 14px; }
.footer__link { display: inline-flex; align-items: center; gap: 10px; transition: color .2s; }
a.footer__link:hover { color: var(--orange); }
.site-footer .social__link { border-color: rgba(255, 255, 255, 0.18); color: var(--white); }
.site-footer .social__link:hover { background: var(--orange); border-color: var(--orange); color: var(--navy); }

.footer__bottom { border-top: 1px solid rgba(255, 255, 255, 0.1); }
.footer__bottom-inner { display: flex; justify-content: space-between; gap: 12px; padding-top: 22px; padding-bottom: 22px; font-size: 13px; color: rgba(255, 255, 255, 0.5); }

/* =========================================================
   FLOTANTES
   ========================================================= */
.whatsapp {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25d366;
  color: var(--white);
  font-size: 30px;
  box-shadow: 0 10px 25px -6px rgba(7, 94, 84, 0.5);
  transition: transform .3s var(--ease);
}
.whatsapp::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #25d366;
  z-index: -1;
  animation: ping-soft 2.4s var(--ease) infinite;
}
/* Onda corta: una más grande se sale de la pantalla y ensancha la página en móvil */
@keyframes ping-soft { 0% { transform: scale(1); opacity: .6; } 100% { transform: scale(1.6); opacity: 0; } }
.whatsapp:hover { transform: scale(1.08) rotate(-6deg); }

.back-to-top,
.theme-toggle {
  position: fixed;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  color: var(--ink);
  font-size: 20px;
  box-shadow: var(--shadow);
  transition: transform .3s var(--ease), opacity .3s, background-color .3s, color .3s;
}
.back-to-top { right: 28px; bottom: 96px; opacity: 0; transform: translateY(12px); pointer-events: none; }
.back-to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.back-to-top:hover { background: var(--green); color: var(--white); }
.theme-toggle { left: 22px; bottom: 22px; }
.theme-toggle:hover { transform: rotate(20deg); }
.theme-toggle .icon--moon { display: none; }
html.is-dark .theme-toggle .icon--sun { display: none; }
html.is-dark .theme-toggle .icon--moon { display: block; }

/* =========================================================
   ANIMACIONES DE ENTRADA
   ========================================================= */
.js [data-anim] { opacity: 0; transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: var(--delay, 0ms); }
.js [data-anim="fade-up"] { transform: translateY(36px); }
.js [data-anim="fade-left"] { transform: translateX(48px); }
.js [data-anim="fade-right"] { transform: translateX(-48px); }
.js [data-anim="zoom-in"] { transform: scale(.92) translateY(24px); }
.js [data-anim].is-visible { opacity: 1; transform: none; }

/* Texto que aparece palabra por palabra */
.split-word {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.6em);
  filter: blur(4px);
  transition: opacity .6s var(--ease), transform .6s var(--ease), filter .6s var(--ease);
}
[data-split].is-visible .split-word { opacity: 1; transform: none; filter: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; }
  .js [data-anim], .split-word { opacity: 1 !important; transform: none !important; filter: none !important; transition: none !important; }
  .highlight path { stroke-dashoffset: 0; transition: none; }
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

/* Menú compacto: panel lateral */
@media (max-width: 1179px) {
  .nav-toggle { display: block; margin-left: 0; }
  .lang { margin-left: auto; }

  .main-nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 95;
    display: flex;
    flex-direction: column;
    gap: 28px;
    width: min(380px, 88vw);
    margin: 0;
    padding: 96px 28px 28px;
    background: var(--bg);
    box-shadow: -20px 0 60px -20px rgba(17, 23, 39, 0.4);
    overflow-y: auto;
    /* Se recorta en vez de desplazarse fuera de pantalla, para no ensanchar la página en móvil */
    clip-path: inset(0 0 0 100%);
    visibility: hidden;
    transition: clip-path .55s var(--ease), visibility 0s .55s;
  }
  .main-nav.is-open { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path .55s var(--ease); }
  .main-nav__indicator { display: none; }

  .main-nav__list { flex-direction: column; align-items: stretch; gap: 4px; }
  .main-nav__list a {
    display: flex;
    align-items: baseline;
    gap: 14px;
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    font-size: 20px;
    font-weight: 600;
    opacity: 0;
    transform: translateX(24px);
    transition: opacity .4s var(--ease), transform .4s var(--ease), background-color .3s, color .3s;
  }
  .main-nav.is-open .main-nav__list a { opacity: 1; transform: none; }
  .main-nav.is-open .main-nav__list li:nth-child(1) a { transition-delay: .08s; }
  .main-nav.is-open .main-nav__list li:nth-child(2) a { transition-delay: .12s; }
  .main-nav.is-open .main-nav__list li:nth-child(3) a { transition-delay: .16s; }
  .main-nav.is-open .main-nav__list li:nth-child(4) a { transition-delay: .2s; }
  .main-nav.is-open .main-nav__list li:nth-child(5) a { transition-delay: .24s; }
  .main-nav.is-open .main-nav__list li:nth-child(6) a { transition-delay: .28s; }
  .main-nav.is-open .main-nav__list li:nth-child(7) a { transition-delay: .32s; }
  .main-nav__list a.is-active { background: var(--green-soft); }
  .main-nav__num { display: inline; font-size: 12px; font-weight: 600; color: var(--orange-deep); }

  .main-nav__extra {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-top: auto;
    padding-top: 24px;
    border-top: 1px solid var(--line);
  }
  .main-nav__contact { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; color: var(--text); }

  /* El botón del menú queda por encima del panel */
  .nav-toggle { position: relative; z-index: 96; }
}

/* Tablet */
@media (max-width: 1023px) {
  .hero { min-height: 0; }
  .hero__inner, .split, .split--center, .demo, .faq { grid-template-columns: 1fr; }
  .hero__media { max-width: 720px; }
  .hero__scroll { display: none; }
  .section-head--split { grid-template-columns: 1fr; align-items: start; }
  .split--center .split__media { order: -1; }
  .faq__aside { position: static; }
  .faq__aside .frame { display: none; }
  .cards { grid-template-columns: 1fr 1fr; }
  .cards .card:last-child { grid-column: 1 / -1; }

  .steps { grid-template-columns: 1fr; gap: 0; max-width: 560px; margin: 0 auto; }
  .steps::before { top: 32px; bottom: 32px; left: 31px; right: auto; width: 2px; height: auto; background: linear-gradient(180deg, var(--green), var(--orange)); }
  .step { display: grid; grid-template-columns: 64px 1fr; grid-template-rows: auto auto; column-gap: 20px; align-items: center; text-align: left; padding: 10px 0; }
  .step__num { grid-row: 1 / 3; margin: 0; }
  .step__kicker { align-self: end; }
  .step__label { align-self: start; }

  .footer__cols { grid-template-columns: 1fr 1fr; }
  .footer__col--brand { grid-column: 1 / -1; }
}

/* Móvil */
@media (max-width: 767px) {
  :root { --topbar-h: 0px; --nav-h: 68px; }

  .topbar { display: none; }
  .navbar__logo img { height: 46px; }
  .site-header.is-scrolled .navbar__inner { height: 60px; }
  .site-header.is-scrolled .navbar__logo img { height: 40px; }
  .navbar__cta { display: none; }
  .navbar__inner { gap: 10px; }
  .lang__btn { height: 40px; padding: 0 10px; }

  .hero { padding: calc(var(--nav-h) + 36px) 0 64px; }
  .hero__text { gap: 22px; }
  .pill { font-size: 12.5px; }
  .btn-row .btn { flex: 1 1 100%; }
  .hero__stat { flex-direction: column; align-items: flex-start; gap: 8px; }
  .blob--green { width: 320px; height: 320px; }
  .blob--orange { width: 280px; height: 280px; }
  .hero__grid { opacity: .3; background-size: 40px 40px; }

  .stats { grid-template-columns: 1fr 1fr; gap: 12px; }
  .stat { padding: 18px; }
  .cards { grid-template-columns: 1fr; }
  .card { padding: 28px 22px; }
  .chips li { flex: 1 1 100%; }
  .highlight { white-space: normal; }

  .brochure-card { padding: 24px 20px; }
  .accordion__title { padding: 18px; font-size: 16px; gap: 12px; }
  .accordion__content p { padding: 0 18px 20px; }

  .footer__cta { flex-direction: column; align-items: flex-start; }
  .footer__cta .btn { width: 100%; }
  .footer__cols { grid-template-columns: 1fr; }
  .footer__bottom-inner { flex-direction: column; padding-bottom: 96px; }

  .back-to-top { right: 28px; bottom: 92px; width: 42px; height: 42px; }
  .theme-toggle { width: 42px; height: 42px; }
}

/* ---------- Fuentes de los datos ---------- */
.source {
  display: inline-block;
  margin-top: 8px;
  font-size: 11.5px;
  line-height: 1.45;
  color: var(--text);
  opacity: .75;
  text-decoration: underline;
  text-decoration-color: var(--line);
  text-underline-offset: 3px;
  transition: opacity .2s, color .2s;
}
.source:hover { opacity: 1; color: var(--green); }

/* =========================================================
   AUTODIAGNÓSTICO ESG
   ========================================================= */
.quiz-wrap { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.quiz-intro { position: sticky; top: calc(var(--nav-h) + 32px); display: flex; flex-direction: column; gap: 20px; }

.quiz {
  padding: clamp(22px, 3vw, 36px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.quiz__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 32px; }
.quiz__count { font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--orange-deep); }
.quiz__back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: none;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
}
.quiz__back .icon { transform: rotate(180deg); }
.quiz__back:hover { border-color: var(--green); color: var(--green); }
.quiz__bar { height: 6px; margin: 14px 0 26px; border-radius: 999px; background: var(--green-soft); overflow: hidden; }
.quiz__bar span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green), var(--orange));
  transition: width .5s var(--ease);
}

.quiz__step { animation: quiz-in .45s var(--ease); }
@keyframes quiz-in { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: none; } }
.quiz__question { font-size: clamp(19px, 1.8vw, 23px); line-height: 1.35; font-weight: 600; color: var(--ink); margin-bottom: 20px; }
.quiz__options { display: flex; flex-direction: column; gap: 10px; }
.quiz__option {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 15px 18px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
  font-size: 15px;
  line-height: 1.45;
  text-align: left;
  color: var(--ink);
  transition: border-color .25s, background-color .25s, transform .25s var(--ease);
}
.quiz__option:hover { border-color: var(--green); transform: translateX(4px); }
.quiz__mark {
  position: relative;
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border: 2px solid var(--line);
  border-radius: 50%;
  transition: border-color .25s, background-color .25s;
}
.quiz__option[aria-pressed="true"] { border-color: var(--green); background: var(--green-soft); }
.quiz__option[aria-pressed="true"] .quiz__mark { border-color: var(--green); background: var(--green); box-shadow: inset 0 0 0 3px var(--surface); }

.quiz__result { animation: quiz-in .5s var(--ease); text-align: center; }
.quiz__score { position: relative; width: 150px; height: 150px; margin: 0 auto 18px; }
.quiz__score svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.quiz__ring-bg, .quiz__ring { fill: none; stroke-width: 10; }
.quiz__ring-bg { stroke: var(--green-soft); }
.quiz__ring {
  stroke: var(--green);
  stroke-linecap: round;
  stroke-dasharray: 327;
  stroke-dashoffset: 327;
  transition: stroke-dashoffset 1.4s var(--ease);
}
.quiz__score p { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 2px; }
.quiz__score-num { font-size: 44px; font-weight: 700; line-height: 1; color: var(--ink); font-variant-numeric: tabular-nums; }
.quiz__score small { align-self: flex-end; margin-bottom: 52px; font-size: 14px; color: var(--text); }
.quiz__level-label { font-size: 17px; color: var(--text); }
.quiz__level-label strong { color: var(--green); }
.quiz__level-text { max-width: 480px; margin: 10px auto 0; font-size: 15px; line-height: 1.6; }
.quiz__recs-title { margin-top: 26px; font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--orange-deep); text-align: left; }
.quiz__recs { display: flex; flex-direction: column; gap: 10px; margin: 12px 0 26px; text-align: left; }
.quiz__recs li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: var(--beige);
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--ink);
}
html.is-dark .quiz__recs li { background: var(--bg); }
.quiz__recs .icon { margin-top: 3px; color: var(--green); }
.quiz__result .btn-row { justify-content: center; }

@media (max-width: 1023px) {
  .quiz-wrap { grid-template-columns: 1fr; }
  .quiz-intro { position: static; }
}

/* =========================================================
   QUIÉNES SOMOS Y PRESENCIA
   ========================================================= */
.about__dots {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(var(--line) 1.4px, transparent 1.6px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(ellipse at 80% 70%, #000 0%, transparent 60%);
  mask-image: radial-gradient(ellipse at 80% 70%, #000 0%, transparent 60%);
  pointer-events: none;
}
#nosotros .container { position: relative; }

.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.value {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  font-size: 15px;
  transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}
.value:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.value__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: 6px;
  border-radius: 14px;
  background: var(--green-soft);
  color: var(--green);
  font-size: 24px;
}
.value__title { font-size: 18px; font-weight: 600; color: var(--ink); }

.presence__title {
  margin: clamp(48px, 6vw, 72px) 0 20px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--orange-deep);
}
.presence { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.presence__card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  transition: transform .4s var(--ease), border-color .4s;
}
.presence__card:hover { transform: translateY(-4px); border-color: var(--green); }
.presence__card--main { border-color: var(--green); background: var(--green); }
.presence__card--main .presence__country, .presence__card--main .presence__role { color: var(--white); }
.presence__flag { font-size: 34px; line-height: 1; }
.presence__country { font-size: 17px; font-weight: 600; color: var(--ink); }
.presence__role { font-size: 13px; color: var(--text); }
.presence__pin { position: absolute; top: 14px; right: 14px; width: 8px; height: 8px; border-radius: 50%; background: var(--orange-deep); }
.presence__pin::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: inherit; animation: ping 2.2s var(--ease) infinite; }

.partner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin-top: 24px;
  padding: clamp(28px, 4vw, 44px);
  border-radius: var(--radius-lg);
  background: var(--navy);
  background-image: radial-gradient(60% 120% at 100% 0%, rgba(94, 115, 104, .55), transparent 60%);
  overflow: hidden;
}
.partner__body { display: flex; flex-direction: column; gap: 14px; max-width: 680px; }
.partner .pill--dark { align-self: flex-start; }
.partner__title { font-size: clamp(22px, 2.4vw, 30px); font-weight: 600; line-height: 1.25; color: var(--white); }
.partner__text { color: rgba(255, 255, 255, .75); line-height: 1.7; }
.partner .btn { flex-shrink: 0; }

@media (max-width: 1023px) {
  .values { grid-template-columns: 1fr; }
  .presence { grid-template-columns: 1fr 1fr; }
  .partner { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 767px) {
  .presence { gap: 10px; }
  .presence__card { padding: 16px; gap: 10px; }
  .presence__flag { font-size: 28px; }
  .partner .btn { width: 100%; }
}

/* =========================================================
   RECURSOS (tarjetas de artículos, en la portada y en el blog)
   ========================================================= */
/* Solo se muestra el bloque del idioma activo: español para todas las versiones en español */
html:not([lang^="en"]) [data-lang-block="en"],
html[lang^="en"] [data-lang-block="es"] { display: none; }

.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.post-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}
.post-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--green), var(--orange));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .5s var(--ease);
}
.post-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.post-card:hover::before { transform: scaleX(1); }
.post-card__tag {
  align-self: flex-start;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--green-soft);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--green);
}
.post-card__title { font-size: 20px; line-height: 1.3; font-weight: 600; }
.post-card__desc { font-size: 15px; line-height: 1.6; }
.post-card__meta { margin-top: auto; font-size: 13px; color: var(--text); opacity: .8; }
.post-card__more { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--green); }
.post-card__more .icon { transition: transform .3s var(--ease); }
.post-card:hover .post-card__more .icon { transform: translateX(4px); }

@media (max-width: 1023px) { .post-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 767px) { .post-grid { grid-template-columns: 1fr; } .post-card { padding: 22px; } }
.resources__more { display: flex; justify-content: center; margin-top: 32px; }

/* =========================================================
   MENSAJES EMERGENTES (tarjetas laterales, ver js/nudges.js)
   ========================================================= */
.nudge-zone {
  position: fixed;
  bottom: 156px;
  z-index: 85;
  width: min(360px, calc(100vw - 32px));
  pointer-events: none;
}
.nudge-zone--left { left: 22px; bottom: 84px; }
.nudge-zone--right { right: 22px; }

.nudge {
  position: relative;
  display: flex;
  gap: 14px;
  padding: 18px 40px 20px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 24px 50px -20px rgba(17, 23, 39, .45);
  overflow: hidden;
  pointer-events: auto;
  opacity: 0;
  transition: transform .55s var(--ease), opacity .45s ease;
}
.nudge-zone--left .nudge { transform: translateX(calc(-100% - 40px)); }
.nudge-zone--right .nudge { transform: translateX(calc(100% + 40px)); }
.nudge.is-visible { opacity: 1; transform: none; }
.nudge.is-leaving { opacity: 0; }
.nudge-zone--left .nudge.is-leaving { transform: translateX(-30px); }
.nudge-zone--right .nudge.is-leaving { transform: translateX(30px); }

.nudge__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--green-soft);
  color: var(--green);
  font-size: 21px;
}
.nudge__eyebrow { font-size: 11.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--orange-deep); }
.nudge__text { margin-top: 4px; font-size: 14px; line-height: 1.5; color: var(--ink); }
.nudge__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--green);
}
.nudge__cta .icon { transition: transform .3s var(--ease); }
.nudge__cta:hover .icon { transform: translateX(4px); }
.nudge__close {
  position: absolute;
  top: 10px;
  right: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--text);
  font-size: 15px;
  transition: background-color .2s, color .2s;
}
.nudge__close:hover { background: var(--green-soft); color: var(--ink); }

/* Barra que se vacía mientras la tarjeta está en pantalla; se congela al mirarla */
.nudge__timer {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--green), var(--orange));
  transform-origin: left;
  animation: nudge-life var(--life, 11s) linear forwards;
}
.nudge.is-paused .nudge__timer { animation: none; transform: scaleX(1); }
@keyframes nudge-life { from { transform: scaleX(1); } to { transform: scaleX(0); } }

@media (max-width: 767px) {
  .nudge-zone, .nudge-zone--left, .nudge-zone--right { left: 12px; right: 12px; width: auto; bottom: 92px; }
  .nudge { padding: 14px 38px 16px 14px; }
  .nudge__icon { width: 36px; height: 36px; font-size: 18px; }
  .nudge__text { font-size: 13.5px; }
}
@media (prefers-reduced-motion: reduce) {
  .nudge { transition: opacity .2s; transform: none !important; }
  .nudge__timer { animation: none; }
}

/* =========================================================
   VISOR AMPLIADO DE CAPTURAS (js/lightbox.js)
   ========================================================= */
.frame--zoomable { cursor: zoom-in; }
.frame--zoomable:focus-visible { outline: 3px solid var(--orange); outline-offset: 4px; }
.frame__zoom {
  position: absolute;
  right: 16px;
  bottom: 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px 8px 10px;
  border-radius: 999px;
  background: rgba(17, 23, 39, .78);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: var(--white);
  font-size: 13px;
  font-weight: 600;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .3s, transform .3s var(--ease);
  pointer-events: none;
}
.frame__zoom .icon { font-size: 17px; }
.frame--zoomable:hover .frame__zoom,
.frame--zoomable:focus-visible .frame__zoom { opacity: 1; transform: none; }
@media (hover: none) { .frame__zoom { opacity: 1; transform: none; padding: 7px; } .frame__zoom span { display: none; } }

body.lightbox-open { overflow: hidden; }
.lightbox {
  width: 100vw;
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--white);
}
.lightbox[open] { display: flex; flex-direction: column; align-items: center; justify-content: center; animation: lb-in .3s ease; }
.lightbox::backdrop { background: rgba(8, 11, 20, .9); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
@keyframes lb-in { from { opacity: 0; } to { opacity: 1; } }

.lightbox__stage {
  max-width: min(1400px, 92vw);
  max-height: 78dvh;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .8);
  touch-action: pan-y;
}
.lightbox__img {
  display: block;
  width: 100%;
  max-height: 78dvh;
  object-fit: contain;
  cursor: zoom-in;
  transition: transform .35s var(--ease);
  animation: lb-img .35s var(--ease);
}
@keyframes lb-img { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: none; } }
.lightbox__stage.is-zoomed { touch-action: none; }
.lightbox__stage.is-zoomed .lightbox__img { transform: scale(2.2); cursor: zoom-out; transition: transform .35s var(--ease), transform-origin .08s linear; }

.lightbox__caption { display: flex; gap: 14px; align-items: baseline; margin-top: 16px; padding: 0 70px; font-size: 15px; font-weight: 500; text-align: center; }
.lightbox__count { font-size: 13px; opacity: .6; font-variant-numeric: tabular-nums; }
.lightbox__hint { margin-top: 6px; font-size: 12.5px; opacity: .55; text-align: center; padding: 0 16px; }

.lightbox__btn {
  position: fixed;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 50%;
  background: rgba(255, 255, 255, .08);
  color: var(--white);
  font-size: 22px;
  transition: background-color .2s, transform .2s;
}
.lightbox__btn:hover { background: rgba(255, 255, 255, .2); }
.lightbox__close { top: 20px; right: 20px; }
.lightbox__prev, .lightbox__next { top: 50%; margin-top: -24px; }
.lightbox__prev { left: 20px; }
.lightbox__prev .icon { transform: rotate(180deg); }
.lightbox__next { right: 20px; }
.lightbox__prev:hover { transform: translateX(-3px); }
.lightbox__next:hover { transform: translateX(3px); }

@media (max-width: 767px) {
  .lightbox__stage { max-width: 96vw; }
  .lightbox__prev, .lightbox__next { top: auto; bottom: 22px; margin-top: 0; width: 44px; height: 44px; }
  .lightbox__prev { left: calc(50% - 56px); }
  .lightbox__next { right: calc(50% - 56px); }
  .lightbox__caption { padding: 0 16px; flex-direction: column; align-items: center; gap: 2px; font-size: 14px; }
  .lightbox__hint { display: none; }
}
