/* =========================================================
   Ferric — Landing
   ========================================================= */

:root {
  --ink: #0C0D12;        /* Negro Ferric · background principal */
  --ink-2: #15171E;      /* Graphite · background secundario */
  --ink-3: #20232B;      /* Iron Gray · superficies / cards */
  --bone: #F5F5F3;       /* Soft White · texto principal */
  --paper: #20232B;
  --text: #F5F5F3;
  --muted-light: #9A9DA6;
  --muted-dark: #9A9DA6;  /* Steel Gray · texto secundario */
  --subtle-dark: #7A7E88;
  --line-dark: rgba(245, 245, 243, 0.10);
  --line-light: rgba(245, 245, 243, 0.14);
  --oak: #7C8CFF;        /* Electric Steel · acento principal */
  --oak-deep: #A8E6FF;   /* Ice Blue · acento secundario */
  --oak-ink: #14162A;    /* texto secundario sobre el acento */

  --font-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-display: 'Space Grotesk', 'Inter', system-ui, sans-serif;

  --container: 1280px;
  --gutter: clamp(20px, 5vw, 80px);
  --section-y: clamp(72px, 9vw, 120px);
  --radius-sm: 14px;
  --radius: 20px;
  --radius-lg: 28px;
  --header-h: 96px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  color: var(--bone);
  background: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, figure, blockquote, dl, dd, ol, ul { margin: 0; }
ol, ul { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--oak); outline-offset: 3px; border-radius: 6px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  padding: 10px 16px; border-radius: 999px; background: var(--oak); color: var(--ink); font-weight: 600;
}
.skip-link:focus { top: 16px; }

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin: 0 auto; padding-inline: var(--gutter); }
.icon { width: 1.1em; height: 1.1em; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Tipografía ---------- */
h1, h2, h3, .hero-title, .section-title, .stat dd, .map-card__city, .hero-product__title, .footer-strong {
  font-family: var(--font-display);
}
/* Palabra destacada en títulos */
.serif { font-family: var(--font-display); font-style: normal; font-weight: inherit; }
.eyebrow {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 20px;
  font-size: 13px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--oak-deep);
}
.eyebrow--oak, .section--dark .eyebrow, .hero .eyebrow { color: var(--oak); }
.eyebrow--ink { color: var(--oak-ink); }
.eyebrow--line::before { content: ""; width: 28px; height: 1px; background: currentColor; }

.hero-title {
  font-size: clamp(46px, 5.6vw, 76px);
  line-height: 0.98; font-weight: 500; letter-spacing: -0.035em;
}
.hero-title .serif { color: var(--oak); }
.section-title {
  font-size: clamp(38px, 4.2vw, 60px);
  line-height: 1.02; font-weight: 500; letter-spacing: -0.035em;
}
.section-title--xl { font-size: clamp(40px, 4.6vw, 66px); }
.section-title .serif { color: var(--oak-deep); }
.section--dark .section-title .serif { color: var(--oak); }
.cta .section-title .serif { color: inherit; }

.lead { font-size: clamp(16px, 1.3vw, 19px); line-height: 1.6; color: var(--muted-dark); max-width: 520px; }
.lead--dark { color: var(--muted-light); }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 52px; padding: 0 24px;
  border-radius: 999px; border: 1px solid transparent;
  font-size: 15px; font-weight: 600; white-space: nowrap;
  transition: transform .25s var(--ease), background-color .25s, color .25s, border-color .25s;
}
.btn .icon { transition: transform .25s var(--ease); }
.btn:hover .icon { transform: translateX(3px); }
.btn:active { transform: scale(.98); }
.btn--sm { height: 46px; padding: 0 20px; font-size: 14px; }
.btn--lg { height: 56px; padding: 0 28px; font-size: 16px; }
.btn--oak { background: var(--oak); color: var(--ink); }
.btn--oak:hover { background: #97A3FF; }
.btn--light { background: var(--bone); color: var(--ink); }
.btn--light:hover { background: #fff; color: var(--ink); }
.btn--dark { background: var(--bone); color: var(--ink); }
.btn--dark:hover { background: #fff; }
.btn--ghost { border-color: rgba(245, 245, 243, .24); color: var(--bone); }
.btn--ghost:hover { border-color: var(--bone); }
.btn--ink { background: var(--ink); color: var(--bone); }
.btn--ink:hover { background: #0B0B10; }
.btn--outline-ink { border: 1.5px solid var(--ink); color: var(--ink); }
.btn--outline-ink:hover { background: var(--ink); color: var(--bone); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 999px; flex-shrink: 0;
  transition: transform .3s var(--ease);
}
.icon-btn--dark { background: var(--bone); color: var(--ink); }
.icon-btn--oak { background: var(--oak); color: var(--ink); }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 15px; font-weight: 600;
  border-bottom: 1.5px solid currentColor; padding-bottom: 2px;
}
.link-arrow .icon { transition: transform .25s var(--ease); }
.link-arrow:hover .icon { transform: translateX(3px); }

/* ---------- Header (píldora flotante) ---------- */
.site-header {
  position: fixed; top: 14px; left: 0; right: 0; z-index: 50;
  display: flex; justify-content: center; padding: 0 12px;
  pointer-events: none;
}
.header-pill {
  position: relative; pointer-events: auto;
  height: 64px; display: flex; align-items: center; gap: 24px;
  padding: 0 8px 0 24px; border-radius: 999px;
  background: rgba(21, 23, 30, .72);
  border: 1px solid rgba(245, 245, 243, .10);
  backdrop-filter: blur(18px) saturate(1.3); -webkit-backdrop-filter: blur(18px) saturate(1.3);
  box-shadow: 0 16px 40px rgba(0, 0, 0, .35);
}
.brand { display: flex; align-items: center; flex-shrink: 0; }
.brand img { width: 76px; height: auto; }

.main-nav__inner { display: flex; align-items: center; gap: 2px; font-size: 14px; font-weight: 500; color: var(--muted-dark); }
.main-nav a:not(.btn) { padding: 9px 14px; border-radius: 999px; white-space: nowrap; transition: color .2s, background-color .2s; }
.main-nav a:not(.btn):hover { color: var(--bone); background: rgba(245, 245, 243, .06); }
.main-nav a.is-active { color: var(--bone); background: rgba(124, 140, 255, .18); }
.nav-sep, .nav-cat, .nav-cta-mobile { display: none; }

.header-actions { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.header-cta { height: 48px; }
.icon-link {
  width: 44px; height: 44px; border-radius: 999px;
  display: flex; align-items: center; justify-content: center; color: var(--bone);
  transition: background-color .2s;
}
.icon-link:hover { background: rgba(245, 245, 243, .1); }
.icon-link .icon { width: 20px; height: 20px; stroke-width: 1.8; }

.menu-toggle {
  display: none; width: 46px; height: 46px; border-radius: 999px;
  border: 1px solid rgba(245, 245, 243, .16); background: transparent;
  position: relative;
}
.menu-toggle span {
  position: absolute; left: 14px; right: 14px; height: 2px; border-radius: 2px; background: var(--bone);
  transition: transform .3s var(--ease), top .3s var(--ease);
}
.menu-toggle span:first-child { top: 18px; }
.menu-toggle span:last-child { top: 26px; }
.menu-toggle[aria-expanded="true"] span:first-child { top: 22px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child { top: 22px; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { --page: var(--ink); background: var(--page); padding: 8px; }
.hero-card {
  position: relative; isolation: isolate; overflow: hidden;
  height: clamp(620px, calc(100svh - 16px), 920px);
  border-radius: 28px; border-top-right-radius: 0; background: var(--ink-3); color: var(--bone);
}

/* Carrusel de fondo */
.hero-slides { position: absolute; inset: 0; z-index: -2; }
.hero-bg {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transform: scale(1.02); transition: opacity 1.2s var(--ease);
}
.hero-bg.is-active { opacity: 1; animation: heroKen 7s linear both; }
@keyframes heroKen { from { transform: scale(1.1); } to { transform: scale(1.02); } }
.hero-scrim {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(25deg, rgba(12,13,18,.88) 0%, rgba(12,13,18,.55) 32%, rgba(12,13,18,.08) 62%),
    linear-gradient(0deg, rgba(12,13,18,.5) 0%, rgba(12,13,18,0) 40%);
}

/* Esquina con menú (notch) */
.hero-notch {
  --r: 28px;
  position: absolute; top: 0; right: 0; z-index: 2;
  width: 230px; padding: 28px 32px 34px;
  display: flex; flex-direction: column; gap: 36px;
  background: var(--page); color: var(--text);
  border-bottom-left-radius: var(--r);
}
.hero-notch::before, .hero-notch::after {
  content: ""; position: absolute; width: var(--r); height: var(--r);
  background: radial-gradient(circle at 0 100%, transparent calc(var(--r) - .5px), var(--page) var(--r));
}
.hero-notch::before { top: 0; left: calc(var(--r) * -1); }
.hero-notch::after { right: 0; bottom: calc(var(--r) * -1); }
.notch-brand img { width: 96px; height: auto; }
.notch-nav { display: flex; flex-direction: column; gap: 14px; font-size: 14px; font-weight: 500; color: var(--muted-light); }
.notch-nav a { width: fit-content; text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 5px; text-decoration-thickness: 1.5px; transition: color .2s, text-decoration-color .2s; }
.notch-nav a:hover { color: var(--text); }
.notch-nav a.is-active { color: var(--text); font-weight: 600; text-decoration-color: var(--oak); }

/* Texto */
.hero-copy {
  position: absolute; left: 56px; bottom: 48px;
  max-width: min(720px, calc(100% - 540px));
  display: flex; flex-direction: column; gap: 20px;
}
.hero-title { font-size: clamp(40px, 4.8vw, 72px); line-height: 1.04; font-weight: 500; letter-spacing: -0.035em; }
.hero-sub { font-size: 16px; line-height: 1.6; color: rgba(245, 245, 243, .85); max-width: 440px; }
.hero-copy .btn-row { margin-top: 12px; }
.btn--glass {
  background: rgba(245,245,243,.12); border-color: rgba(245,245,243,.34); color: var(--bone);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.btn--glass:hover { background: rgba(245,245,243,.22); border-color: var(--bone); }

/* Cursor animado dentro del hero */
.hero-cursor {
  position: absolute; left: 0; top: 0; z-index: 3;
  width: 44px; height: 44px; margin: -22px 0 0 -22px;
  display: none; align-items: center; justify-content: center;
  pointer-events: none; opacity: 0; will-change: transform;
  transition: opacity .3s;
}
.hero-cursor.is-visible { opacity: 1; }
.hero-cursor span {
  position: relative; width: 14px; height: 14px; border-radius: 999px; background: #fff;
  box-shadow: 0 0 0 6px rgba(255,255,255,.28);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background-color .25s;
}
.hero-cursor span::after {
  content: ""; position: absolute; inset: -6px; border-radius: inherit;
  border: 1.5px solid rgba(255,255,255,.7);
  animation: cursorPulse 2s ease-out infinite;
}
.hero-cursor.is-hover span { transform: scale(.6); background: var(--ink); box-shadow: 0 0 0 3px var(--bone), 0 0 0 24px rgba(245,245,243,.22); }
.hero-cursor.is-hover span::after { animation: none; opacity: 0; }
.hero-cursor.is-down span { transform: scale(.45); }
@keyframes cursorPulse { from { transform: scale(1); opacity: 1; } to { transform: scale(2.4); opacity: 0; } }
@media (hover: hover) and (pointer: fine) {
  .hero-cursor { display: flex; }
  .hero-card.has-cursor, .hero-card.has-cursor :is(a, button) { cursor: none; }
  .hero-card.has-cursor .hero-notch { cursor: auto; }
  .hero-card.has-cursor .hero-notch a { cursor: pointer; }
}

/* Tarjeta del proyecto */
.hero-product {
  position: absolute; right: 32px; bottom: 32px; width: 390px;
  display: flex; gap: 16px; padding: 12px;
  border-radius: 20px; border: 1px solid rgba(255,255,255,.16);
  background: rgba(32, 35, 43, .62);
  backdrop-filter: blur(16px) saturate(1.2); -webkit-backdrop-filter: blur(16px) saturate(1.2);
}
.hero-product__thumb { width: 128px; height: 128px; flex-shrink: 0; border-radius: 12px; object-fit: cover; transition: opacity .25s; }
.hero-product__body { flex: 1; min-width: 0; display: flex; flex-direction: column; padding: 4px 2px 0 0; }
.hero-product__index { font-size: 12px; color: rgba(245,245,243,.72); font-variant-numeric: tabular-nums; }
.hero-product__total { opacity: .6; }
.hero-product__title { margin-top: 6px; font-size: 18px; font-weight: 500; line-height: 1.25; transition: opacity .25s; }
.hero-product__meta { margin-top: 2px; font-size: 13px; color: rgba(245,245,243,.72); transition: opacity .25s; }
.hero-product.is-changing :is(.hero-product__thumb, .hero-product__title, .hero-product__meta) { opacity: 0; }
.hero-product__controls { margin-top: auto; padding-top: 12px; display: flex; align-items: center; justify-content: space-between; }
.hero-arrow {
  width: 36px; height: 36px; border-radius: 999px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(245,245,243,.3); background: transparent; color: var(--bone);
  transition: background-color .2s, border-color .2s;
}
.hero-arrow:hover { background: rgba(245,245,243,.16); border-color: var(--bone); }
.hero-arrow .icon { width: 16px; height: 16px; }
.hero-dots { display: flex; align-items: center; }
.hero-dot { position: relative; width: 14px; height: 32px; padding: 0; border: 0; background: transparent; transition: width .35s var(--ease); }
.hero-dot::before, .hero-dot::after { content: ""; position: absolute; left: 4px; right: 4px; top: 50%; height: 3px; margin-top: -1.5px; border-radius: 999px; }
.hero-dot::before { background: rgba(245,245,243,.35); }
.hero-dot:hover::before { background: rgba(245,245,243,.65); }
.hero-dot.is-active { width: 34px; }
.hero-dot.is-active::after { background: var(--oak); transform-origin: left; animation: heroProgress var(--hero-interval, 6s) linear forwards; }
.is-paused .hero-dot.is-active::after { animation-play-state: paused; }
@keyframes heroProgress { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* La píldora aparece al bajar (en escritorio el menú vive en la esquina del hero) */
@media (min-width: 961px) {
  .site-header .header-pill { transform: translateY(calc(-100% - 24px)); opacity: 0; visibility: hidden; transition: transform .45s var(--ease), opacity .3s, visibility 0s linear .45s; }
  .site-header.is-scrolled .header-pill { transform: none; opacity: 1; visibility: visible; transition: transform .45s var(--ease), opacity .3s; }
}

@media (max-width: 960px) {
  .hero { padding: calc(var(--header-h) + 8px) 8px 8px; }
  .hero-card {
    height: auto; min-height: 640px; border-radius: 24px; border-top-right-radius: 24px;
    display: flex; flex-direction: column; justify-content: flex-end; gap: 32px;
    padding: 32px 24px 16px;
  }
  .hero-notch, .hero-cursor { display: none; }
  .hero-copy { position: static; max-width: none; }
  .hero-product { position: relative; right: auto; bottom: auto; width: auto; max-width: 420px; }
}
@media (max-width: 600px) {
  .hero-card { min-height: calc(100svh - var(--header-h) - 16px); padding: 28px 16px 16px; }
  .hero-copy .btn { flex: 1; }
  .hero-product__thumb { width: 92px; height: 92px; }
  .hero-product__title { font-size: 16px; }
}

/* ---------- Secciones ---------- */
.section { padding-block: var(--section-y); }
.section--bone { background: var(--ink-2); color: var(--text); }
.section--paper { background: var(--ink-2); color: var(--text); }
.section--dark { background: var(--ink); color: var(--bone); }

.section-head { margin-bottom: 64px; }
.section-head--split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 64px; align-items: end; }
.section-head--end > :last-child { justify-self: end; }
.section-head .section-title + .lead { margin-top: 20px; }
.section-head__aside { display: flex; flex-direction: column; align-items: flex-start; gap: 28px; }

/* ---------- Servicios ---------- */
.services-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.service-card { display: flex; flex-direction: column; gap: 8px; }
.service-card__media {
  position: relative; aspect-ratio: 3 / 3.4; margin-bottom: 12px;
  border-radius: var(--radius); overflow: hidden; background: #20232B;
}
.service-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.service-card:hover .service-card__media img { transform: scale(1.06); }
.service-card .badge {
  position: absolute; top: 16px; left: 16px;
  padding: 6px 12px; border-radius: 999px; background: var(--ink); color: var(--bone);
  font-size: 13px; font-weight: 600;
}
.service-card .icon-btn { position: absolute; right: 16px; bottom: 16px; background: var(--bone); color: var(--ink); transition: background-color .3s, transform .3s var(--ease); }
.service-card:hover .icon-btn { background: var(--oak); color: var(--ink); transform: rotate(45deg); }
.service-card h3 { font-size: 22px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; }
.service-card p { font-size: 16px; color: var(--muted-light); }

/* ---------- Proceso ---------- */
.process-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 80px; align-items: stretch; }
.process-media { position: relative; border-radius: var(--radius-lg); overflow: hidden; min-height: 480px; }
.process-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.process-tag {
  position: absolute; left: 24px; bottom: 24px;
  display: flex; gap: 12px; padding: 14px 18px; border-radius: 16px;
  background: rgba(12, 13, 18, .78); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
}
.process-tag span + span::before { content: "·"; color: var(--oak); margin-right: 12px; }
.process-copy { display: flex; flex-direction: column; }
.process-copy .lead { margin-top: 20px; }
.steps { margin-top: 48px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.step {
  display: flex; gap: 20px; align-items: flex-start; padding: 24px;
  border-radius: var(--radius); border: 1px solid var(--line-dark);
  transition: border-color .3s, background-color .3s;
}
.step:hover { border-color: rgba(124, 140, 255, .5); background: var(--ink-2); }
.step__num { font-size: 15px; font-weight: 600; color: var(--oak); padding-top: 3px; }
.step h3 { font-size: 20px; font-weight: 600; margin-bottom: 6px; }
.step p { font-size: 15px; color: var(--muted-dark); }
.step--accent { background: var(--oak); border-color: var(--oak); color: var(--ink); }
.step--accent:hover { background: #97A3FF; border-color: #97A3FF; }
.step--accent .step__num { color: var(--ink); }
.step--accent p { color: var(--oak-ink); }

/* ---------- Proyectos ---------- */
.filters { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.pill {
  height: 44px; padding: 0 18px; border-radius: 999px;
  border: 1px solid rgba(245,245,243,.18); background: transparent; color: var(--text);
  font-size: 14px; font-weight: 600;
  transition: background-color .2s, color .2s, border-color .2s;
}
.pill:hover { border-color: var(--oak); }
.pill.is-active { background: var(--oak); border-color: var(--oak); color: var(--ink); }

.projects-grid {
  display: grid; gap: 20px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-template-rows: repeat(2, 280px);
}
.project { position: relative; border-radius: 24px; overflow: hidden; background: #20232B; }
.project img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.project:hover img { transform: scale(1.05); }
.project--xl { grid-column: span 2; grid-row: span 2; }
.project--tall { grid-row: span 2; }
.project__caption {
  position: absolute; left: 14px; bottom: 14px; max-width: calc(100% - 28px);
  padding: 12px 16px; border-radius: 14px; background: var(--paper);
  transition: transform .4s var(--ease);
}
.project:hover .project__caption { transform: translateY(-4px); }
.project__caption h3 { font-size: 16px; font-weight: 600; line-height: 1.3; }
.project__caption p { font-size: 13px; color: var(--muted-light); }
.project--xl .project__caption { left: 20px; bottom: 20px; padding: 16px 20px; }
.project--xl .project__caption h3 { font-size: 20px; }
.project--xl .project__caption p { font-size: 14px; }

.projects-grid.is-filtered { grid-template-rows: none; grid-auto-rows: 420px; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.projects-grid.is-filtered .project { grid-column: auto; grid-row: auto; }
.project.is-hidden { display: none; }
.empty-state { margin-top: 24px; color: var(--muted-light); }

/* ---------- Cobertura ---------- */
.coverage-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 600px); gap: 80px; align-items: start; }
.coverage-copy .lead { margin-top: 20px; }

.city-list { margin-top: 40px; border-top: 1px solid var(--line-dark); }
.city {
  width: 100%; height: 60px; padding: 0 16px;
  display: flex; align-items: center; gap: 16px;
  border: 0; border-bottom: 1px solid var(--line-dark);
  background: transparent; color: var(--muted-dark);
  font-size: 18px; font-weight: 500; text-align: left;
  transition: background-color .25s, color .25s;
}
.city:hover { color: var(--bone); background: rgba(245, 245, 243, .03); }
.city__dot {
  width: 10px; height: 10px; border-radius: 999px; flex-shrink: 0;
  border: 1.5px solid #5C606B; transition: all .25s;
}
.city__name { flex: 1; }
.city__tag { font-size: 14px; color: #6E727C; }
.city.is-active { background: rgba(124, 140, 255, .12); color: var(--bone); font-weight: 600; }
.city.is-active .city__dot { background: var(--oak); border-color: var(--oak); box-shadow: 0 0 0 5px rgba(124, 140, 255, .25); }
.city.is-active .city__tag { color: var(--oak); }

.zone-form { margin-top: 40px; display: flex; flex-direction: column; gap: 10px; }
.zone-form label { font-size: 14px; font-weight: 600; }
.zone-form__row { display: flex; gap: 10px; }
.zone-form input {
  flex: 1; min-width: 0; height: 56px; padding: 0 20px;
  border-radius: 999px; border: 1px solid rgba(245, 245, 243, .2);
  background: var(--ink-2); font-size: 16px;
  transition: border-color .2s;
}
.zone-form input::placeholder { color: #6E727C; }
.zone-form input:focus { outline: none; border-color: var(--oak); }
.zone-form input[aria-invalid="true"] { border-color: #E08A6A; }
.zone-form .btn { height: 56px; }
.zone-form__msg { min-height: 1.5em; font-size: 14px; color: var(--muted-dark); }
.zone-form__msg a { color: var(--oak); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

.map-card {
  position: relative; border-radius: var(--radius-lg);
  background: var(--ink-2); border: 1px solid rgba(245, 245, 243, .08);
  padding: 28px; display: flex; flex-direction: column; gap: 12px;
}
.map-card__head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; }
.map-card__kicker { font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: #6E727C; }
.map-card__city { margin-top: 4px; font-size: 28px; font-weight: 600; letter-spacing: -0.02em; }
.map-card__desc { font-size: 15px; color: var(--muted-dark); }
.map-card__city, .map-card__desc { transition: opacity .2s; }
.map-card.is-switching .map-card__city, .map-card.is-switching .map-card__desc { opacity: 0; }
.map-legend { display: flex; flex-direction: column; gap: 8px; padding-top: 4px; font-size: 13px; color: var(--muted-dark); white-space: nowrap; }
.map-legend li { display: flex; align-items: center; gap: 8px; }
.legend-dot { width: 8px; height: 8px; border-radius: 999px; background: var(--bone); }
.legend-dot--oak { width: 10px; height: 10px; background: var(--oak); }

.peru-map { width: 100%; max-width: 480px; height: auto; margin: 0 auto; overflow: visible; }
.peru-shape { fill: url(#dots); stroke: #2C2F38; stroke-width: 1; }
.routes path {
  fill: none; stroke: var(--oak); stroke-width: 1.4; stroke-linecap: round;
  stroke-dasharray: 4 4; opacity: .35;
  transition: opacity .3s, stroke-width .3s;
  animation: dash 1.4s linear infinite;
}
.routes path.is-active { opacity: 1; stroke-width: 2; }
@keyframes dash { to { stroke-dashoffset: -16; } }
.sel-ring { transition: transform .6s var(--ease); }
.sel-ring__halo { fill: var(--oak); opacity: .16; animation: pulse 2.4s ease-out infinite; transform-origin: center; transform-box: fill-box; }
.sel-ring__line { fill: none; stroke: var(--oak); stroke-width: 1.5; }
@keyframes pulse { 0% { transform: scale(.6); opacity: .35; } 100% { transform: scale(1.6); opacity: 0; } }
.city-dots circle { fill: var(--bone); }
.hq-dot { fill: var(--oak); stroke: var(--ink-2); stroke-width: 3; }
.map-labels text { font-family: var(--font-sans); font-size: 12px; font-weight: 600; fill: var(--bone); }
.map-labels .is-hq { fill: var(--oak); font-size: 13px; font-weight: 600; }

.features {
  margin-top: 64px; padding-top: 40px; border-top: 1px solid var(--line-dark);
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px;
}
.feature { display: flex; gap: 18px; align-items: flex-start; }
.feature__icon {
  width: 48px; height: 48px; border-radius: 14px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--ink-3); color: var(--oak);
}
.feature__icon .icon { width: 22px; height: 22px; stroke-width: 1.8; }
.feature h3 { font-size: 19px; font-weight: 600; margin-bottom: 6px; }
.feature p { font-size: 15px; color: var(--muted-dark); }

/* ---------- Testimonio ---------- */
.testimonial-grid { display: grid; grid-template-columns: minmax(0, 440px) minmax(0, 1fr); gap: 80px; align-items: start; }
.quote-card {
  border-radius: var(--radius-lg); background: var(--paper);
  padding: clamp(28px, 4vw, 56px);
  display: flex; flex-direction: column; gap: 8px;
}
.quote-card__mark { font-family: var(--font-display); font-size: 96px; line-height: .6; height: 44px; color: var(--oak); }
.quote-card blockquote { font-family: var(--font-display); font-weight: 500; font-size: clamp(26px, 2.8vw, 40px); line-height: 1.2; }
.quote-card figcaption { margin-top: 32px; padding-top: 24px; border-top: 1px solid #20232B; display: flex; align-items: center; gap: 16px; }
.avatar {
  width: 52px; height: 52px; border-radius: 999px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--ink); color: var(--oak); font-size: 17px; font-weight: 600;
}
.quote-card__who { display: flex; flex-direction: column; }
.quote-card__who strong { font-size: 17px; font-weight: 600; }
.quote-card__who span { font-size: 14px; color: var(--muted-light); }

/* ---------- CTA ---------- */
.cta-section { background: var(--ink); padding-block: 80px; }
.cta {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 520px);
  border-radius: 32px; overflow: hidden; background: var(--oak); color: var(--ink);
  min-height: 480px;
}
.cta__copy { padding: clamp(28px, 5vw, 64px); display: flex; flex-direction: column; justify-content: space-between; gap: 40px; }
.cta__media { width: 100%; height: 100%; object-fit: cover; }
.checks { display: flex; flex-wrap: wrap; gap: 12px 24px; margin-bottom: 28px; font-size: 15px; font-weight: 600; }
.checks li { display: flex; align-items: center; gap: 8px; }
.checks .icon { stroke-width: 2.4; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); border-top: 1px solid rgba(245, 245, 243, .08); padding: 72px 0 40px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 48px; }
.footer-brand { display: flex; flex-direction: column; gap: 20px; }
.footer-brand img { width: 94px; }
.footer-brand p { font-size: 16px; color: var(--muted-dark); max-width: 280px; }
.socials { display: flex; gap: 8px; }
.socials a {
  width: 44px; height: 44px; border-radius: 999px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(245, 245, 243, .16);
  font-size: 12px; font-weight: 600;
  transition: background-color .2s, color .2s, border-color .2s;
}
.socials a:hover { background: var(--oak); border-color: var(--oak); color: var(--ink); }
.footer-col { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; font-size: 15px; color: var(--muted-dark); }
.footer-col h3 { margin-bottom: 6px; font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--bone); }
.footer-col a { transition: color .2s; }
.footer-col a:hover { color: var(--oak); }
.footer-strong { font-size: 20px; font-weight: 600; color: var(--bone); }
.footer-bottom {
  margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(245, 245, 243, .1);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 14px; color: var(--subtle-dark);
}

/* ---------- WhatsApp flotante ---------- */
.wa-float {
  position: fixed; right: 24px; bottom: 24px; z-index: 40;
  width: 58px; height: 58px; border-radius: 999px;
  display: flex; align-items: center; justify-content: center;
  background: var(--oak); color: var(--ink);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .35);
  transform: translateY(120px); transition: transform .4s var(--ease);
}
.wa-float.is-visible { transform: none; }
.wa-float:hover { background: #97A3FF; }
.wa-float .icon { width: 26px; height: 26px; stroke-width: 1.8; }

/* ---------- Animaciones de entrada ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1180px) {
  .services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .process-grid { gap: 48px; }
  .coverage-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 480px); gap: 48px; }
  .testimonial-grid { gap: 48px; }
  .cta { grid-template-columns: minmax(0, 1fr) minmax(0, 380px); }
}

@media (max-width: 960px) {
  :root { --header-h: 76px; }

  /* Header móvil */
  .site-header { top: 8px; padding: 0 8px; }
  .header-pill { width: 100%; height: 60px; justify-content: space-between; padding: 0 7px 0 18px; border-radius: 20px; background: rgba(21, 23, 30, .88); }
  .header-cta { display: none; }
  .menu-toggle { display: block; }
  .main-nav {
    position: absolute; top: calc(100% + 8px); left: 0; right: 0;
    background: var(--ink-2); border: 1px solid rgba(245, 245, 243, .1); border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, .45);
    max-height: calc(100svh - 100px); overflow-y: auto;
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: transform .3s var(--ease), opacity .3s, visibility .3s;
  }
  .main-nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .main-nav__inner { flex-direction: column; align-items: stretch; gap: 0; padding: 6px 20px 20px; font-size: 18px; color: var(--bone); }
  .main-nav a:not(.btn), .main-nav a:not(.btn):hover, .main-nav a.is-active { padding: 13px 0; border-radius: 0; background: none; border-bottom: 1px solid var(--line-dark); }
  .main-nav a.is-active { color: var(--oak); }
  .nav-cat { display: block; font-size: 15px; color: var(--muted-dark); }
  .nav-cta-mobile { display: inline-flex; margin-top: 18px; height: 52px; font-size: 16px; }



  .section-head--split { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .section-head--split > * { min-width: 0; }
  .section-head--end > :last-child { justify-self: start; }
  .filters { justify-content: flex-start; }

  .process-grid { grid-template-columns: 1fr; }
  .process-media { min-height: 0; aspect-ratio: 16 / 10; }

  .projects-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: 360px 260px 260px; }
  .project--xl { grid-column: span 2; grid-row: auto; }
  .project--tall { grid-row: span 2; }

  .coverage-grid { grid-template-columns: 1fr; }
  .map-card { max-width: 600px; }
  .features { grid-template-columns: 1fr; gap: 28px; }

  .testimonial-grid { grid-template-columns: 1fr; gap: 32px; }

  .cta { grid-template-columns: 1fr; }
  .cta__media { height: 280px; order: -1; }

  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 600px) {

  .section-head { margin-bottom: 40px; }
  .services-grid { gap: 20px 14px; }
  .service-card h3 { font-size: 17px; }
  .service-card p { font-size: 14px; }
  .service-card .icon-btn { display: none; }
  .service-card .badge { top: 10px; left: 10px; }

  .steps { grid-template-columns: 1fr; margin-top: 32px; }
  .step { padding: 20px; }

  .section-head--end > :last-child { justify-self: stretch; }
  .filters { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scrollbar-width: none; }
  .filters::-webkit-scrollbar { display: none; }
  .pill { flex-shrink: 0; }
  .projects-grid { grid-template-columns: 1fr; grid-template-rows: none; grid-auto-rows: 300px; }
  .project--xl, .project--tall { grid-column: auto; grid-row: auto; }
  .projects-grid.is-filtered { grid-template-columns: 1fr; grid-auto-rows: 300px; }

  .map-card { padding: 20px; }
  .map-card__head { flex-direction: column; }
  .map-legend { flex-direction: row; gap: 16px; }
  .city { height: 54px; font-size: 16px; padding: 0 12px; }
  .city__tag { font-size: 13px; }
  .zone-form__row { flex-direction: column; }
  .zone-form input { flex: none; width: 100%; }

  .cta-section { padding-block: 32px; }
  .cta { border-radius: 26px; }
  .cta .btn-row .btn { width: 100%; }

  .footer-bottom { flex-direction: column; }
  .wa-float { right: 16px; bottom: 16px; width: 54px; height: 54px; }
}

/* =========================================================
   Secciones como tarjetas (8px de margen + radius)
   ========================================================= */
body { background: var(--ink); }
.section, .site-footer { margin: 0 8px 8px; border-radius: 28px; overflow: hidden; }
.section--dark, .section--bone, .section--paper { background: var(--ink-2); }
.site-footer { background: var(--ink-2); border-top: 0; }
.cta-section { margin: 0 8px 8px; padding: 0; background: transparent; }
.cta-section > .container { max-width: none; padding: 0; }
.cta { border-radius: 28px; min-height: 520px; }
.map-card { background: var(--ink); }
.zone-form input { background: var(--ink); }
.step:hover { background: var(--ink-3); }

@media (max-width: 600px) {
  .section, .site-footer, .cta { border-radius: 22px; }
  .cta { min-height: 0; }
}

/* ---------- Servicios (bento, fondo blanco) ---------- */
.section--white { background: #fff; color: var(--ink); }
.svc-head { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 64px; align-items: start; margin-bottom: 48px; }
.svc-title { max-width: 580px; font-size: clamp(32px, 3.4vw, 48px); line-height: 1.1; font-weight: 500; letter-spacing: -0.025em; color: var(--ink); }
.svc-aside { justify-self: end; max-width: 430px; padding-top: 6px; display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.svc-aside p { font-size: 15px; line-height: 1.65; color: #5B5F6B; }
.svc-aside .btn .icon { width: 18px; height: 18px; stroke-width: 1.8; }
.svc-aside .btn:hover .icon { transform: none; }

.svc-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: repeat(2, 300px); gap: 16px; }
.svc-card { position: relative; isolation: isolate; display: block; overflow: hidden; border-radius: 22px; background: var(--ink-3); color: #fff; }
.svc-card img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.svc-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(12,13,18,.82) 0%, rgba(12,13,18,.25) 45%, rgba(12,13,18,0) 72%); }
.svc-card:hover img { transform: scale(1.05); }
.svc-card--lg { grid-row: span 2; }
.svc-card--wide { grid-column: span 2; }
.svc-card__arrow {
  position: absolute; top: 18px; right: 18px; width: 42px; height: 42px; border-radius: 999px;
  display: flex; align-items: center; justify-content: center; background: #fff; color: var(--ink);
  transition: transform .35s var(--ease), background-color .25s, color .25s;
}
.svc-card:hover .svc-card__arrow { transform: rotate(45deg); background: var(--oak); color: var(--ink); }
.svc-card__body { position: absolute; left: 24px; right: 24px; bottom: 22px; }
.svc-card h3 { font-size: 22px; font-weight: 500; line-height: 1.2; }
.svc-card--lg h3 { font-size: 28px; }
.svc-card p { margin-top: 6px; max-width: 360px; font-size: 14px; line-height: 1.55; color: rgba(255,255,255,.82); }

@media (max-width: 960px) {
  .svc-head { grid-template-columns: 1fr; gap: 20px; margin-bottom: 32px; }
  .svc-aside { justify-self: start; }
  .svc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: 340px; grid-auto-rows: 260px; }
  .svc-card--lg { grid-column: span 2; grid-row: auto; }
}
@media (max-width: 600px) {
  .svc-grid { grid-template-columns: 1fr; grid-template-rows: 320px; grid-auto-rows: 240px; gap: 12px; }
  .svc-card--lg, .svc-card--wide { grid-column: auto; }
  .svc-card--lg h3 { font-size: 24px; }
}

/* ---------- Botones (estilo píldora) ---------- */
.btn { height: 46px; padding: 0 20px; gap: 8px; border-radius: 999px; font-size: 14px; font-weight: 500; letter-spacing: -0.005em; }
.btn--sm { height: 42px; padding: 0 18px; font-size: 14px; }
.btn--lg { height: 50px; padding: 0 22px; font-size: 15px; }
.btn .icon--lead { width: 18px; height: 18px; stroke-width: 1.7; }
.btn:hover .icon--lead { transform: rotate(-45deg); }
.btn:has(.icon--lead) { padding-left: 14px; }
.btn--ink { background: var(--ink); color: #fff; border-color: rgba(255,255,255,.14); }
.btn--ink:hover { background: #1B1D26; }
.btn--white { background: #fff; color: var(--ink); }
.btn--white:hover { background: #ECECEA; }
.hero-copy .btn-row { gap: 10px; }

/* ---------- Fondo general blanco ---------- */
body { background: #fff; }
.hero { --page: #fff; }
.hero-notch { color: var(--ink); }
.notch-brand img { filter: brightness(0); }
.notch-nav { color: #5B5F6B; }
.notch-nav a:hover, .notch-nav a.is-active { color: var(--ink); }
@media (max-width: 600px) {
  .hero-copy .btn { flex: 1; padding-inline: 14px; }
}

/* Botones sin borde, negro */
.btn--ink { background: #0B0B10; color: #fff; border-color: transparent; }
.btn--ink:hover { background: #1A1A1A; }

/* ---------- Hero · tira de miniaturas ---------- */
.hero-strip { position: absolute; right: 32px; bottom: 32px; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.hero-strip__caption { display: flex; align-items: baseline; gap: 4px; font-size: 13px; color: rgba(255,255,255,.72); font-variant-numeric: tabular-nums; transition: opacity .2s; }
.hero-strip__caption [data-hero-index] { color: #fff; font-weight: 600; }
.hero-strip__title { margin-left: 8px; color: #fff; font-weight: 500; }
.hero-strip.is-changing .hero-strip__caption { opacity: 0; }
.hero-thumbs {
  display: flex; gap: 6px; padding: 6px; max-width: 100%; overflow-x: auto; scrollbar-width: none;
  border-radius: 16px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.22);
  backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2);
}
.hero-thumbs::-webkit-scrollbar { display: none; }
.hero-thumb {
  position: relative; flex-shrink: 0; width: 84px; height: 58px; padding: 0; border: 0;
  border-radius: 10px; overflow: hidden; background: #0B0B10; opacity: .55;
  transition: opacity .3s, width .45s var(--ease);
}
.hero-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.hero-thumb::before { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; box-shadow: inset 0 0 0 2px transparent; transition: box-shadow .3s; }
.hero-thumb:hover { opacity: .85; }
.hero-thumb:hover img { transform: scale(1.08); }
.hero-thumb.is-active { width: 108px; opacity: 1; }
.hero-thumb.is-active::before { box-shadow: inset 0 0 0 2px #fff; }
.hero-thumb__bar { position: absolute; left: 8px; right: 8px; bottom: 6px; z-index: 2; height: 3px; border-radius: 999px; overflow: hidden; background: rgba(255,255,255,.35); opacity: 0; transition: opacity .3s; }
.hero-thumb.is-active .hero-thumb__bar { opacity: 1; }
.hero-thumb.is-active .hero-thumb__bar::after {
  content: ""; position: absolute; inset: 0; background: #fff; transform-origin: left;
  animation: heroProgress var(--hero-interval, 6s) linear forwards;
}
.is-paused .hero-thumb.is-active .hero-thumb__bar::after { animation-play-state: paused; }

@media (max-width: 960px) {
  .hero-strip { position: relative; right: auto; bottom: auto; align-items: stretch; }
}
@media (max-width: 600px) {
  .hero-thumb { width: 64px; height: 48px; }
  .hero-thumb.is-active { width: 84px; }
}

/* Hover de la flecha en tarjetas de servicios: la flecha sale y entra otra */
.svc-card__arrow { overflow: hidden; }
.svc-card__arrow .icon { position: absolute; width: 18px; height: 18px; transition: transform .45s var(--ease); }
.svc-card__arrow .icon:last-child { transform: translate(-160%, 160%); }
.svc-card:hover .svc-card__arrow { transform: scale(1.08); background: #0B0B10; color: #fff; }
.svc-card:hover .svc-card__arrow .icon:first-child { transform: translate(160%, -160%); }
.svc-card:hover .svc-card__arrow .icon:last-child { transform: translate(0, 0); }

/* Subrayado del menú de la esquina en negro */
.notch-nav a:hover { text-decoration-color: rgba(12,13,18,.35); }
.notch-nav a.is-active { text-decoration-color: #0B0B10; }

/* ---------- Proyectos: antes y después ---------- */
.ba-head { display: flex; flex-direction: column; align-items: center; text-align: center; }
.ba-section .eyebrow { justify-content: center; color: #5B5F6B; }
.ba-title { max-width: 760px; font-size: clamp(30px, 3.4vw, 46px); line-height: 1.12; font-weight: 500; letter-spacing: -0.025em; color: var(--ink); }
.ba-cats { margin-top: 28px; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.ba-cat {
  display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px;
  border-radius: 999px; border: 1px solid #E3E4E8; background: #fff; color: var(--ink);
  font-size: 13.5px; font-weight: 500; transition: background-color .2s, color .2s, border-color .2s;
}
.ba-cat .icon { width: 16px; height: 16px; stroke-width: 1.8; }
.ba-cat:hover { border-color: var(--ink); }
.ba-cat.is-active { background: #0B0B10; border-color: #0B0B10; color: #fff; }
.ba-cat--ghost { color: #5B5F6B; }

.ba-carousel { margin: 40px calc(var(--gutter) * -1) 0; overflow: hidden; outline: none; }
.ba-track { display: flex; gap: 20px; transition: transform .7s var(--ease); will-change: transform; }
.ba-slide { flex: 0 0 min(920px, 74%); opacity: .4; transform: scale(.94); cursor: pointer; transition: opacity .5s, transform .6s var(--ease); }
.ba-slide.is-active { opacity: 1; transform: none; cursor: default; }
.ba-slide:not(.is-active) .ba-media > :not(.ba-layer) { opacity: 0; pointer-events: none; }
.ba-media { position: relative; aspect-ratio: 16 / 9; border-radius: 24px; overflow: hidden; background: #EEF0F3; }
.ba-layer { position: absolute; inset: 0; }
.ba-layer img { width: 100%; height: 100%; object-fit: cover; }
.ba-before { clip-path: inset(0 100% 0 0); transition: clip-path .8s var(--ease); background: #E9EBEF; }
.ba-slide.show-before .ba-before { clip-path: inset(0 0 0 0); }
.ba-missing { display: none; }
.ba-before.is-missing img { display: none; }
.ba-before.is-missing {
  display: flex; align-items: center; justify-content: center; text-align: center;
  background: repeating-linear-gradient(135deg, #E9EBEF 0 14px, #F3F4F6 14px 28px);
}
.ba-before.is-missing .ba-missing { display: block; padding: 16px 20px; border-radius: 14px; background: #fff; font-size: 15px; color: var(--ink); line-height: 1.5; }
.ba-missing span { font-size: 12px; color: #5B5F6B; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }

.ba-chip {
  position: absolute; top: 18px; right: 18px; display: flex; align-items: center; gap: 10px;
  padding: 5px 14px 5px 5px; border-radius: 999px; background: #fff; color: var(--ink);
  font-size: 13px; box-shadow: 0 6px 20px rgba(0,0,0,.12); transition: opacity .3s;
}
.ba-chip img { width: 28px; height: 28px; border-radius: 999px; object-fit: cover; }
.ba-chip strong { font-weight: 600; }
.ba-toggle {
  position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%);
  display: flex; gap: 2px; padding: 4px; border-radius: 999px;
  background: rgba(255,255,255,.88); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 6px 20px rgba(0,0,0,.14); transition: opacity .3s;
}
.ba-toggle button { height: 36px; padding: 0 18px; border: 0; border-radius: 999px; background: transparent; color: var(--ink); font-size: 13.5px; font-weight: 500; transition: background-color .2s, color .2s; }
.ba-toggle button:hover { background: rgba(12,13,18,.06); }
.ba-toggle button.is-on { background: #0B0B10; color: #fff; }

.ba-dots { margin-top: 28px; display: flex; justify-content: center; gap: 4px; }
.ba-dot { position: relative; width: 24px; height: 24px; padding: 0; border: 0; background: transparent; }
.ba-dot::before { content: ""; position: absolute; inset: 7px; border-radius: 999px; border: 1.5px solid #B9BCC4; transition: all .25s; }
.ba-dot:hover::before { border-color: var(--ink); }
.ba-dot.is-active::before { background: #0B0B10; border-color: #0B0B10; }

@media (max-width: 960px) {
  .ba-slide { flex-basis: 84%; }
  .ba-media { aspect-ratio: 4 / 3; }
}
@media (max-width: 600px) {
  .ba-track { gap: 12px; }
  .ba-slide { flex-basis: 88%; }
  .ba-media { aspect-ratio: 4 / 5; border-radius: 20px; }
  .ba-chip { left: 12px; right: auto; top: 12px; max-width: calc(100% - 24px); }
  .ba-chip span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .ba-cats { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scrollbar-width: none; align-self: stretch; }
  .ba-cats::-webkit-scrollbar { display: none; }
  .ba-cat { flex-shrink: 0; }
}

/* ---------- Header: difuminado blanco detrás y nuevo hover ---------- */
.site-header::before {
  content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 118px; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, rgba(255,255,255,.96) 0%, rgba(255,255,255,.75) 45%, rgba(255,255,255,0) 100%);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  -webkit-mask-image: linear-gradient(180deg, #0B0B10 55%, transparent); mask-image: linear-gradient(180deg, #0B0B10 55%, transparent);
  opacity: 0; transition: opacity .4s;
}
.site-header.is-scrolled::before { opacity: 1; }
.main-nav a:not(.btn), .main-nav a:not(.btn):hover, .main-nav a.is-active { background: none; }
.main-nav a:not(.btn) { position: relative; }
.main-nav a:not(.btn)::after {
  content: ""; position: absolute; left: 50%; bottom: 2px; width: 5px; height: 5px; border-radius: 999px;
  background: #fff; transform: translateX(-50%) scale(0); transition: transform .3s var(--ease);
}
.main-nav a:not(.btn):hover, .main-nav a.is-active { color: #fff; }
.main-nav a:not(.btn):hover::after, .main-nav a.is-active::after { transform: translateX(-50%) scale(1); }

@media (max-width: 960px) {
  .site-header::before { opacity: 1; top: -8px; height: 96px; }
  .main-nav a:not(.btn)::after { display: none; }
  .main-nav a.is-active { color: var(--oak); }
}

/* ---------- Footer ---------- */
.site-footer { position: relative; isolation: isolate; background: var(--ink); padding: 72px 0 0; }
.ft-lines { position: absolute; top: 0; right: 0; z-index: -1; width: 62%; height: 100%; pointer-events: none; }
.ft-lines path { stroke: rgba(245,245,243,.12); stroke-width: 1; vector-effect: non-scaling-stroke; }
.ft-top { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px; padding-bottom: 56px; border-bottom: 1px solid var(--line-dark); }
.ft-kicker { max-width: 260px; font-size: 13px; line-height: 1.6; color: var(--muted-dark); }
.ft-cta h2 { font-size: clamp(30px, 3.2vw, 46px); line-height: 1.15; font-weight: 500; letter-spacing: -0.02em; color: #fff; }
.ft-cta .btn { margin-top: 26px; }
.ft-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1.2fr) minmax(0, 1fr); gap: 40px; padding-top: 48px; }
.ft-brand h3 { max-width: 280px; font-size: 22px; line-height: 1.25; font-weight: 500; color: #fff; }
.ft-brand p { margin-top: 12px; max-width: 300px; font-size: 14px; line-height: 1.6; color: var(--muted-dark); }
.ft-socials { margin-top: 24px; display: flex; gap: 8px; }
.ft-socials a {
  width: 40px; height: 40px; border-radius: 999px; display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(245,245,243,.16); color: #fff; transition: background-color .2s, color .2s, border-color .2s;
}
.ft-socials a:hover { background: #fff; border-color: #fff; color: var(--ink); }
.ft-socials .icon { width: 17px; height: 17px; stroke-width: 1.7; }
.ft-col { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; font-size: 14px; color: var(--bone); }
.ft-col h4 { margin: 0 0 6px; font-size: 13px; font-weight: 500; color: var(--muted-dark); }
.ft-col a { text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 4px; transition: color .2s, text-decoration-color .2s; }
.ft-col a:hover { color: #fff; text-decoration-color: #fff; }
.ft-bottom { margin-top: 32px; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; overflow: hidden; }
.ft-word {
  font-family: var(--font-display); font-weight: 500; color: #fff;
  font-size: clamp(120px, 23vw, 360px); line-height: .8; letter-spacing: -0.06em;
  margin: 0 0 -0.08em -0.04em; user-select: none;
}
.ft-copy { padding-bottom: 28px; font-size: 13px; color: var(--muted-dark); white-space: nowrap; }

@media (max-width: 960px) {
  .ft-top { grid-template-columns: 1fr; gap: 24px; }
  .ft-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ft-brand { grid-column: 1 / -1; }
  .ft-bottom { flex-direction: column-reverse; align-items: flex-start; gap: 8px; }
  .ft-copy { padding-bottom: 0; }
  .ft-word { font-size: 31vw; }
  .ft-lines { width: 100%; }
}

/* ---------- Footer: logo gigante vectorial ---------- */
.ft-word { font-size: 0; line-height: 0; margin: 0 0 -1.4% -0.2%; color: #fff; flex: 0 1 min(1000px, 72%); }
.ft-word svg { display: block; width: 100%; height: auto; }
@media (max-width: 960px) { .ft-word { flex-basis: auto; width: 100%; } }

/* ---------- WhatsApp flotante verde ---------- */
.wa-float { background: #25D366; color: #fff; box-shadow: 0 10px 30px rgba(37, 211, 102, .35); }
.wa-float:hover { background: #1EBE5A; }
.wa-float .wa-icon { width: 30px; height: 30px; }

/* ---------- Carrusel antes/después: vecinos visibles a ambos lados ---------- */
.ba-slide { opacity: 1; transform: scale(.86); }
.ba-slide:not(.is-active) .ba-media::after { content: ""; position: absolute; inset: 0; background: rgba(255,255,255,.12); pointer-events: none; }
.ba-slide:not(.is-active):hover { transform: scale(.88); }
.ba-toggle { background: rgba(245,245,243,.55); border: 1px solid rgba(255,255,255,.6); box-shadow: 0 6px 20px rgba(0,0,0,.12); }
.ba-toggle button { color: var(--ink); }
.ba-toggle button:hover { background: rgba(255,255,255,.5); }
.ba-toggle button.is-on { background: #fff; color: var(--ink); box-shadow: 0 2px 8px rgba(0,0,0,.12); }
.ba-chip { padding: 5px 14px 5px 5px; }
.ft-word { flex: 0 1 min(760px, 54%); margin-bottom: 28px; }
@media (max-width: 960px) { .ft-word { width: 80%; margin-bottom: 0; } }

/* Carrusel a todo el ancho de la tarjeta: los vecinos llegan al borde */
.ba-carousel { width: calc(100vw - 16px); margin-left: calc(50% - (100vw - 16px) / 2); margin-right: 0; }
.ba-track { gap: 16px; }
.ba-slide { transform-origin: right center; }
.ba-slide.is-active ~ .ba-slide { transform-origin: left center; }
.ba-slide.is-active { transform-origin: center; }

/* ---------- Proyectos: fondo gris cálido en tarjeta (8px + radius) ---------- */
.ba-section { background: #ECEAE6; margin: 0 8px 8px; border-radius: 28px; }
.ba-cat { background: #fff; border-color: #fff; box-shadow: 0 1px 2px rgba(12,13,18,.04); }
.ba-cat:hover { border-color: #fff; background: #F7F6F4; }
.ba-cat.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }
.ba-cat--ghost { color: var(--ink); }
.ba-slide:not(.is-active) .ba-media::after { background: rgba(236,234,230,.18); }
.ba-dot::before { inset: 6px; border-color: #9A9DA6; }
.ba-dot.is-active::before { background: transparent; border-color: var(--ink); }
.ba-dot.is-active::after { content: ""; position: absolute; inset: 9.5px; border-radius: 999px; background: var(--ink); }
@media (max-width: 600px) { .ba-section { border-radius: 22px; } }

/* ---------- Proceso en 4 pasos ---------- */
.st-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: end; }
.st-title { font-size: clamp(36px, 4.4vw, 62px); line-height: 1.04; font-weight: 500; letter-spacing: -0.035em; color: var(--ink); }
.st-accent { position: relative; color: var(--oak); white-space: nowrap; }
.st-accent::after { content: ""; position: absolute; left: 0; right: 0; bottom: .02em; height: .12em; border-radius: 999px; background: rgba(124,140,255,.25); z-index: -1; }
.st-aside { justify-self: end; max-width: 420px; display: flex; flex-direction: column; align-items: flex-start; gap: 22px; }
.st-aside p { font-size: 15px; line-height: 1.65; color: #5B5F6B; }

.st-list { margin-top: 64px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.st-item { cursor: pointer; outline: none; transition: transform .6s var(--ease); }
.st-item.is-active { transform: translateY(-10px); }
.st-top { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; }
.st-num {
  flex-shrink: 0; width: 42px; height: 42px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 15px; font-weight: 600;
  background: #fff; color: var(--ink); border: 1px solid #E3E4E8;
  transition: background-color .4s, color .4s, border-color .4s, box-shadow .4s;
}
.st-item.is-done .st-num { background: #F1F2FF; border-color: #D9DDFF; color: var(--ink); }
.st-item.is-active .st-num { background: var(--ink); border-color: var(--ink); color: #fff; box-shadow: 0 0 0 6px rgba(124,140,255,.22); }
.st-line { position: relative; flex: 1; height: 2px; overflow: hidden; background: repeating-linear-gradient(90deg, #C9CBD1 0 6px, transparent 6px 12px); }
.st-item:last-child .st-line { display: none; }
.st-fill { position: absolute; inset: 0; background: var(--oak); transform: scaleX(0); transform-origin: left; }
.st-item.is-done .st-fill { transform: scaleX(1); }
.st-item.is-active .st-fill { animation: stepFill var(--step-time, 3.8s) linear forwards; }
@keyframes stepFill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.st-item h3 { font-size: 20px; font-weight: 500; letter-spacing: -0.01em; color: var(--ink); }
.st-item p { margin-top: 8px; min-height: 4.8em; font-size: 14.5px; line-height: 1.6; color: #5B5F6B; }
.st-media {
  position: relative; margin-top: 20px; aspect-ratio: 4 / 5; border-radius: 22px; overflow: hidden; background: #EEF0F3;
  transition: box-shadow .6s var(--ease);
}
.st-media img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.6) brightness(.95); transform: scale(1.02); transition: filter .7s, transform 1.2s var(--ease); }
.st-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(12,13,18,.55), rgba(12,13,18,0) 45%); opacity: 0; transition: opacity .5s; }
.st-item.is-active .st-media { box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--oak), 0 28px 60px rgba(12,13,18,.22); }
.st-item.is-active .st-media img { filter: none; transform: scale(1.08); }
.st-item.is-active .st-media::after { opacity: 1; }
.st-tag {
  position: absolute; left: 14px; bottom: 14px; z-index: 1; padding: 7px 12px; border-radius: 999px;
  background: rgba(255,255,255,.9); color: var(--ink); font-size: 12.5px; font-weight: 600;
  transform: translateY(8px); opacity: 0; transition: transform .5s var(--ease), opacity .5s;
}
.st-item.is-active .st-tag { transform: none; opacity: 1; }

@media (max-width: 960px) {
  .st-head { grid-template-columns: 1fr; gap: 20px; }
  .st-aside { justify-self: start; }
  .st-list { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; margin-top: 44px; }
  .st-item:nth-child(2) .st-line { display: none; }
}
@media (max-width: 600px) {
  .st-list {
    grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 78%;
    overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
    margin-inline: calc(var(--gutter) * -1); padding: 12px var(--gutter) 24px;
  }
  .st-list::-webkit-scrollbar { display: none; }
  .st-item { scroll-snap-align: start; }
  .st-item:nth-child(2) .st-line { display: block; }
  .st-item p { min-height: 0; }
}

/* ---------- Testimonios (columnas con scroll de arriba hacia abajo) ---------- */
.t-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 64px; align-items: stretch; }
.t-copy { display: flex; flex-direction: column; justify-content: space-between; gap: 48px; padding: 8px 0; }
.t-pill { display: inline-flex; padding: 7px 14px; border-radius: 999px; background: #EFEFED; border: 1px solid #E3E4E8; color: var(--ink); font-size: 13px; font-weight: 500; }
.t-title { margin-top: 22px; max-width: 520px; font-size: clamp(34px, 3.8vw, 54px); line-height: 1.08; font-weight: 500; letter-spacing: -0.03em; color: var(--ink); }
.t-sub { margin: 18px 0 26px; max-width: 430px; font-size: 16px; line-height: 1.6; color: #9A9DA6; }
.t-sub strong { color: var(--ink); font-weight: 500; }
.t-cities p { font-size: 14px; color: var(--ink); }
.t-cities p span { color: #9A9DA6; }
.t-cities ul { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 8px; }
.t-cities li { padding: 8px 14px; border-radius: 999px; background: #F4F4F2; color: var(--ink); font-family: var(--font-display); font-size: 15px; font-weight: 600; }

.t-cols {
  position: relative; height: 620px; overflow: hidden;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #0B0B10 12%, #0B0B10 88%, transparent 100%);
          mask-image: linear-gradient(180deg, transparent 0%, #0B0B10 12%, #0B0B10 88%, transparent 100%);
}
.t-track { display: flex; flex-direction: column; gap: 16px; animation: tScrollDown 34s linear infinite; }
.t-col--slow .t-track { animation-duration: 44s; margin-top: -60px; }
.t-cols:hover .t-track { animation-play-state: paused; }
@keyframes tScrollDown { from { transform: translateY(calc(-50% - 8px)); } to { transform: translateY(0); } }

.t-card { margin: 0; padding: 4px; border-radius: 22px; background: #EFEFED; border: 1px solid #E6E6E3; transition: transform .35s var(--ease), box-shadow .35s; }
.t-card:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(12,13,18,.1); }
.t-card__inner { min-height: 190px; display: flex; flex-direction: column; justify-content: space-between; gap: 28px; padding: 16px 18px 20px; border-radius: 18px; background: #fff; box-shadow: 0 1px 3px rgba(12,13,18,.06); }
.t-card__tag { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 500; color: var(--ink); }
.t-card__tag::before { content: ""; width: 7px; height: 7px; border-radius: 999px; background: var(--oak); }
.t-card blockquote { margin: 0; font-size: 16px; line-height: 1.5; font-weight: 500; color: var(--ink); }
.t-card figcaption { display: flex; align-items: center; gap: 12px; padding: 14px 14px 12px; }
.t-avatar { width: 40px; height: 40px; flex-shrink: 0; border-radius: 999px; display: flex; align-items: center; justify-content: center; background: var(--ink); color: #fff; font-family: var(--font-display); font-size: 14px; font-weight: 600; }
.t-card figcaption strong { display: block; font-size: 14px; font-weight: 600; color: var(--ink); }
.t-card figcaption small { display: block; font-size: 13px; color: #6E727C; }
.t-card--placeholder .t-card__inner { background: #FBFBFA; border: 1.5px dashed #D5D7DC; box-shadow: none; }
.t-card--placeholder blockquote, .t-card--placeholder strong { color: #9A9DA6 !important; font-weight: 500; }
.t-card--placeholder .t-avatar { background: #D5D7DC; color: #fff; }

@media (max-width: 960px) {
  .t-grid { grid-template-columns: 1fr; gap: 40px; }
  .t-cols { height: 520px; }
}
@media (max-width: 600px) {
  .t-cols { grid-template-columns: 1fr; height: 460px; }
  .t-col--slow { display: none; }
}

/* ---------- CTA con muro de fotos ---------- */
.g-section { position: relative; overflow: hidden; background: linear-gradient(180deg, #F7F7F6 0%, #fff 60%); padding-top: 0; }
.g-wall {
  display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); gap: 12px;
  width: min(1280px, calc(100% - 48px)); margin: 0 auto; height: 380px; align-items: start;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #0B0B10 14%, #0B0B10 100%); mask-image: linear-gradient(180deg, transparent 0, #0B0B10 14%, #0B0B10 100%);
}
.g-col { position: relative; display: flex; flex-direction: column; gap: 10px; margin-top: calc(var(--off) - 90px); }
.g-tile { position: relative; aspect-ratio: 4 / 5; border-radius: 14px; overflow: hidden; background: #EFEFED; box-shadow: 0 6px 18px rgba(12,13,18,.08); transition: transform .5s var(--ease), box-shadow .5s; }
.g-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.g-tile--ghost { box-shadow: none; background: linear-gradient(180deg, #F0F0EE, #E9E9E6); }
.g-wall .g-tile:not(.g-tile--ghost):hover { transform: translateY(-6px) rotate(-3deg) scale(1.06); box-shadow: 0 24px 48px rgba(12,13,18,.25); z-index: 2; }
.g-tile:hover img { transform: scale(1.08); }
.g-line { position: absolute; left: 50%; top: 100%; width: 1px; height: 400px; background: repeating-linear-gradient(180deg, rgba(12,13,18,.14) 0 3px, transparent 3px 7px); }
.g-col:nth-child(3n+2) .g-line { background: repeating-linear-gradient(180deg, rgba(124,140,255,.5) 0 3px, transparent 3px 7px); }
.g-wall { animation: gFloat 8s ease-in-out infinite alternate; }
.g-col:nth-child(odd) { animation: gBob 6s ease-in-out infinite alternate; }
.g-col:nth-child(even) { animation: gBob 7s ease-in-out infinite alternate-reverse; }
@keyframes gBob { from { transform: translateY(-6px); } to { transform: translateY(8px); } }
@keyframes gFloat { from { transform: none; } to { transform: none; } }
.g-copy { position: relative; z-index: 1; margin-top: -40px; padding-bottom: 20px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.g-title { margin-top: 20px; font-size: clamp(36px, 4.4vw, 62px); line-height: 1.04; font-weight: 500; letter-spacing: -0.035em; color: var(--ink); }
.g-title span { color: #9A9DA6; }
.g-sub { margin: 20px 0 30px; max-width: 460px; font-size: 17px; line-height: 1.55; color: var(--ink); }
.g-copy .btn-row { justify-content: center; }
.btn--soft { background: #EFEFED; color: var(--ink); }
.btn--soft:hover { background: #E4E4E1; }
@media (max-width: 960px) {
  .g-wall { grid-template-columns: repeat(5, minmax(0, 1fr)); height: 320px; }
  .g-col:nth-child(n+6) { display: none; }
}
@media (max-width: 600px) {
  .g-wall { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; height: 250px; width: calc(100% - 24px); }
  .g-col:nth-child(n+5) { display: none; }
  .g-tile { border-radius: 10px; }
  .g-copy .btn-row .btn { width: 100%; }
}

/* Testimonios: sin ciudades y menos espacio bajo la etiqueta */
.t-copy { justify-content: center; }
.t-title { margin-top: 12px; }
.t-pill { padding: 5px 12px; }
.g-copy .g-title { margin-top: 12px; }

/* Testimonios: primera columna baja, segunda sube */
.t-col--slow .t-track { animation-name: tScrollUp; animation-duration: 38s; margin-top: 0; }
@keyframes tScrollUp { from { transform: translateY(0); } to { transform: translateY(calc(-50% - 8px)); } }

/* Muro de fotos: se desvanece arriba y abajo, título encima */
.g-wall { height: 420px;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #0B0B10 16%, #0B0B10 62%, transparent 96%);
          mask-image: linear-gradient(180deg, transparent 0, #0B0B10 16%, #0B0B10 62%, transparent 96%); }
.g-tile--ghost { aspect-ratio: 4 / 3; }
.g-copy { margin-top: -110px; }
@media (max-width: 600px) { .g-wall { height: 300px; } .g-copy { margin-top: -80px; } }

/* Muro lleno de fotos y más aire para el texto */
.g-wall { height: 440px;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #0B0B10 12%, #0B0B10 70%, transparent 100%);
          mask-image: linear-gradient(180deg, transparent 0, #0B0B10 12%, #0B0B10 70%, transparent 100%); }
.g-line { display: none; }
.g-copy { margin-top: 40px; padding-bottom: 40px; }
.g-copy .g-title { margin-top: 0; }
.g-sub { margin: 24px 0 34px; }
@media (max-width: 600px) { .g-wall { height: 320px; } .g-copy { margin-top: 28px; } }

/* ---------- Proceso: versión mejorada ---------- */
.st-head { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); align-items: end; }
.st-title { max-width: 720px; text-wrap: balance; }
.st-aside { padding-bottom: 8px; }
.st-list { margin-top: 56px; }
.st-item { transform: none !important; }
.st-item h3 { transition: color .3s; }
.st-item:not(.is-active) h3 { color: #5B5F6B; }
.st-item p { min-height: 4.8em; }
.st-num { border-radius: 999px; }
.st-line { background: #E3E4E8; height: 2px; border-radius: 2px; }

.st-media { aspect-ratio: auto; height: 420px; border-radius: 24px; }
.st-media img { filter: none; transform: scale(1.04); }
.st-media::after { opacity: 1; background: linear-gradient(0deg, rgba(12,13,18,.75) 0%, rgba(12,13,18,.25) 55%, rgba(12,13,18,.35) 100%); transition: background .6s; }
.st-item.is-active .st-media::after { background: linear-gradient(0deg, rgba(12,13,18,.55) 0%, rgba(12,13,18,0) 45%); }
.st-media::before {
  content: attr(data-n); position: absolute; right: 18px; top: 10px; z-index: 1;
  font-family: var(--font-display); font-size: 88px; font-weight: 600; line-height: 1; letter-spacing: -0.05em;
  color: rgba(255,255,255,.22); transition: color .5s, transform .6s var(--ease);
}
.st-item.is-active .st-media::before { color: #fff; transform: translateY(-2px); }
.st-item.is-active .st-media { box-shadow: 0 30px 60px rgba(12,13,18,.22); }
.st-tag { background: var(--oak); color: #fff; }
.st-tag::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 7px; border-radius: 999px; background: #fff; vertical-align: middle; animation: cursorPulse 1.6s ease-out infinite; }

@media (min-width: 961px) {
  .st-list { display: flex; gap: 16px; }
  .st-item { flex: 1 1 0; min-width: 0; transition: flex .7s var(--ease); }
  .st-item.is-active { flex-grow: 1.7; }
}
@media (max-width: 960px) { .st-media { height: 340px; } }
@media (max-width: 600px) { .st-media { height: 300px; } .st-item:not(.is-active) h3 { color: var(--ink); } }

/* ---------- Proceso v3: texto dentro de cada tarjeta ---------- */
.st-list { margin-top: 48px; }
.st-item h3, .st-item:not(.is-active) h3 { color: #fff; margin: 0; }
.st-card {
  position: relative; isolation: isolate; height: 480px; overflow: hidden;
  border-radius: 24px; background: var(--ink-3); color: #fff;
  transition: box-shadow .6s var(--ease);
}
.st-card img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 1.4s var(--ease), filter .6s; filter: brightness(.7) saturate(.85); }
.st-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(12,13,18,.9) 0%, rgba(12,13,18,.35) 45%, rgba(12,13,18,.1) 100%); }
.st-item.is-active .st-card img { transform: scale(1); filter: none; }
.st-item.is-active .st-card { box-shadow: 0 30px 60px rgba(12,13,18,.2); }

.st-card__top { position: absolute; top: 18px; left: 18px; right: 18px; display: flex; justify-content: space-between; align-items: flex-start; }
.st-chip { padding: 6px 12px; border-radius: 999px; background: rgba(255,255,255,.16); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); font-size: 12.5px; font-weight: 500; white-space: nowrap; transition: background-color .4s, color .4s; }
.st-item.is-active .st-chip { background: #fff; color: var(--ink); }
.st-big { font-family: var(--font-display); font-size: 64px; font-weight: 600; line-height: .8; letter-spacing: -0.05em; color: rgba(255,255,255,.28); transition: color .5s; }
.st-item.is-active .st-big { color: #fff; }

.st-card__body { position: absolute; left: 22px; right: 22px; bottom: 30px; }
.st-card__body h3 { font-size: 22px; font-weight: 500; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st-desc { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .6s var(--ease); }
.st-desc p { overflow: hidden; min-height: 0 !important; margin: 0; width: min(360px, 100%); font-size: 15px; line-height: 1.55; color: rgba(255,255,255,.82); opacity: 0; transition: opacity .4s; }
.st-item.is-active .st-desc { grid-template-rows: 1fr; }
.st-item.is-active .st-desc p { padding-top: 10px; opacity: 1; transition-delay: .2s; }

.st-progress { position: absolute; left: 22px; right: 22px; bottom: 16px; height: 3px; border-radius: 999px; overflow: hidden; background: rgba(255,255,255,.2); }
.st-progress .st-fill { background: #fff; }

@media (max-width: 960px) {
  .st-card { height: 400px; }
  .st-desc { grid-template-rows: 1fr; }
  .st-desc p { opacity: 1; padding-top: 10px; }
  .st-card__body h3 { white-space: normal; }
}
@media (max-width: 600px) { .st-card { height: 380px; } }
.st-card__body h3 { white-space: normal; overflow: visible; text-overflow: clip; font-size: 20px; text-wrap: balance; }
.st-item.is-active .st-card__body h3 { font-size: 24px; }
@media (max-width: 960px) {
  .st-head { grid-template-columns: 1fr; }
  .st-item.is-active .st-card__body h3 { font-size: 22px; }
}
.st-card__body { bottom: 24px; }

/* ---------- Proceso: encabezado mejorado ---------- */
.st-head { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 64px; align-items: end; padding-bottom: 36px; border-bottom: 1px solid #ECECEF; }
.st-head__main .st-title { margin-top: 14px; font-size: clamp(38px, 4.6vw, 64px); line-height: 1.02; max-width: 680px; }
.st-accent::after { display: none; }
.st-accent { color: var(--oak); }
.st-aside { justify-self: end; max-width: 400px; gap: 20px; padding-bottom: 6px; }
.st-aside p { font-size: 16px; line-height: 1.6; color: #6E727C; }
.st-aside p strong { display: block; margin-bottom: 4px; font-weight: 500; color: var(--ink); }
.st-list { margin-top: 40px; }
@media (max-width: 960px) {
  .st-head { grid-template-columns: 1fr; gap: 20px; padding-bottom: 28px; }
  .st-aside { justify-self: start; }
}

/* ---------- Espaciado uniforme entre secciones ---------- */
:root { --section-y: clamp(64px, 7vw, 96px); }
.section, .ba-section, .steps-section, .t-section { padding-block: var(--section-y); }
.g-section { padding-top: 24px; padding-bottom: var(--section-y); }
.t-cols { height: 560px; }

/* Proceso: encabezado sin morado */
.st-accent { color: #9A9DA6; }
.st-head { align-items: center; }
.st-aside { border-left: 0; }
.st-aside p { font-size: 17px; }
.st-aside p strong { font-size: 18px; }
.st-card img { object-position: center; }

/* WhatsApp flotante siempre visible */
.wa-float, .wa-float.is-visible { transform: none; z-index: 60; }

/* =========================================================
   Animaciones finales
   ========================================================= */

/* ---- Botones ---- */
.btn { position: relative; overflow: hidden; isolation: isolate; will-change: transform;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background-color .25s, color .25s, border-color .25s; }
.btn::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 45%; z-index: -1;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.35), transparent);
  transform: skewX(-20deg); transition: left .7s var(--ease); pointer-events: none;
}
.btn--white::after, .btn--soft::after { background: linear-gradient(100deg, transparent, rgba(12,13,18,.08), transparent); }
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(12,13,18,.18); }
.btn:hover::after { left: 120%; }
.btn:active { transform: translateY(0) scale(.97); box-shadow: 0 4px 10px rgba(12,13,18,.14); transition-duration: .1s; }
.btn .icon:not(.icon--lead) { transition: transform .35s var(--ease); }
.btn:hover .icon:not(.icon--lead) { transform: translateX(4px); }
.btn .icon--lead { transition: transform .5s var(--ease); }
.btn:hover .icon--lead { transform: rotate(-45deg) scale(1.08); }

.ba-cat, .ba-toggle button, .hero-thumb, .ft-socials a, .icon-link, .menu-toggle { transition: transform .3s var(--ease), background-color .2s, color .2s, border-color .2s, opacity .3s, width .45s var(--ease); }
.ba-cat:hover, .ft-socials a:hover, .icon-link:hover { transform: translateY(-2px); }
.ba-cat:active, .ba-toggle button:active, .hero-thumb:active, .ft-socials a:active { transform: scale(.94); }

/* WhatsApp: latido suave */
.wa-float::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: -1;
  background: #25D366; animation: waPulse 2.4s ease-out infinite;
}
.wa-float { isolation: isolate; transition: transform .3s var(--ease), background-color .2s; }
.wa-float:hover { transform: scale(1.08) rotate(-6deg); }
@keyframes waPulse { 0% { transform: scale(1); opacity: .55; } 80%, 100% { transform: scale(1.7); opacity: 0; } }

/* ---- Entrada de secciones ---- */
.js .sec-anim { opacity: 0; transform: translateY(48px) scale(.985); transition: opacity 1s var(--ease), transform 1.1s var(--ease); }
.js .sec-anim.is-in { opacity: 1; transform: none; }

/* Revelado con desenfoque */
.js .reveal { filter: blur(6px); transition: opacity .9s var(--ease), transform .9s var(--ease), filter .9s var(--ease); }
.js .reveal.is-visible { filter: none; }

/* Títulos palabra por palabra */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .06em; margin-bottom: -.06em; }
.w > i { display: inline-block; font-style: inherit; transform: translateY(105%); transition: transform .9s var(--ease); transition-delay: calc(var(--i) * 45ms); }
.split.is-split.is-in .w > i { transform: none; }
.js .split.reveal { filter: none; opacity: 1; transform: none; }

/* Imágenes que se descubren */
.js .img-in { clip-path: inset(12% 12% 12% 12% round 24px); transition: clip-path 1.2s var(--ease); }
.js .img-in.is-in { clip-path: inset(0 0 0 0 round 0); }

/* Hero: entrada inicial */
.hero-card { animation: heroIn 1.2s var(--ease) both; }
.hero-notch { animation: fadeDown .9s .5s var(--ease) both; }
.hero-strip { animation: fadeUp .9s .8s var(--ease) both; }
@keyframes heroIn { from { opacity: 0; transform: scale(.97); } to { opacity: 1; transform: none; } }
@keyframes fadeDown { from { opacity: 0; transform: translateY(-16px); } to { opacity: 1; transform: none; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  .js .sec-anim, .js .reveal, .w > i, .js .img-in { opacity: 1 !important; transform: none !important; filter: none !important; clip-path: none !important; }
}

/* ---------- Menú píldora actualizado ---------- */
.header-pill { gap: 18px; padding: 0 7px 0 22px; height: 60px; background: rgba(12,13,18,.78); }
.main-nav__inner { gap: 4px; }
.main-nav a:not(.btn) { position: relative; z-index: 0; padding: 8px 14px; color: rgba(245,245,243,.62); transition: color .25s; }
.main-nav a:not(.btn)::after { display: none; }
.main-nav a:not(.btn)::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: 999px;
  background: rgba(245,245,243,.12); transform: scale(.6); opacity: 0;
  transition: transform .35s var(--ease), opacity .25s;
}
.main-nav a:not(.btn):hover { color: #fff; }
.main-nav a:not(.btn):hover::before { transform: scale(1); opacity: 1; }
.main-nav a.is-active { color: var(--ink) !important; }
.main-nav a.is-active::before { background: #fff; transform: scale(1); opacity: 1; }
.header-cta { height: 46px; }
@media (max-width: 960px) {
  .main-nav a:not(.btn)::before { display: none; }
  .main-nav a.is-active { color: #fff !important; font-weight: 600; }
}
/* Tarjetas de servicios y pasos: misma animación para todas */
.svc-card.reveal, .st-item.reveal { transition-delay: 0ms !important; }
.js .svc-card.img-in, .js .st-card.img-in { clip-path: inset(8% 8% 8% 8% round 24px); transition: clip-path 1.1s var(--ease), transform .35s var(--ease); }
.js .svc-card.img-in.is-in, .js .st-card.img-in.is-in { clip-path: inset(0 0 0 0 round 22px); }

/* Testimonios de ejemplo con avatar ilustrado */
.t-avatar--ill { position: relative; overflow: hidden; background: var(--a); color: var(--b); }
.t-avatar--ill svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.t-avatar--ill b { position: relative; z-index: 1; font-size: 11px; color: #fff; background: var(--b); padding: 1px 4px; border-radius: 6px; transform: translateY(12px); }
.t-sample { margin-left: 6px; padding: 2px 7px; border-radius: 999px; background: #F1F1EF; color: #6E727C; font-style: normal; font-size: 11px; }
.t-avatar--face { overflow: hidden; background: #eee; box-shadow: 0 0 0 2px #fff; }
.t-avatar--face svg { width: 100%; height: 100%; display: block; }
/* Título del cierre completamente negro */
.g-title, .g-title span { color: var(--ink); }

/* Negro de marca unificado */
:root { --ink: #0B0B10; --black: #0B0B10; }
.btn--ink, .btn--dark, .ba-cat.is-active, .ba-dot.is-active::after,
.svc-card:hover .svc-card__arrow, .st-item.is-active .st-num, .t-avatar { background-color: #0B0B10; }
.btn--ink:hover, .btn--dark:hover { background-color: #1A1A22; }
.ba-cat.is-active { border-color: #0B0B10; }
.ba-dot.is-active::before { border-color: #0B0B10; }
.btn--light:hover, .btn--white { color: #0B0B10; }

/* =========================================================
   Menú móvil a pantalla completa
   ========================================================= */
@media (max-width: 960px) {
  .header-pill { background: #0B0B10; border-color: rgba(245,245,243,.08); backdrop-filter: none; -webkit-backdrop-filter: none; }
  .header-pill .brand, .header-actions { position: relative; z-index: 2; }
  .menu-toggle { border-color: rgba(245,245,243,.18); transition: transform .4s var(--ease), background-color .3s; }
  .menu-toggle:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
  .menu-toggle[aria-expanded="true"] { background: #fff; transform: rotate(90deg); }
  .menu-toggle[aria-expanded="true"] span { background: #0B0B10; }

  .main-nav {
    position: fixed; inset: 0; z-index: 1;
    top: 0; left: 0; right: 0; max-height: none; height: 100dvh;
    border: 0; border-radius: 0; box-shadow: none;
    background: #0B0B10; overflow-y: auto;
    opacity: 0; visibility: hidden; transform: none;
    clip-path: circle(0 at calc(100% - 44px) 38px);
    transition: clip-path .7s var(--ease), opacity .3s, visibility 0s linear .7s;
  }
  .main-nav.is-open { opacity: 1; visibility: visible; clip-path: circle(150% at calc(100% - 44px) 38px); transition: clip-path .7s var(--ease), opacity .2s; }
  .main-nav__inner {
    min-height: 100%; box-sizing: border-box;
    display: flex; flex-direction: column; justify-content: center; gap: 0;
    padding: 110px 28px 40px; counter-reset: nav;
  }
  .nav-cat, .nav-sep { display: none !important; }
  .main-nav a:not(.btn), .main-nav a:not(.btn):hover, .main-nav a.is-active {
    counter-increment: nav; display: flex; align-items: baseline; gap: 16px;
    padding: 14px 0; border: 0; border-bottom: 1px solid rgba(245,245,243,.08); background: none;
    font-family: var(--font-display); font-size: clamp(38px, 11vw, 56px); font-weight: 500; letter-spacing: -0.03em; line-height: 1.05;
    color: rgba(245,245,243,.45);
  }
  .main-nav a:not(.btn)::before {
    content: "0" counter(nav); display: inline-block; position: static; inset: auto; transform: none; opacity: 1; background: none;
    font-family: var(--font-sans); font-size: 13px; font-weight: 500; letter-spacing: 0; color: rgba(245,245,243,.4);
    border-radius: 0; min-width: 22px;
  }
  .main-nav a:not(.btn):hover, .main-nav a:not(.btn):active, .main-nav a.is-active { color: #fff !important; }
  .main-nav a.is-active::before { color: #fff; }
  .nav-cta-mobile { margin-top: 36px; height: 58px; font-size: 16px; background: #fff; color: #0B0B10; }

  /* Entrada escalonada */
  .main-nav__inner > * { opacity: 0; transform: translateY(28px); transition: opacity .5s var(--ease), transform .6s var(--ease); }
  .main-nav.is-open .main-nav__inner > * { opacity: 1; transform: none; }
  .main-nav.is-open .main-nav__inner > :nth-child(1) { transition-delay: .18s; }
  .main-nav.is-open .main-nav__inner > :nth-child(2) { transition-delay: .24s; }
  .main-nav.is-open .main-nav__inner > :nth-child(3) { transition-delay: .30s; }
  .main-nav.is-open .main-nav__inner > :nth-child(4) { transition-delay: .36s; }
  .main-nav.is-open .main-nav__inner > .nav-cta-mobile { transition-delay: .46s; }

  html.menu-lock, html.menu-lock body { overflow: hidden; }
  html.menu-lock .wa-float { opacity: 0; pointer-events: none; }
}
.t-avatar--face { box-shadow: none; border: 0; }
.t-avatar--photo { display: block; object-fit: cover; background: #eee; box-shadow: none; }

/* ---------- Servicios: tarjeta Coberturas a todo el ancho ---------- */
.svc-grid { grid-template-rows: repeat(2, 300px) 360px; }
.svc-card--full { grid-column: 1 / -1; }
.svc-card--full h3 { font-size: 30px; }
.svc-card--full p { max-width: 460px; }
.svc-card__tag { display: inline-block; margin-bottom: 10px; padding: 4px 10px; border-radius: 999px; background: #fff; color: var(--ink); font-size: 12px; font-weight: 600; }
@media (max-width: 960px) {
  .svc-grid { grid-template-rows: 340px; grid-auto-rows: 260px; }
  .svc-card--full { grid-column: span 2; height: 340px; }
}
@media (max-width: 600px) {
  .svc-card--full { grid-column: auto; height: 340px; }
  .svc-card--full h3 { font-size: 24px; }
}

/* ---------- Proceso: transición más suave ---------- */
:root { --ease-soft: cubic-bezier(.45, 0, .15, 1); }
@media (min-width: 961px) {
  .st-item { transition: flex-grow 1.1s var(--ease-soft); will-change: flex-grow; }
}
.st-card { transition: box-shadow 1.1s var(--ease-soft); }
.st-card img { transition: transform 1.8s var(--ease-soft), filter 1.1s var(--ease-soft); }
.st-card::after { transition: opacity 1.1s var(--ease-soft); }
.st-chip { transition: background-color .9s var(--ease-soft), color .9s var(--ease-soft); }
.st-big { transition: color 1s var(--ease-soft); }
/* Título sin salto de tamaño: se agranda con escala */
.st-card__body h3, .st-item.is-active .st-card__body h3 { font-size: 22px; transform-origin: left bottom; transition: transform 1s var(--ease-soft); }
.st-item.is-active .st-card__body h3 { transform: scale(1.09); }
.st-card__body h3 { white-space: nowrap; }
/* Descripción: se despliega y aparece con más calma */
.st-desc { transition: grid-template-rows 1s var(--ease-soft); }
.st-desc p { transform: translateY(8px); transition: opacity .6s var(--ease-soft), transform .8s var(--ease-soft); }
.st-item.is-active .st-desc p { transform: none; transition-delay: .35s; }
@media (max-width: 960px) { .st-card__body h3 { white-space: normal; } .st-item.is-active .st-card__body h3 { transform: none; } }

/* =========================================================
   Nosotros
   ========================================================= */
.ab-head { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 64px; align-items: end; }
.ab-title { font-size: clamp(36px, 4.4vw, 60px); line-height: 1.04; font-weight: 500; letter-spacing: -0.035em; color: var(--ink); }
.ab-title .ab-muted, .ab-title .ab-muted .w > i { color: #9A9DA6; }
.ab-aside { justify-self: end; max-width: 400px; display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.ab-aside p { font-size: 16px; line-height: 1.6; color: #5B5F6B; }

.ab-grid { margin-top: 56px; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 56px; align-items: stretch; }

/* Collage */
.ab-media { position: relative; min-height: 560px; }
.ab-photo { position: absolute; overflow: hidden; border-radius: 24px; background: #EEF0F3; }
.ab-photo img { width: 100%; height: 100%; object-fit: cover; transition: opacity .35s var(--ease-soft, ease), transform 1.4s var(--ease-soft, ease); }
.ab-photo--a { left: 0; top: 0; width: 78%; height: 100%; }
.ab-photo--b { right: 0; bottom: 48px; width: 44%; height: 58%; border: 8px solid #fff; border-radius: 30px; box-shadow: 0 24px 60px rgba(12,13,18,.18); }
.ab-media.is-swapping .ab-photo img { opacity: 0; transform: scale(1.03); }
.ab-media:hover .ab-photo--a img { transform: scale(1.03); }
.ab-badge {
  position: absolute; left: 20px; bottom: 20px; display: flex; align-items: center; gap: 12px;
  padding: 12px 18px 12px 14px; border-radius: 18px;
  background: rgba(255,255,255,.9); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px rgba(12,13,18,.12);
}
.ab-badge strong { font-family: var(--font-display); font-size: 36px; font-weight: 600; line-height: 1; letter-spacing: -0.03em; color: var(--ink); }
.ab-badge span { font-size: 13px; line-height: 1.35; color: #5B5F6B; }

/* Acordeón */
.ab-accordion { display: flex; flex-direction: column; gap: 12px; }
.ab-item { border-radius: 22px; border: 1px solid #ECECEF; background: #fff; transition: background-color .5s var(--ease-soft, ease), border-color .5s var(--ease-soft, ease), flex-grow .6s var(--ease-soft, ease); }
.ab-item:not(.is-open):hover { border-color: #D5D7DC; }
.ab-item.is-open { background: #F4F4F2; border-color: #F4F4F2; flex-grow: 1; }
.ab-item h3 { margin: 0; }
.ab-trigger {
  width: 100%; display: flex; align-items: center; gap: 16px; padding: 26px 28px;
  border: 0; background: none; color: var(--ink); text-align: left; cursor: pointer;
}
.ab-num { font-size: 13px; font-weight: 500; color: #9A9DA6; min-width: 22px; }
.ab-label { flex: 1; font-family: var(--font-display); font-size: clamp(26px, 2.6vw, 34px); font-weight: 500; letter-spacing: -0.025em; line-height: 1.1; }
.ab-plus {
  flex-shrink: 0; width: 44px; height: 44px; border-radius: 999px; display: flex; align-items: center; justify-content: center;
  background: #F1F1EF; color: var(--ink); transition: transform .5s var(--ease-soft, ease), background-color .3s, color .3s;
}
.ab-plus svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.ab-trigger:hover .ab-plus { background: var(--ink); color: #fff; }
.ab-item.is-open .ab-plus { transform: rotate(45deg); background: var(--ink); color: #fff; }
.ab-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .6s var(--ease-soft, ease); }
.ab-item.is-open .ab-panel { grid-template-rows: 1fr; }
.ab-panel__inner { overflow: hidden; padding: 0 28px 0 66px; }
.ab-item.is-open .ab-panel__inner { padding-bottom: 28px; }
.ab-panel p { max-width: 520px; font-size: 15.5px; line-height: 1.65; color: #5B5F6B; opacity: 0; transform: translateY(8px); transition: opacity .5s var(--ease-soft, ease), transform .6s var(--ease-soft, ease); }
.ab-points { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 8px; opacity: 0; transition: opacity .5s var(--ease-soft, ease); }
.ab-points li { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; background: #fff; font-size: 13px; font-weight: 500; color: var(--ink); }
.ab-points .icon { width: 14px; height: 14px; stroke-width: 2.4; color: var(--oak); }
.ab-item.is-open .ab-panel p { opacity: 1; transform: none; transition-delay: .2s; }
.ab-item.is-open .ab-points { opacity: 1; transition-delay: .35s; }

@media (max-width: 960px) {
  .ab-head { grid-template-columns: 1fr; gap: 20px; }
  .ab-aside { justify-self: start; }
  .ab-grid { grid-template-columns: 1fr; gap: 32px; margin-top: 40px; }
  .ab-media { min-height: 420px; }
}
@media (max-width: 600px) {
  .ab-media { min-height: 340px; }
  .ab-photo--a { width: 84%; }
  .ab-photo--b { width: 48%; height: 50%; bottom: 30px; border-width: 6px; }
  .ab-badge { left: 12px; bottom: 12px; padding: 10px 14px 10px 12px; }
  .ab-badge strong { font-size: 28px; }
  .ab-trigger { padding: 20px; gap: 12px; }
  .ab-plus { width: 38px; height: 38px; }
  .ab-panel__inner { padding: 0 20px; }
  .ab-item.is-open .ab-panel__inner { padding-bottom: 22px; }
}

/* Más aire entre Nosotros y Proyectos, y margen lateral del bloque gris */
.ab-section { padding-bottom: calc(var(--section-y) + 40px); }
.ba-section { margin: 16px 8px 8px !important; border-radius: 28px; }
@media (max-width: 600px) { .ab-section { padding-bottom: calc(var(--section-y) + 16px); } .ba-section { margin-top: 8px !important; } }

/* Nosotros → Proyectos: más margen inferior */
.ab-section { padding-bottom: calc(var(--section-y) + 72px) !important; }
.ba-section { margin: 40px 8px 8px !important; width: auto; }
@media (max-width: 600px) { .ab-section { padding-bottom: calc(var(--section-y) + 32px) !important; } .ba-section { margin-top: 16px !important; } }
.ba-title { max-width: 980px; text-wrap: nowrap; }
@media (max-width: 960px) { .ba-title { text-wrap: balance; } .ba-title br { display: none; } }
/* Título de Proyectos: mismo tamaño que los demás, en 2 líneas */
.ba-title { font-size: clamp(36px, 4.4vw, 60px); line-height: 1.04; letter-spacing: -0.035em; max-width: none; text-wrap: nowrap; }
@media (max-width: 1100px) { .ba-title { text-wrap: balance; } .ba-title br { display: none; } }

/* Todos los títulos de sección con el mismo estilo que Servicios (excepto el hero) */
.svc-title, .ab-title, .ba-title, .st-title, .t-title, .g-title, .ft-cta h2 {
  font-family: var(--font-display);
  font-size: clamp(32px, 3.4vw, 48px) !important;
  line-height: 1.1 !important;
  font-weight: 500 !important;
  letter-spacing: -0.025em !important;
}

/* ============ Encuadre de fotos: más aire para ver el mueble completo ============ */
.ba-media { aspect-ratio: 3 / 2 !important; }
.svc-grid { grid-template-rows: repeat(2, 340px) 360px; }
@media (max-width: 960px) {
  .ba-media { aspect-ratio: 4 / 3 !important; }
  .svc-grid { grid-template-rows: 340px; grid-auto-rows: 300px; }
}
@media (max-width: 700px) {
  .hero-bg { object-position: 62% 50%; }
}
@media (max-width: 600px) {
  .ba-media { aspect-ratio: 4 / 5 !important; }
  .svc-grid { grid-template-rows: 320px; grid-auto-rows: 280px; }
}

/* Nosotros: titular y bajada alineados arriba */
.ab-head { align-items: start; }
.ab-aside { padding-top: 6px; }

/* Paginación del carrusel con más proyectos: que quepa en cualquier ancho */
.ba-dots { flex-wrap: wrap; row-gap: 0; padding: 0 12px; }
@media (max-width: 600px) {
  .ba-dots { gap: 0; }
  .ba-dot { width: 20px; height: 20px; }
  .ba-dot::before { inset: 6px; }
  .ba-dot.is-active::after { inset: 8px; }
}

/* El carrusel del hero no corre cuando el hero está fuera de pantalla */
.hero-card.is-offscreen .hero-thumb.is-active .hero-thumb__bar::after,
.hero-card.is-offscreen .hero-dot.is-active::after { animation-play-state: paused; }
