﻿/* DSE & Asociados — Sitio corporativo B2B
   Rediseño institucional: paleta azul marino / corporativo / luminoso / hielo,
   fotografía editorial y arquitectura limpia sin ornamentos distractores. */

:root {
  /* Paleta oficial DSE & Asociados */
  --navy-deep: #0B2239;     /* Azul marino institucional: fondos principales, header y footer */
  --corp-blue: #28588B;     /* Azul corporativo: botones principales y franja de visita técnica */
  --corp-blue-hover: #204975;
  --accent: #559BC4;        /* Azul de acento: palabras destacadas, iconografía y líneas gráficas */
  --luminous: #80C8EF;      /* Azul luminoso: acentos, CTAs sobre oscuro e iconografía */
  --luminous-hover: #96D4F4;
  --ice: #EAF3F8;           /* Azul hielo: fondos de secciones secundarias */
  --ice-soft: #F4F9FC;
  --white: #FFFFFF;         /* Blanco puro: fondos, tarjetas y textos sobre azul marino */
  --ink: #17283D;           /* Azul tinta: títulos sobre fondos claros */
  --slate: #52606D;         /* Gris pizarra: textos descriptivos y secundarios */
  --line: #D8E4EE;
  --line-dark: rgba(255, 255, 255, .16);

  /* Alias de compatibilidad para vistas auxiliares */
  --dark: var(--navy-deep);
  --navy: var(--corp-blue);
  --blue: var(--corp-blue);
  --blue-600: var(--corp-blue-hover);
  --cyan: var(--luminous);
  --sky-50: var(--ice-soft);
  --sky-100: var(--ice);
  --muted: var(--slate);

  --wa: #25D366;
  --error: #D92D20;
  --warn-bg: #FFF7E6;
  --warn: #9A4A06;

  --font-brand: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-head: "Space Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --container: 1200px;
  --gutter: clamp(18px, 4vw, 44px);
  --nav-h: 76px;
  --r-sm: 8px;
  --r: 14px;
  --r-lg: 18px;
  --shadow: 0 24px 60px -24px rgba(11, 34, 57, .32);
  --shadow-sm: 0 12px 30px -16px rgba(11, 34, 57, .18);

  --ease-smooth: cubic-bezier(.22, 1, .36, 1);
  --dur-fast: 180ms;
  --dur-base: 300ms;
  --dur-slow: 600ms;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--white); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-family: var(--font-head); line-height: 1.1; letter-spacing: -.025em; font-weight: 700; color: var(--ink); }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
button, input, select { font: inherit; }

.sprite { display: none; }
.icon { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.container { position: relative; z-index: 1; width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--navy-deep); color: var(--white); padding: 10px 16px; border-radius: var(--r-sm); text-decoration: none; font-weight: 600; }
.skip-link:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--luminous); outline-offset: 3px; }

.accent { color: var(--accent); }
.accent--inv { color: var(--luminous); }

/* Eyebrows y barras gráficas */
.eyebrow {
  font-family: var(--font-head);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
}
.eyebrow--inv { color: var(--luminous); }
.section__bar { width: 48px; height: 3px; border-radius: 2px; background: var(--accent); display: block; }
.section__bar--inv { background: var(--luminous); }

/* Botones */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 24px;
  border: 1.5px solid transparent;
  border-radius: 999px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 15px;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: transform var(--dur-fast), box-shadow var(--dur-fast), background-color var(--dur-fast), border-color var(--dur-fast), color var(--dur-fast);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: none; }
.btn--lg { min-height: 54px; padding: 0 28px; font-size: 15.5px; }
.btn--md { min-height: 48px; padding: 0 24px; font-size: 15px; }
.btn--sm { min-height: 40px; padding: 0 18px; font-size: 14px; }
.btn--rect { border-radius: 10px; }
.btn--block { width: 100%; }

/* Primario sobre fondos claros (Azul corporativo) */
.btn--primary {
  background: var(--corp-blue);
  color: var(--white);
  box-shadow: 0 10px 24px -12px rgba(40, 88, 139, .65);
}
.btn--primary:hover { background: var(--corp-blue-hover); }

/* Primario sobre fondos oscuros (Azul luminoso) */
.btn--luminous {
  background: var(--luminous);
  color: var(--navy-deep);
  box-shadow: 0 10px 26px -12px rgba(128, 200, 239, .5);
}
.btn--luminous:hover { background: var(--luminous-hover); }

/* WhatsApp outlined en barra oscura */
.btn--nav-wa {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, .42);
  gap: 8px;
  padding-inline: 18px;
}
.btn--nav-wa .icon { width: 18px; height: 18px; }
.btn--nav-wa:hover {
  background: rgba(255, 255, 255, .1);
  border-color: rgba(255, 255, 255, .75);
}

/* Botón blanco sobre franja corporativa */
.btn--light {
  background: var(--white);
  color: var(--navy-deep);
  box-shadow: 0 10px 24px -12px rgba(11, 34, 57, .35);
}
.btn--light:hover { background: var(--ice-soft); }

/* Outlined blanco sobre franja corporativa */
.btn--outline-inv {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, .62);
}
.btn--outline-inv:hover {
  background: rgba(255, 255, 255, .12);
  border-color: var(--white);
}

/* Outlined estándar (modales / páginas secundarias) */
.btn--outline {
  background: var(--white);
  color: var(--ink);
  border-color: var(--line);
}
.btn--outline:hover { border-color: var(--corp-blue); color: var(--corp-blue); }

/* WhatsApp sólido (modal confirmación) */
.btn--wa { background: var(--wa); color: #06281A; box-shadow: 0 10px 24px -10px rgba(37, 211, 102, .65); }
.btn--wa:hover { background: #1FC15C; }

.btn[aria-busy="true"] { opacity: .8; cursor: progress; transform: none; }
.btn[aria-busy="true"] .icon { animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* =========================================================
 * NAVBAR INSTITUCIONAL (#0B2239)
 * ========================================================= */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--nav-h);
  background: rgba(11, 34, 57, .97);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  backdrop-filter: saturate(1.4) blur(10px);
  color: var(--white);
}
.nav__inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}
.brand__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.brand__mark img {
  width: 48px;
  height: auto;
}
.brand__name {
  font-family: var(--font-brand);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -.01em;
  color: var(--white);
  white-space: nowrap;
}
.brand__sep {
  width: 1px;
  height: 32px;
  background: rgba(255, 255, 255, .24);
  margin-inline: 4px;
}
.brand__tagline {
  font-family: var(--font-head);
  font-size: 9.5px;
  font-weight: 600;
  line-height: 1.28;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .78);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-left: auto;
}
.nav__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding-block: 8px;
  font-size: 14.5px;
  font-weight: 500;
  text-decoration: none;
  color: rgba(255, 255, 255, .84);
  transition: color var(--dur-fast);
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2.5px;
  border-radius: 2px;
  background: var(--luminous);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform var(--dur-base) var(--ease-smooth);
}
.nav__link:hover,
.nav__link.is-active {
  color: var(--white);
}
.nav__link.is-active { font-weight: 600; }
.nav__link.is-active::after { transform: scaleX(1); }
.nav__chev { width: 15px; height: 15px; opacity: .75; transition: transform var(--dur-fast); }

/* Dropdown sutil de Servicios */
.nav__dropdown { position: relative; }
.nav__menu {
  position: absolute;
  top: calc(100% + 10px);
  left: -12px;
  min-width: 240px;
  padding: 8px;
  border-radius: 12px;
  background: var(--navy-deep);
  border: 1px solid rgba(128, 200, 239, .22);
  box-shadow: 0 20px 44px -16px rgba(4, 15, 28, .65);
  display: grid;
  gap: 2px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity var(--dur-fast), transform var(--dur-fast), visibility var(--dur-fast);
}
.nav__dropdown::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 14px;
}
.nav__dropdown:hover .nav__menu,
.nav__dropdown:focus-within .nav__menu {
  opacity: 1;
  visibility: visible;
  transform: none;
}
.nav__dropdown:hover .nav__chev,
.nav__dropdown:focus-within .nav__chev {
  transform: rotate(180deg);
}
.nav__menu a {
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, .86);
  text-decoration: none;
  transition: background-color var(--dur-fast), color var(--dur-fast);
}
.nav__menu a:hover {
  background: rgba(128, 200, 239, .14);
  color: var(--white);
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: 10px;
}
.nav__phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--white);
  text-decoration: none;
  margin-right: 4px;
}

/* =========================================================
 * HERO FOTOGRÁFICO + FRANJA DE RESPALDO
 * ========================================================= */
.hero {
  position: relative;
  background: var(--navy-deep);
}
.hero__stage {
  position: relative;
  min-height: clamp(540px, 72vh, 660px);
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 60% 18%;
}
.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    90deg,
    rgba(11, 24, 38, .66) 0%,
    rgba(11, 24, 38, .48) 38%,
    rgba(11, 24, 38, .12) 56%,
    rgba(11, 24, 38, 0) 74%
  );
}
.hero__inner {
  position: relative;
  z-index: 2;
  padding-block: clamp(56px, 7vw, 84px);
}
.hero__copy {
  max-width: 520px;
  display: grid;
  gap: 18px;
  justify-items: start;
}
.hero__bar {
  width: 48px;
  height: 3px;
  border-radius: 2px;
  background: var(--accent);
}
.hero h1 {
  color: var(--white);
  font-size: clamp(32px, 3.6vw, 48px);
  line-height: 1.07;
  letter-spacing: -.03em;
  text-wrap: balance;
}
.hero__lead {
  font-size: 16px;
  line-height: 1.62;
  color: rgba(255, 255, 255, .86);
  max-width: 46ch;
}
.hero__highlights {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 6px;
}
.hero__highlights li {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.32;
  color: rgba(255, 255, 255, .92);
}
.hero__highlights li + li {
  padding-left: 24px;
  border-left: 1px solid rgba(255, 255, 255, .28);
}
.hero__highlights .icon {
  width: 28px;
  height: 28px;
  color: rgba(255, 255, 255, .88);
  stroke-width: 1.5;
}
.hero__cta {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 24px;
  margin-top: 10px;
}
.hero__link {
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 500;
  color: var(--white);
  text-decoration: none;
  white-space: nowrap;
  padding-bottom: 5px;
  border-bottom: 1.5px solid rgba(255, 255, 255, .7);
  transition: color var(--dur-fast), border-color var(--dur-fast);
}
.hero__link:hover {
  color: var(--luminous);
  border-color: var(--luminous);
}

/* Franja blanca de respaldo (Trust Bar) */
.trust-bar {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  padding-block: 34px;
}
.trust-bar__list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: center;
}
.trust-bar__item {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 6px;
  padding-inline: 24px;
}
.trust-bar__item + .trust-bar__item {
  border-left: 1px solid var(--line);
}
.trust-bar__value {
  font-family: var(--font-head);
  font-size: clamp(28px, 2.8vw, 38px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.03em;
  color: var(--ink);
}
.trust-bar__value small {
  font-size: .64em;
  font-weight: 600;
  letter-spacing: -.01em;
  color: var(--corp-blue);
}
.trust-bar__value sup {
  font-size: .42em;
  vertical-align: super;
  margin-left: 1px;
}
.trust-bar__cri {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.trust-bar__cri img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  flex: none;
}
.trust-bar__label {
  font-size: 15px;
  font-weight: 500;
  color: var(--slate);
  line-height: 1.35;
}

/* =========================================================
 * SECCIONES GENERALES
 * ========================================================= */
.section {
  position: relative;
  padding-block: clamp(72px, 7.5vw, 100px);
}
.section__head {
  display: grid;
  gap: 14px;
  margin-bottom: 44px;
}
.section__head--left {
  justify-items: start;
  text-align: left;
  max-width: 780px;
}
.section__head h2 {
  font-size: clamp(30px, 3.4vw, 44px);
  color: var(--ink);
}
.section__lead {
  color: var(--slate);
  font-size: 17px;
  line-height: 1.62;
  max-width: 60ch;
}

/* =========================================================
 * SERVICIOS ESPECIALIZADOS
 * ========================================================= */
.section--services {
  background: var(--white);
}
.services--2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.service {
  position: relative;
  display: grid;
  gap: 16px;
  align-content: start;
  padding: 36px 34px;
  border-radius: var(--r-lg);
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur-base) var(--ease-smooth), box-shadow var(--dur-base) var(--ease-smooth), border-color var(--dur-fast);
}
.service:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: var(--accent);
}
.service h3 {
  font-size: 23px;
  line-height: 1.2;
  color: var(--ink);
}
.service p {
  color: var(--slate);
  font-size: 15.5px;
  line-height: 1.65;
}
.service__icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 12px;
  background: var(--ice);
  color: var(--corp-blue);
}
.service__icon .icon { width: 26px; height: 26px; }

.service--main {
  background: var(--navy-deep);
  border-color: rgba(128, 200, 239, .18);
  color: var(--white);
}
.service--main::before {
  content: "";
  position: absolute;
  left: 34px;
  right: 34px;
  top: 0;
  height: 3px;
  border-radius: 0 0 3px 3px;
  background: var(--luminous);
}
.service--main h3 { color: var(--white); }
.service--main p { color: rgba(255, 255, 255, .8); }
.service--main .service__icon {
  background: rgba(128, 200, 239, .12);
  color: var(--luminous);
}
.service--main:hover { border-color: rgba(128, 200, 239, .45); }

/* =========================================================
 * NUESTRO MÉTODO (Azul hielo + fotografía panorámica + 3 fases)
 * ========================================================= */
.section--method {
  background: linear-gradient(180deg, var(--ice) 0%, #F7FBFD 55%, var(--white) 100%);
  overflow: hidden;
}
/* Detalle geométrico sutil inferior derecho (igual al mockup) */
.section--method::after {
  content: "";
  position: absolute;
  right: -8%;
  bottom: -40px;
  width: 34%;
  height: 140px;
  background: linear-gradient(135deg, rgba(128, 200, 239, .32) 0%, rgba(85, 155, 196, .18) 100%);
  transform: rotate(-16deg);
  pointer-events: none;
  z-index: 0;
}

.method-banner {
  margin: 0;
  width: 100%;
  border-radius: var(--r-lg);
  overflow: hidden;
  aspect-ratio: 21 / 8;
  background: var(--navy-deep);
  box-shadow: var(--shadow);
}
.method-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 56%;
}

.method-steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 38px;
}
.method-step {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding-inline: 28px;
}
.method-step:first-child { padding-left: 0; }
.method-step:last-child { padding-right: 0; }
.method-step + .method-step {
  border-left: 1px solid var(--line);
}
.method-step__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--ice);
  border: 1px solid rgba(85, 155, 196, .2);
  color: var(--corp-blue);
}
.method-step__icon .icon {
  width: 26px;
  height: 26px;
  stroke-width: 1.75;
}
.method-step__body {
  display: grid;
  gap: 5px;
}
.method-step__body h3 {
  font-size: 20px;
  color: var(--ink);
  line-height: 1.2;
}
.method-step__body p {
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--slate);
}

/* =========================================================
 * QUIÉNES SOMOS (#0B2239 + fotografía arquitectónica lateral)
 * ========================================================= */
.band {
  position: relative;
  overflow: hidden;
  background: var(--navy-deep);
  color: var(--white);
  padding-block: clamp(76px, 8vw, 108px);
}
.band__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.band__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left center;
}
.band__scrim {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(90deg, rgba(11, 34, 57, .24) 0%, rgba(11, 34, 57, .74) 30%, rgba(11, 34, 57, .94) 56%, rgba(11, 34, 57, .98) 100%),
    linear-gradient(180deg, rgba(11, 34, 57, .15) 0%, rgba(11, 34, 57, .42) 100%);
}
.band__head {
  display: grid;
  gap: 14px;
  justify-items: start;
  max-width: 720px;
  margin-left: clamp(0px, 18%, 220px);
  margin-bottom: 48px;
}
.band__head h2 {
  color: var(--white);
  font-size: clamp(30px, 3.4vw, 44px);
  line-height: 1.1;
}
.band__lead {
  color: rgba(255, 255, 255, .82);
  font-size: 16px;
  line-height: 1.65;
  max-width: 62ch;
}

.band__grid--4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.band__card {
  display: grid;
  gap: 14px;
  align-content: start;
  padding: 28px 24px;
  border-radius: var(--r);
  background: rgba(11, 34, 57, .64);
  border: 1px solid rgba(128, 200, 239, .26);
  backdrop-filter: blur(8px);
  transition: border-color var(--dur-fast), background-color var(--dur-fast);
}
.band__card:hover {
  border-color: rgba(128, 200, 239, .5);
  background: rgba(11, 34, 57, .78);
}
.band__icon {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--luminous);
}
.band__icon .icon {
  width: 32px;
  height: 32px;
  stroke-width: 1.6;
}
.band__card h3 {
  color: var(--white);
  font-size: 19px;
  line-height: 1.22;
}
.band__card p {
  color: rgba(255, 255, 255, .76);
  font-size: 14px;
  line-height: 1.58;
}
.band__seal-row {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
}
.band__seal img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .88);
  background: var(--white);
}
.band__seal-label {
  font-family: var(--font-head);
  font-size: 24px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -.01em;
}
.band__seal-label sup {
  font-size: .46em;
  vertical-align: super;
  margin-left: 1px;
}

/* =========================================================
 * FRANJA CTA FINAL (Azul corporativo #28588B)
 * ========================================================= */
.final {
  position: relative;
  background: linear-gradient(90deg, #336293 0%, var(--corp-blue) 55%, #234E7D 100%);
  color: var(--white);
  padding-block: 40px;
}
.final__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.final__copy {
  display: flex;
  align-items: center;
  gap: 24px;
}
.final h2 {
  color: var(--white);
  font-size: clamp(24px, 2.5vw, 32px);
  line-height: 1.15;
  white-space: nowrap;
}
.final__sep {
  width: 1px;
  height: 42px;
  background: rgba(255, 255, 255, .32);
  flex: none;
}
.final p {
  color: rgba(255, 255, 255, .88);
  font-size: 15px;
  line-height: 1.45;
  max-width: 34ch;
}
.final__actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

/* =========================================================
 * FOOTER INSTITUCIONAL (#0B2239)
 * ========================================================= */
.footer {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, .74);
  font-size: 14px;
  padding-block: 40px 26px;
}
.footer a { color: var(--white); text-decoration: none; }
.footer a:hover { color: var(--luminous); }

.footer__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.footer__brand {
  display: flex;
  align-items: center;
  gap: 18px;
}
.footer__brand-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.footer__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.footer__mark img { width: 48px; height: auto; }
.footer__brand strong {
  color: var(--white);
  font-family: var(--font-brand);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -.01em;
  white-space: nowrap;
}
.footer__sep {
  width: 1px;
  height: 36px;
  background: rgba(255, 255, 255, .2);
  flex: none;
}
.footer__desc {
  max-width: 28ch;
  font-size: 13.5px;
  line-height: 1.45;
  color: rgba(255, 255, 255, .76);
}
.footer__info {
  display: flex;
  align-items: flex-start;
  gap: 28px;
}
.footer__col {
  display: grid;
  gap: 8px;
  align-content: start;
}
.footer__title {
  font-family: var(--font-head);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .88);
}
.footer__item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: rgba(255, 255, 255, .9);
}
.footer__item .icon {
  width: 17px;
  height: 17px;
  color: var(--luminous);
}
.footer__hours {
  align-items: flex-start;
}
.footer__hours .icon { margin-top: 2px; }
.footer__hours div {
  display: grid;
  gap: 2px;
  line-height: 1.4;
}
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: 28px;
  padding: 18px 72px 0 0;
  border-top: 1px solid rgba(255, 255, 255, .1);
  color: rgba(255, 255, 255, .52);
  font-size: 12.5px;
}
.footer__bottom a { color: rgba(255, 255, 255, .72); }

/* =========================================================
 * ANIMACIONES SUTILES DE REVELADO AL SCROLL
 * ========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity var(--dur-slow) var(--ease-smooth), transform var(--dur-slow) var(--ease-smooth);
  transition-delay: var(--reveal-delay, 0ms);
}
.reveal.is-in { opacity: 1; transform: none; }
.service.reveal.is-in:hover { transform: translateY(-3px); }

/* =========================================================
 * DRAWER DEL FORMULARIO + MODAL DE CONFIRMACIÓN
 * ========================================================= */
html.is-locked { overflow: hidden; }
.drawer {
  position: fixed;
  inset: 0 0 0 auto;
  width: min(520px, 100%);
  height: 100dvh;
  max-width: 100%;
  max-height: 100dvh;
  margin: 0 0 0 auto;
  padding: 0;
  border: 0;
  border-radius: var(--r-lg) 0 0 var(--r-lg);
  background: var(--white);
  color: var(--ink);
  box-shadow: -30px 0 70px -30px rgba(11, 34, 57, .55);
  overflow-y: auto;
  overscroll-behavior: contain;
}
.drawer::backdrop { background: rgba(11, 34, 57, .62); backdrop-filter: blur(3px); }
.drawer[open] { animation: drawer-in .28s var(--ease-smooth); }
@keyframes drawer-in { from { transform: translateX(40px); opacity: 0; } }

.drawer__close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--white);
  color: var(--slate);
  cursor: pointer;
}
.drawer__close:hover { color: var(--ink); border-color: var(--ink); }

.lead-card { background: var(--white); }
.lead-card__head {
  position: relative;
  padding: 28px 70px 20px 26px;
  display: grid;
  gap: 8px;
  justify-items: start;
  background: linear-gradient(180deg, var(--ice-soft), var(--white));
  border-bottom: 1px solid var(--line);
}
.lead-card__title { font-size: 26px; color: var(--ink); }
.lead-card__sub { font-size: 14.5px; color: var(--slate); }

.form { padding: 22px 26px 28px; }
.form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 12px; }
.field { display: grid; gap: 6px; align-content: start; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 13px; font-weight: 600; color: var(--ink); }
.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field select {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: var(--ice-soft);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.2;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  transition: border-color .15s, box-shadow .15s, background-color .15s;
}
.field select::-ms-expand { display: none; }
.field input::placeholder { color: #8391A0; }
.field input:focus, .field select:focus {
  outline: none;
  background: var(--white);
  border-color: var(--corp-blue);
  box-shadow: 0 0 0 4px rgba(40, 88, 139, .14);
}
.field input[aria-invalid="true"], .field select[aria-invalid="true"] { border-color: var(--error); background: #FFF8F7; }
.field input[aria-invalid="true"]:focus, .field select[aria-invalid="true"]:focus { box-shadow: 0 0 0 4px rgba(217, 45, 32, .12); }

.select { position: relative; }
.select select { padding-right: 40px; cursor: pointer; white-space: nowrap; text-overflow: ellipsis; }
.select select:invalid { color: #8391A0; }
.select option { color: var(--ink); }
.select .icon { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: var(--slate); pointer-events: none; }

.field__error { font-size: 12.5px; font-weight: 500; color: var(--error); }
.field--check { grid-template-columns: 20px 1fr; align-items: start; column-gap: 10px; margin: 16px 0 18px; }
.field--check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--corp-blue); cursor: pointer; }
.field--check label { font-size: 13px; font-weight: 400; color: var(--slate); }
.field--check label a { color: var(--corp-blue); font-weight: 500; }
.field--check .field__error { grid-column: 2; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__status { margin-top: 12px; font-size: 13.5px; font-weight: 500; color: var(--error); }

/* Modal confirmación */
.modal {
  width: min(560px, calc(100% - 32px));
  max-height: calc(100dvh - 32px);
  border: 0;
  border-radius: var(--r-lg);
  padding: 36px;
  color: var(--ink);
  box-shadow: 0 30px 70px -20px rgba(11, 34, 57, .55);
}
.modal::backdrop { background: rgba(11, 34, 57, .65); backdrop-filter: blur(3px); }
.modal[open] { animation: pop .2s ease-out; }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.98); } }
.modal__close { position: absolute; top: 16px; right: 16px; width: 40px; height: 40px; display: grid; place-items: center; border: 0; border-radius: 50%; background: var(--ice-soft); color: var(--slate); cursor: pointer; }
.modal__ok { display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%; background: var(--ice); color: var(--corp-blue); margin-bottom: 18px; }
.modal__ok .icon { width: 30px; height: 30px; stroke-width: 2.5; }
.modal h2 { font-size: 30px; color: var(--ink); }
.modal > p { color: var(--slate); margin-top: 8px; }
.modal__summary { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; margin: 20px 0; padding: 16px 18px; background: var(--ice-soft); border-radius: 12px; font-size: 14px; }
.modal__summary dt { color: var(--slate); }
.modal__summary dd { margin: 0; text-align: right; font-weight: 600; color: var(--ink); }
.modal__steps { display: grid; gap: 8px; padding-left: 20px; font-size: 14px; color: var(--slate); }
.modal__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 24px; }

/* Burbuja flotante de WhatsApp */
.wa-fab {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  pointer-events: none;
}
.wa-fab__bubble {
  position: relative;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--wa);
  color: var(--white);
  box-shadow: 0 10px 24px -8px rgba(37, 211, 102, .55), 0 4px 12px rgba(11, 34, 57, .24);
  transition: transform .2s;
  pointer-events: auto;
}
.wa-fab__bubble .icon { width: 26px; height: 26px; }
.wa-fab__label {
  padding: 9px 14px;
  border-radius: 10px;
  background: var(--navy-deep);
  color: var(--white);
  font-family: var(--font-head);
  font-size: 13.5px;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: var(--shadow-sm);
  opacity: 0;
  visibility: hidden;
  transform: translateX(8px);
  transition: opacity .2s, transform .2s, visibility .2s;
  pointer-events: none;
}
.wa-fab:hover .wa-fab__bubble,
.wa-fab:focus-visible .wa-fab__bubble { transform: scale(1.06); }
.wa-fab:hover .wa-fab__label,
.wa-fab:focus-visible .wa-fab__label { opacity: 1; visibility: visible; transform: none; }

/* =========================================================
 * RESPONSIVE
 * ========================================================= */
@media (max-width: 1180px) {
  .brand__sep,
  .brand__tagline { display: none; }
  .final__row { flex-direction: column; align-items: flex-start; gap: 22px; }
  .footer__top { flex-direction: column; align-items: flex-start; gap: 24px; }
}

@media (max-width: 1040px) {
  .nav__links { display: none; }
  .nav__actions { margin-left: auto; }
  .band__head { margin-left: 0; }
  .band__grid--4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  :root { --nav-h: 64px; }
  .hero__stage { min-height: 520px; }
  .hero__bg img { object-position: 72% center; }
  .hero__scrim {
    background: linear-gradient(
      180deg,
      rgba(11, 34, 57, .74) 0%,
      rgba(11, 34, 57, .82) 100%
    );
  }
  .trust-bar { padding-block: 24px; }
  .trust-bar__list { grid-template-columns: 1fr; gap: 20px; }
  .trust-bar__item { padding: 16px 0 0; }
  .trust-bar__item:first-child { padding-top: 0; }
  .trust-bar__item + .trust-bar__item { border-left: 0; border-top: 1px solid var(--line); }

  .services--2 { grid-template-columns: 1fr; }
  .method-banner { aspect-ratio: 16 / 9; }
  .method-steps { grid-template-columns: 1fr; gap: 20px; margin-top: 28px; }
  .method-step { padding: 18px 0 0; }
  .method-step:first-child { padding-top: 0; }
  .method-step + .method-step { border-left: 0; border-top: 1px solid var(--line); }

  .band__scrim {
    background: linear-gradient(180deg, rgba(11, 34, 57, .72) 0%, rgba(11, 34, 57, .94) 55%, var(--navy-deep) 100%);
  }

  .final__copy { flex-direction: column; align-items: flex-start; gap: 10px; }
  .final__sep { display: none; }
  .final h2 { white-space: normal; }
  .final__actions { flex-wrap: wrap; width: 100%; }

  .footer__brand { flex-direction: column; align-items: flex-start; gap: 10px; }
  .footer__sep { display: none; }
  .footer__info { flex-wrap: wrap; gap: 22px 36px; }

  .drawer { inset: auto 0 0 0; width: 100%; height: auto; max-height: 92dvh; margin: auto 0 0; border-radius: var(--r-lg) var(--r-lg) 0 0; }
  .drawer[open] { animation: sheet-in .3s var(--ease-smooth); }
  @keyframes sheet-in { from { transform: translateY(60px); opacity: 0; } }
}

@media (max-width: 640px) {
  .hide-sm { display: none; }
  .brand__mark img { width: 38px; }
  .brand__name { font-size: 15.5px; }
  .nav__actions { gap: 6px; }
  #nav-whatsapp span { display: none; }
  #nav-whatsapp { padding: 0 11px; }
  #nav-visita { padding: 0 14px; font-size: 13.5px; }

  .hero h1 { font-size: 30px; }
  .hero__lead { font-size: 15px; }
  .hero__highlights { flex-direction: column; align-items: flex-start; gap: 12px; }
  .hero__highlights li + li { padding-left: 0; border-left: 0; }
  .hero__cta { flex-direction: column; align-items: stretch; width: 100%; }
  .hero__cta .btn { width: 100%; }
  .hero__link { align-self: center; }

  .band__grid--4 { grid-template-columns: 1fr; }
  .service, .band__card { padding: 24px 20px; }

  .final__actions { flex-direction: column; align-items: stretch; }
  .final__actions .btn { width: 100%; }

  .lead-card__head { padding: 22px 64px 16px 18px; }
  .form { padding: 16px 18px 20px; }
  .form__grid { grid-template-columns: 1fr; }
  .modal { padding: 28px 20px; }
  .modal__actions { grid-template-columns: 1fr; }

  .wa-fab { right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); }
  .wa-fab__bubble { width: 54px; height: 54px; }
  .wa-fab__label { display: none; }
}

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