/* Upgrade visual de la portada: profundidad, ritmo y lectura. */
.scroll-progress {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  height: 3px;
  transform: scaleX(0);
  transform-origin: left;
  background: linear-gradient(90deg, var(--teal), var(--soft-blue), var(--lavender));
  box-shadow: 0 0 16px rgba(77, 182, 166, .5);
  pointer-events: none;
}

.topbar {
  padding: 12px 0 0;
  margin-bottom: 14px;
  border-bottom: 0;
  background: transparent;
  backdrop-filter: none;
  transition: padding .35s ease;
}

.topbar .nav {
  position: relative;
  min-height: 64px;
  height: auto;
  padding: 10px 14px 10px 22px;
  border: 1px solid rgba(224,221,215,.9);
  border-radius: 17px;
  background: rgba(255,255,255,.78);
  box-shadow: 0 10px 28px rgba(54,74,86,.07);
  backdrop-filter: blur(18px);
  transition: min-height .35s ease, border-color .35s ease, box-shadow .35s ease, background .35s ease;
  animation: nav-arrive .8s cubic-bezier(.16,1,.3,1) both;
}

.topbar .nav::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: linear-gradient(110deg, rgba(167,216,240,.2), transparent 42%, rgba(184,164,217,.16));
  pointer-events: none;
}

.topbar.is-scrolled { padding-top: 7px; }
.topbar.is-scrolled .nav { min-height: 58px; border-color: rgba(91,141,239,.22); background: rgba(255,255,255,.92); box-shadow: 0 16px 38px rgba(54,74,86,.14); }
.topbar .links { gap: 6px; }
.topbar .links a { position: relative; padding: 10px 11px; border-radius: 9px; transition: color .2s ease, background .2s ease, transform .2s ease; }
.topbar .links a::after { content: ""; position: absolute; left: 11px; right: 11px; bottom: 5px; height: 2px; border-radius: 2px; background: var(--teal); transform: scaleX(0); transform-origin: center; transition: transform .25s ease; }
.topbar .links a:hover { background: rgba(231,245,241,.68); transform: translateY(-1px); }
.topbar .links a.is-active { color: var(--ink); background: rgba(238,244,255,.75); }
.topbar .links a.is-active::after { transform: scaleX(1); }
.topbar .button { white-space: nowrap; }
.brand { display: inline-flex; align-items: center; gap: 9px; }
.brand img { width: 28px; height: 28px; object-fit: contain; }
.brand span { line-height: 1; }
.sidebar .brand img { width: 24px; height: 24px; }

.site-footer {
  position: relative;
  overflow: hidden;
  padding: 42px 0 24px;
  background: #29343d;
  color: #fff;
}

.site-footer::before {
  content: "";
  position: absolute;
  width: 520px;
  height: 520px;
  right: -220px;
  top: -260px;
  border: 1px solid rgba(158,224,210,.18);
  border-radius: 50%;
  animation: footer-orbit 16s ease-in-out infinite alternate;
}

.footer-emergency {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 20px;
  border: 1px solid rgba(158,224,210,.25);
  border-radius: 13px;
  background: rgba(77,182,166,.1);
}

.footer-emergency__pulse { width: 9px; height: 9px; flex: none; margin-top: 5px; border-radius: 50%; background: #9ee0d2; box-shadow: 0 0 0 6px rgba(158,224,210,.12); animation: footer-pulse 2.2s ease-in-out infinite; }
.footer-emergency strong { font-size: 13px; }
.footer-emergency p { max-width: 760px; margin: 5px 0 0; color: rgba(255,255,255,.66); font-size: 12px; line-height: 1.5; }
.footer-main { position: relative; display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 42px; padding: 54px 0 46px; }
.footer-brand .brand { display: inline-block; color: #fff; }
.footer-brand p { max-width: 265px; margin: 16px 0 0; color: rgba(255,255,255,.6); font-size: 14px; line-height: 1.6; }
.social-links { display: grid; gap: 10px; margin-top: 22px; }
.social-links > span { color: #9ee0d2; font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.social-links > div { display: flex; flex-wrap: wrap; gap: 7px; }
.social-link { display: inline-grid; width: 34px; height: 34px; place-items: center; padding: 7px; border: 1px solid rgba(255,255,255,.16); border-radius: 9px; color: rgba(255,255,255,.68); transition: color .2s ease, background .2s ease, border-color .2s ease, transform .2s ease; }
.social-link svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.social-link svg path:first-child { fill: currentColor; stroke: none; }
.social-link:hover { transform: translateY(-2px); border-color: rgba(158,224,210,.55); background: rgba(77,182,166,.14); color: #fff; }
.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; }
.footer-column { display: grid; align-content: start; gap: 10px; }
.footer-column > span { margin-bottom: 7px; color: #9ee0d2; font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.footer-column a { width: fit-content; color: rgba(255,255,255,.7); font-size: 13px; transition: color .2s ease, transform .2s ease; }
.footer-column a:hover { color: #fff; transform: translateX(4px); }
.footer-values p { margin: 0; color: rgba(255,255,255,.7); font-size: 14px; line-height: 1.7; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; padding-top: 17px; border-top: 1px solid rgba(255,255,255,.14); color: rgba(255,255,255,.45); font-size: 11px; }

@keyframes nav-arrive { from { opacity: 0; transform: translateY(-18px) scale(.98); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes footer-orbit { from { transform: translate(0,0) rotate(0); } to { transform: translate(-22px,18px) rotate(9deg); } }
@keyframes footer-pulse { 0%,100% { box-shadow: 0 0 0 5px rgba(158,224,210,.1); } 50% { box-shadow: 0 0 0 9px rgba(158,224,210,.02); } }

@media (max-width: 820px) {
  .topbar .nav { flex-wrap: wrap; justify-content: center; padding: 12px 14px; }
  .topbar .brand { margin-right: auto; }
  .topbar .links { order: 3; width: 100%; justify-content: center; overflow-x: auto; padding: 2px 0; }
  .topbar .links a { flex: 0 0 auto; font-size: 13px; }
  .topbar .button { font-size: 13px; padding: 11px 13px; }
}

@media (max-width: 520px) {
  .topbar { padding-top: 6px; }
  .topbar .nav { border-radius: 14px; }
  .topbar .brand { font-size: 20px; }
  .topbar .button { max-width: 155px; overflow: hidden; text-overflow: ellipsis; }
  .topbar .links { justify-content: flex-start; }
  .site-footer { padding-top: 28px; }
  .footer-main { grid-template-columns: 1fr 1fr; gap: 32px 22px; padding: 38px 0 32px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom { display: grid; gap: 7px; }
}

.button {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transform: translateY(0);
  transition: transform .22s cubic-bezier(.2,.8,.2,1), box-shadow .22s ease, background-color .22s ease;
}

.button::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0 auto 0 -85%;
  width: 58%;
  transform: skewX(-18deg);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.42), transparent);
  transition: left .55s ease;
}

.button:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 26px rgba(91,141,239,.3);
}

.button:hover::before { left: 140%; }
.button:active { transform: translateY(0) scale(.97); box-shadow: 0 5px 12px rgba(54,74,86,.16); }
.button:focus-visible { outline: 3px solid rgba(77,182,166,.45); outline-offset: 4px; }
.button.secondary:hover { box-shadow: 0 12px 24px rgba(77,182,166,.22); }
.button.outline:hover { background: rgba(77,182,166,.1); box-shadow: none; }

@media (prefers-reduced-motion: reduce) {
  .button, .button::before { transition: none; }
  .button:hover { transform: none; }
}

.hero-upgrade { position: relative; isolation: isolate; min-height: 620px; display: flex; align-items: center; overflow: hidden; }
.hero-upgrade__glow { position: absolute; inset: 0; z-index: -2; background: radial-gradient(circle at 75% 30%, rgba(184,164,217,.3), transparent 30%), radial-gradient(circle at 92% 80%, rgba(77,182,166,.22), transparent 28%); }
.hero-upgrade__glow::after { content: ""; position: absolute; inset: 0; opacity: .34; background-image: linear-gradient(rgba(41,52,61,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(41,52,61,.05) 1px, transparent 1px); background-size: 46px 46px; mask-image: linear-gradient(90deg, black, transparent 78%); }
.hero-upgrade h1 { max-width: 820px; font-size: clamp(52px, 8vw, 104px); line-height: .98; }
.hero-upgrade p { max-width: 620px; font-size: 20px; }
.hero-orbit { position: absolute; z-index: -1; border: 1px solid rgba(77,182,166,.28); border-radius: 50%; pointer-events: none; }
.hero-orbit::after { content: ""; position: absolute; width: 12px; height: 12px; top: 12%; right: 8%; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 8px rgba(77,182,166,.12); }
.hero-orbit--one { width: 480px; height: 480px; right: -90px; top: -46px; animation: orbit-drift 14s ease-in-out infinite alternate; }
.hero-orbit--two { width: 280px; height: 280px; right: 100px; top: 180px; border-color: rgba(184,164,217,.4); animation: orbit-drift 10s ease-in-out infinite alternate-reverse; }
.hero-orbit--two::after { background: var(--lavender); }
.stat-strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(255,255,255,.52); }
.stat-strip__grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.stat-strip__grid > div { display: grid; grid-template-columns: 48px 1fr; column-gap: 14px; padding: 24px 20px; border-right: 1px solid var(--line); }
.stat-strip__grid > div:first-child { padding-left: 0; }
.stat-strip__grid > div:last-child { border-right: 0; }
.stat-strip strong { grid-row: span 2; color: var(--soft-blue); font-size: 28px; }
.stat-strip span { color: var(--ink); font-weight: 800; }
.stat-strip p { margin: 5px 0 0; color: var(--muted); font-size: 13px; line-height: 1.4; }
.insight-section { padding: 104px 0; background: linear-gradient(125deg, #eef4ff, #f8f5fd 58%, #edf9f6); }
.insight-section__grid { display: grid; grid-template-columns: 1fr .8fr; gap: 90px; align-items: center; }
.insight-section h2 { max-width: 610px; margin: 15px 0 20px; font-size: clamp(36px, 5vw, 64px); }
.insight-section p { max-width: 570px; color: var(--muted); font-size: 17px; line-height: 1.75; }
.insight-section .button { margin-top: 12px; }
.insight-card { position: relative; padding: 36px; border: 1px solid rgba(184,164,217,.46); border-radius: 22px; background: rgba(255,255,255,.7); box-shadow: 0 28px 60px rgba(88,76,124,.12); transform: rotate(2deg); }
.insight-card__mark { display: block; color: var(--lavender); font-size: 72px; font-weight: 800; line-height: .55; }
.insight-card strong { display: block; margin-top: 28px; color: var(--muted); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; }
.insight-card p { margin: 14px 0 0; color: var(--ink); font-family: Georgia, serif; font-size: 25px; line-height: 1.35; }

@keyframes orbit-drift { from { transform: translate3d(0, 0, 0) rotate(0deg); } to { transform: translate3d(-16px, 22px, 0) rotate(8deg); } }

@media (max-width: 720px) {
  .hero-upgrade { min-height: 600px; }
  .hero-upgrade h1 { font-size: clamp(45px, 15vw, 72px); }
  .hero-upgrade p { font-size: 17px; }
  .hero-orbit--one { width: 350px; height: 350px; right: -150px; top: 80px; }
  .hero-orbit--two { right: -10px; top: 270px; }
  .stat-strip__grid { grid-template-columns: 1fr; }
  .stat-strip__grid > div, .stat-strip__grid > div:first-child { padding: 18px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .stat-strip__grid > div:last-child { border-bottom: 0; }
  .insight-section { padding: 70px 0; }
  .insight-section__grid { grid-template-columns: 1fr; gap: 44px; }
  .insight-card { transform: rotate(0); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-orbit { animation: none; }
}

.editorial-hero { position: relative; overflow: hidden; padding: 112px 0 126px; background: linear-gradient(118deg, #edf3ec 0%, #fbfaf6 58%, #f5dfd1 100%); }
.editorial-hero::after { content: ""; position: absolute; width: 580px; height: 580px; right: -200px; top: -180px; border: 1px solid rgba(53,102,83,.18); border-radius: 50%; box-shadow: 0 0 0 52px rgba(141,183,161,.07), 0 0 0 104px rgba(245,223,209,.3); }
.editorial-hero__grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(280px, .55fr); gap: 100px; align-items: end; }
.editorial-hero__copy h1 { max-width: 760px; margin-top: 15px; font-size: clamp(54px, 8vw, 102px); line-height: .96; }
.editorial-hero__copy p { max-width: 580px; margin: 28px 0 34px; color: var(--muted); font-size: 19px; line-height: 1.7; }
.editorial-hero__note { max-width: 310px; padding: 24px 0 0 26px; border-left: 1px solid var(--forest); }
.editorial-note__mark { display: grid; width: 46px; height: 46px; place-items: center; margin-bottom: 58px; border-radius: 50%; background: var(--forest); color: white; font: 700 24px Fraunces, serif; }
.editorial-hero__note p { margin: 12px 0 22px; color: var(--ink); font: 25px/1.3 Fraunces, serif; }
.editorial-note__line { display: block; width: 45px; height: 2px; background: var(--mint); }
.editorial-hero__note small { display: block; margin-top: 12px; color: var(--muted); line-height: 1.5; }
.editorial-entry { padding: 108px 0 116px; background: var(--paper); }
.editorial-entry__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 110px; align-items: start; }
.editorial-kicker { display: block; color: var(--forest); font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.editorial-entry h2, .editorial-support h2 { margin: 14px 0 20px; font-size: clamp(38px, 5vw, 66px); }
.editorial-entry__lead p { max-width: 440px; margin: 0 0 25px; color: var(--muted); line-height: 1.7; }
.editorial-entry__list { border-top: 1px solid var(--line); }
.editorial-entry__list a { display: grid; grid-template-columns: 42px 1fr auto; gap: 18px; align-items: center; padding: 22px 0; border-bottom: 1px solid var(--line); transition: padding .25s ease, color .25s ease; }
.editorial-entry__list a:hover { padding-left: 9px; color: var(--forest); }
.editorial-entry__list span { color: var(--mint); font-size: 12px; font-weight: 800; }
.editorial-entry__list strong { font-family: Fraunces, serif; font-size: 21px; font-weight: 600; }
.editorial-entry__list em { color: var(--muted); font-size: 12px; font-style: normal; text-align: right; }
.editorial-support { padding: 54px 0; background: var(--ink); color: white; }
.editorial-support__inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.editorial-support h2 { margin-bottom: 0; color: white; font-size: clamp(30px, 4vw, 48px); }
.editorial-support .editorial-kicker { color: #9ee0d2; }

@media (max-width: 760px) {
  .editorial-hero { padding: 72px 0 80px; }
  .editorial-hero__grid, .editorial-entry__grid { grid-template-columns: 1fr; gap: 54px; }
  .editorial-hero__copy h1 { font-size: clamp(48px, 14vw, 76px); }
  .editorial-hero__note { max-width: 100%; margin-left: 18px; }
  .editorial-note__mark { margin-bottom: 34px; }
  .editorial-entry { padding: 72px 0 82px; }
  .editorial-entry__list a { grid-template-columns: 34px 1fr; gap: 12px; }
  .editorial-entry__list em { grid-column: 2; text-align: left; }
  .editorial-support__inner { display: grid; }
  .editorial-support .button { width: 100%; }
}
