/* ============================================================
   MONTAJES Y SERVICIOS GARCÍA — styles.css
   Paleta: azul cobalto y turquesa (propuesta J).
   Tipografía: Fraunces (títulos) + DM Sans (texto).
   Mobile-first. Todos los pares de texto cumplen WCAG AA (≥ 4.5:1).
   ============================================================ */

/* ─── 1. TOKENS ─────────────────────────────────────────────── */
:root {
  /* Color */
  --navy:        #0A2A66;  /* títulos, fondo oscuro · 12.8:1 sobre --bg */
  --cobalt:      #1D4ED8;  /* botón principal, enlaces · blanco encima 6.7:1 */
  --cobalt-700:  #1E40AF;  /* hover */
  --turq:        #2EC4B6;  /* acento (decoración, botón sobre fondo oscuro) */
  --turq-ink:    #062A3A;  /* texto sobre turquesa · 6.9:1 */
  --turq-text:   #0B6E68;  /* turquesa legible como texto · 5.7:1 */
  --text:        #1F2B45;  /* texto de párrafo */
  --muted:       #475776;  /* texto secundario · 6.8:1 */
  --bg:          #FFFFFF;
  --tint:        #F5F8FC;  /* fondo alterno */
  --cobalt-soft: #E3EBFB;
  --turq-soft:   #D5F3EF;
  --line:        #DFE6F2;
  --on-navy:     #FFFFFF;
  --on-navy-muted: #C5D3EE; /* 9.6:1 sobre --navy */
  --error:       #B42318;

  /* Roles que cambian con el tema */
  --heading:     var(--navy);   /* títulos, marca, etiquetas */
  --surface:     #FFFFFF;       /* tarjetas, paneles, campos */
  --link:        var(--cobalt); /* enlaces e íconos de acento */
  --em:          var(--cobalt); /* palabra destacada de los títulos */
  --solid:       var(--navy);   /* círculos de pasos, ícono de zona */
  --band:        var(--navy);   /* fondo de la sección de contacto */
  --footer-bg:   #071E4A;
  --nav-bg:      rgba(255, 255, 255, .92);
  --card-hover-border: #C9D6EC;
  --input-border: #C9D3E3;
  --placeholder: #6B7890;
  color-scheme: light;

  /* Tipografía */
  --font-display: 'Fraunces', Georgia, serif;
  --font-body:    'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;

  /* Medidas */
  --container: 1160px;
  --gutter: 1rem;
  --radius-sm: 10px;
  --radius:    16px;
  --radius-lg: 24px;
  --nav-h: 68px;
  --shadow-sm: 0 1px 2px rgba(10, 42, 102, 0.06);
  --shadow:    0 14px 34px -18px rgba(10, 42, 102, 0.35);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-reveal: cubic-bezier(0.16, 1, 0.3, 1); /* la misma del portafolio */
}

/* Tema oscuro: misma identidad cobalto y turquesa sobre azul noche.
   Todos los textos siguen cumpliendo WCAG AA. */
[data-theme="dark"] {
  color-scheme: dark;
  --bg:          #0A1325;
  --tint:        #0E1A31;
  --surface:     #13203B;
  --text:        #D3DCEA;
  --muted:       #A3B2CB;
  --heading:     #EEF3FB;
  --line:        rgba(148, 170, 210, .18);
  --link:        #8FB0FF;
  --em:          #86A8FF;
  --turq-text:   #4FD6C8;
  --cobalt-soft: rgba(96, 138, 255, .16);
  --turq-soft:   rgba(46, 196, 182, .16);
  --solid:       #1D4ED8;
  --band:        #0C1F4B;
  --footer-bg:   #060D1C;
  --nav-bg:      rgba(10, 19, 37, .86);
  --card-hover-border: rgba(143, 176, 255, .38);
  --input-border: #3A4D73;
  --placeholder: #8E9BB3;
  --on-navy-muted: #B9C7E3;
  --shadow-sm:   0 1px 2px rgba(0, 0, 0, .35);
  --shadow:      0 16px 36px -18px rgba(0, 0, 0, .7);
}

/* ─── 2. BASE ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-h) + 12px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  transition: background-color .3s var(--ease), color .3s var(--ease);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
ul, ol { padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--turq); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 1000;
  background: var(--navy); color: #fff; padding: .6rem 1rem; border-radius: var(--radius-sm);
}
.skip-link:focus { top: 1rem; }
.icon { width: 1.25em; height: 1.25em; flex-shrink: 0; }
[hidden] { display: none !important; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }

/* ─── 3. TIPOGRAFÍA COMÚN ──────────────────────────────────── */
.kicker {
  font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--turq-text); margin-bottom: .75rem;
}
.kicker--light { color: var(--turq); }
.section__title, .hero__title, .contact__title {
  font-family: var(--font-display); font-weight: 800; color: var(--heading);
  line-height: 1.12; letter-spacing: -0.01em;
}
.section__title { font-size: clamp(1.75rem, 1.2rem + 2.4vw, 2.6rem); margin-bottom: .75rem; }
.section__title em, .hero__title em { font-style: normal; color: var(--em); }
.section__lead { color: var(--muted); font-size: 1.05rem; max-width: 62ch; }

/* ─── 4. BOTONES ───────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  font-weight: 700; text-decoration: none; border-radius: 12px; border: 2px solid transparent;
  min-height: 48px; padding: .75rem 1.25rem; line-height: 1.2; text-align: center;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
}
.btn--sm { min-height: 42px; padding: .55rem 1rem; font-size: .95rem; }
.btn--lg { min-height: 54px; padding: .9rem 1.5rem; font-size: 1.02rem; }
.btn--full { width: 100%; }
.btn--primary { background: var(--cobalt); color: #fff; box-shadow: 0 10px 24px -12px rgba(29, 78, 216, .7); }
.btn--primary:hover { background: var(--cobalt-700); transform: translateY(-1px); }
.btn--outline { border-color: var(--heading); color: var(--heading); background: transparent; }
.btn--outline:hover { background: var(--heading); color: var(--bg); }
.btn--accent { background: var(--turq); color: var(--turq-ink); }
.btn--accent:hover { background: #45D3C6; transform: translateY(-1px); }

/* ─── 5. CABECERA ──────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 50; height: var(--nav-h);
  background: var(--nav-bg);
  backdrop-filter: saturate(160%) blur(12px); -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s;
}
.nav.is-scrolled { border-bottom-color: var(--line); box-shadow: var(--shadow-sm); }
.nav__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }

.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--heading); }
.brand__mark { width: 40px; height: 40px; color: var(--heading); }
.brand__mark .logo-spark, .logo-spark { fill: var(--turq); }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__name { font-family: var(--font-display); font-weight: 800; font-size: 1.35rem; letter-spacing: .06em; }
.brand__tag { font-size: .62rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; margin-top: .3rem; color: var(--muted); }
.brand--light, .brand--light .brand__mark { color: #fff; }
.brand--light .brand__tag { color: var(--on-navy-muted); }

.nav__menu { display: flex; align-items: center; gap: 1.75rem; }
.nav__link { text-decoration: none; font-weight: 500; color: var(--text); padding: .25rem 0; border-bottom: 2px solid transparent; }
.nav__link:hover { color: var(--link); border-bottom-color: var(--turq); }

.nav__burger { display: none; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; flex-direction: column; justify-content: center; align-items: center; gap: 5px; border-radius: 10px; }
.nav__burger span { display: block; width: 24px; height: 2px; background: var(--heading); border-radius: 2px; transition: transform .25s var(--ease), opacity .25s; }
.nav__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 899px) {
  .nav__burger { display: inline-flex; }
  .nav__menu {
    position: fixed; top: var(--nav-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    padding: .5rem var(--gutter) 1.25rem;
    visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s;
  }
  .nav__menu.is-open { visibility: visible; opacity: 1; transform: none; }
  .nav__link { padding: .9rem .25rem; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .nav__link:hover { border-bottom-color: var(--line); }
  .nav__cta { margin-top: 1rem; min-height: 50px; }
}

/* Idioma y tema (como el portafolio) */
.nav__controls { display: flex; align-items: center; gap: .5rem; margin-left: auto; }
.lang-switch {
  display: flex; padding: 3px; gap: 2px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--surface);
}
.lang-switch__btn {
  min-width: 38px; min-height: 34px; padding: 0 .6rem; border: 0; border-radius: 999px; cursor: pointer;
  background: transparent; color: var(--muted); font-size: .8rem; font-weight: 700; letter-spacing: .04em;
  transition: background-color .2s var(--ease), color .2s var(--ease);
}
.lang-switch__btn:hover { color: var(--heading); }
.lang-switch__btn.is-active { background: var(--cobalt); color: #fff; }
.theme-toggle {
  display: grid; place-items: center; width: 42px; height: 42px; flex-shrink: 0; cursor: pointer;
  border: 1px solid var(--line); border-radius: 50%; background: var(--surface); color: var(--heading);
  transition: color .2s var(--ease), border-color .2s var(--ease);
}
.theme-toggle:hover { color: var(--link); border-color: var(--card-hover-border); }
.theme-toggle .icon { width: 1.2rem; height: 1.2rem; }
.theme-toggle__sun { display: none; }
[data-theme="dark"] .theme-toggle__sun { display: block; }
[data-theme="dark"] .theme-toggle__moon { display: none; }

/* ─── 6. HÉROE ─────────────────────────────────────────────── */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(60rem 30rem at 100% 0%, var(--cobalt-soft), transparent 60%),
    radial-gradient(40rem 26rem at -10% 110%, var(--turq-soft), transparent 60%),
    var(--bg);
  padding-block: 2.5rem 3.5rem;
}
.hero__inner { display: grid; gap: 2.5rem; align-items: center; }
.hero__title { font-size: clamp(2.15rem, 1.4rem + 3.6vw, 3.6rem); margin-bottom: 1rem; }
.hero__lead { font-size: 1.1rem; color: var(--muted); max-width: 54ch; margin-bottom: 1.75rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-bottom: 1.75rem; }
.hero__trust { display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; color: var(--heading); font-weight: 500; font-size: .95rem; }
.hero__trust li { display: inline-flex; align-items: center; gap: .45rem; }
.hero__trust .icon { color: var(--turq-text); }

.hero__visual { position: relative; padding: 0 0 2.2rem 0; }
.hero__photo { margin: 0; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); background: var(--tint); }
.hero__photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.hero__photo img { object-position: 60% 75%; }
.hero__photo--small {
  position: absolute; left: -.25rem; bottom: 0; width: 40%;
  border: 5px solid var(--surface); border-radius: var(--radius);
}
.hero__photo--small img { aspect-ratio: 1 / 1; }
.hero__badge {
  position: absolute; right: .75rem; top: .75rem;
  display: flex; align-items: center; gap: .6rem; max-width: 60%;
  background: var(--surface); color: var(--text); font-size: .88rem; line-height: 1.3;
  padding: .7rem .9rem; border-radius: 14px; box-shadow: var(--shadow);
}
.hero__badge .icon { color: var(--link); width: 1.6rem; height: 1.6rem; }
.hero__badge strong { color: var(--heading); display: block; }

/* ─── 7. SECCIONES ─────────────────────────────────────────── */
.section { padding-block: 4rem; }
.section--tint { background: var(--tint); }
.section__head { margin-bottom: 2.25rem; }

/* Servicios */
.service-group + .service-group { margin-top: 3rem; }
.service-group__title {
  display: flex; align-items: center; gap: .6rem;
  font-family: var(--font-display); font-weight: 700; font-size: 1.45rem; color: var(--heading);
  padding-bottom: .75rem; margin-bottom: 1.25rem; border-bottom: 2px solid var(--line);
}
.service-group__title .icon { color: var(--link); width: 1.5rem; height: 1.5rem; }
.cards { display: grid; gap: 1.25rem; }
.card {
  display: flex; flex-direction: column; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-sm); transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--card-hover-border); }
.card__media { overflow: hidden; background: var(--tint); }
.card__media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform .6s var(--ease); }
.card:hover .card__media img { transform: scale(1.05); }
.card__body { display: flex; flex-direction: column; gap: .75rem; padding: 1.25rem 1.25rem 1.35rem; flex: 1; }
.card__title { font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; line-height: 1.2; color: var(--heading); }
.card__text { color: var(--muted); }
.checklist { display: grid; gap: .45rem; margin-bottom: .25rem; }
.checklist li { position: relative; padding-left: 1.6rem; font-size: .95rem; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: .2rem; width: 1.05rem; height: 1.05rem; border-radius: 50%;
  background: var(--turq-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l3.8 3.8L18 8' fill='none' stroke='%230B6E68' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 72% no-repeat;
}
.card__cta {
  white-space: nowrap;
  margin-top: auto; padding-top: .9rem; border-top: 1px solid var(--line);
  display: inline-flex; align-items: center; gap: .4rem;
  color: var(--link); font-weight: 700; text-decoration: none;
}
.card__cta .icon { transition: transform .2s var(--ease); }
.card__cta:hover { text-decoration: underline; text-underline-offset: 3px; }
.card__cta:hover .icon { transform: translateX(3px); }

[data-theme="dark"] .checklist li::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l3.8 3.8L18 8' fill='none' stroke='%234FD6C8' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
[data-theme="dark"] .field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%23A3B2CB' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
}

/* Por qué elegirnos */
.why { display: grid; gap: 2rem; }
.why__list { display: grid; gap: 1rem; }
.why__item {
  display: flex; gap: 1rem; align-items: flex-start;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.15rem 1.2rem;
}
.why__icon {
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; flex-shrink: 0;
  background: var(--cobalt-soft); color: var(--link);
}
.why__icon .icon { width: 1.45rem; height: 1.45rem; }
.why__item h3 { font-size: 1.05rem; color: var(--heading); margin-bottom: .2rem; }
.why__item p { color: var(--muted); font-size: .95rem; }

/* Proceso */
.steps { display: grid; gap: 1rem; counter-reset: step; }
.step {
  position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.35rem 1.25rem 1.3rem;
}
.step__num {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: var(--solid); color: #fff; font-family: var(--font-display); font-weight: 800; font-size: 1.2rem;
  margin-bottom: .9rem;
}
.step h3 { font-size: 1.1rem; color: var(--heading); margin-bottom: .3rem; }
.step p { color: var(--muted); font-size: .95rem; }

/* Zona */
.zone { display: flex; gap: 1.25rem; align-items: flex-start; }
.zone__icon {
  display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; flex-shrink: 0;
  background: var(--solid); color: var(--turq);
}
.zone__icon .icon { width: 1.7rem; height: 1.7rem; }

/* Antes y después — pieza visual principal.
   La foto «después» va encima y se recorta desde la izquierda hasta --pos;
   el divisor y el tirador siguen la misma variable. */
.ba {
  background: linear-gradient(180deg, var(--bg) 0%, var(--tint) 100%);
}
.ba__head { max-width: 760px; margin-inline: auto; text-align: center; }
.ba__head .section__lead { margin-inline: auto; }
.ba__frame {
  width: 100%; max-width: 1320px; margin-inline: auto; padding-inline: var(--gutter);
}
.compare {
  --pos: 50%;
  --ba-radius: 18px;
  /* En pantallas bajas se estrecha para que la foto quepa entera en la vista. */
  width: min(100%, calc((100svh - var(--nav-h) - 9rem) * 16 / 9));
  min-width: min(100%, 560px);
  margin: 0 auto;
}
.compare__stage {
  position: relative; overflow: hidden; isolation: isolate;
  aspect-ratio: 5 / 4;
  border-radius: var(--ba-radius);
  background: var(--surface);
  box-shadow:
    0 0 0 1px var(--line),
    0 2px 6px -2px rgba(10, 42, 102, .08),
    0 40px 80px -48px rgba(10, 42, 102, .45);
  cursor: ew-resize; touch-action: pan-y;
  user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent;
}
[data-theme="dark"] .compare__stage {
  box-shadow: 0 0 0 1px var(--line), 0 40px 80px -40px rgba(0, 0, 0, .8);
}
.compare__img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 55%;
  pointer-events: none;
}
.compare__after {
  position: absolute; inset: 0;
  clip-path: inset(0 0 0 var(--pos));
}
.compare.is-animating:not(.is-dragging) .compare__after { transition: clip-path .45s var(--ease); }

/* Divisor y tirador */
.compare__divider {
  position: absolute; top: 0; bottom: 0; left: var(--pos); z-index: 2;
  width: 2px; transform: translateX(-50%);
  background: rgba(255, 255, 255, .95);
  box-shadow: 0 0 0 1px rgba(10, 42, 102, .12), 0 0 18px rgba(10, 42, 102, .25);
  pointer-events: none;
}
.compare.is-animating:not(.is-dragging) .compare__divider { transition: left .45s var(--ease); }
.compare__knob {
  position: absolute; top: 50%; left: 50%;
  display: grid; place-items: center;
  width: 56px; height: 56px; border-radius: 50%;
  transform: translate(-50%, -50%);
  background: rgba(255, 255, 255, .92); color: var(--navy);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 0 0 1px rgba(10, 42, 102, .10), 0 10px 28px -8px rgba(10, 42, 102, .5);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.compare__knob .icon { width: 26px; height: 26px; }
.compare__stage:hover .compare__knob { transform: translate(-50%, -50%) scale(1.06); }
.compare.is-dragging .compare__knob {
  transform: translate(-50%, -50%) scale(.94);
  box-shadow: 0 0 0 4px rgba(46, 196, 182, .45), 0 6px 18px -6px rgba(10, 42, 102, .5);
}

/* El control real es el range (teclado y lectores de pantalla); el puntero lo maneja main.js. */
.compare__range {
  position: absolute; inset: 0; width: 100%; height: 100%; margin: 0;
  opacity: 0; pointer-events: none; z-index: 1;
}
.compare__range:focus-visible ~ .compare__divider .compare__knob {
  box-shadow: 0 0 0 3px var(--bg), 0 0 0 6px var(--turq), 0 10px 28px -8px rgba(10, 42, 102, .5);
}

/* Etiquetas discretas: se apartan cuando el divisor se acerca a ellas */
.compare__tag {
  position: absolute; top: 1rem; z-index: 3;
  padding: .38rem .8rem; border-radius: 999px;
  font-size: .7rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  color: #fff; background: rgba(10, 23, 48, .55);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  pointer-events: none; transition: opacity .3s var(--ease);
}
.compare__tag--before { left: 1rem; }
.compare__tag--after { right: 1rem; }
.compare.is-near-start .compare__tag--before,
.compare.is-near-end .compare__tag--after { opacity: 0; }

/* Pista inicial: desaparece con la primera interacción */
.compare__hint {
  position: absolute; left: 50%; bottom: 1rem; z-index: 3; transform: translateX(-50%);
  padding: .4rem .85rem; border-radius: 999px; white-space: nowrap;
  font-size: .8rem; font-weight: 500; color: #fff; background: rgba(10, 23, 48, .55);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  pointer-events: none; transition: opacity .4s var(--ease);
}
.compare.is-touched .compare__hint { opacity: 0; }

/* Pie editorial */
.compare__caption {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between;
  gap: .5rem 1.5rem; padding: 1.1rem .25rem 0;
}
.compare__meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: .35rem .9rem; }
.compare__category {
  font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--turq-text);
}
.compare__title { font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; color: var(--heading); }
.compare__location { color: var(--muted); }
.compare__note { font-size: .82rem; color: var(--muted); max-width: 52ch; }

@media (min-width: 640px) {
  .compare { --ba-radius: 22px; }
  .compare__stage { aspect-ratio: 3 / 2; }
  .compare__knob { width: 64px; height: 64px; }
  .compare__tag { top: 1.25rem; }
  .compare__tag--before { left: 1.25rem; }
  .compare__tag--after { right: 1.25rem; }
  .compare__hint { bottom: 1.25rem; }
}
@media (min-width: 1100px) {
  .compare__stage { aspect-ratio: 16 / 9; }
  .compare__caption { padding-top: 1.35rem; }
}

/* ─── 8. CONTACTO ──────────────────────────────────────────── */
.contact {
  background:
    radial-gradient(40rem 24rem at 100% 0%, rgba(46, 196, 182, .18), transparent 60%),
    var(--band);
  color: var(--on-navy); padding-block: 4rem;
}
.contact__inner { display: grid; gap: 2.25rem; align-items: start; }
.contact__title { color: #fff; font-size: clamp(1.9rem, 1.3rem + 2.6vw, 2.8rem); margin-bottom: .75rem; }
.contact__lead { color: var(--on-navy-muted); font-size: 1.05rem; max-width: 46ch; margin-bottom: 1.75rem; }
.contact__details { display: grid; gap: 1rem; }
.contact__details li { display: flex; gap: .85rem; align-items: center; }
.contact__details .icon {
  width: 44px; height: 44px; padding: 11px; border-radius: 12px;
  background: rgba(255, 255, 255, .08); color: var(--turq);
}
.contact__details span { display: block; font-size: .8rem; color: var(--on-navy-muted); text-transform: uppercase; letter-spacing: .08em; }
.contact__details a, .contact__details strong { color: #fff; font-weight: 700; font-size: 1.05rem; text-decoration: none; }
.contact__details a:hover { text-decoration: underline; text-underline-offset: 3px; }

.wa-form {
  background: var(--surface); color: var(--text); border-radius: var(--radius-lg);
  padding: 1.5rem 1.25rem; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .5);
  display: grid; gap: 1rem;
}
.field { display: grid; gap: .4rem; }
.field label { font-weight: 700; font-size: .95rem; color: var(--heading); }
.req { color: var(--error); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: .7rem .85rem;
  border: 1.5px solid var(--input-border); border-radius: 12px; background: var(--surface); color: var(--text);
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 110px; }
.field select {
  appearance: none; padding-right: 2.5rem;
  background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%23475776' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") right .8rem center / 1.1rem no-repeat;
}
.field input::placeholder, .field textarea::placeholder { color: var(--placeholder); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--cobalt); box-shadow: 0 0 0 4px var(--cobalt-soft); }
.field [aria-invalid="true"] { border-color: var(--error); }
.field__error { color: var(--error); font-size: .88rem; min-height: 0; }
.field__error:empty { display: none; }
.wa-form .btn--accent { margin-top: .25rem; }
.wa-form__note { font-size: .85rem; color: var(--muted); text-align: center; }

/* ─── 9. PIE ───────────────────────────────────────────────── */
.footer { background: var(--footer-bg); color: var(--on-navy-muted); padding-top: 2.75rem; }
.footer__inner { display: grid; gap: 1.75rem; padding-bottom: 2rem; }
.footer__brand p { margin-top: .9rem; max-width: 34ch; }
.footer__nav { display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; }
.footer__nav a, .footer__contact a { color: #fff; text-decoration: none; font-weight: 500; }
.footer__nav a:hover, .footer__contact a:hover { color: var(--turq); }
.footer__contact { display: grid; gap: .3rem; }
.footer__bottom { border-top: 1px solid rgba(255, 255, 255, .12); padding-block: 1.1rem 5.5rem; font-size: .88rem; }

/* WhatsApp flotante */
.wa-float {
  position: fixed; right: 1rem; bottom: 1rem; z-index: 60;
  width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center;
  background: #25D366; color: #fff; box-shadow: 0 12px 28px -10px rgba(0, 0, 0, .45);
  transition: transform .2s var(--ease);
}
.wa-float svg { width: 32px; height: 32px; }
.wa-float:hover { transform: scale(1.06); }

/* ─── 10. APARICIÓN AL HACER SCROLL («scroll reveal», como el portafolio) ──
   Cada bloque sube 32 px y aparece al entrar en pantalla; los vecinos se
   escalonan 0,1 s (main.js pone --reveal-delay). Solo con JS y sin
   «reducir movimiento»: si no, todo se ve quieto desde el principio. */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity .8s var(--ease-reveal), transform .8s var(--ease-reveal);
    transition-delay: var(--reveal-delay, 0s);
  }
  .js .reveal.is-visible { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

@media (max-width: 400px) {
  .nav__inner { gap: .5rem; }
  .brand { gap: .45rem; }
  .brand__mark { width: 32px; height: 32px; }
  .brand__name { font-size: 1.1rem; }
  .brand__tag { font-size: .5rem; letter-spacing: .16em; }
  .nav__controls { gap: .35rem; }
  .lang-switch__btn { min-width: 32px; padding: 0 .4rem; }
  .theme-toggle { width: 38px; height: 38px; }
}

/* ─── 11. RESPONSIVE ───────────────────────────────────────── */
@media (min-width: 640px) {
  :root { --gutter: 1.5rem; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .why__list { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .wa-form { padding: 2rem; }
  .footer__inner { grid-template-columns: 1.3fr 1fr; }
}
@media (min-width: 900px) {
  :root { --gutter: 2rem; --nav-h: 76px; }
  .nav__burger { display: none; }
  .nav__menu { margin-left: auto; }
  .nav__controls { margin-left: .5rem; }
  .hero { padding-block: 4.5rem 5.5rem; }
  .hero__inner { grid-template-columns: 1.05fr .95fr; gap: 3.5rem; }
  .section { padding-block: 5.5rem; }
  .section__head { margin-bottom: 3rem; }
  .why { grid-template-columns: .85fr 1.15fr; align-items: center; gap: 3rem; }
  .steps { grid-template-columns: repeat(4, 1fr); }
  .contact { padding-block: 5.5rem; }
  .contact__inner { grid-template-columns: .9fr 1.1fr; gap: 3.5rem; }
  .footer__inner { grid-template-columns: 1.4fr 1fr 1fr; align-items: start; }
  .footer__bottom { padding-bottom: 1.25rem; }
}
@media (min-width: 1100px) {
  .cards { grid-template-columns: repeat(4, 1fr); }
  .cards--three { grid-template-columns: repeat(3, 1fr); }
}

/* ============================================================
   12. CAPA PREMIUM — elementos del portafolio de Alexa
   (ruido, orbes, retícula, degradados, anillo del logo, scroll spy,
   marquesina, contadores, tarjetas de vidrio con luz, línea de pasos)
   adaptados a la paleta cobalto + turquesa. Todo el bloque es
   reversible: quitarlo devuelve el diseño anterior.
   ============================================================ */
:root {
  --grad-text: linear-gradient(120deg, #1D4ED8 0%, #2563EB 35%, #0E8A82 100%);
  --grad-line: linear-gradient(90deg, var(--cobalt), var(--turq));
  --glass-bg: rgba(255, 255, 255, .66);
  --glass-border: rgba(255, 255, 255, .7);
  --grid-line: rgba(10, 42, 102, .06);
  --glow-cobalt: rgba(29, 78, 216, .45);
  --spot: rgba(29, 78, 216, .09);
  --noise-opacity: .035;
}
[data-theme="dark"] {
  --bg: #070E1E;
  --tint: #0A1428;
  --surface: #0F1A31;
  --grad-text: linear-gradient(120deg, #8FB0FF 0%, #6FA0FF 35%, #4FD6C8 100%);
  --glass-bg: rgba(15, 26, 49, .62);
  --glass-border: rgba(143, 176, 255, .16);
  --grid-line: rgba(143, 176, 255, .06);
  --glow-cobalt: rgba(59, 110, 255, .55);
  --spot: rgba(111, 160, 255, .10);
  --noise-opacity: .05;
}

/* Ruido de película, como el portafolio */
.noise {
  position: fixed; inset: 0; z-index: 9999; pointer-events: none; opacity: var(--noise-opacity);
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Palabra destacada con degradado */
.hero__title em, .section__title em {
  background: var(--grad-text);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

/* Etiqueta de sección con trazo de color */
.kicker { display: inline-flex; align-items: center; gap: .65rem; }
.kicker::before {
  content: ""; width: 26px; height: 2px; border-radius: 2px; background: var(--grad-line); flex-shrink: 0;
}

/* Botones en píldora con brillo */
.btn { border-radius: 999px; }
.btn--primary {
  background: linear-gradient(135deg, #2563EB 0%, #1D4ED8 55%, #1E40AF 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), 0 10px 30px -10px var(--glow-cobalt);
}
.btn--primary:hover {
  background: linear-gradient(135deg, #2563EB 0%, #1D4ED8 55%, #1E40AF 100%);
  transform: translateY(-2px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), 0 16px 40px -10px var(--glow-cobalt), 0 0 0 4px var(--cobalt-soft);
}
.btn--outline {
  border: 1.5px solid var(--line); background: var(--glass-bg);
  backdrop-filter: blur(12px) saturate(160%); -webkit-backdrop-filter: blur(12px) saturate(160%);
}
.btn--outline:hover { background: var(--cobalt-soft); color: var(--link); border-color: var(--link); }
.btn--accent { box-shadow: 0 12px 30px -12px rgba(46, 196, 182, .8); }
.btn--accent:hover { box-shadow: 0 16px 36px -12px rgba(46, 196, 182, .9), 0 0 0 4px rgba(46, 196, 182, .2); }

/* ─── Cabecera: logo con anillo animado y menú con sección activa ─── */
@property --ring-angle { syntax: '<angle>'; initial-value: 0deg; inherits: false; }
.brand__ring {
  display: grid; place-items: center; flex-shrink: 0;
  width: 44px; height: 44px; padding: 2px; border-radius: 14px;
  background: conic-gradient(from var(--ring-angle), #1D4ED8, #2EC4B6, #0A2A66, #2EC4B6, #1D4ED8);
  box-shadow: 0 0 12px rgba(46, 196, 182, .28), 0 0 22px rgba(29, 78, 216, .18);
  animation: ring-spin 7s linear infinite;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.brand__ring .brand__mark {
  width: 100%; height: 100%; padding: 5px; border-radius: 12px;
  background: var(--surface); color: var(--heading);
}
.brand:hover .brand__ring, .brand:focus-visible .brand__ring {
  transform: scale(1.06);
  box-shadow: 0 0 16px rgba(46, 196, 182, .5), 0 0 30px rgba(29, 78, 216, .35);
}
@keyframes ring-spin { to { --ring-angle: 360deg; } }

.nav { backdrop-filter: saturate(180%) blur(18px); -webkit-backdrop-filter: saturate(180%) blur(18px); }
@media (min-width: 900px) {
  .nav__menu { gap: .2rem; }
  .nav__link {
    padding: .42rem .8rem; border-radius: 999px; border-bottom: 0; font-size: .95rem;
    transition: color .2s var(--ease), background-color .3s var(--ease), box-shadow .3s var(--ease);
  }
  .nav__link:hover { color: var(--link); background: var(--cobalt-soft); }
  .nav__link.is-active {
    color: var(--link); background: var(--cobalt-soft);
    box-shadow: inset 0 0 0 1px rgba(29, 78, 216, .22), 0 0 18px rgba(29, 78, 216, .16);
  }
  .nav__cta { margin-left: .6rem; }
}
@media (max-width: 899px) {
  .nav__menu { backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); background: var(--glass-bg); }
  .nav__link.is-active { color: var(--link); box-shadow: inset 3px 0 0 var(--turq); padding-left: .9rem; }
}
@media (min-width: 900px) and (max-width: 1099px) {
  .nav__link { padding: .4rem .55rem; font-size: .9rem; }
  .nav__cta span { display: none; }
  .nav__cta { padding-inline: .8rem; }
}

/* ─── Héroe: orbes de luz, retícula y pastilla «en vivo» ─── */
.hero { background: var(--bg); isolation: isolate; }
.hero__bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.hero__grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 60% 40%, #000 30%, transparent 75%);
          mask-image: radial-gradient(ellipse 70% 60% at 60% 40%, #000 30%, transparent 75%);
}
.orb {
  position: absolute; border-radius: 50%; filter: blur(70px); pointer-events: none;
  animation: orb-float 18s ease-in-out infinite alternate;
}
.orb--1 { width: 34rem; height: 34rem; top: -12rem; right: -10rem; background: rgba(29, 78, 216, .22); }
.orb--2 { width: 26rem; height: 26rem; bottom: -12rem; left: -10rem; background: rgba(46, 196, 182, .24); animation-duration: 22s; }
.orb--3 { width: 18rem; height: 18rem; top: 40%; left: 42%; background: rgba(99, 140, 255, .14); animation-duration: 26s; }
[data-theme="dark"] .orb--1 { background: rgba(29, 78, 216, .32); }
[data-theme="dark"] .orb--2 { background: rgba(46, 196, 182, .18); }
@keyframes orb-float {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  100% { transform: translate3d(-3rem, 2rem, 0) scale(1.12); }
}

.pill {
  display: inline-flex; align-items: center; gap: .6rem; margin-bottom: 1.25rem;
  padding: .42rem 1rem .42rem .8rem; border-radius: 999px;
  font-size: .74rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--heading);
  background: var(--glass-bg); border: 1px solid var(--line);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 6px 20px -12px rgba(10, 42, 102, .35);
}
.live-dot {
  position: relative; width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0;
  background: var(--turq); box-shadow: 0 0 10px rgba(46, 196, 182, .8);
}
.live-dot::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--turq);
  animation: live-ping 2s var(--ease) infinite;
}
@keyframes live-ping { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(2.8); opacity: 0; } }

.hero__title { letter-spacing: -0.02em; }
.hero__visual::before {
  content: ""; position: absolute; inset: 10% 8% 0 12%; z-index: -1; border-radius: 40%;
  background: linear-gradient(135deg, rgba(29, 78, 216, .35), rgba(46, 196, 182, .35));
  filter: blur(60px); opacity: .7;
}
.hero__photo { box-shadow: 0 0 0 1px var(--glass-border), 0 40px 80px -40px rgba(10, 42, 102, .55); }
.hero__photo--small { border-color: var(--glass-border); box-shadow: 0 24px 50px -24px rgba(10, 42, 102, .6); }
.hero__badge {
  background: var(--glass-bg); border: 1px solid var(--glass-border);
  backdrop-filter: blur(16px) saturate(170%); -webkit-backdrop-filter: blur(16px) saturate(170%);
}
.hero__trust li {
  padding: .35rem .8rem .35rem .6rem; border-radius: 999px; border: 1px solid var(--line);
  background: var(--glass-bg); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); font-size: .9rem;
}

/* ─── Marquesina de servicios ─── */
.marquee {
  overflow: hidden; padding-block: 1.15rem;
  border-block: 1px solid var(--line); background: var(--surface);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee__track { display: flex; width: max-content; animation: marquee 48s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__group { display: flex; align-items: center; gap: 2rem; padding-right: 2rem; }
.marquee__group span {
  font-family: var(--font-display); font-weight: 700; font-size: clamp(1.1rem, .9rem + 1vw, 1.55rem);
  color: var(--heading); white-space: nowrap; letter-spacing: -0.01em;
}
.marquee__group span:nth-of-type(even) { color: transparent; -webkit-text-stroke: 1px var(--heading); }
.marquee__spark { width: 14px; height: 14px; color: var(--turq); flex-shrink: 0; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ─── Tarjetas de vidrio: luz que sigue al cursor y borde con degradado ─── */
.card, .why__item, .fact { position: relative; isolation: isolate; }
.card::before, .why__item::before, .fact::before {
  content: ""; position: absolute; inset: 0; z-index: 2; border-radius: inherit; pointer-events: none;
  background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 0%), var(--spot), transparent 45%);
  opacity: 0; transition: opacity .35s var(--ease);
}
.card::after, .why__item::after, .fact::after {
  content: ""; position: absolute; inset: -1px; z-index: 3; border-radius: inherit; pointer-events: none;
  padding: 1px; background: linear-gradient(135deg, var(--cobalt), var(--turq) 60%, transparent);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity .35s var(--ease);
}
.card:hover::before, .card:hover::after,
.why__item:hover::before, .why__item:hover::after,
.fact:hover::before, .fact:hover::after { opacity: 1; }
.card { box-shadow: 0 1px 2px rgba(10, 42, 102, .05), 0 18px 40px -30px rgba(10, 42, 102, .35); }
.card:hover { box-shadow: 0 30px 60px -30px rgba(10, 42, 102, .45); border-color: transparent; }
.card__media { position: relative; }
.card__media::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 40%; pointer-events: none;
  background: linear-gradient(to top, rgba(10, 23, 48, .25), transparent);
}
.service-group__title { border-bottom: 0; position: relative; }
.service-group__title::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: linear-gradient(90deg, var(--cobalt), var(--turq) 30%, var(--line) 60%);
}

.why__item { transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.why__item:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.why__icon {
  background: linear-gradient(135deg, var(--cobalt-soft), var(--turq-soft));
  box-shadow: inset 0 0 0 1px rgba(29, 78, 216, .12);
}

/* ─── Datos con contadores ─── */
.facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; margin-bottom: 3.5rem; }
.fact {
  padding: 1.5rem 1.1rem; border-radius: var(--radius); text-align: center;
  background: var(--surface); border: 1px solid var(--line);
  box-shadow: 0 18px 40px -32px rgba(10, 42, 102, .4);
}
.fact__num {
  display: block; margin-bottom: .45rem;
  font-family: var(--font-display); font-weight: 800; line-height: 1;
  font-size: clamp(2.3rem, 1.7rem + 2.2vw, 3.3rem); font-variant-numeric: tabular-nums;
  background: var(--grad-text); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.fact span { display: block; color: var(--muted); font-size: .92rem; line-height: 1.4; }

/* ─── Proceso como línea conectada (el «stack flow» del portafolio) ─── */
.steps--rail { position: relative; gap: 0; }
.steps--rail .step {
  background: none; border: 0; border-radius: 0; padding: 0 0 2rem 4.25rem; min-height: 44px;
}
.steps--rail .step:last-child { padding-bottom: 0; }
.steps--rail .step__num {
  position: absolute; left: 0; top: 0; margin: 0; z-index: 1;
  background: var(--surface); color: var(--link);
  box-shadow: inset 0 0 0 2px var(--link), 0 0 0 6px var(--bg);
  transition: transform .3s var(--ease);
}
.steps--rail .step:hover .step__num { transform: scale(1.08); }
.steps--rail .step:last-child .step__num {
  background: linear-gradient(135deg, var(--cobalt), var(--turq)); color: #fff;
  box-shadow: 0 0 0 6px var(--bg), 0 0 24px rgba(46, 196, 182, .6);
}
.steps--rail::before {
  content: ""; position: absolute; left: 21px; top: 22px; bottom: 22px; width: 2px;
  background: linear-gradient(180deg, var(--cobalt), var(--turq));
  opacity: .55; border-radius: 2px;
}
.steps--rail .step h3 { padding-top: .55rem; }

/* ─── Antes y después: halo detrás del comparador ─── */
.ba__frame { position: relative; isolation: isolate; }
.ba__frame .compare { position: relative; }
.ba__frame .compare::before {
  content: ""; position: absolute; inset: 10% 8% 12%; z-index: -1; border-radius: 30%;
  background: linear-gradient(90deg, rgba(29, 78, 216, .45), rgba(46, 196, 182, .45));
  filter: blur(70px); opacity: .45;
}

/* ─── Zona: tarjeta de vidrio y ciudades en chips ─── */
.zone {
  position: relative; overflow: hidden; padding: 1.75rem 1.25rem; border-radius: var(--radius-lg);
  background: var(--surface); border: 1px solid var(--line);
  box-shadow: 0 30px 60px -40px rgba(10, 42, 102, .45);
}
.zone::before {
  content: ""; position: absolute; right: -8rem; top: -8rem; width: 22rem; height: 22rem; border-radius: 50%;
  background: radial-gradient(circle, rgba(46, 196, 182, .22), transparent 65%); pointer-events: none;
}
.zone__icon { background: linear-gradient(135deg, var(--cobalt), #0A2A66); box-shadow: 0 12px 26px -12px var(--glow-cobalt); }
.chips { display: flex; flex-wrap: wrap; gap: .55rem; margin-top: 1.4rem; }
.chip {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .45rem .95rem; border-radius: 999px; font-size: .92rem; font-weight: 500;
  color: var(--heading); background: var(--bg); border: 1px solid var(--line);
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease), transform .25s var(--ease);
}
.chip:hover { border-color: var(--turq); box-shadow: 0 0 0 3px var(--turq-soft); transform: translateY(-1px); }
.chip--home { border-color: rgba(46, 196, 182, .55); background: var(--turq-soft); font-weight: 700; }
.chip--more { color: var(--muted); border-style: dashed; }

/* ─── Contacto: orbes y formulario con borde de degradado ─── */
.contact { position: relative; overflow: hidden; isolation: isolate; }
.contact__bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.contact__bg .orb--1 { background: rgba(46, 196, 182, .22); top: -14rem; right: -8rem; }
.contact__bg .orb--2 { background: rgba(59, 110, 255, .3); bottom: -14rem; left: -10rem; }
.contact__details .icon {
  background: rgba(255, 255, 255, .07); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1);
}
.wa-form { position: relative; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .6), 0 0 60px -20px rgba(46, 196, 182, .35); }
.wa-form::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; pointer-events: none; padding: 1.5px;
  background: linear-gradient(135deg, var(--turq), rgba(29, 78, 216, .9) 50%, rgba(46, 196, 182, .2));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
.field input, .field select, .field textarea { border-radius: 14px; }

/* ─── Pie y botón flotante ─── */
.footer { position: relative; }
.footer::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--turq), var(--cobalt), transparent); opacity: .6;
}
.wa-float::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #25D366;
  animation: live-ping 2.6s var(--ease) infinite; pointer-events: none;
}

/* ─── Responsive de la capa ─── */
@media (min-width: 640px) {
  .zone { padding: 2.25rem 2.25rem; }
  .steps--rail { grid-template-columns: 1fr; }
}
@media (min-width: 900px) {
  .facts { grid-template-columns: repeat(4, 1fr); gap: 1.25rem; margin-bottom: 4.5rem; }
  .zone { padding: 2.75rem 3rem; }
  .steps--rail { grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
  .steps--rail .step { padding: 4.25rem 0 0 0; }
  .steps--rail::before {
    left: 22px; right: calc((100% - 4.5rem) / 4 - 22px); top: 21px; bottom: auto; width: auto; height: 2px;
    background: linear-gradient(90deg, var(--cobalt), var(--turq));
  }
  .steps--rail .step h3 { padding-top: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .brand__ring, .orb, .marquee__track, .live-dot::after, .wa-float::after { animation: none !important; }
}
.nav__link, .brand__text, .brand__tag, .brand__name { white-space: nowrap; }
.brand { flex-shrink: 0; }
.marquee__group span:nth-of-type(even) { -webkit-text-stroke: 1px color-mix(in srgb, var(--heading) 75%, transparent); }
@media (min-width: 900px) and (max-width: 1239px) {
  .nav__inner { gap: .5rem; }
  .brand__tag { display: none; }
}
@media (min-width: 900px) and (max-width: 979px) {
  .nav__link { padding: .4rem .42rem; font-size: .86rem; }
  .nav__cta { margin-left: .2rem; }
  .nav__controls { margin-left: .25rem; gap: .3rem; }
}
@media (max-width: 899px) {
  .nav__menu { background: var(--surface); backdrop-filter: none; -webkit-backdrop-filter: none; }
}

/* ─── Carrusel de Reformas (mecánica del portafolio) ───
   El ancho de cada tarjeta sale del ancho del propio carrusel (unidades cq),
   así siempre cabe un número entero: 3 / 2 y, en móvil, 1 con la siguiente asomando. */
.carousel { display: flex; align-items: stretch; gap: .75rem; position: relative; }
.carousel__viewport {
  flex: 1; min-width: 0; container-type: inline-size;
  overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scrollbar-width: none;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 12px, #000 calc(100% - 12px), transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 12px, #000 calc(100% - 12px), transparent 100%);
}
.carousel__viewport::-webkit-scrollbar { display: none; }
.carousel__viewport.is-drifting { scroll-snap-type: none; }
.carousel__viewport:focus-visible { outline: 3px solid var(--turq); outline-offset: 4px; border-radius: var(--radius); }
.carousel__track.cards {
  display: flex; grid-template-columns: none; gap: 1.25rem;
  padding: .6rem 12px 1.4rem;
}
.carousel__track .card { flex: 0 0 calc(86cqw - 24px); scroll-snap-align: center; }
@container (min-width: 560px) {
  .carousel__track .card { flex-basis: calc((100cqw - 24px - 1.25rem) / 2); scroll-snap-align: start; }
}
@container (min-width: 900px) {
  .carousel__track .card { flex-basis: calc((100cqw - 24px - 2 * 1.25rem) / 3); }
}

.carousel__nav {
  display: none; flex: none; align-self: center; place-items: center;
  width: 48px; height: 48px; border-radius: 50%; cursor: pointer;
  color: var(--heading); background: var(--glass-bg); border: 1px solid var(--line);
  backdrop-filter: blur(14px) saturate(160%); -webkit-backdrop-filter: blur(14px) saturate(160%);
  box-shadow: 0 10px 24px -14px rgba(10, 42, 102, .5);
  transition: color .2s var(--ease), border-color .2s var(--ease), box-shadow .25s var(--ease), transform .25s var(--ease);
}
.carousel__nav .icon { width: 1.25rem; height: 1.25rem; }
.carousel__nav--prev .icon { transform: rotate(180deg); }
.carousel__nav:hover {
  color: var(--link); border-color: var(--link); transform: translateY(-1px);
  box-shadow: 0 0 0 4px var(--cobalt-soft), 0 14px 30px -14px var(--glow-cobalt);
}
.carousel.is-static .carousel__nav { visibility: hidden; }

.carousel__dots { display: flex; justify-content: center; gap: .5rem; margin-top: .4rem; }
.carousel__dot {
  width: 8px; height: 8px; padding: 0; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--line); transition: width .35s var(--ease), background-color .35s var(--ease);
}
.carousel__dot:hover { background: var(--card-hover-border); }
.carousel__dot.is-active { width: 28px; background: var(--grad-line); }
/* Área táctil de 24 px sin agrandar el punto */
.carousel__dot { position: relative; }
.carousel__dot::after { content: ""; position: absolute; inset: -8px -4px; }

@media (min-width: 640px) {
  .carousel__nav { display: grid; }
}

/* ─── Marquesina v2: letras sólidas (sin contorno) y enlaces a cada servicio ─── */
.marquee__group span:nth-of-type(even) { -webkit-text-stroke: 0; }
.marquee__item {
  font-family: var(--font-display); font-weight: 700; font-size: clamp(1.1rem, .9rem + 1vw, 1.5rem);
  letter-spacing: -0.01em; white-space: nowrap; text-decoration: none;
  color: var(--heading); padding: .2rem .15rem; border-radius: 8px;
  background-image: var(--grad-line); background-repeat: no-repeat;
  background-size: 0% 2px; background-position: 0 100%;
  transition: color .25s var(--ease), background-size .35s var(--ease);
}
.marquee__item:nth-of-type(even) { color: var(--muted); }
.marquee__item:hover, .marquee__item:focus-visible { color: var(--link); background-size: 100% 2px; }
.marquee:focus-within .marquee__track { animation-play-state: paused; }

/* Tarjeta a la que se llega desde la marquesina */
.card.is-targeted { animation: card-target 2.6s var(--ease); }
.card.is-targeted::after { opacity: 1; }
@keyframes card-target {
  0%   { box-shadow: 0 0 0 0 rgba(46, 196, 182, 0); transform: translateY(0); }
  15%  { box-shadow: 0 0 0 6px rgba(46, 196, 182, .35), 0 30px 60px -30px rgba(10, 42, 102, .45); transform: translateY(-4px); }
  70%  { box-shadow: 0 0 0 6px rgba(46, 196, 182, .25), 0 30px 60px -30px rgba(10, 42, 102, .45); transform: translateY(-4px); }
  100% { box-shadow: 0 1px 2px rgba(10, 42, 102, .05), 0 18px 40px -30px rgba(10, 42, 102, .35); transform: translateY(0); }
}
.wa-float::after { animation-name: wa-ping; }
@keyframes wa-ping { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(1.45); opacity: 0; } }
.carousel__viewport {
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 36px, #000 calc(100% - 36px), transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 36px, #000 calc(100% - 36px), transparent 100%);
}
