/* =========================================================
   AECSA Design Tokens
   ========================================================= */

:root {
  /* Marca */
  --c-azul: #0E5FA8;
  --c-azul-oscuro: #083D6E;
  --c-azul-noche: #051F3B;
  --c-bugambilia: #D6157D;
  --c-bugambilia-hover: #C11370;
  --c-bugambilia-active: #A80F60;
  --c-celeste: #7FD1FF;
  --c-celeste-soft: #E4F4FF;

  /* Neutrales */
  --c-white: #FFFFFF;
  --c-ink: #1B2733;
  --c-ink-soft: #2C3B4A;
  --c-gris: #5B6B7A;
  --c-gris-soft: #8497A8;
  --c-linea: #E3E9EF;
  --c-linea-soft: #EEF3F8;
  --c-fondo-suave: #F6F9FC;
  --c-fondo-crudo: #FBFCFE;

  /* Hero light */
  --hero-grad-start: #3A95FF;
  --hero-grad-end: #FFFFFF;
  --hero-heading: #09002A;
  --hero-subtitle: #1B2733;
  --hero-kicker: #0E5FA8;

  /* Dark */
  --c-dark-base: #091422;
  --c-dark-surface: #0F2034;
  --c-dark-surface2: #13283F;
  --c-dark-text: #EAF2FA;
  --c-dark-muted: #9DB4CA;
  --c-dark-border: rgba(255,255,255,0.12);

  /* Proceso */
  --proceso-bg-start: #061A33;
  --proceso-bg-end: #0E2A4A;
  --proceso-kicker: #FF7DBE;

  /* Form selected */
  --form-selected-bg: #FDF2F8;
  --form-selected-border: #D6157D;
  --form-selected-text: #A80F60;

  /* Bugambilia pale */
  --c-bugambilia-pale: #FCE9F3;

  /* Tipografía */
  --ff: 'Montserrat', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;

  /* Escala tipográfica desktop — ratio 1.25 */
  --fs-display: 60px;
  --lh-display: 66px;
  --fs-h2: 40px;
  --lh-h2: 48px;
  --fs-h3: 22px;
  --lh-h3: 30px;
  --fs-body-lg: 18px;
  --lh-body-lg: 28px;
  --fs-body: 16px;
  --lh-body: 26px;
  --fs-body-sm: 14px;
  --lh-body-sm: 21px;
  --fs-caption: 13px;
  --lh-caption: 20px;
  --fs-tag: 10px;

  /* Spacing base 4/8 */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 20px;
  --sp-6: 24px;
  --sp-7: 28px;
  --sp-8: 32px;
  --sp-10: 40px;
  --sp-12: 48px;
  --sp-14: 56px;
  --sp-16: 64px;
  --sp-18: 72px;
  --sp-20: 80px;
  --sp-24: 96px;

  /* Section padding */
  --section-py: 96px;
  --section-px: 96px;

  /* Grid */
  --max-w: 1280px;
  --grid-gutter: 24px;

  /* Radius */
  --r-xs: 6px;
  --r-sm: 10px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 20px;
  --r-2xl: 24px;
  --r-pill: 999px;

  /* Shadows */
  --sh-xs: 0 1px 2px rgba(8, 61, 110, 0.06);
  --sh-sm: 0 2px 8px rgba(8, 61, 110, 0.06);
  --sh-card: 0 4px 20px rgba(8, 61, 110, 0.07);
  --sh-card-hover: 0 18px 40px -12px rgba(8, 61, 110, 0.22);
  --sh-cta: 0 8px 24px rgba(214, 21, 125, 0.32);
  --sh-cta-hover: 0 14px 32px rgba(214, 21, 125, 0.42);
  --sh-island: 0 8px 32px rgba(8, 61, 110, 0.10);
  --sh-island-scrolled: 0 16px 42px -8px rgba(8, 61, 110, 0.18);
  --sh-form: 0 20px 60px -20px rgba(8, 61, 110, 0.18);

  /* Motion */
  --dur-fast: 150ms;
  --dur-base: 260ms;
  --dur-slow: 420ms;
  --ease-standard: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

/* Breakpoint tablet */
@media (max-width: 1100px) {
  :root {
    --section-py: 80px;
    --section-px: 48px;
  }
}

/* Breakpoint móvil */
@media (max-width: 767px) {
  :root {
    --fs-display: 36px;
    --lh-display: 42px;
    --fs-h2: 28px;
    --lh-h2: 34px;
    --fs-h3: 20px;
    --lh-h3: 26px;
    --fs-body-lg: 16px;
    --lh-body-lg: 24px;
    --section-py: 56px;
    --section-px: 20px;
    --grid-gutter: 16px;
  }
}
/* Reset + base */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
  scroll-behavior: smooth;
  scroll-padding-top: 128px;
  scrollbar-color: #D6157D rgba(8, 61, 110, 0.08);
  scrollbar-width: auto;
}
::-webkit-scrollbar { width: 28px; }
::-webkit-scrollbar-track { background: rgba(8, 61, 110, 0.08); }
::-webkit-scrollbar-thumb {
  background: #D6157D;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover { background: #b8115e; }

body {
  margin: 0;
  font-family: var(--ff);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--c-ink);
  background: var(--c-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01", "cv11", "kern";
}

img, svg, video { display: block; max-width: 100%; height: auto; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; padding: 0; color: inherit; }
a { color: inherit; text-decoration: none; }
input, textarea, select, button { font: inherit; color: inherit; }

h1, h2, h3, h4, p { margin: 0; }

fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
legend { padding: 0; }

[hidden] { display: none !important; }

h1 {
  font-size: var(--fs-display);
  line-height: var(--lh-display);
  letter-spacing: -0.025em;
  font-weight: 800;
  color: var(--c-azul-oscuro);
}

h2 {
  font-size: var(--fs-h2);
  line-height: var(--lh-h2);
  letter-spacing: -0.022em;
  font-weight: 800;
  color: var(--c-azul-oscuro);
}

h3 {
  font-size: var(--fs-h3);
  line-height: var(--lh-h3);
  letter-spacing: -0.015em;
  font-weight: 700;
  color: var(--c-azul-oscuro);
}

::selection {
  background: var(--c-bugambilia);
  color: var(--c-white);
}

/* Focus ring */
:focus-visible {
  outline: 3px solid var(--c-celeste);
  outline-offset: 2px;
  border-radius: 6px;
}

/* Container */
.container {
  width: 100%;
  max-width: calc(var(--max-w) + var(--section-px) * 2);
  margin: 0 auto;
  padding-left: var(--section-px);
  padding-right: var(--section-px);
}

/* Section */
.section {
  padding-top: var(--section-py);
  padding-bottom: var(--section-py);
}
.section--soft { background: var(--c-fondo-suave); }
.section--dark {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(80% 60% at 20% 0%, rgba(14, 95, 168, 0.35) 0%, transparent 60%),
    radial-gradient(60% 50% at 90% 100%, rgba(214, 21, 125, 0.14) 0%, transparent 60%),
    linear-gradient(180deg, var(--proceso-bg-start) 0%, var(--proceso-bg-end) 100%);
  color: var(--c-white);
}

/* Utility */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0, 0, 0, 0); border: 0; white-space: nowrap;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
/* ============ Kicker ============ */

.kicker {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--c-bugambilia);
  margin-bottom: var(--sp-5);
}
.kicker::before {
  content: '';
  display: block;
  width: 28px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}
.kicker--celeste { color: var(--c-celeste); }
.kicker--pink    { color: var(--proceso-kicker); }
.kicker--azul    { color: var(--c-azul); }

/* ============ Botones ============ */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: 14px 26px;
  border-radius: var(--r-pill);
  font-weight: 700;
  font-size: 15px;
  line-height: 1;
  min-height: 50px;
  letter-spacing: -0.005em;
  transition:
    background-color var(--dur-base) var(--ease-standard),
    box-shadow var(--dur-base) var(--ease-standard),
    transform var(--dur-fast) var(--ease-standard),
    color var(--dur-fast) var(--ease-standard);
  white-space: nowrap;
  user-select: none;
}
.btn > .btn__arrow {
  display: inline-block;
  transition: transform var(--dur-base) var(--ease-out-expo);
}
.btn:hover > .btn__arrow { transform: translateX(4px); }

.btn--primary {
  background: var(--c-bugambilia);
  color: var(--c-white);
  box-shadow: var(--sh-cta);
}
.btn--primary:hover  { background: var(--c-bugambilia-hover); box-shadow: var(--sh-cta-hover); transform: translateY(-1px); }
.btn--primary:active { background: var(--c-bugambilia-active); box-shadow: 0 2px 8px rgba(214,21,125,0.25); transform: translateY(0); }

.btn--blue {
  background: var(--c-azul);
  color: var(--c-white);
  box-shadow: 0 8px 22px rgba(14,95,168,0.28);
}
.btn--blue:hover  { background: #0B4F8F; box-shadow: 0 12px 28px rgba(14,95,168,0.38); transform: translateY(-1px); }
.btn--blue:active { background: #083D6E; transform: translateY(0); }

.btn--secondary-light {
  background: transparent;
  color: var(--c-white);
  border: 1.5px solid rgba(255,255,255,0.75);
  box-shadow: none;
}
.btn--secondary-light:hover  { background: rgba(255,255,255,0.12); }
.btn--secondary-light:active { background: rgba(255,255,255,0.22); }

.btn--secondary-dark {
  background: var(--c-white);
  color: var(--c-azul-oscuro);
  border: 1.5px solid var(--c-linea);
  box-shadow: var(--sh-xs);
}
.btn--secondary-dark:hover  { border-color: var(--c-azul-oscuro); background: var(--c-fondo-crudo); }
.btn--secondary-dark:active { background: var(--c-fondo-suave); }

.btn--sm    { padding: 10px 18px; min-height: 40px; font-size: 13px; }
.btn--ghost {
  background: transparent;
  color: var(--c-azul-oscuro);
  box-shadow: none;
  padding: 12px 18px;
}
.btn--ghost:hover  { color: var(--c-azul); background: rgba(14,95,168,0.06); }
.btn--ghost:disabled { color: var(--c-gris-soft); background: transparent; cursor: not-allowed; }

/* Hover unificado: todos los botones pasan a azul claro (celeste) */
.btn--primary:hover:not(:disabled),
.btn--blue:hover:not(:disabled),
.btn--secondary-light:hover:not(:disabled),
.btn--secondary-dark:hover:not(:disabled),
.btn--ghost:hover:not(:disabled) {
  background: var(--c-celeste);
  color: var(--c-azul-oscuro);
  border-color: var(--c-celeste);
  box-shadow: 0 10px 26px rgba(127, 209, 255, 0.45);
  transform: translateY(-1px);
}

/* CTA link */
.cta-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: var(--fs-caption);
  font-weight: 700;
  color: var(--c-azul);
  transition: gap var(--dur-fast) var(--ease-standard), color var(--dur-fast);
}
.cta-link:hover { gap: 10px; color: var(--c-bugambilia); }

/* ============ Chips ============ */

.tag-chip {
  display: inline-block;
  padding: 5px 11px;
  background: var(--c-bugambilia-pale);
  color: var(--c-bugambilia);
  font-size: var(--fs-tag);
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  border-radius: var(--r-pill);
  width: fit-content;
}

.nom-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: var(--c-white);
  border: 1.5px solid var(--c-azul);
  color: var(--c-azul);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  border-radius: var(--r-pill);
  transition: background var(--dur-fast), color var(--dur-fast);
}
.nom-chip::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--c-azul);
}
.nom-chip:hover { background: var(--c-azul); color: var(--c-white); }
.nom-chip:hover::before { background: var(--c-white); }

.promise-chip {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
  padding: 14px 20px;
  background: var(--c-white);
  border: 1px solid var(--c-linea);
  border-radius: var(--r-pill);
  font-size: 14px;
  font-weight: 600;
  color: var(--c-azul-oscuro);
  transition: border-color var(--dur-fast), transform var(--dur-fast);
}
.promise-chip:hover { border-color: var(--c-bugambilia); transform: translateY(-1px); }
.promise-chip::before {
  content: '';
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--c-bugambilia);
  flex-shrink: 0;
  box-shadow: 0 0 0 4px rgba(214, 21, 125, 0.12);
}

/* Hero trust strip */
.trust-strip {
  margin-top: var(--sp-10);
  display: flex;
  align-items: center;
  gap: var(--sp-6);
  flex-wrap: wrap;
  color: var(--c-gris);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.trust-strip__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.trust-strip__item::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--c-bugambilia);
}
.trust-strip__divider {
  width: 1px;
  height: 12px;
  background: var(--c-linea);
}

/* ============ Section Header ============ */

.section-header {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: var(--sp-14);
  text-align: center;
}
.section-header .kicker {
  justify-content: center;
}
.section-header p {
  margin-top: var(--sp-4);
  margin-left: auto;
  margin-right: auto;
  color: var(--c-gris);
  font-size: var(--fs-body-lg);
  line-height: var(--lh-body-lg);
  max-width: 640px;
}
.section-header--dark h2 { color: var(--c-white); }
.section-header--dark p  { color: rgba(234,242,250,0.78); }

/* ============ KPI ============ */

.kpi {
  text-align: center;
  padding: var(--sp-3) var(--sp-4);
  border-right: 1px solid var(--c-linea);
}
.kpi:last-child { border-right: none; }
.kpi__num {
  font-weight: 800;
  font-size: 52px;
  line-height: 1;
  color: var(--c-azul);
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, var(--c-azul) 0%, var(--c-bugambilia) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-variant-numeric: tabular-nums;
}
.kpi__label {
  margin-top: 10px;
  font-weight: 600;
  font-size: 13px;
  color: var(--c-gris);
  letter-spacing: 0.01em;
}

/* ============ Service Card ============ */

.service-card {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  background: var(--c-white);
  border: 1px solid var(--c-linea);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-card);
  overflow: hidden;
  transition:
    transform var(--dur-base) var(--ease-out-quart),
    box-shadow var(--dur-base) var(--ease-out-quart),
    border-color var(--dur-base) var(--ease-standard);
}
.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at var(--glow-x, 50%) var(--glow-y, 50%),
    rgba(100,195,255,0.55) 0%, rgba(127,209,255,0.18) 50%, transparent 70%);
  opacity: var(--glow-o, 0);
  transition: opacity 0.4s ease;
  pointer-events: none;
  z-index: 2;
}
@media (prefers-reduced-motion: reduce) {
  .service-card::before { display: none; }
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--sh-card-hover);
  border-color: transparent;
}

.service-card__media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: linear-gradient(135deg, #E8F1FA 0%, #FCE9F3 100%);
}
.service-card__media::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(8, 61, 110, 0) 60%, rgba(8, 61, 110, 0.35) 100%);
  opacity: 0;
  transition: opacity var(--dur-base);
}
.service-card:hover .service-card__media::after { opacity: 1; }

.service-card__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform var(--dur-slow) var(--ease-out-quart);
}
.service-card:hover .service-card__media img { transform: scale(1.06); }

.service-card__placeholder {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 32px; opacity: 0.35;
}

.service-card__icon {
  position: absolute;
  top: -20px;
  right: 16px;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--c-azul);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(8, 61, 110, 0.25);
  z-index: 1;
}
.service-card__icon svg {
  width: 22px;
  height: 22px;
}
.service-card__body {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  padding: 20px 22px 22px;
  flex: 1;
}
.service-card__title {
  font-size: 16px;
  line-height: 22px;
  font-weight: 700;
  color: var(--c-azul-oscuro);
  letter-spacing: -0.01em;
  min-height: 44px;
}
.service-card__desc {
  font-size: 13px;
  line-height: 20px;
  color: var(--c-gris);
  flex: 1;
}
.service-card__cta { margin-top: auto; }
.service-card[data-service] { cursor: pointer; }

/* ============ Service Modal ============ */

.service-modal {
  border: 0;
  padding: 0;
  margin: 0;
  background: transparent;
  max-width: none;
  max-height: none;
  width: 100%;
  height: 100%;
  overflow: hidden;
}
.service-modal[open] {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.service-modal::backdrop {
  background: rgba(8, 32, 58, 0.55);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  animation: smBackdropIn 0.3s ease both;
}
@keyframes smBackdropIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.service-modal__box {
  position: relative;
  background: var(--c-white);
  border-radius: var(--r-xl);
  max-width: 880px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.30);
  scrollbar-color: var(--c-bugambilia) rgba(8, 61, 110, 0.06);
  scrollbar-width: thin;
}
.service-modal__box::-webkit-scrollbar { width: 8px; }
.service-modal__box::-webkit-scrollbar-track { background: transparent; }
.service-modal__box::-webkit-scrollbar-thumb {
  background: var(--c-bugambilia);
  border-radius: 4px;
}
.service-modal[open] .service-modal__box {
  animation: smBoxIn 0.38s var(--ease-out-expo) both;
}
.service-modal__box.is-closing {
  animation: smBoxOut 0.25s ease both !important;
}
@keyframes smBoxIn {
  from { opacity: 0; transform: translateY(32px) scale(0.97); }
  to   { opacity: 1; transform: none; }
}
@keyframes smBoxOut {
  from { opacity: 1; transform: none; }
  to   { opacity: 0; transform: translateY(20px) scale(0.97); }
}

.service-modal__hero {
  position: relative;
  height: 280px;
  background-size: cover;
  background-position: center;
  border-radius: var(--r-xl) var(--r-xl) 0 0;
  overflow: hidden;
  flex-shrink: 0;
}
.service-modal__hero--empty {
  background: linear-gradient(135deg, #E8F1FA 0%, #FCE9F3 100%);
}
.service-modal__veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 32, 58, 0.08) 0%, rgba(6, 28, 50, 0.82) 100%);
}
.service-modal__hero-content {
  position: absolute;
  left: 34px;
  right: 72px;
  bottom: 26px;
  z-index: 1;
}
.service-modal__tag {
  display: inline-block;
  padding: 5px 14px;
  background: var(--c-bugambilia);
  color: var(--c-white);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  border-radius: var(--r-pill);
}
.service-modal__title {
  font-size: clamp(22px, 3vw, 28px);
  line-height: 1.2;
  color: var(--c-white);
  margin-top: 12px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.30);
  font-weight: 800;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.service-modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.88);
  color: var(--c-azul-oscuro);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
  transition: background var(--dur-fast), color var(--dur-fast), transform 0.3s var(--ease-out-quart);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}
.service-modal__close:hover {
  background: var(--c-bugambilia);
  color: var(--c-white);
  transform: rotate(90deg);
}

.service-modal__content {
  padding: 32px 36px 36px;
}
.service-modal__intro {
  font-size: 16px;
  line-height: 26px;
  color: var(--c-gris);
  margin-bottom: 28px;
  max-width: 70ch;
}
.service-modal__label {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--c-bugambilia);
  margin: 0 0 14px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.service-modal__label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--c-linea);
}

.service-modal__checklist {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 24px;
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
}
.service-modal__checklist li {
  font-size: 14.5px;
  color: var(--c-ink);
  padding-left: 28px;
  position: relative;
  line-height: 22px;
}
.service-modal__checklist li::before {
  content: '\2713';
  position: absolute;
  left: 0;
  color: var(--c-bugambilia);
  font-weight: 800;
  font-size: 14px;
}

.service-modal__gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 10px;
  margin-bottom: 28px;
}
.service-modal__gallery button {
  border: 2.5px solid transparent;
  border-radius: var(--r-sm);
  overflow: hidden;
  cursor: pointer;
  padding: 0;
  background: none;
  height: 88px;
  transition: border-color var(--dur-fast), transform var(--dur-fast);
}
.service-modal__gallery button:hover { transform: scale(1.03); }
.service-modal__gallery button.is-active { border-color: var(--c-bugambilia); }
.service-modal__gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.service-modal__no-photos {
  font-size: 13px;
  color: var(--c-gris);
  background: var(--c-fondo-suave);
  border: 1px dashed var(--c-linea);
  border-radius: var(--r-sm);
  padding: 16px 20px;
}

.service-modal__norms {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
}
.service-modal__norms span {
  font-size: 12px;
  font-weight: 700;
  border: 1.5px solid var(--c-azul);
  color: var(--c-azul);
  padding: 6px 14px;
  border-radius: var(--r-pill);
  letter-spacing: 0.01em;
  transition: background var(--dur-fast), color var(--dur-fast);
}
.service-modal__norms span:hover {
  background: var(--c-azul);
  color: var(--c-white);
}

.service-modal__actions {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--c-linea);
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.service-modal__wa {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #1EA952;
  font-weight: 700;
  font-size: 14px;
  transition: color var(--dur-fast);
}
.service-modal__wa:hover { color: #158a3d; }
.service-modal__wa svg { width: 18px; height: 18px; flex-shrink: 0; }

/* ============ Permit Card ============ */

.permit-card {
  position: relative;
  background: var(--c-white);
  border: 1px solid var(--c-linea);
  border-radius: var(--r-lg);
  padding: 24px 24px 24px 26px;
  transition: transform var(--dur-base) var(--ease-out-quart),
              box-shadow var(--dur-base) var(--ease-standard),
              border-color var(--dur-base);
}
.permit-card::before {
  content: '';
  position: absolute;
  left: 0; top: 20%; bottom: 20%;
  width: 4px;
  border-radius: 0 4px 4px 0;
  background: linear-gradient(180deg, var(--c-azul) 0%, var(--c-bugambilia) 100%);
  transition: top var(--dur-base), bottom var(--dur-base);
}
.permit-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--sh-card);
  border-color: transparent;
}
.permit-card:hover::before { top: 0; bottom: 0; }

.permit-card__title {
  font-size: 15px;
  font-weight: 700;
  color: var(--c-azul-oscuro);
  margin-bottom: 8px;
  letter-spacing: -0.005em;
}
.permit-card__desc {
  font-size: 13px;
  line-height: 20px;
  color: var(--c-gris);
}

/* ============ Process Step ============ */

.process__grid-wrap {
  position: relative;
}
.process__glow {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(214,21,125,0.7) 0%, rgba(214,21,125,0.25) 40%, transparent 65%);
  pointer-events: none;
  z-index: 0;
  transform: translate(-50%, -50%);
  transition: opacity 0.4s ease;
  opacity: 0;
  will-change: left, top;
}
@media (prefers-reduced-motion: reduce) {
  .process__glow { display: none; }
}
.section--dark:hover > .process__glow {
  opacity: 1;
}
.process-step {
  z-index: 1;
  position: relative;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: var(--r-lg);
  padding: 28px 26px;
  transition: transform var(--dur-base) var(--ease-out-quart),
              border-color var(--dur-base),
              background var(--dur-base);
  backdrop-filter: blur(12px) saturate(1.2);
  -webkit-backdrop-filter: blur(12px) saturate(1.2);
}
.process-step:hover {
  transform: translateY(-4px);
  border-color: rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.07);
}
.process-step__num {
  color: var(--c-celeste);
  font-weight: 300;
  font-size: 28px;
  margin-bottom: var(--sp-4);
  letter-spacing: -0.02em;
}
.process-step__illustration {
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--sp-5);
}
.process-step__illustration svg {
  width: 100%;
  height: 100%;
  max-width: 140px;
}
.process-step__title {
  color: var(--c-white);
  font-weight: 700;
  font-size: 17px;
  line-height: 24px;
  margin-bottom: var(--sp-2);
  letter-spacing: -0.01em;
}
.process-step__desc {
  color: rgba(196,216,234,0.85);
  font-size: 14px;
  line-height: 22px;
}

/* ============ Project Card ============ */

.project-card {
  position: relative;
  aspect-ratio: 380 / 460;
  border-radius: var(--r-lg);
  overflow: hidden;
  isolation: isolate;
  color: var(--c-white);
  transition: transform var(--dur-base) var(--ease-out-quart), box-shadow var(--dur-base);
  box-shadow: var(--sh-card);
}
.project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 50px -18px rgba(8,61,110,0.35);
}
.project-card__bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: -2;
  transition: transform var(--dur-slow) var(--ease-out-quart);
}
.project-card:hover .project-card__bg { transform: scale(1.05); }
.project-card::after {
  content: '';
  position: absolute; inset: 0;
  z-index: -1;
  background: linear-gradient(180deg,
    rgba(14,60,100,0.10) 0%,
    rgba(8,42,78,0.55) 45%,
    rgba(5,20,40,0.95) 100%);
}

.project-card__body {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 26px;
}
.project-card__sector {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--c-celeste);
  margin-bottom: var(--sp-3);
}
.project-card__title {
  font-size: 19px;
  line-height: 26px;
  font-weight: 700;
  color: var(--c-white);
  margin-bottom: var(--sp-2);
  letter-spacing: -0.01em;
}
.project-card__desc {
  font-size: 13px;
  line-height: 20px;
  color: rgba(215, 230, 242, 0.85);
}
/* ============ Nav Island ============ */

.nav-island {
  position: fixed;
  top: 20px;
  left: calc((100vw - min(100vw, var(--max-w) + var(--section-px) * 2)) / 2 + var(--section-px) - 22px);
  right: calc((100vw - min(100vw, var(--max-w) + var(--section-px) * 2)) / 2 + var(--section-px) - 14px);
  height: 76px;
  padding: 6px 14px 6px 22px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.82);
  -webkit-backdrop-filter: saturate(180%) blur(24px);
  backdrop-filter: saturate(180%) blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow:
    var(--sh-island),
    inset 0 1px 0 rgba(255, 255, 255, 0.75);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-5);
  transition:
    box-shadow var(--dur-base) var(--ease-standard),
    background-color var(--dur-base) var(--ease-standard),
    border-color var(--dur-base) var(--ease-standard);
}
.nav-island.is-scrolled {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(255, 255, 255, 0.85);
  box-shadow:
    var(--sh-island-scrolled),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.nav-brand {
  display: inline-flex;
  align-items: center;
  height: 100%;
  flex-shrink: 0;
}
.nav-brand img {
  height: 64px;
  width: auto;
  display: block;
}

.nav-links {
  list-style: none;
  padding: 0; margin: 0;
  display: flex;
  align-items: center;
  gap: 2px;
}
.nav-links a {
  position: relative;
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  color: var(--c-azul-oscuro);
  padding: 6px 14px;
  border-radius: var(--r-pill);
  transition: color var(--dur-fast) var(--ease-standard),
              background var(--dur-fast) var(--ease-standard);
}
.nav-links a:hover {
  color: var(--c-bugambilia);
  background: rgba(214, 21, 125, 0.06);
}

.nav-right {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-4);
}
.nav-right .btn--primary {
  padding-left: 36px;
  padding-right: 36px;
}

.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 12px;
  padding: 4px 14px;
  border-radius: var(--r-pill);
  background: rgba(8, 61, 110, 0.06);
}
.lang-toggle button {
  color: var(--c-gris);
  padding: 2px 4px;
  border-radius: 4px;
  transition: color var(--dur-fast);
  letter-spacing: 0.04em;
}
.lang-toggle button.is-active { color: var(--c-azul-oscuro); }
.lang-toggle .divider {
  width: 1px; height: 12px;
  background: rgba(91,107,122,0.35);
}

.nav-hamburger {
  display: none;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  border-radius: var(--r-pill);
  color: var(--c-azul-oscuro);
  background: rgba(8, 61, 110, 0.06);
}
.nav-hamburger span {
  width: 18px; height: 2px;
  background: currentColor;
  display: block;
  position: relative;
  border-radius: 2px;
}
.nav-hamburger span::before,
.nav-hamburger span::after {
  content: '';
  position: absolute; left: 0;
  width: 18px; height: 2px;
  background: currentColor;
  border-radius: 2px;
}
.nav-hamburger span::before { top: -6px; }
.nav-hamburger span::after  { top:  6px; }

/* ============ Mobile nav ============ */

.nav-mobile {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 99;
  padding: 96px 20px 32px;
  background: rgba(255,255,255,0.98);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--c-linea);
  transform: translateY(-100%);
  transition: transform var(--dur-base) var(--ease-out-quart);
}
.nav-mobile.is-open { transform: translateY(0); }
.nav-mobile ul {
  list-style: none;
  padding: 0; margin: 0;
  display: flex; flex-direction: column;
  gap: var(--sp-4);
}
.nav-mobile a {
  display: block;
  padding: 14px 0;
  font-size: 18px;
  font-weight: 600;
  color: var(--c-azul-oscuro);
  border-bottom: 1px solid var(--c-linea);
}

@media (max-width: 900px) {
  .nav-island {
    top: 14px;
    left: 14px;
    right: 14px;
    height: 68px;
    padding: 6px 12px 6px 18px;
    gap: var(--sp-3);
  }
  .nav-brand img { height: 52px; }
  .nav-links { display: none; }
  .nav-right .btn--primary { display: none; }
  .nav-right .lang-toggle { display: none; }
  .nav-hamburger { display: inline-flex; }
}

/* ============ Hero ============ */

.hero {
  position: relative;
  padding: 176px var(--section-px) calc(var(--section-py) + 24px);
  background:
    radial-gradient(60% 55% at 88% 15%, rgba(214, 21, 125, 0.10) 0%, transparent 60%),
    linear-gradient(180deg, rgba(58, 149, 255, 0.22) 0%, rgba(255, 255, 255, 0.85) 90%),
    linear-gradient(180deg, var(--hero-grad-start) 0%, var(--hero-grad-end) 100%);
  overflow: hidden;
}
/* Spline scene as the hero background — served via <iframe> from my.spline.design.
   The iframe matches the wrap exactly so Spline's internal resize listener sees
   the true viewport dimensions and can trigger its responsive breakpoints. The
   bottom-right "Built with Spline" badge is masked out with clip-path. */
.hero__spline-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: auto;
}
.hero__spline {
  display: block;
  background: transparent;
  border: 0;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  clip-path: polygon(
    0 0,
    100% 0,
    100% calc(100% - 78px),
    calc(100% - 220px) calc(100% - 78px),
    calc(100% - 220px) 100%,
    0 100%
  );
}
.hero__inner {
  position: relative;
  z-index: 1;
  max-width: var(--max-w);
  margin: 0 auto;
  pointer-events: none;   /* let the cursor reach the Spline scene underneath */
}
.hero__inner * { pointer-events: none; }
.hero__inner a,
.hero__inner button,
.hero__inner .btn { pointer-events: auto; }   /* but keep links/CTAs clickable */
.hero__body {
  max-width: 720px;
  position: relative;
}
.hero h1 {
  color: var(--hero-heading);
  margin-bottom: var(--sp-6);
}
.hero__sub {
  font-size: var(--fs-body-lg);
  line-height: var(--lh-body-lg);
  color: var(--hero-subtitle);
  max-width: 560px;
  margin-bottom: var(--sp-10);
}
.hero__ctas {
  display: flex; flex-wrap: wrap;
  gap: var(--sp-3);
  align-items: center;
}
.hero .btn--secondary-light {
  color: var(--c-azul-oscuro);
  border-color: rgba(8,61,110,0.35);
  background: rgba(255,255,255,0.6);
}
.hero .btn--secondary-light:hover {
  background: var(--c-celeste);
  color: var(--c-azul-oscuro);
  border-color: var(--c-celeste);
}

/* ============ Metrics ============ */

.metrics {
  padding: 40px var(--section-px);
  background: var(--c-white);
  border-bottom: 1px solid var(--c-linea);
  position: relative;
  z-index: 2;
  margin-top: -1px;
}
.metrics__grid {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

/* ============ Servicios ============ */

.services__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-6);
}

/* ============ Proceso ============ */

.process__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-5);
}

/* ============ Cumplimiento ============ */

.compliance__permits {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-4);
  margin-bottom: var(--sp-10);
}
.compliance__noms {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
}
.compliance__noms-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--c-gris);
  margin-bottom: var(--sp-4);
}

/* ============ Proyectos ============ */

.projects__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-6);
}

/* ============ Nosotros ============ */

.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-14);
  align-items: center;
}
.about__media {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--sh-card);
}
.about__media::after {
  content: '';
  position: absolute;
  inset: auto -20px -20px auto;
  width: 120px; height: 120px;
  border-radius: var(--r-lg);
  background: linear-gradient(135deg, var(--c-bugambilia) 0%, var(--c-azul) 100%);
  opacity: 0.15;
  z-index: -1;
}
.about__media img { width: 100%; height: 100%; object-fit: cover; }
.about__body .kicker { justify-content: flex-start; }
.about__body h2 { margin-bottom: var(--sp-4); }
.about__body > p {
  color: var(--c-gris);
  font-size: var(--fs-body-lg);
  line-height: var(--lh-body-lg);
  margin-bottom: var(--sp-8);
}
.about__promises {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-3);
}

/* ============ Form Wizard ============ */

.form-wizard-section .section-header { text-align: center; margin-left: auto; margin-right: auto; }
.form-wizard-section .section-header .kicker { justify-content: center; }

.wizard {
  max-width: 780px;
  margin: 0 auto;
  padding: 40px;
  background: var(--c-white);
  border: 1px solid var(--c-linea);
  border-radius: var(--r-xl);
  box-shadow: var(--sh-form);
}
.wizard__progress {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  margin-bottom: var(--sp-6);
}
.wizard__progress span {
  flex: 1;
  height: 5px;
  border-radius: 999px;
  background: var(--c-linea);
  transition: background var(--dur-base);
}
.wizard__progress span.is-done {
  background: linear-gradient(90deg, var(--c-azul) 0%, var(--c-bugambilia) 100%);
}
.wizard__counter {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--c-gris);
  margin-bottom: var(--sp-6);
}
.wizard__counter b {
  color: var(--c-bugambilia);
  font-weight: 800;
}
.wizard__step { display: none; }
.wizard__step.is-active { display: block; }

.wizard__title {
  font-size: 24px;
  line-height: 30px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--c-azul-oscuro);
  margin-bottom: var(--sp-2);
}
.wizard__hint {
  color: var(--c-gris);
  font-size: 14px;
  line-height: 22px;
  margin-bottom: var(--sp-6);
}

.wizard__options {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  margin-bottom: var(--sp-8);
}
.wizard__option {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 12px 18px;
  border: 1.5px solid var(--c-linea);
  border-radius: var(--r-md);
  background: var(--c-white);
  color: var(--c-azul-oscuro);
  font-weight: 600;
  font-size: 14px;
  transition: all var(--dur-fast) var(--ease-standard);
  cursor: pointer;
}
.wizard__option:hover {
  border-color: var(--c-azul);
  transform: translateY(-1px);
}
.wizard__option.is-selected {
  background: var(--form-selected-bg);
  border-color: var(--form-selected-border);
  color: var(--form-selected-text);
  box-shadow: 0 4px 12px rgba(214,21,125,0.15);
}

.wizard__field { display: flex; flex-direction: column; gap: var(--sp-2); margin-bottom: var(--sp-5); }
.wizard__field label { font-size: 13px; font-weight: 700; color: var(--c-azul-oscuro); letter-spacing: -0.005em; }
.wizard__field input,
.wizard__field textarea,
.wizard__field select {
  padding: 13px 16px;
  border: 1.5px solid var(--c-linea);
  border-radius: var(--r-sm);
  background: var(--c-fondo-crudo);
  font-size: 14px;
  transition: border-color var(--dur-fast), background var(--dur-fast), box-shadow var(--dur-fast);
}
.wizard__field input::placeholder,
.wizard__field textarea::placeholder { color: var(--c-gris-soft); }
.wizard__field input:hover,
.wizard__field textarea:hover,
.wizard__field select:hover { border-color: rgba(14,95,168,0.4); }
.wizard__field input:focus,
.wizard__field textarea:focus,
.wizard__field select:focus {
  outline: none;
  background: var(--c-white);
  border-color: var(--c-bugambilia);
  box-shadow: 0 0 0 4px rgba(214,21,125,0.12);
}
.wizard__row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-4); }

.wizard__actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: var(--sp-8);
  padding-top: var(--sp-6);
  border-top: 1px solid var(--c-linea);
}
.wizard__escape {
  text-align: center;
  margin-top: var(--sp-6);
  font-size: 13px;
  color: var(--c-gris);
}
.wizard__escape a { color: var(--c-bugambilia); font-weight: 700; }

/* ============ Footer ============ */

.footer {
  background: var(--c-azul-noche);
  color: rgba(255,255,255,0.85);
  padding: 80px var(--section-px) 32px;
  position: relative;
  overflow: hidden;
}
.footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--c-bugambilia) 50%, transparent 100%);
  opacity: 0.4;
}
.footer__grid {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: var(--sp-12);
  padding-bottom: var(--sp-10);
  border-bottom: 1px solid rgba(255,255,255,0.10);
}
.footer h4 {
  color: var(--c-white);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: var(--sp-5);
}
.footer__brand img {
  height: 80px;
  width: auto;
  margin-bottom: var(--sp-4);
  filter: brightness(0) invert(1);
}
.footer p, .footer li { font-size: 13px; line-height: 22px; color: rgba(234,242,250,0.7); }
.footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.footer a { transition: color var(--dur-fast); }
.footer a:hover { color: var(--c-celeste); }
.footer__copy {
  max-width: var(--max-w);
  margin: var(--sp-8) auto 0;
  font-size: 12px;
  color: rgba(234,242,250,0.45);
  text-align: center;
}

/* ============ Floating WhatsApp ============ */

.fab-whatsapp {
  position: fixed;
  right: 28px;
  bottom: 28px;
  width: 60px; height: 60px;
  border-radius: 50%;
  background: #D6157D;
  color: white;
  display: inline-flex;
  align-items: center; justify-content: center;
  box-shadow: 0 12px 30px rgba(214, 21, 125, 0.45);
  z-index: 90;
  transition: transform var(--dur-base) var(--ease-out-quart), box-shadow var(--dur-base);
}
.fab-whatsapp::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid rgba(214,21,125,0.4);
  animation: fabPulse 2s var(--ease-out-quart) infinite;
}
@keyframes fabPulse {
  0%   { transform: scale(1);   opacity: 0.6; }
  100% { transform: scale(1.35); opacity: 0;   }
}
.fab-whatsapp:hover { transform: scale(1.08); box-shadow: 0 16px 36px rgba(214, 21, 125, 0.55); }
.fab-whatsapp svg { width: 30px; height: 30px; position: relative; z-index: 1; }

/* ============ Responsive ============ */

@media (max-width: 1100px) {
  .services__grid { grid-template-columns: repeat(3, 1fr); }
  .process__grid,
  .compliance__permits { grid-template-columns: repeat(2, 1fr); }
  .about { gap: var(--sp-10); }
}

@media (max-width: 900px) {
  .hero {
    padding: 104px 20px 40px;
    min-height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0;
  }
  .hero__inner,
  .hero__body {
    display: contents;
  }

  .hero .kicker {
    order: 1;
    justify-content: center;
    margin: 0 0 10px;
  }
  .hero h1 {
    order: 2;
    font-size: 32px;
    line-height: 40px;
    letter-spacing: -0.025em;
    margin: 0;
    max-width: 500px;
  }
  .hero h1 br { display: none; }
  .hero__spline-wrap {
    order: 3;
    position: relative;
    inset: auto;
    width: 100%;
    height: 360px;
    overflow: hidden;
    border-radius: 24px;
    margin: -18px auto -12px;
    z-index: 0;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  .hero .kicker,
  .hero h1,
  .hero__sub,
  .hero__ctas,
  .hero .trust-strip {
    position: relative;
    z-index: 1;
  }
  .hero__spline {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    transform: none;
    clip-path: polygon(
      0 0,
      100% 0,
      100% calc(100% - 78px),
      calc(100% - 210px) calc(100% - 78px),
      calc(100% - 210px) 100%,
      0 100%
    );
  }
  .hero__sub {
    order: 4;
    font-size: 14px;
    line-height: 22px;
    max-width: 440px;
    margin: 0 0 20px;
  }
  .hero__ctas {
    order: 5;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    margin: 0 0 16px;
    width: 100%;
    max-width: 320px;
  }
  .hero__ctas .btn {
    padding: 14px 24px;
    min-height: 48px;
    font-size: 14px;
    justify-content: center;
  }
  .hero .trust-strip {
    order: 6;
    justify-content: center;
    font-size: 11px;
    gap: 12px;
    margin: 0;
    color: var(--c-azul-oscuro);
  }
  .trust-strip__divider { display: none; }

  .metrics__grid { grid-template-columns: repeat(2, 1fr); }
  .kpi { border-right: none; padding: 20px; }
  .kpi:nth-child(odd) { border-right: 1px solid var(--c-linea); }
  .kpi:nth-child(-n+2) { border-bottom: 1px solid var(--c-linea); }
  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .projects__grid { grid-template-columns: 1fr; }
  .about { grid-template-columns: 1fr; gap: var(--sp-8); }
  .footer__grid { grid-template-columns: 1fr; gap: var(--sp-8); }

  .service-modal[open] { padding: 12px; }
  .service-modal__hero { height: 210px; }
  .service-modal__hero-content { left: 22px; right: 58px; bottom: 20px; }
  .service-modal__content { padding: 24px 22px 28px; }
  .service-modal__checklist { grid-template-columns: 1fr; }
  .service-modal__gallery { grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); }
}

@media (max-width: 640px) {
  .services__grid { grid-template-columns: 1fr; }
  .compliance__permits,
  .process__grid { grid-template-columns: 1fr; }
  .about__promises { grid-template-columns: 1fr; }
  .wizard { padding: 28px 20px; }
  .wizard__row { grid-template-columns: 1fr; }
  .fab-whatsapp { width: 56px; height: 56px; right: 16px; bottom: 16px; }
  .fab-whatsapp svg { width: 26px; height: 26px; }
  .kpi__num { font-size: 40px; }
}
