/* ============================================================
   Corporación H Motta SAC — Hoja de estilos
   ============================================================ */

:root {
  --navy-950: #061426;
  --navy-900: #0a1f3a;
  --navy-800: #0e2b50;
  --navy-700: #123c6b;
  --blue-700: #0e4f9e;
  --blue-600: #1668c9;
  --blue-500: #2b82e0;
  --blue-300: #8cc8ff;
  --sky-100: #eaf3ff;
  --ink: #0d1c31;
  --body: #4a5c73;
  --muted: #64748b;
  --line: #e2eaf4;
  --bg-soft: #f5f9fe;
  --white: #ffffff;
  --radius: 18px;
  --radius-lg: 26px;
  --shadow-sm: 0 1px 2px rgba(9, 30, 60, .06);
  --shadow-md: 0 18px 40px -24px rgba(9, 30, 60, .35);
  --shadow-lg: 0 40px 80px -40px rgba(9, 30, 60, .5);
  --font-head: 'Sora', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --container: 1160px;
  --header-h: 76px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--body);
  background: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }
svg { flex: none; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; margin: 0; padding: 0; }
p { margin: 0; }
button { font: inherit; color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--ink);
  line-height: 1.16;
  letter-spacing: -.02em;
  margin: 0;
}

::selection { background: rgba(43, 130, 224, .22); color: var(--navy-900); }

:focus-visible {
  outline: 3px solid rgba(43, 130, 224, .55);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 200;
  background: var(--navy-900);
  color: #fff;
  padding: 12px 18px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  transition: top .2s ease;
}
.skip-link:focus { top: 12px; }

.container {
  width: min(100% - 40px, var(--container));
  margin-inline: auto;
}

/* ---------- Tipografía de sección ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--blue-600);
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--blue-600), var(--blue-300));
}
.eyebrow.light { color: #7fc0ff; }
.eyebrow.light::before { background: linear-gradient(90deg, #7fc0ff, rgba(127, 192, 255, .2)); }

.section { padding: clamp(64px, 9vw, 110px) 0; }
.section-soft {
  background:
    radial-gradient(900px 420px at 100% 0%, rgba(43, 130, 224, .07), transparent 65%),
    linear-gradient(180deg, #f7fbff, #eef5fd);
  border-block: 1px solid rgba(9, 30, 60, .05);
}

.section-head {
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  gap: 32px;
  align-items: end;
  margin-bottom: clamp(34px, 4.5vw, 52px);
}
.section-title {
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
  font-weight: 700;
  margin-top: 14px;
  text-wrap: balance;
}
.section-lead {
  justify-self: end;
  max-width: 46ch;
  font-size: 15px;
  line-height: 1.7;
  color: var(--muted);
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  height: 46px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-family: var(--font-body);
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: transform .22s ease, box-shadow .22s ease, background .22s ease, border-color .22s ease, color .22s ease;
}
.btn svg { transition: transform .22s ease; }
.btn:hover svg { transform: translateX(3px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: linear-gradient(135deg, var(--blue-600), var(--blue-700));
  color: #fff;
  box-shadow: 0 12px 26px -14px rgba(22, 104, 201, .8);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 34px -14px rgba(22, 104, 201, .75);
  background: linear-gradient(135deg, #1f74d8, var(--blue-700));
}

.btn-outline {
  background: #fff;
  border-color: #d7e4f3;
  color: var(--navy-900);
  box-shadow: var(--shadow-sm);
}
.btn-outline:hover {
  transform: translateY(-2px);
  border-color: #b9d3ee;
  box-shadow: 0 14px 30px -20px rgba(9, 30, 60, .45);
}

.btn-light { background: #fff; color: var(--navy-900); }
.btn-light:hover { transform: translateY(-2px); box-shadow: 0 16px 32px -20px rgba(0, 0, 0, .55); }

.btn-outline-light {
  background: transparent;
  border-color: rgba(255, 255, 255, .3);
  color: #fff;
}
.btn-outline-light:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, .08);
  border-color: rgba(255, 255, 255, .6);
}

.btn-lg { height: 54px; padding: 0 28px; font-size: 15.5px; border-radius: 14px; }
.btn-sm { height: 42px; padding: 0 18px; font-size: 14px; border-radius: 11px; }
.btn-block { width: 100%; }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, .9);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid rgba(9, 30, 60, .06);
  transition: box-shadow .3s ease, background .3s ease;
}
.site-header.is-scrolled {
  background: rgba(255, 255, 255, .97);
  box-shadow: 0 14px 34px -26px rgba(9, 30, 60, .55);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: var(--header-h);
  position: relative;
}
.brand { display: inline-flex; align-items: center; }
.brand img { height: 48px; width: auto; }

.nav {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-left: auto;
}
.nav-link {
  position: relative;
  padding: 6px 0;
  font-size: 14.5px;
  font-weight: 500;
  color: #42546c;
  transition: color .2s ease;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 0;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--blue-600), var(--blue-500));
  transition: right .25s ease;
}
.nav-link:hover,
.nav-link.is-active { color: var(--navy-900); }
.nav-link:hover::after,
.nav-link.is-active::after { right: 0; }

.header-cta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-left: 6px;
}
.header-phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--navy-900);
  transition: color .2s ease;
}
.header-phone svg { color: var(--blue-600); }
.header-phone:hover { color: var(--blue-600); }

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fff;
  place-items: center;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--navy-900);
  position: relative;
  transition: background .2s ease;
}
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--navy-900);
  transition: transform .25s ease, top .25s ease;
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  padding: clamp(48px, 7vw, 86px) 0 clamp(70px, 8vw, 106px);
  overflow: hidden;
  background:
    radial-gradient(820px 460px at 88% 6%, rgba(43, 130, 224, .14), transparent 62%),
    radial-gradient(680px 420px at 0% 96%, rgba(90, 167, 240, .12), transparent 65%),
    linear-gradient(180deg, #f8fbff 0%, #f1f7fe 55%, #eaf3fd 100%);
  border-bottom: 1px solid rgba(9, 30, 60, .05);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(22, 104, 201, .06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(22, 104, 201, .06) 1px, transparent 1px);
  background-size: 54px 54px;
  -webkit-mask-image: radial-gradient(ellipse 78% 72% at 58% 42%, #000 25%, transparent 76%);
  mask-image: radial-gradient(ellipse 78% 72% at 58% 42%, #000 25%, transparent 76%);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.04fr .96fr;
  gap: clamp(36px, 5vw, 70px);
  align-items: center;
}
.hero-title {
  margin: 18px 0 22px;
  font-size: clamp(2.15rem, 3.6vw, 2.8rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -.035em;
  text-wrap: balance;
}
.hero-title-sub {
  display: block;
  max-width: 38ch;
  margin-top: 16px;
  font-family: var(--font-body);
  font-size: max(.5em, 16px);
  font-weight: 500;
  line-height: 1.42;
  letter-spacing: -.01em;
  text-wrap: balance;
  color: #556a84;
}
.text-gradient {
  background: linear-gradient(100deg, var(--blue-600) 5%, #4a9df0 55%, var(--blue-600) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-lead {
  max-width: 56ch;
  font-size: clamp(1rem, 1.2vw, 1.1rem);
  line-height: 1.72;
  color: #4a5c73;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}
.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin-top: 30px;
}
.hero-points li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: #40546e;
}
.hero-points li::before {
  content: "";
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: #e2efff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231668c9' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m20 6-11 11-5-5'/%3E%3C/svg%3E") center / 10px 10px no-repeat;
}

.hero-panel-wrap {
  position: relative;
  width: 100%;
  max-width: 520px;
  padding-bottom: 44px;
  justify-self: end;
}
.hero-panel {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: clamp(26px, 3vw, 38px);
  border-radius: var(--radius-lg);
  color: #fff;
  background:
    radial-gradient(600px 300px at 90% -10%, rgba(80, 160, 255, .35), transparent 60%),
    linear-gradient(150deg, #08192f 0%, #0e3562 55%, #175591 100%);
  box-shadow: 0 44px 80px -42px rgba(6, 20, 38, .85);
}
.hero-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: 38px 38px;
  -webkit-mask-image: linear-gradient(180deg, #000, rgba(0, 0, 0, .35));
  mask-image: linear-gradient(180deg, #000, rgba(0, 0, 0, .35));
}
.hero-panel::after {
  content: "";
  position: absolute;
  width: 320px;
  height: 320px;
  right: -120px;
  bottom: -140px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(86, 170, 255, .35), transparent 68%);
  z-index: -1;
}

.panel-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.panel-logo {
  height: 38px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: .96;
}
.panel-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 11px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 999px;
  background: rgba(255, 255, 255, .07);
  color: #cfe6ff;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  white-space: nowrap;
}
.panel-badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #57d38c;
  box-shadow: 0 0 0 3px rgba(87, 211, 140, .18);
}
.panel-eyebrow {
  margin-top: 30px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #8fc4ff;
}
.panel-title {
  margin-top: 10px;
  font-family: var(--font-head);
  font-size: clamp(1.18rem, 1.6vw, 1.4rem);
  font-weight: 600;
  line-height: 1.42;
  color: #fff;
  letter-spacing: -.015em;
  text-wrap: balance;
}
.panel-list {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}
.panel-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13.5px;
  color: #c9dcf2;
}
.panel-list svg { color: #6fb2ff; margin-top: 2px; }

.panel-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, .13);
}
.panel-stats strong {
  display: block;
  font-family: var(--font-head);
  font-size: 1.65rem;
  font-weight: 700;
  line-height: 1;
  color: #fff;
  letter-spacing: -.02em;
}
.panel-stats span {
  display: block;
  margin-top: 6px;
  font-size: 11.5px;
  color: #a9c4e2;
}

.float-badge {
  position: absolute;
  left: 18px;
  bottom: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 232px;
  padding: 12px 18px 12px 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 24px 50px -24px rgba(9, 30, 60, .5);
}
.fb-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: #eafaf1;
  color: #16a34a;
}
.float-badge strong {
  display: block;
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 600;
  color: var(--navy-900);
}
.float-badge > span > span {
  display: block;
  margin-top: 1px;
  font-size: 11.5px;
  color: var(--muted);
}

/* ============================================================
   MARQUEE
   ============================================================ */
.marquee {
  overflow: hidden;
  background: var(--navy-900);
  border-block: 1px solid rgba(255, 255, 255, .07);
}
.marquee-track {
  display: flex;
  align-items: center;
  width: max-content;
  padding: 15px 0;
  animation: marquee 42s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span {
  position: relative;
  padding: 0 30px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .19em;
  text-transform: uppercase;
  color: #d7e8fa;
  white-space: nowrap;
}
.marquee-track span::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  width: 5px;
  height: 5px;
  background: #3f8fe0;
  transform: translateY(-50%) rotate(45deg);
}
@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* ============================================================
   SERVICIOS
   ============================================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 28px 26px 26px;
  overflow: hidden;
  background: #fff;
  border: 1px solid #e4ecf6;
  border-radius: 20px;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.service-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue-600), var(--blue-500), var(--blue-300));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s ease;
}
.service-card:hover {
  transform: translateY(-5px);
  border-color: #cfe1f6;
  box-shadow: 0 26px 54px -34px rgba(9, 30, 60, .45);
}
.service-card:hover::before { transform: scaleX(1); }

.service-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 4px;
  border: 1px solid #dceaf9;
  border-radius: 14px;
  background: linear-gradient(155deg, #eaf3ff, #d9e9fb);
  color: var(--blue-600);
  transition: background .3s ease, color .3s ease, transform .3s ease, border-color .3s ease;
}
.service-card:hover .service-icon {
  background: linear-gradient(150deg, var(--blue-600), var(--blue-700));
  border-color: transparent;
  color: #fff;
  transform: translateY(-2px);
}
.service-card h3 {
  font-size: 1.14rem;
  font-weight: 600;
  color: var(--navy-900);
}
.service-card p {
  font-size: 14px;
  line-height: 1.65;
  color: #5b6d84;
}
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 2px;
}
.tags li {
  padding: 4px 9px;
  border: 1px solid #e7eff9;
  border-radius: 6px;
  background: #f4f8fe;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: .02em;
  color: #5a708c;
}
.service-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: auto;
  padding-top: 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--blue-600);
}
.service-link svg { transition: transform .25s ease; }
.service-link:hover svg { transform: translateX(4px); }

/* ============================================================
   NOSOTROS
   ============================================================ */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}
.about-copy .section-title { margin: 14px 0 20px; }
.about-copy > p { font-size: 15px; line-height: 1.75; color: #4e6178; }
.about-copy > p + p { margin-top: 14px; }
.about-list {
  display: grid;
  gap: 11px;
  margin-top: 26px;
}
.about-list li {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  font-size: 14px;
  color: #40546e;
}
.about-list svg { color: var(--blue-600); margin-top: 2px; }

.about-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  margin-top: 32px;
  padding-top: 26px;
  border-top: 1px solid #dbe6f2;
}
.about-stats strong {
  display: block;
  font-family: var(--font-head);
  font-size: 1.85rem;
  font-weight: 700;
  line-height: 1;
  color: var(--navy-900);
  letter-spacing: -.02em;
}
.about-stats span {
  display: block;
  margin-top: 7px;
  font-size: 12px;
  color: var(--muted);
}

.about-media {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
.doc-card {
  width: min(100%, 342px);
  overflow: hidden;
  background: #fff;
  border: 1px solid #dbe6f3;
  border-radius: 14px;
  box-shadow: 0 34px 64px -34px rgba(9, 30, 60, .55);
  transform: rotate(-2deg);
  transition: transform .45s cubic-bezier(.2, .7, .3, 1), box-shadow .45s ease;
}
.doc-card:hover {
  transform: rotate(0deg) translateY(-5px);
  box-shadow: 0 40px 70px -32px rgba(9, 30, 60, .6);
}
.doc-card img { width: 100%; aspect-ratio: 620 / 877; object-fit: cover; object-position: top; }

.doc-download {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  font-size: 13px;
  font-weight: 600;
  color: var(--navy-900);
  transition: border-color .22s ease, transform .22s ease, box-shadow .22s ease;
}
.doc-download svg { color: var(--blue-600); }
.doc-download span {
  padding-left: 2px;
  font-size: 11px;
  font-weight: 400;
  color: var(--muted);
}
.doc-download:hover {
  transform: translateY(-2px);
  border-color: #bcd7f2;
  box-shadow: 0 16px 30px -24px rgba(9, 30, 60, .5);
}

/* ============================================================
   POR QUÉ ELEGIRNOS
   ============================================================ */
.why {
  position: relative;
  overflow: hidden;
  background: linear-gradient(145deg, #07162b 0%, #0c2b53 55%, #103c6c 100%);
}
.why::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 70% 20%, #000, transparent 80%);
  mask-image: radial-gradient(ellipse 80% 80% at 70% 20%, #000, transparent 80%);
  pointer-events: none;
}
.why::after {
  content: "";
  position: absolute;
  width: 640px;
  height: 640px;
  top: -260px;
  right: -180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(70, 150, 245, .22), transparent 65%);
  pointer-events: none;
}
.why .container { position: relative; z-index: 1; }
.why-head {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 32px;
  align-items: end;
  margin-bottom: clamp(34px, 4.5vw, 48px);
}
.why .section-title { color: #fff; }
.why-head p {
  justify-self: end;
  max-width: 42ch;
  font-size: 14.5px;
  line-height: 1.7;
  color: #a9c2dd;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.why-item {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 14px;
  background: rgba(255, 255, 255, .045);
  transition: background .25s ease, border-color .25s ease, transform .25s ease;
}
.why-item:hover {
  background: rgba(255, 255, 255, .085);
  border-color: rgba(120, 180, 255, .38);
  transform: translateY(-2px);
}
.why-item > svg {
  margin-top: 3px;
  color: #5fb0ff;
}
.why-item strong {
  display: block;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  color: #fff;
}
.why-item span {
  display: block;
  margin-top: 4px;
  font-size: 12.5px;
  line-height: 1.55;
  color: #a6bfda;
}

.why-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 36px;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, .12);
}
.why-cta strong {
  display: block;
  font-family: var(--font-head);
  font-size: 1.2rem;
  font-weight: 600;
  color: #fff;
  letter-spacing: -.01em;
}
.why-cta span {
  display: block;
  margin-top: 4px;
  font-size: 13.5px;
  color: #a6bfda;
}
.why-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ============================================================
   PROCESO
   ============================================================ */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
}
.step {
  position: relative;
  padding-top: 26px;
  border-top: 2px solid #e2ecf8;
}
.step::before {
  content: "";
  position: absolute;
  top: -2px;
  left: 0;
  width: 42px;
  height: 2px;
  background: linear-gradient(90deg, var(--blue-600), var(--blue-500));
}
.step-num {
  display: block;
  font-family: var(--font-head);
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.05em;
  color: #dbe9f8;
}
.step h3 {
  margin: 10px 0 8px;
  font-size: 1.03rem;
  font-weight: 600;
  color: var(--navy-900);
}
.step p {
  font-size: 13px;
  line-height: 1.68;
  color: var(--muted);
}

/* ============================================================
   CONTACTO
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 5vw, 64px);
  align-items: start;
}
.contact-copy .section-title { margin: 14px 0 16px; }
.contact-copy > p { max-width: 48ch; font-size: 14.5px; line-height: 1.72; color: var(--muted); }
.contact-list {
  display: grid;
  gap: 12px;
  margin-top: 28px;
}
.contact-list a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease;
}
.contact-list a:hover {
  transform: translateY(-2px);
  border-color: #cfe1f6;
  box-shadow: 0 18px 34px -28px rgba(9, 30, 60, .5);
}
.contact-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--sky-100);
  color: var(--blue-600);
}
.contact-list small {
  display: block;
  margin-bottom: 3px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}
.contact-list strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--navy-900);
  word-break: break-word;
}
.map-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  font-size: 13px;
  font-weight: 600;
  color: var(--blue-600);
}
.map-link svg { transition: transform .22s ease; }
.map-link:hover svg { transform: translate(2px, -2px); }

.quote-form {
  padding: clamp(24px, 3vw, 34px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: 0 34px 64px -46px rgba(9, 30, 60, .55);
}
.quote-form h3 { font-size: 1.24rem; font-weight: 600; }
.quote-form > p { margin-top: 7px; font-size: 13px; color: var(--muted); }

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 22px;
}
.form-grid label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #3c4f68;
}
.form-grid label.full { grid-column: 1 / -1; }

input,
select,
textarea {
  width: 100%;
  height: 46px;
  margin-top: 7px;
  padding: 0 14px;
  font-family: var(--font-body);
  font-size: 13.5px;
  color: var(--ink);
  background: #fbfdff;
  border: 1px solid #dfe8f3;
  border-radius: 10px;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
textarea {
  height: auto;
  min-height: 112px;
  padding: 12px 14px;
  line-height: 1.6;
  resize: vertical;
}
input::placeholder,
textarea::placeholder { color: #9aabc0; }
input:focus,
select:focus,
textarea:focus {
  outline: none;
  background: #fff;
  border-color: var(--blue-500);
  box-shadow: 0 0 0 4px rgba(43, 130, 224, .13);
}
select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
}

.btn-block { margin-top: 18px; }
.form-note {
  margin-top: 12px;
  font-size: 11px;
  line-height: 1.65;
  color: var(--muted);
}
.form-note a {
  color: var(--blue-600);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.form-success {
  margin-top: 14px;
  padding: 14px 16px;
  border: 1px solid #bbf7d0;
  border-radius: 12px;
  background: #ecfdf3;
  font-size: 12.5px;
  line-height: 1.6;
  color: #166534;
}
.form-success a { font-weight: 600; text-decoration: underline; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  position: relative;
  padding: clamp(48px, 6vw, 72px) 0 0;
  background: #061426;
  color: #b9cde3;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr .9fr 1.05fr 1.15fr;
  gap: 36px;
}
.footer-logo {
  height: 38px;
  width: auto;
  margin-bottom: 18px;
  filter: brightness(0) invert(1);
  opacity: .95;
}
.footer-brand p {
  max-width: 34ch;
  font-size: 12.5px;
  line-height: 1.75;
  color: #93abc4;
}
.footer-mail {
  display: inline-block;
  margin-top: 14px;
  font-size: 12.5px;
  font-weight: 500;
  color: #8fc4ff;
  word-break: break-word;
}
.footer-mail:hover { text-decoration: underline; text-underline-offset: 3px; }

.site-footer h4 {
  margin: 0 0 16px;
  font-family: var(--font-body);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #fff;
}
.footer-grid ul { display: grid; gap: 9px; }
.footer-grid ul a,
.footer-contact li {
  font-size: 12.5px;
  line-height: 1.6;
  color: #9fb6cf;
  transition: color .2s ease;
}
.footer-grid ul a:hover { color: #fff; }
.footer-contact li { display: block; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 44px;
  padding: 20px 0;
  border-top: 1px solid rgba(255, 255, 255, .08);
}
.footer-bottom p { font-size: 11.5px; color: #7d95b1; }

/* ============================================================
   FLOTANTE WHATSAPP
   ============================================================ */
.wa-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 80;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  box-shadow: 0 16px 34px -10px rgba(37, 211, 102, .65);
  transition: transform .25s ease, box-shadow .25s ease;
}
.wa-float::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 2px solid rgba(37, 211, 102, .55);
  border-radius: 50%;
  animation: wa-pulse 2.6s ease-out infinite;
}
.wa-float:hover {
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 20px 40px -10px rgba(37, 211, 102, .7);
}
@keyframes wa-pulse {
  0% { transform: scale(1); opacity: .75; }
  70% { transform: scale(1.55); opacity: 0; }
  100% { transform: scale(1.55); opacity: 0; }
}

/* ============================================================
   ANIMACIÓN DE ENTRADA
   ============================================================ */
.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .75s cubic-bezier(.2, .7, .3, 1), transform .75s cubic-bezier(.2, .7, .3, 1);
  transition-delay: var(--d, 0s);
  will-change: opacity, transform;
}
.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 56px;
  }
  .hero-panel-wrap {
    max-width: 560px;
    justify-self: start;
  }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .section-head,
  .why-head { grid-template-columns: 1fr; align-items: start; }
  .section-lead,
  .why-head p { justify-self: start; max-width: 56ch; }
  .about-grid { grid-template-columns: 1fr; gap: 52px; }
  .about-media { flex-direction: row; align-items: flex-start; justify-content: center; gap: 24px; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 880px) {
  .nav {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    z-index: 70;
    width: min(100% - 32px, 520px);
    margin: 0 auto;
    padding: 8px;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: 0 30px 60px -26px rgba(9, 30, 60, .45);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity .25s ease, transform .25s ease, visibility .25s;
  }
  .nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: none;
  }
  .nav-link {
    display: block;
    width: 100%;
    padding: 13px 14px;
    border-radius: 10px;
  }
  .nav-link::after { display: none; }
  .nav-link:hover,
  .nav-link.is-active { background: #f2f8ff; color: var(--blue-700); }
  .nav-toggle { display: grid; }
  .header-phone { display: none; }
  .brand img { height: 40px; }
}

@media (max-width: 720px) {
  .container { width: min(100% - 32px, var(--container)); }
  .services-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr; gap: 28px; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .about-media { flex-direction: column; align-items: center; }
  .about-stats { gap: 28px; }
  .hero-actions .btn { flex: 1 1 auto; }
  .why-cta { align-items: flex-start; }
  input, select, textarea { font-size: 16px; }
}

@media (max-width: 560px) {
  .hero { padding-top: 36px; }
  .hero-title { font-size: clamp(2.1rem, 9vw, 2.6rem); }
  .hero-actions { gap: 10px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .hero-points { gap: 8px 16px; }
  .hero-points li { font-size: 12.5px; }
  .float-badge { left: 8px; bottom: 0; min-width: 0; }
  .panel-top { flex-wrap: wrap; }
  .panel-logo { height: 34px; }
  .about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 28px;
    padding-top: 22px;
  }
  .about-stats strong { font-size: 1.5rem; }
  .about-stats span { font-size: 11px; line-height: 1.45; }
  .doc-card { width: min(100%, 300px); }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .footer-brand { grid-column: auto; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 8px; }
  .wa-float { right: 16px; bottom: 16px; width: 54px; height: 54px; }
  .section-head { margin-bottom: 30px; }
}

@media (max-width: 380px) {
  .header-cta .btn-sm { display: none; }
  .header-inner { gap: 12px; }
}

/* ============================================================
   ACCESIBILIDAD / MOVIMIENTO REDUCIDO
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
  .marquee-track { animation: none; }
  .wa-float::after { animation: none; }
}

/* Anclas con compensación del header fijo */
section[id] { scroll-margin-top: calc(var(--header-h) + 18px); }
