/* ─── Estudio Vecinos · Landing styles ─── */
:root {
  --ink: #0a0a0a;
  --ink-2: #111111;
  --ink-3: #161616;
  --ink-4: #1a1a1a;
  --line: rgba(255,255,255,0.10);
  --line-strong: rgba(255,255,255,0.18);
  --line-dark: rgba(0,0,0,0.10);
  --fg: #ffffff;
  --fg-2: #e8e8e8;
  --fg-3: #b3b3b3;
  --fg-4: #8c8c8c;
  --fg-5: #666666;
  --fg-6: #4d4d4d;
  --accent: #1d9e75;
  --accent-soft: #5dcaa5;
  --accent-bg: #0d1f1a;
  --paper: #ffffff;
  --paper-2: #f5f5f5;
  --eyebrow: 'Inter', system-ui, sans-serif;
  --display: 'Inter', system-ui, sans-serif;
  --body: 'Inter', system-ui, sans-serif;
  --shell-w: 1280px;
  --a11y-scale: 1;
  font-size: calc(16px * var(--a11y-scale));
}

/* ─── Light mode ─── */
html[data-theme="light"] {
  --ink: #ffffff;
  --ink-2: #f7f7f5;
  --ink-3: #efefec;
  --ink-4: #e8e8e4;
  --line: rgba(10,10,10,0.10);
  --line-strong: rgba(10,10,10,0.18);
  --fg: #0a0a0a;
  --fg-2: #1a1a1a;
  --fg-3: #404040;
  --fg-4: #595959;
  --fg-5: #737373;
  --fg-6: #a3a3a3;
  --accent-bg: #e6f5ee;
  --paper: #0a0a0a;
  --paper-2: #161616;
}
html[data-theme="light"] body { background: #ffffff; color: #0a0a0a; }
html[data-theme="light"] .nav { background: rgba(255,255,255,0.85); }
html[data-theme="light"] .nav__brand span,
html[data-theme="light"] .nav__brand svg { color: #0a0a0a; }
html[data-theme="light"] .nav__cta { background: #0a0a0a; color: #fff; }
html[data-theme="light"] .nav__cta:hover { background: #1a1a1a; }
html[data-theme="light"] .hero { background: #ffffff; }
html[data-theme="light"] .hero__media video { filter: grayscale(20%) contrast(1.05) invert(0); }
html[data-theme="light"] .hero__title,
html[data-theme="light"] .contacto__title,
html[data-theme="light"] .section__title { color: #0a0a0a; }
html[data-theme="light"] .hero__lede,
html[data-theme="light"] .section__lede,
html[data-theme="light"] .contacto__lede { color: #595959; }
html[data-theme="light"] .section--dark,
html[data-theme="light"] .section--ink2 { background: #f7f7f5; color: #0a0a0a; border-top-color: rgba(10,10,10,0.08); }
html[data-theme="light"] .pilares { background: #efefec; }
html[data-theme="light"] .servicio,
html[data-theme="light"] .miembro,
html[data-theme="light"] .somos__quote { border-color: rgba(10,10,10,0.14); }
html[data-theme="light"] .servicio__title,
html[data-theme="light"] .pilar__name,
html[data-theme="light"] .miembro__name { color: #0a0a0a; }
html[data-theme="light"] .servicio__desc,
html[data-theme="light"] .pilar__copy,
html[data-theme="light"] .miembro__role,
html[data-theme="light"] .somos__quote p { color: #595959; }
html[data-theme="light"] .somos__quote .meta,
html[data-theme="light"] .eyebrow { color: #737373; }
html[data-theme="light"] .pilar__line { background: rgba(10,10,10,0.18); }
html[data-theme="light"] .avatar { background: linear-gradient(135deg, rgba(10,10,10,0.10), rgba(10,10,10,0.04)); color: #0a0a0a; border-color: rgba(10,10,10,0.10); }
html[data-theme="light"] .section--paper { background: #0a0a0a; color: #fff; }
html[data-theme="light"] .section--paper .caso__name { color: #fff; }
html[data-theme="light"] .section--paper .caso__desc,
html[data-theme="light"] .section--paper .caso__body { color: #b3b3b3; }
html[data-theme="light"] .section--paper .caso__stat { background: #161616; border-color: #2e2e2e; }
html[data-theme="light"] .section--paper .caso__stat .num { color: #fff; }
html[data-theme="light"] .section--paper .caso__stat .lbl { color: #a3a3a3; }
html[data-theme="light"] .section--paper .caso__chart { background: #161616; border-color: #2e2e2e; }
html[data-theme="light"] .section--paper .caso__chart-head .lbl,
html[data-theme="light"] .section--paper .caso__chart-head .leg { color: #a3a3a3; }
html[data-theme="light"] .section--paper .caso__tag { background: var(--accent); color: #fff; }
html[data-theme="light"] .contacto { background: #f7f7f5; border-top-color: rgba(10,10,10,0.08); }
html[data-theme="light"] .cdcard { background: #ffffff; border-color: rgba(10,10,10,0.10); }
html[data-theme="light"] .cdcard .val { color: #0a0a0a; }
html[data-theme="light"] .btn--light { background: #0a0a0a; color: #fff; }
html[data-theme="light"] .btn--ghost { color: #595959; border-color: rgba(10,10,10,0.18); }
html[data-theme="light"] .btn--ghost:hover { color: #0a0a0a; border-color: rgba(10,10,10,0.4); }
html[data-theme="light"] .footer { background: #0a0a0a; color: #fff; }
html[data-theme="light"] .footer__brand,
html[data-theme="light"] .footer__brand svg { color: #fff; }

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--body);
  background: var(--ink);
  color: var(--fg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
input, textarea, select { font-family: inherit; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--accent); color: #fff; }

.shell {
  max-width: var(--shell-w);
  margin: 0 auto;
  padding: 0 64px;
}
@media (max-width: 900px) { .shell { padding: 0 28px; } }
@media (max-width: 540px) { .shell { padding: 0 20px; } }

/* ─── Nav ─── */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10,10,10,0.85);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 24px;
}
.nav__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  letter-spacing: -0.5px;
}
.nav__brand svg { width: 42px; height: 27px; color: #fff; }
.nav__links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav__link {
  font-size: 13px;
  color: var(--fg-4);
  letter-spacing: 0.2px;
  transition: color .2s ease;
  position: relative;
}
.nav__link:hover { color: var(--fg); }
.nav__link::after {
  content: '';
  position: absolute;
  left: 50%; bottom: -6px;
  width: 0; height: 1px;
  background: var(--accent);
  transition: width .25s ease, left .25s ease;
}
.nav__link:hover::after { width: 100%; left: 0; }
.nav__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 18px;
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  font-weight: 700;
  font-size: 14px;
  transition: transform .2s ease, background .2s ease;
}
.nav__cta:hover { transform: translateY(-1px); background: #f0f0f0; }
.nav__burger {
  display: none;
  width: 40px; height: 40px;
  border-radius: 8px;
  border: 1px solid var(--line-strong);
  align-items: center; justify-content: center;
}
.nav__menu { display: none; }

@media (max-width: 800px) {
  .nav__links { display: none; }
  .nav__cta { display: none; }
  .nav__burger { display: inline-flex; }
  .nav__menu {
    display: flex;
    position: fixed; inset: 72px 0 0 0;
    background: rgba(10,10,10,0.96);
    backdrop-filter: blur(14px);
    padding: 32px 28px;
    display: flex; flex-direction: column; gap: 24px;
    transform: translateY(-100%);
    transition: transform .3s ease;
    z-index: 40;
  }
  .nav__menu.is-open { transform: translateY(0); }
  .nav__menu a {
    font-size: 24px;
    color: var(--fg);
    font-weight: 500;
  }
  .nav__menu .nav__cta {
    display: inline-flex;
    margin-top: 16px;
    height: 48px;
  }
}

/* ─── Hero ─── */
.hero {
  position: relative;
  min-height: 760px;
  height: 100vh;
  max-height: 920px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  background: var(--ink);
}
.hero__media {
  position: absolute; inset: 0;
  overflow: hidden;
}
.hero__media video,
.hero__media img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(20%) contrast(1.05);
}
.hero__overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(10,10,10,0.55) 0%, rgba(10,10,10,0.78) 60%, rgba(10,10,10,0.92) 100%);
}
.hero__grain {
  position: absolute; inset: 0;
  pointer-events: none;
  opacity: .06;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='.6'/%3E%3C/svg%3E");
}
.hero__inner {
  position: relative;
  width: 100%;
  padding-top: 80px;
  padding-bottom: 88px;
}
.hero__eyebrow {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 2.5px;
  color: var(--fg-4);
  text-transform: uppercase;
  margin-bottom: 24px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.hero__eyebrow::before {
  content: '';
  width: 28px; height: 1px;
  background: var(--accent);
}
.hero__title {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(40px, 7.2vw, 88px);
  line-height: 0.95;
  letter-spacing: -0.03em;
  margin: 0 0 28px;
  max-width: 14ch;
  text-wrap: balance;
}
.hero__title em {
  font-style: italic;
  font-weight: 700;
  color: var(--accent-soft);
}
.hero__lede {
  max-width: 560px;
  font-size: clamp(15px, 1.2vw, 17px);
  line-height: 1.6;
  color: var(--fg-3);
  margin: 0 0 40px;
}
.hero__ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 50px;
  padding: 0 26px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 15px;
  transition: transform .18s ease, background .18s ease, border-color .18s ease, color .18s ease;
  cursor: pointer;
}
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: #25b386; transform: translateY(-1px); }
.btn--ghost {
  background: transparent;
  color: var(--fg-3);
  border: 1px solid rgba(255,255,255,0.18);
}
.btn--ghost:hover { color: #fff; border-color: rgba(255,255,255,0.4); }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { background: #f0f0f0; transform: translateY(-1px); }
.btn .arr { transition: transform .2s ease; }
.btn:hover .arr { transform: translate(3px, -1px); }

.hero__scroll {
  position: absolute;
  right: 64px; bottom: 32px;
  font-size: 10px;
  letter-spacing: 2.5px;
  color: var(--fg-5);
  display: flex; align-items: center; gap: 10px;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}
.hero__scroll span { writing-mode: horizontal-tb; transform: rotate(180deg); display: inline-block; }
@media (max-width: 800px) { .hero__scroll { display: none; } }

/* ─── Section common ─── */
.section { position: relative; padding: 120px 0; }
.section--dark { background: var(--ink); border-top: 1px solid var(--line); }
.section--ink2 { background: var(--ink-2); border-top: 1px solid var(--line); }
.section--paper { background: var(--paper); color: var(--ink); }

.eyebrow {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 2.5px;
  color: var(--fg-6);
  text-transform: uppercase;
}
.section--paper .eyebrow { color: #737373; }

.section__head {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: 64px;
}
.section__title {
  font-family: var(--display);
  font-size: clamp(36px, 4.6vw, 56px);
  line-height: 1;
  font-weight: 900;
  letter-spacing: -0.03em;
  margin: 0;
}
.section__lede {
  max-width: 640px;
  font-size: 17px;
  line-height: 1.55;
  color: var(--fg-3);
  margin: 0;
}
.section--paper .section__lede { color: #595959; }

/* ─── Somos (about) ─── */
.somos {
  display: grid;
  grid-template-columns: 1fr 560px;
  gap: 72px;
  align-items: start;
}
.somos__quote {
  border: 1px solid #383838;
  background: rgba(255,255,255,0.02);
  border-radius: 14px;
  padding: 40px;
  position: relative;
}
.somos__quote::before {
  content: '"';
  position: absolute;
  top: -8px; left: 24px;
  font-family: var(--display);
  font-size: 100px;
  font-weight: 900;
  line-height: 1;
  color: var(--accent);
  opacity: .35;
}
.somos__quote p {
  font-style: italic;
  color: #a6a6a6;
  font-size: 17px;
  line-height: 1.65;
  margin: 0 0 32px;
}
.somos__quote .meta {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 2px;
  color: var(--fg-6);
  text-transform: uppercase;
}
@media (max-width: 1000px) { .somos { grid-template-columns: 1fr; gap: 32px; } }

/* ─── Servicios ─── */
.servicios__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.servicio {
  border: 1px solid #383838;
  border-radius: 14px;
  padding: 28px;
  min-height: 240px;
  display: flex;
  flex-direction: column;
  transition: transform .25s ease, border-color .25s ease, background .25s ease;
  cursor: default;
  position: relative;
  overflow: hidden;
}
.servicio:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  background: rgba(29,158,117,0.04);
}
.servicio__num {
  font-family: var(--display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--accent-soft);
  margin-bottom: 28px;
}
.servicio__title {
  font-family: var(--display);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 12px;
  line-height: 1.2;
}
.servicio__desc {
  font-size: 14px;
  line-height: 1.55;
  color: var(--fg-4);
  margin: 0;
  flex: 1;
}
.servicio__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 24px;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent-soft);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .25s ease, transform .25s ease;
}
.servicio:hover .servicio__cta { opacity: 1; transform: translateY(0); }

@media (max-width: 1100px) { .servicios__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .servicios__grid { grid-template-columns: 1fr; } }

/* ─── Pilares ─── */
.pilares {
  background: #0e0e0e;
  border-top: 1px solid var(--line);
}
.pilares__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 64px;
  margin-top: 64px;
}
.pilar { position: relative; }
.pilar__line {
  height: 2px;
  background: var(--line-strong);
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
}
.pilar__line::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--accent);
  transform-origin: left;
  transform: scaleX(0);
  transition: transform .8s cubic-bezier(.2,.7,.2,1);
}
.pilar.is-in .pilar__line::after { transform: scaleX(1); }
.pilar__name {
  font-family: var(--display);
  font-style: italic;
  font-weight: 700;
  font-size: clamp(32px, 3vw, 44px);
  letter-spacing: -0.02em;
  margin: 0 0 16px;
  line-height: 1;
}
.pilar__copy {
  font-size: 14px;
  line-height: 1.7;
  color: var(--fg-4);
  margin: 0;
  max-width: 36ch;
}
@media (max-width: 900px) { .pilares__grid { grid-template-columns: 1fr; gap: 40px; } }

/* ─── Equipo ─── */
.equipo__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 56px;
}
.miembro {
  border: 1px solid #333;
  border-radius: 14px;
  padding: 28px;
  display: flex;
  align-items: center;
  gap: 20px;
  transition: border-color .25s ease, background .25s ease;
}
.miembro:hover {
  border-color: var(--accent);
  background: rgba(29,158,117,0.04);
}
.avatar {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(255,255,255,0.14), rgba(255,255,255,0.04));
  display: flex; align-items: center; justify-content: center;
  font-family: var(--display);
  font-weight: 700;
  font-size: 16px;
  color: #fff;
  flex-shrink: 0;
  border: 1px solid rgba(255,255,255,0.08);
  letter-spacing: 1px;
}
.miembro__name {
  font-family: var(--display);
  font-weight: 700;
  font-size: 16px;
  margin: 0 0 4px;
  letter-spacing: -0.01em;
}
.miembro__role {
  font-size: 12px;
  color: var(--fg-4);
  margin: 0;
  line-height: 1.4;
}
@media (max-width: 900px) { .equipo__grid { grid-template-columns: 1fr; } }

/* ─── Caso de éxito (paper) ─── */
.caso {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 96px;
  align-items: start;
}
.caso__tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 30px;
  padding: 0 14px;
  border-radius: 4px;
  background: var(--ink);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 24px;
}
.caso__tag .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 1.6s ease infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .4; transform: scale(1.4); }
}
.caso__name {
  font-family: var(--display);
  font-style: italic;
  font-weight: 700;
  font-size: clamp(48px, 5.5vw, 72px);
  letter-spacing: -0.03em;
  line-height: 1;
  margin: 0 0 16px;
  color: var(--ink);
}
.caso__desc {
  font-size: 15px;
  color: #666;
  margin: 0 0 32px;
}
.caso__stats {
  display: flex;
  gap: 12px;
  margin-bottom: 32px;
}
.caso__stat {
  background: var(--paper-2);
  border-radius: 10px;
  padding: 16px 22px;
  min-width: 140px;
  border: 1px solid #ececec;
}
.caso__stat .num {
  font-family: var(--display);
  font-weight: 900;
  font-size: 36px;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1;
  margin-bottom: 6px;
}
.caso__stat .lbl {
  font-size: 11px;
  color: #737373;
  letter-spacing: 0.3px;
}
.caso__body {
  font-size: 16px;
  line-height: 1.65;
  color: #595959;
  margin: 0;
}
.caso__chart {
  margin-top: 24px;
  background: var(--paper-2);
  border: 1px solid #ececec;
  border-radius: 14px;
  padding: 24px;
}
.caso__chart-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 16px;
}
.caso__chart-head .lbl {
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #737373;
}
.caso__chart-head .leg {
  font-size: 11px;
  color: #737373;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.caso__chart-head .leg::before {
  content: '';
  width: 8px; height: 8px; background: var(--accent); border-radius: 2px;
}
.caso__chart svg { width: 100%; height: auto; }
@media (max-width: 1000px) { .caso { grid-template-columns: 1fr; gap: 40px; } }

/* ─── Contacto ─── */
.contacto {
  text-align: center;
  padding: 120px 0;
  background: var(--ink);
  border-top: 1px solid var(--line);
}
.contacto__title {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(40px, 5.5vw, 72px);
  letter-spacing: -0.03em;
  line-height: 1;
  margin: 0 0 16px;
  text-wrap: balance;
}
.contacto__title em { font-style: italic; font-weight: 700; color: var(--accent-soft); }
.contacto__lede {
  color: var(--fg-3);
  font-size: 17px;
  margin: 0 auto 48px;
  max-width: 540px;
}
.contacto__cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  max-width: 880px;
  margin: 0 auto 40px;
}
.cdcard {
  border: 1px solid #383838;
  background: rgba(255,255,255,0.04);
  border-radius: 10px;
  padding: 18px 22px;
  text-align: left;
  transition: border-color .2s ease, background .2s ease;
  display: block;
}
.cdcard:hover { border-color: var(--accent); background: rgba(29,158,117,0.06); }
.cdcard .lbl {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 2px;
  color: var(--fg-6);
  margin-bottom: 8px;
}
.cdcard .val {
  font-size: 14px;
  color: #b3b3b3;
  font-weight: 500;
}
@media (max-width: 800px) { .contacto__cards { grid-template-columns: 1fr; } }

/* ─── Footer ─── */
.footer {
  border-top: 1px solid var(--line);
  background: var(--ink);
  padding: 28px 0;
}
.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 12px;
  color: var(--fg-4);
}
.footer__brand {
  display: flex; align-items: center; gap: 10px;
  color: #fff;
}
.footer__brand svg { width: 32px; height: 21px; color: #fff; }
@media (max-width: 700px) {
  .footer__inner { flex-direction: column; align-items: flex-start; gap: 12px; }
}

/* ─── Reveal animations ─── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1);
}
.reveal.is-in { opacity: 1; transform: none; }
.reveal--delay-1 { transition-delay: .08s; }
.reveal--delay-2 { transition-delay: .16s; }
.reveal--delay-3 { transition-delay: .24s; }
.reveal--delay-4 { transition-delay: .32s; }

/* ─── A11y panel ─── */
.a11y-fab {
  position: fixed;
  right: 18px; bottom: 18px;
  z-index: 90;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
  border: 2px solid rgba(255,255,255,0.15);
  transition: transform .2s ease;
}
.a11y-fab:hover { transform: scale(1.06); }
.a11y-fab:focus-visible { outline: 3px solid var(--accent-soft); outline-offset: 3px; }

.a11y-panel {
  position: fixed;
  right: 18px; bottom: 78px;
  z-index: 91;
  width: 280px;
  background: #111;
  color: #fff;
  border: 1px solid #2e2e2e;
  border-radius: 14px;
  padding: 16px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.5);
  font-family: 'Inter', system-ui, sans-serif;
  transform-origin: bottom right;
  transform: scale(0.9) translateY(8px);
  opacity: 0;
  pointer-events: none;
  transition: transform .2s ease, opacity .2s ease;
}
.a11y-panel.is-open { transform: none; opacity: 1; pointer-events: auto; }
html[data-theme="light"] .a11y-panel { background: #fff; color: #0a0a0a; border-color: rgba(10,10,10,0.12); box-shadow: 0 12px 40px rgba(0,0,0,0.15); }

.a11y-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 14px;
}
.a11y-title { font-size: 13px; font-weight: 700; letter-spacing: 0.3px; }
.a11y-close {
  width: 26px; height: 26px;
  border-radius: 6px;
  display: inline-flex; align-items: center; justify-content: center;
  color: currentColor; opacity: .6;
}
.a11y-close:hover { opacity: 1; background: rgba(255,255,255,0.06); }
html[data-theme="light"] .a11y-close:hover { background: rgba(0,0,0,0.06); }

.a11y-section { margin-bottom: 14px; }
.a11y-section:last-child { margin-bottom: 0; }
.a11y-label {
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  opacity: .55;
  margin-bottom: 8px;
}
.a11y-segs {
  display: flex; gap: 4px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  padding: 3px;
}
html[data-theme="light"] .a11y-segs { background: rgba(0,0,0,0.04); border-color: rgba(0,0,0,0.08); }
.a11y-seg {
  flex: 1;
  height: 32px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  color: currentColor;
  opacity: .65;
  transition: background .15s, opacity .15s;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
}
.a11y-seg:hover { opacity: .9; }
.a11y-seg.is-on {
  background: var(--accent);
  color: #fff;
  opacity: 1;
}
.a11y-row-fs {
  display: grid;
  grid-template-columns: 36px 1fr 36px;
  gap: 8px;
  align-items: center;
}
.a11y-step {
  height: 36px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.1);
  font-size: 16px;
  font-weight: 700;
  color: currentColor;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background .15s, border-color .15s;
}
html[data-theme="light"] .a11y-step { border-color: rgba(0,0,0,0.12); }
.a11y-step:hover { background: rgba(255,255,255,0.06); border-color: var(--accent); }
html[data-theme="light"] .a11y-step:hover { background: rgba(0,0,0,0.04); }
.a11y-step:disabled { opacity: .35; cursor: not-allowed; }
.a11y-fs-val {
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 0;
  background: rgba(255,255,255,0.05);
  border-radius: 8px;
}
html[data-theme="light"] .a11y-fs-val { background: rgba(0,0,0,0.04); }
.a11y-reset {
  width: 100%;
  margin-top: 14px;
  height: 34px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  color: currentColor;
  opacity: .6;
  border: 1px solid rgba(255,255,255,0.1);
}
html[data-theme="light"] .a11y-reset { border-color: rgba(0,0,0,0.12); }
.a11y-reset:hover { opacity: 1; }

/* ─── Configurador modal ─── */
.modal {
  position: fixed; inset: 0;
  z-index: 100;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(8px);
  opacity: 0; pointer-events: none;
  transition: opacity .25s ease;
}
.modal.is-open { opacity: 1; pointer-events: auto; }
.modal__panel {
  width: 100%;
  max-width: 760px;
  max-height: 92vh;
  background: #111;
  border: 1px solid #2e2e2e;
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transform: translateY(16px) scale(.98);
  transition: transform .3s cubic-bezier(.2,.7,.2,1);
}
.modal.is-open .modal__panel { transform: none; }
.modal__head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 20px 28px;
  border-bottom: 1px solid #1f1f1f;
  flex-shrink: 0;
}
.modal__head .lbl {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 2px;
  color: var(--fg-6);
  text-transform: uppercase;
}
.modal__close {
  width: 32px; height: 32px;
  border-radius: 8px;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--fg-4);
  transition: color .15s, background .15s;
}
.modal__close:hover { color: #fff; background: rgba(255,255,255,0.06); }
.modal__body { overflow-y: auto; padding: 28px; }

.cfg__step-lbl {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 2px;
  color: var(--fg-5);
  text-transform: uppercase;
  margin: 0 0 8px;
}
.cfg__step-title {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 24px;
  color: var(--fg-2);
  display: flex; align-items: center; gap: 12px;
}
.cfg__badge {
  display: inline-flex;
  align-items: center; justify-content: center;
  min-width: 26px; height: 22px;
  padding: 0 8px;
  border-radius: 11px;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}
.cfg__cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.cfg__card {
  border-radius: 14px;
  border: 1px solid #2e2e2e;
  background: #161616;
  padding: 16px;
  text-align: left;
  position: relative;
  transition: border-color .15s, background .15s, transform .15s;
  min-height: 124px;
}
.cfg__card:hover { border-color: #555; }
.cfg__card.is-on {
  border-color: var(--accent);
  background: var(--accent-bg);
  border-width: 2px;
}
.cfg__card .ic {
  font-size: 20px;
  line-height: 1;
  margin-bottom: 12px;
}
.cfg__card .nm {
  font-size: 13px;
  font-weight: 500;
  color: var(--fg-2);
  margin-bottom: 6px;
}
.cfg__card .ds {
  font-size: 11px;
  color: var(--fg-5);
  line-height: 1.45;
}
.cfg__card.is-on .ds { color: var(--accent-soft); }
.cfg__check {
  position: absolute;
  top: 12px; right: 12px;
  width: 18px; height: 18px;
  border-radius: 50%;
  border: 1.5px solid #383838;
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent;
  color: transparent;
  font-size: 11px; font-weight: 700;
  transition: all .15s;
}
.cfg__card.is-on .cfg__check {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
@media (max-width: 640px) { .cfg__cards { grid-template-columns: repeat(2, 1fr); } }

.cfg__divider {
  height: 1px;
  background: #2e2e2e;
  margin: 32px 0 24px;
}
.cfg__summary {
  border-radius: 14px;
  border: 1px solid #2e2e2e;
  background: #161616;
  padding: 18px;
  min-height: 76px;
}
.cfg__summary .lbl {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 2px;
  color: var(--fg-5);
  text-transform: uppercase;
  margin-bottom: 12px;
}
.cfg__chips {
  display: flex; flex-wrap: wrap; gap: 8px;
}
.cfg__chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(29,158,117,0.12);
  color: var(--accent-soft);
  border: 1px solid rgba(29,158,117,0.4);
  border-radius: 100px;
  padding: 6px 12px 6px 10px;
  font-size: 12px;
  font-weight: 500;
}
.cfg__chip .x { opacity: .7; cursor: pointer; }
.cfg__chip .x:hover { opacity: 1; }
.cfg__empty { color: var(--fg-6); font-size: 13px; font-style: italic; }

.cfg__field { margin-bottom: 14px; }
.cfg__label {
  font-size: 11px;
  letter-spacing: 0.5px;
  color: var(--fg-5);
  display: block;
  margin-bottom: 6px;
}
.cfg__input,
.cfg__textarea {
  width: 100%;
  background: #161616;
  border: 1px solid #2e2e2e;
  border-radius: 10px;
  padding: 12px 14px;
  color: var(--fg-2);
  font-size: 14px;
  transition: border-color .15s;
  outline: none;
}
.cfg__input:focus, .cfg__textarea:focus { border-color: var(--accent); }
.cfg__textarea { min-height: 90px; resize: vertical; }
.cfg__row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 540px) { .cfg__row { grid-template-columns: 1fr; } }

.cfg__submit {
  width: 100%;
  height: 54px;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  margin-top: 12px;
  transition: background .15s, transform .15s, opacity .15s;
}
.cfg__submit:hover:not(:disabled) { background: #25b386; }
.cfg__submit:disabled { opacity: .4; cursor: not-allowed; }
.cfg__success {
  background: rgba(29,158,117,0.12);
  border: 1px solid rgba(29,158,117,0.4);
  color: var(--accent-soft);
  border-radius: 10px;
  padding: 16px;
  margin-top: 12px;
  font-size: 14px;
  display: flex; align-items: center; gap: 10px;
}
