:root {
  color-scheme: light dark;
  --bg: #f3f5fb;
  --panel: #ffffff;
  --ink: #16203a;
  --muted: #4a5673;
  --line: #d7dff0;
  --brand: #2f436f;
  --brand-2: #8ec6de;
  --accent: #9dcf9f;
  --radius-lg: 28px;
  --radius-md: 16px;
  --shadow: 0 22px 60px rgba(22, 32, 58, 0.12);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "Plus Jakarta Sans", sans-serif;
  background: var(--bg);
  color: var(--ink);
  overflow-x: hidden;
  opacity: 0;
  transition: opacity .45s ease;
}

body.ready { opacity: 1; }
body.leaving { opacity: 0.35; }

.ambient {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background:
    radial-gradient(circle at 4% 8%, #e4f0ff 0%, transparent 34%),
    radial-gradient(circle at 96% 13%, #dcefff 0%, transparent 35%),
    radial-gradient(circle at 82% 85%, #e9f4ea 0%, transparent 32%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: radial-gradient(rgba(255,255,255,.28) 1px, transparent 1px);
  background-size: 3px 3px;
  opacity: .22;
}

.cursor-glow {
  position: fixed;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 2;
  background: radial-gradient(circle, rgba(142,198,222,.28), rgba(157,207,159,.15) 36%, transparent 70%);
  transform: translate(-50%, -50%);
  mix-blend-mode: plus-lighter;
  opacity: 0;
  transition: opacity .25s ease;
}

.cursor-glow.on { opacity: 1; }

.progress-track {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  z-index: 110;
  background: rgba(255,255,255,.45);
  backdrop-filter: blur(4px);
}

.progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #6d88c0, #8ec6de, #9dcf9f);
  box-shadow: 0 0 18px rgba(142,198,222,.6);
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: .6rem .8rem;
  z-index: 100;
  text-decoration: none;
  color: var(--ink);
}
.skip-link:focus { top: .8rem; }

.topbar {
  width: min(1220px, 94vw);
  margin: .9rem auto 0;
  padding: .55rem .7rem .55rem 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(8px);
  position: sticky;
  top: .7rem;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
}

.topbar::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(125deg, rgba(255,255,255,.5), rgba(255,255,255,.08));
}
.brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 168px;
  min-height: 48px;
  padding: .4rem .95rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #dfe8fb, #ced9f3);
  border: 1px solid #afbfdf;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.7), 0 10px 18px rgba(49, 73, 115, .14);
  text-decoration: none;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .7rem;
  font-weight: 800;
}
.brand img {
  display: block;
  height: 28px;
  width: auto;
  max-width: 100%;
  filter: drop-shadow(0 1px 0 rgba(255,255,255,.65));
}
.topbar nav { display: flex; justify-content: center; gap: .9rem; }
.topbar nav a {
  text-decoration: none;
  color: #364666;
  font-size: .9rem;
  border-radius: 999px;
  padding: .4rem .62rem;
  transition: transform .22s ease, background .22s ease, color .22s ease;
}
.topbar nav a:hover { background: #fff; color: var(--brand); transform: translateY(-1px); }
.nav-btn {
  text-decoration: none;
  color: #fff;
  font-size: .88rem;
  font-weight: 700;
  background: linear-gradient(135deg, #2f436f, #48639a);
  border-radius: 999px;
  padding: .58rem .9rem;
}
.menu-toggle {
  display: none;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  border-radius: 10px;
  padding: .48rem .6rem;
  font: inherit;
  font-size: .88rem;
  cursor: pointer;
}

.shell { width: min(1220px, 94vw); margin: 1.2rem auto 4rem; }

.hero {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: .8rem;
  border: 1px solid #00000012;
  background: linear-gradient(145deg, #ffffff, #eef4ff);
  border-radius: var(--radius-lg);
  padding: clamp(1.1rem, 3vw, 2.4rem);
  box-shadow: var(--shadow);
}
.kicker {
  margin: 0;
  color: #355388;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .72rem;
  font-weight: 800;
}
.hero h1 {
  margin: .55rem 0 .65rem;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2.1rem, 5.4vw, 4.2rem);
  line-height: .93;
  max-width: 16ch;
}
.hero-copy p { margin: 0; color: var(--muted); max-width: 66ch; }
.hero-actions { margin-top: 1.15rem; display: flex; gap: .6rem; flex-wrap: wrap; }
.btn {
  text-decoration: none;
  border-radius: 999px;
  padding: .72rem 1rem;
  border: 1px solid var(--line);
  font-size: .92rem;
  font-weight: 700;
  transition: transform .2s ease, box-shadow .2s ease;
  position: relative;
  overflow: hidden;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 7px 18px rgba(0,0,0,.1); }
.btn.solid { color: #fff; border-color: transparent; background: linear-gradient(135deg, var(--brand), #3e5d92); }
.btn.ghost { color: var(--ink); background: #fff; }

.hero-stats {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .55rem;
}
.hero-stats article {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 14px;
  padding: .75rem;
}
.hero-stats p { margin: 0; font-size: .82rem; color: var(--muted); }
.hero-stats h2 { margin: .2rem 0 0; font-size: clamp(1.4rem, 3vw, 2rem); }

.hero-media {
  min-height: 420px;
  border-radius: 20px;
  background: linear-gradient(145deg, #e8edf7, #e4f2eb);
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: 70px;
  gap: .45rem;
  padding: .45rem;
}
.hero-media .tile {
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  background: #dbe3f1;
  transition: transform .45s cubic-bezier(.2,.8,.2,1), filter .4s ease;
}
.hero-media .tile img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-media .tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.2), transparent 50%);
}
.hero-media .tile:hover {
  transform: translateY(-3px) scale(1.015);
  filter: saturate(1.08) contrast(1.04);
}
.hero-media .t1 { grid-column: span 3; grid-row: span 3; }
.hero-media .t2 { grid-column: span 3; grid-row: span 2; }
.hero-media .t3 { grid-column: span 2; grid-row: span 2; }
.hero-media .t4 { grid-column: span 2; grid-row: span 2; }
.hero-media .t5 { grid-column: span 2; grid-row: span 3; }
.hero-media .t6 { grid-column: span 4; grid-row: span 2; }

.proof {
  margin-top: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #fbfdff;
  padding: 1rem;
}
.proof h2 {
  margin: .45rem 0 0;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.5rem, 4vw, 2.6rem);
  max-width: 24ch;
  line-height: 1;
}
.proof-grid {
  margin-top: .8rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .7rem;
}
.proof-grid article {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: .9rem;
}
.proof-grid h3 { margin: 0 0 .4rem; }
.proof-grid p { margin: 0; color: var(--muted); }

.mosaic {
  margin-top: 1rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  min-height: 260px;
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  grid-auto-rows: 120px;
  gap: 2px;
  background: #e7ecf7;
}
.mosaic .piece { background: #dbe3f1; }
.mosaic .piece img { width: 100%; height: 100%; object-fit: cover; display: block; }

.section-head { margin: 1.35rem 0 .65rem; }
.section-head h2 {
  margin: .35rem 0 0;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.6rem, 4vw, 2.7rem);
  line-height: 1;
}

.rubro-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: .75rem;
}
.rubro-card {
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
  transform-style: preserve-3d;
  will-change: transform;
}
.rubro-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #b8c9e6; }
.rubro-card .pic { height: 150px; background: #e0e7f3; }
.rubro-card .pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rubro-card .body { padding: .75rem; }
.rubro-card h3 { margin: 0; font-size: 1rem; }
.rubro-card p { margin: .38rem 0 0; color: var(--muted); font-size: .88rem; }

.stories { margin-top: 1rem; }
.story-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .7rem;
}
.story {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: .95rem;
  transform-style: preserve-3d;
  will-change: transform;
}
.story p { margin: 0; color: #334061; line-height: 1.55; }
.story small { display: block; margin-top: .6rem; color: var(--muted); }

.cta {
  margin-top: 1rem;
  border-radius: var(--radius-lg);
  padding: clamp(1.1rem, 3vw, 2rem);
  background: linear-gradient(132deg, #2f436f, #314d82);
  color: #f7fefb;
}
.cta h2 {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.7rem, 4vw, 3rem);
  line-height: 1;
  max-width: 22ch;
}
.cta p { margin: .7rem 0 0; color: #dce8ff; max-width: 70ch; }
.cta .btn.solid { background: #fff; color: #2f436f; }
.cta .btn.ghost { color: #fff; border-color: #a9bddf; background: transparent; }

.reveal {
  opacity: 0;
  transform: translateY(18px);
  filter: blur(4px);
  clip-path: inset(0 0 14% 0 round 12px);
  transition: opacity .65s ease, transform .65s ease, filter .65s ease, clip-path .65s ease;
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
  clip-path: inset(0 0 0 0 round 0);
}

.explorer-hero,
.page-hero {
  border: 1px solid var(--line);
  background: linear-gradient(145deg, #fffef9, #edf2ff);
  border-radius: var(--radius-lg);
  padding: clamp(1rem, 2.8vw, 1.8rem);
}
.explorer-hero h1,
.page-hero h1 {
  margin: .45rem 0 .55rem;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.8rem, 4.2vw, 3.4rem);
  line-height: .96;
}
.explorer-hero p,
.page-hero p { margin: 0; color: var(--muted); max-width: 70ch; }

.explorer-controls {
  margin-top: .9rem;
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: var(--radius-md);
  padding: .9rem;
}
#explorer-search {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: .75rem .85rem;
  font: inherit;
  margin-bottom: .65rem;
}
#explorer-search:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(47, 67, 111, .15);
}

.chips { display: flex; flex-wrap: wrap; gap: .45rem; }
.chip {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: .32rem .62rem;
  cursor: pointer;
  font-size: .8rem;
}
.chip.active {
  background: #eaf0ff;
  border-color: #bfceea;
  color: #2f436f;
}
.chip.static { cursor: default; }

.result-text { margin: .55rem 0 0; color: var(--muted); font-size: .9rem; }

.explorer-grid {
  margin-top: .85rem;
  display: grid;
  gap: .75rem;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}
.x-card {
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
  transform-style: preserve-3d;
  will-change: transform;
}
.x-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: #b8c9e6;
}
.x-card-media { height: 150px; background: #dfe6f2; }
.x-card-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.x-card-body { padding: .8rem; }
.x-card-body h3 { margin: 0; font-size: 1rem; }
.x-card-body p { margin: .42rem 0 .55rem; color: var(--muted); font-size: .9rem; }
.x-meta { display: flex; flex-wrap: wrap; gap: .35rem; }
.x-meta span {
  font-size: .74rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: .18rem .45rem;
  background: #fff;
}

.page-shell { padding-bottom: 2rem; }
.page-shell.page-afiliaciones {
  width: min(920px, 94vw);
}

.page-shell.page-afiliaciones .page-hero {
  margin-bottom: .95rem;
}
.page-chips { margin-top: .75rem; display: flex; flex-wrap: wrap; gap: .42rem; }
.page-layout {
  margin-top: .85rem;
  display: grid;
  gap: .75rem;
  grid-template-columns: 1.25fr .75fr;
}
.page-layout.compact {
  grid-template-columns: 1fr;
}
.content-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #fff;
  padding: .9rem;
  transform-style: preserve-3d;
  will-change: transform;
}
.content-card h2 {
  margin: 0 0 .65rem;
  font-family: "Cormorant Garamond", serif;
  font-size: 1.5rem;
}
.narrative { display: grid; gap: .55rem; }
.narrative p { margin: 0; color: #2f3f63; line-height: 1.58; }
.name-list { margin: 0; padding-left: 1rem; display: grid; gap: .36rem; }
.name-list li { color: #2e3c5c; }
.insta-help { margin: 0 0 .65rem; color: var(--muted); font-size: .94rem; }
.insta-grid { display: flex; flex-wrap: wrap; gap: .45rem; }
.insta-link {
  text-decoration: none;
  color: #294276;
  background: #edf2ff;
  border: 1px solid #c8d5ef;
  border-radius: 999px;
  padding: .38rem .62rem;
  font-size: .82rem;
  font-weight: 700;
}
.insta-link:hover { background: #dce8ff; border-color: #aec2ea; }

.gallery-grid {
  display: grid;
  gap: .55rem;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
}
.g-item {
  border-radius: 12px;
  overflow: hidden;
  min-height: 130px;
  background: #fff;
  border: 1px solid var(--line);
  display: grid;
  grid-template-rows: 170px auto;
  text-decoration: none;
}
.g-item img {
  width: 100%;
  height: 170px;
  object-fit: cover;
  display: block;
  transition: transform .24s ease;
}
.g-item:hover img { transform: scale(1.04); }
.g-meta {
  display: grid;
  gap: .2rem;
  padding: .55rem .6rem .7rem;
}
.g-meta strong {
  color: #263a61;
  font-size: .86rem;
  line-height: 1.25;
  font-weight: 700;
}
.g-meta small {
  color: #4a6da6;
  font-size: .78rem;
  font-weight: 700;
}
.g-item-fallback {
  display: grid;
  place-items: center;
  min-height: 170px;
  text-decoration: none;
  background: linear-gradient(140deg, #e8eefb, #e6f4ec);
}
.g-fallback-body {
  padding: .9rem;
  text-align: center;
  color: #22345b;
  display: grid;
  gap: .35rem;
}
.g-fallback-body strong {
  font-size: .95rem;
  letter-spacing: .02em;
}
.g-fallback-body span {
  position: static;
  color: #2f4a7a;
  text-shadow: none;
  font-size: .82rem;
}

.page-nav {
  margin-top: .85rem;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: .6rem;
  align-items: center;
}
.page-nav a {
  text-decoration: none;
  color: #2f436f;
  background: #edf2ff;
  border: 1px solid #c9d8f2;
  border-radius: 12px;
  padding: .6rem .75rem;
  text-align: center;
  font-size: .9rem;
}
.page-nav a:hover { background: #dfe8ff; }

.dock-nav {
  position: fixed;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  z-index: 95;
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  background: rgba(255,255,255,.82);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: 0 14px 32px rgba(22,32,58,.16);
  backdrop-filter: blur(10px);
  padding: .3rem;
}

.dock-nav a {
  text-decoration: none;
  color: #354565;
  border-radius: 999px;
  padding: .5rem .74rem;
  font-size: .8rem;
  font-weight: 700;
  transition: background .2s ease, transform .2s ease, color .2s ease;
}

.dock-nav a.active,
.dock-nav a:hover {
  background: linear-gradient(135deg, #2f436f, #48639a);
  color: #fff;
  transform: translateY(-1px);
}

.parallax-wrap {
  will-change: transform;
  transform: translate3d(0, 0, 0);
  transition: transform .12s linear;
}

.page-transition {
  position: fixed;
  inset: 0;
  z-index: 130;
  pointer-events: none;
  opacity: 0;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 20% 20%, rgba(142,198,222,.35), transparent 45%),
    radial-gradient(circle at 80% 80%, rgba(157,207,159,.28), transparent 45%),
    linear-gradient(135deg, rgba(47,67,111,.88), rgba(26,41,74,.92));
  transition: opacity .28s ease;
}

.page-transition.in {
  opacity: 1;
  pointer-events: auto;
}

.page-transition-badge {
  min-width: 112px;
  min-height: 112px;
  border-radius: 28px;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.28);
  box-shadow: 0 16px 34px rgba(0,0,0,.22);
  display: grid;
  place-items: center;
  animation: badgePulse .9s ease-in-out infinite alternate;
}

.page-transition-badge img {
  width: 84px;
  height: auto;
  object-fit: contain;
}

@keyframes badgePulse {
  from { transform: scale(0.96); }
  to { transform: scale(1.04); }
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 3px solid rgba(64, 118, 218, 0.35);
  outline-offset: 2px;
}

@media (max-width: 980px) {
  .topbar {
    grid-template-columns: auto auto auto;
    justify-content: space-between;
    position: sticky;
  }
  .menu-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .topbar nav {
    display: none;
    position: absolute;
    left: .65rem;
    right: .65rem;
    top: calc(100% + .5rem);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: var(--shadow);
    padding: .5rem;
    flex-direction: column;
    align-items: stretch;
    gap: .2rem;
  }
  .topbar.menu-open nav { display: flex; }
  .topbar nav a { padding: .65rem .7rem; }
  .nav-btn { justify-self: end; }

  .hero { grid-template-columns: 1fr; }
  .hero-media { min-height: 320px; }
  .hero-stats { grid-template-columns: 1fr; }
  .proof-grid { grid-template-columns: 1fr; }
  .story-cards { grid-template-columns: 1fr; }
  .mosaic { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 100px; }
  .page-layout { grid-template-columns: 1fr; }
  .page-nav { grid-template-columns: 1fr; }
  .dock-nav {
    left: 10px;
    right: 10px;
    transform: none;
    justify-content: space-between;
  }
  .dock-nav a {
    padding: .56rem .65rem;
    font-size: .76rem;
    flex: 1;
    text-align: center;
  }
  .page-transition-badge {
    min-width: 96px;
    min-height: 96px;
    border-radius: 22px;
  }
  .page-transition-badge img { width: 70px; }
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #081120;
    --panel: #0f1d32;
    --ink: #eaf1ff;
    --muted: #b9c6df;
    --line: #1f3557;
    --brand: #8fb7ff;
    --brand-2: #93daf0;
    --accent: #88d39e;
    --shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
  }

  body::before { opacity: .08; }
  .ambient {
    background:
      radial-gradient(circle at 4% 8%, #102846 0%, transparent 36%),
      radial-gradient(circle at 96% 13%, #173452 0%, transparent 38%),
      radial-gradient(circle at 82% 85%, #12362f 0%, transparent 34%);
  }

  .progress-track { background: rgba(6, 12, 22, .6); }
  .topbar {
    background: rgba(12, 24, 42, 0.78);
    border-color: #27446b;
  }
  .topbar::after { background: linear-gradient(125deg, rgba(255,255,255,.08), rgba(255,255,255,.02)); }
  .brand {
    background: linear-gradient(135deg, #20385e, #27466f);
    border-color: #3a5f8e;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
  }
  .topbar nav a { color: #d6e3ff; }
  .topbar nav a:hover { background: #12243e; color: #dff0ff; }
  .menu-toggle { background: #142845; color: #e8f0ff; border-color: #345174; }
  .btn.ghost,
  .hero-stats article,
  .proof-grid article,
  .rubro-card,
  .story,
  .content-card,
  .x-card,
  .chip,
  .x-meta span {
    background: #10203a;
    border-color: #254263;
    color: #eaf1ff;
  }
  .proof,
  .explorer-hero,
  .page-hero,
  .hero {
    background: linear-gradient(145deg, #10203a, #13284a);
    border-color: #27466e;
  }
  .mosaic { background: #11243f; }
  .mosaic .piece,
  .rubro-card .pic,
  .x-card-media,
  .g-item { background: #163056; }
  .g-item-fallback { background: linear-gradient(140deg, #15315a, #184737); }
  .g-fallback-body { color: #e8f2ff; }
  .g-fallback-body span { color: #c8daf7; }
  .g-meta strong { color: #e6efff; }
  .g-meta small { color: #9ec2ff; }
  .hero-copy p,
  .proof-grid p,
  .story p,
  .x-card-body p,
  .narrative p,
  .name-list li,
  .result-text,
  .insta-help,
  .explorer-hero p,
  .page-hero p { color: #c6d4ef; }
  .chip.active {
    background: #1a355a;
    border-color: #426a9d;
    color: #dfeaff;
  }
  #explorer-search {
    background: #0f1f35;
    color: #eaf1ff;
    border-color: #2a496f;
  }
  #explorer-search::placeholder { color: #9eb2d3; }
  .g-item span { color: #f6fbff; }
  .page-nav a,
  .insta-link {
    background: #183357;
    border-color: #3a5d8a;
    color: #deebff;
  }
  .page-nav a:hover,
  .insta-link:hover { background: #23436f; }
  .dock-nav {
    background: rgba(13, 23, 39, .86);
    border-color: #274263;
  }
  .dock-nav a { color: #dbe8ff; }
  .skip-link { background: #132744; color: #f3f8ff; border-color: #2f537d; }
}

@media (prefers-reduced-motion: reduce) {
  html:focus-within { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .cursor-glow,
  .progress-track,
  .page-transition,
  .dock-nav {
    display: none !important;
  }
}

.lead-form {
  display: grid;
  gap: 1.2rem;
  margin-top: .8rem;
  padding: 1.35rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,.94), rgba(244,249,255,.9));
}

.page-shell.page-afiliaciones .content-card {
  padding: 1.1rem;
}

.page-shell.page-afiliaciones .content-card h2 {
  font-size: 1.7rem;
}

.page-shell.page-afiliaciones .content-card + .content-card {
  margin-top: .9rem;
}

.f-grid {
  display: grid;
  gap: 1.05rem;
  grid-template-columns: repeat(12, minmax(0, 1fr));
}

.lead-form .field {
  display: block;
  font-size: .92rem;
  color: var(--muted);
}

.lead-form .f-label {
  display: block;
  margin: 0 0 .46rem;
  font-weight: 700;
  color: #334469;
}

.lead-form input,
.lead-form textarea {
  display: block;
  width: 100% !important;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: .9rem .92rem;
  min-height: 52px;
  font: inherit;
  font-size: .97rem;
  color: var(--ink);
  background: var(--panel);
}

.lead-form textarea {
  resize: vertical;
  min-height: 170px;
}

.lead-form input:focus,
.lead-form textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(47, 67, 111, 0.16);
}

.f-actions {
  display: flex;
  align-items: flex-start;
  gap: .95rem;
  flex-wrap: wrap;
  margin-top: .28rem;
}

.lead-form .btn.solid {
  min-height: 48px;
  padding-inline: 1.3rem;
}

.form-status {
  margin: 0;
  font-size: .94rem;
  color: var(--muted);
  line-height: 1.45;
  max-width: 56ch;
}

.form-status.ok { color: #16864e; }
.form-status.err { color: #b13636; }

.col-12 { grid-column: span 12; }
.col-6 { grid-column: span 6; }
.col-4 { grid-column: span 4; }

.honey {
  position: absolute !important;
  left: -9999px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

@media (max-width: 980px) {
  .page-shell.page-afiliaciones {
    width: 94vw;
  }
  .page-shell.page-afiliaciones .content-card {
    padding: .92rem;
  }
  .page-shell.page-afiliaciones .content-card h2 {
    font-size: 1.45rem;
  }
  .f-grid { grid-template-columns: 1fr; }
  .col-12,
  .col-6,
  .col-4 { grid-column: auto; }
  .lead-form {
    gap: .95rem;
    padding: .98rem;
  }
  .lead-form input,
  .lead-form textarea {
    min-height: 48px;
    font-size: 16px;
  }
  .lead-form textarea {
    min-height: 140px;
  }
  .f-actions {
    flex-direction: column;
    align-items: stretch;
    gap: .55rem;
  }
  .lead-form .btn.solid {
    width: 100%;
    justify-content: center;
  }
  .form-status {
    max-width: none;
    font-size: .9rem;
  }
}
