/* ==========================================================================
   LUDEC — Hoja de estilos
   ========================================================================== */

/* ---------- Variables ---------- */
:root {
  --navy-950: #071d2b;
  --navy-900: #0b2a3c;
  --navy-800: #11384f;
  --petrol-700: #1a4a63;
  --accent: #127369;          /* verde petróleo */
  --accent-dark: #0d5a52;
  --accent-soft: #e5f1ef;
  --whatsapp: #157f48;
  --whatsapp-dark: #10683a;

  --white: #ffffff;
  --gray-50: #f6f8fa;
  --gray-100: #eef2f5;
  --gray-200: #dfe6eb;
  --gray-300: #c9d3db;
  --text: #26323c;
  --text-muted: #56636e;

  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --radius: 12px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 2px rgba(11, 42, 60, .05);
  --shadow: 0 1px 2px rgba(11, 42, 60, .04), 0 8px 24px rgba(11, 42, 60, .06);

  --header-h: 72px;
  --container: 1180px;
  --gutter: 24px;
  --section-y: clamp(72px, 10vw, 120px);
}

/* ---------- Reset básico ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 8px);
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, p, ul, ol, dl, dd, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

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

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

.section { padding-block: var(--section-y); }
.section-alt { background: var(--gray-50); }

.section-head {
  max-width: 760px;
  margin-bottom: clamp(40px, 5vw, 64px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
}
.eyebrow::before {
  content: "";
  width: 24px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
}

.section-title {
  font-size: clamp(1.75rem, 3.6vw, 2.625rem);
  line-height: 1.18;
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--navy-900);
  text-wrap: balance;
}

.section-intro {
  margin-top: 20px;
  font-size: clamp(1.0625rem, 1.6vw, 1.1875rem);
  color: var(--text-muted);
  max-width: 680px;
}

.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 24px;
  border: 1.5px solid transparent;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-sm { min-height: 40px; padding: 8px 18px; font-size: .9375rem; }

.btn-primary { background: var(--accent); color: var(--white); }
.btn-primary:hover { background: var(--accent-dark); }

.btn-outline { border-color: var(--gray-300); color: var(--navy-900); background: var(--white); }
.btn-outline:hover { border-color: var(--navy-900); }

.btn-whatsapp { background: var(--whatsapp); color: var(--white); }
.btn-whatsapp:hover { background: var(--whatsapp-dark); }

.btn-light { background: var(--white); color: var(--navy-900); }
.btn-light:hover { background: var(--gray-100); }

.btn-icon {
  width: 20px;
  height: 20px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, box-shadow .25s ease;
}
/* El desenfoque va en un pseudo-elemento: si se aplica al header,
   éste pasa a contener al menú mobile (position: fixed) y lo recorta. */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(255, 255, 255, .94);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  backdrop-filter: saturate(180%) blur(10px);
}
.site-header.is-scrolled {
  border-bottom-color: var(--gray-200);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: none;
  color: var(--navy-900);
}
.logo-mark {
  width: 14px;
  height: 14px;
  border-radius: 3px;
  background: var(--accent);
  box-shadow: 5px 5px 0 0 var(--navy-900);
  margin-right: 4px;
}
.logo-text {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: .06em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-link {
  position: relative;
  display: block;
  padding: 8px 10px;
  font-size: .9375rem;
  font-weight: 500;
  color: var(--text-muted);
  border-radius: 6px;
  transition: color .2s ease;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 2px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
  transform: scaleX(0);
  transition: transform .25s ease;
}
.nav-link:hover,
.nav-link.is-active { color: var(--navy-900); }
.nav-link.is-active::after { transform: scaleX(1); }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.nav-toggle-bar {
  width: 22px;
  height: 2px;
  background: var(--navy-900);
  border-radius: 2px;
  transition: transform .25s ease, opacity .2s ease;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding-block: clamp(64px, 9vw, 120px) clamp(72px, 10vw, 128px);
  background:
    radial-gradient(1100px 500px at 85% 10%, rgba(18, 115, 105, .07), transparent 60%),
    linear-gradient(180deg, var(--white) 0%, var(--gray-50) 100%);
  border-bottom: 1px solid var(--gray-100);
  overflow: hidden;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  align-items: center;
  gap: 56px;
}
.hero-title {
  font-size: clamp(2.125rem, 5.2vw, 3.75rem);
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: -.015em;
  text-transform: uppercase;
  color: var(--navy-900);
  text-wrap: balance;
}
.hero-lead {
  margin-top: 24px;
  font-size: clamp(1.25rem, 2.2vw, 1.5rem);
  line-height: 1.4;
  font-weight: 600;
  color: var(--petrol-700);
}
.hero-text {
  margin-top: 14px;
  max-width: 540px;
  font-size: clamp(1.0625rem, 1.6vw, 1.1875rem);
  color: var(--text-muted);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 36px;
}

.hero-visual { color: var(--navy-900); }
.hero-graphic { width: 100%; height: auto; }
.hg-dot { fill: var(--navy-900); opacity: .1; }
.hg-source rect { fill: var(--white); stroke: var(--gray-300); stroke-width: 1.5; }
.hg-source path { stroke: var(--gray-300); stroke-width: 6; stroke-linecap: round; fill: none; }
.hg-flow path {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.6;
  stroke-dasharray: 5 7;
  opacity: .75;
  animation: hg-flow 2.4s linear infinite;
}
.hg-halo { fill: var(--accent); opacity: .1; }
.hg-node { fill: var(--navy-900); }
.hg-check { fill: none; stroke: var(--white); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.hg-panel > rect:first-child { fill: var(--white); stroke: var(--gray-200); stroke-width: 1.5; filter: drop-shadow(0 8px 18px rgba(11, 42, 60, .07)); }
.hg-panel-line { stroke: var(--navy-900); stroke-width: 6; stroke-linecap: round; opacity: .8; }
.hg-panel-line-soft { stroke: var(--gray-200); stroke-width: 6; stroke-linecap: round; }
.hg-kpi { fill: var(--accent); }
.hg-axis { stroke: var(--gray-200); stroke-width: 1.5; }
.hg-bar { fill: var(--petrol-700); opacity: .25; }
.hg-bar-accent { fill: var(--accent); opacity: 1; }

@keyframes hg-flow { to { stroke-dashoffset: -24; } }

/* ---------- Quiénes somos ---------- */
.feature {
  padding: 28px 0 0;
  border-top: 2px solid var(--gray-200);
  position: relative;
}
.feature::before {
  content: "";
  position: absolute;
  top: -2px;
  left: 0;
  width: 48px;
  height: 2px;
  background: var(--accent);
}
.feature-label {
  margin-bottom: 10px;
  font-size: .875rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--navy-900);
}
.feature p { color: var(--text-muted); }

/* ---------- Tarjetas ---------- */
.card {
  padding: 28px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: box-shadow .25s ease, border-color .25s ease, transform .25s ease;
}
.card:hover {
  border-color: var(--gray-300);
  box-shadow: var(--shadow);
}
.card p { color: var(--text-muted); }

.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: 20px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
}
.card-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.card-title {
  margin-bottom: 10px;
  font-size: 1.1875rem;
  line-height: 1.35;
  font-weight: 600;
  color: var(--navy-900);
}

.service { display: flex; flex-direction: column; }

/* ---------- Qué hacemos ---------- */
.lines {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 56px;
}
.line {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 24px;
  padding-block: 32px;
  border-top: 1px solid var(--gray-200);
}
.line-number {
  font-size: 2.25rem;
  line-height: 1;
  font-weight: 600;
  letter-spacing: -.02em;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.line-title {
  margin-bottom: 8px;
  font-size: 1.25rem;
  line-height: 1.3;
  font-weight: 600;
  color: var(--navy-900);
}
.line p { color: var(--text-muted); }

/* ---------- Cómo trabajamos ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  position: relative;
  counter-reset: none;
}
.steps::before {
  content: "";
  position: absolute;
  top: 22px;
  left: 22px;
  right: 22px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--gray-200));
}
.step { position: relative; }
.step-marker {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  margin-bottom: 24px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--accent);
  color: var(--accent);
  font-weight: 700;
  font-size: 1.0625rem;
  box-shadow: 0 0 0 6px var(--white);
}
.step-kicker {
  margin-bottom: 6px;
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.step-title {
  margin-bottom: 10px;
  font-size: 1.1875rem;
  line-height: 1.35;
  font-weight: 600;
  color: var(--navy-900);
}
.step p:last-child { color: var(--text-muted); }

/* ---------- Nuestro enfoque ---------- */
.section-dark {
  background:
    radial-gradient(900px 420px at 0% 0%, rgba(18, 115, 105, .22), transparent 60%),
    var(--navy-900);
  color: rgba(255, 255, 255, .78);
}
.section-dark .eyebrow { color: #6cc2b6; }
.section-dark .section-title { color: var(--white); }

.approach {
  padding: 32px 28px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .03);
}
.approach .card-icon { background: rgba(108, 194, 182, .14); color: #8fd3c9; }
.approach .card-title { color: var(--white); }
.approach p { color: rgba(255, 255, 255, .74); }

.statement {
  margin-top: clamp(48px, 6vw, 72px);
  padding-top: clamp(40px, 5vw, 56px);
  border-top: 1px solid rgba(255, 255, 255, .14);
  text-align: center;
}
.statement p {
  max-width: 820px;
  margin-inline: auto;
  font-size: clamp(1.375rem, 3vw, 2rem);
  line-height: 1.35;
  font-weight: 600;
  letter-spacing: -.01em;
  color: var(--white);
  text-wrap: balance;
}

/* ---------- Sectores ---------- */
.sectors {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.sectors li {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 76px;
  padding: 18px 20px;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  font-weight: 500;
  line-height: 1.4;
  color: var(--navy-900);
}
.sectors li::before {
  content: "";
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--accent);
}
.sectors-note {
  max-width: 720px;
  margin-top: 40px;
  font-size: clamp(1.0625rem, 1.6vw, 1.1875rem);
  color: var(--text-muted);
}

/* ---------- Contacto ---------- */
.contact {
  background:
    radial-gradient(800px 400px at 100% 100%, rgba(18, 115, 105, .28), transparent 60%),
    linear-gradient(135deg, var(--navy-950) 0%, var(--navy-800) 100%);
  color: rgba(255, 255, 255, .8);
}
.contact .eyebrow { color: #6cc2b6; }
.contact .section-title {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  color: var(--white);
}
.contact-inner {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 64px;
  align-items: start;
}
.contact-text {
  margin-top: 20px;
  max-width: 560px;
  font-size: clamp(1.0625rem, 1.6vw, 1.1875rem);
}
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 36px;
}

.contact-details {
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, .14);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
}
.contact-item dt {
  margin-bottom: 4px;
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #8fd3c9;
}
.contact-item dd {
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--white);
  overflow-wrap: anywhere;
}
.contact-item a {
  border-bottom: 1px solid rgba(255, 255, 255, .25);
  transition: border-color .2s ease;
}
.contact-item a:hover { border-bottom-color: var(--white); }

/* ---------- Formulario de contacto ---------- */
.contact-form {
  display: grid;
  gap: 18px;
  padding: 36px 32px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: 0 20px 48px rgba(3, 15, 23, .28);
  color: var(--text);
}
.form-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--navy-900);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.form-field { display: grid; gap: 6px; min-width: 0; }
.form-field label {
  font-size: .875rem;
  font-weight: 600;
  color: var(--navy-900);
}
.form-optional { font-weight: 400; color: var(--text-muted); }
.form-field input,
.form-field textarea {
  width: 100%;
  min-height: 46px;
  padding: 11px 14px;
  font: inherit;
  font-size: 1rem;
  color: var(--text);
  background: var(--gray-50);
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-sm);
  transition: border-color .2s ease, background-color .2s ease, box-shadow .2s ease;
}
.form-field textarea { resize: vertical; min-height: 128px; }
.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  background: var(--white);
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(18, 115, 105, .15);
}
.form-field [aria-invalid="true"] { border-color: #b4232c; }
.form-hp {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.form-submit { justify-self: start; min-width: 200px; }
.form-submit[disabled] { opacity: .65; cursor: wait; transform: none; }
.form-status:empty { display: none; }
.form-status {
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  font-size: .9375rem;
  font-weight: 500;
}
.form-status.is-success { background: var(--accent-soft); color: var(--accent-dark); }
.form-status.is-error { background: #fbeaea; color: #8f1d24; }
.form-note { font-size: .8125rem; color: var(--text-muted); }

/* ---------- Footer ---------- */
.site-footer {
  padding-block: 40px;
  background: var(--navy-950);
  color: rgba(255, 255, 255, .62);
  font-size: .9375rem;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
}
.logo-footer { color: var(--white); }
.logo-footer .logo-mark { box-shadow: 5px 5px 0 0 rgba(255, 255, 255, .35); }
.logo-footer .logo-text { font-size: 1.0625rem; }
.footer-tagline { letter-spacing: .02em; }

/* ---------- Botón flotante WhatsApp ---------- */
.wa-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 90;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--whatsapp);
  color: var(--white);
  box-shadow: 0 6px 18px rgba(7, 29, 43, .22);
  transition: background-color .2s ease, transform .2s ease;
}
.wa-float:hover { background: var(--whatsapp-dark); transform: translateY(-2px); }
.wa-float svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- Animaciones de aparición ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .6s ease, transform .6s ease;
}
.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}
.js .grid > .reveal:nth-child(2),
.js .lines > .reveal:nth-child(2),
.js .steps > .reveal:nth-child(2) { transition-delay: .07s; }
.js .grid > .reveal:nth-child(3),
.js .lines > .reveal:nth-child(3),
.js .steps > .reveal:nth-child(3) { transition-delay: .14s; }
.js .grid > .reveal:nth-child(4),
.js .lines > .reveal:nth-child(4),
.js .steps > .reveal:nth-child(4) { transition-delay: .21s; }

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

@media (max-width: 1360px) {
  /* Reserva espacio para el botón flotante de WhatsApp */
  .footer-inner { padding-right: calc(var(--gutter) + 64px); }
}

@media (max-width: 1100px) {
  .nav-list { gap: 0; }
  .nav-link { padding-inline: 8px; }
  .site-nav { gap: 16px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .sectors { grid-template-columns: repeat(3, 1fr); }
}

/* Navegación mobile / tablet */
@media (max-width: 980px) {
  .nav-toggle { display: inline-flex; }

  .site-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    bottom: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 24px;
    padding: 16px var(--gutter) 32px;
    background: var(--white);
    border-top: 1px solid var(--gray-200);
    overflow-y: auto;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity .25s ease, transform .25s ease, visibility 0s linear .25s;
  }
  .site-nav.is-open {
    visibility: visible;
    opacity: 1;
    transform: none;
    transition: opacity .25s ease, transform .25s ease, visibility 0s;
  }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-list li { border-bottom: 1px solid var(--gray-100); }
  .nav-link {
    padding: 16px 4px;
    font-size: 1.125rem;
    color: var(--navy-900);
  }
  .nav-link::after { display: none; }
  .nav-link.is-active { color: var(--accent); }
  .nav-cta { min-height: 52px; font-size: 1.0625rem; }

  body.nav-open { overflow: hidden; }

  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { max-width: 520px; }

  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-3.grid-trio { grid-template-columns: 1fr; max-width: 640px; }

  .steps { grid-template-columns: repeat(2, 1fr); gap: 40px 32px; }
  .steps::before { display: none; }

  .contact-inner { grid-template-columns: 1fr; gap: 48px; }
}

@media (max-width: 720px) {
  :root {
    --header-h: 64px;
    --gutter: 20px;
  }
  body { font-size: 1rem; }

  .grid-3,
  .grid-4,
  .lines { grid-template-columns: 1fr; }
  .grid { gap: 16px; }

  .lines { gap: 0; }
  .line { gap: 18px; padding-block: 26px; }
  .line-number { font-size: 1.75rem; }

  .card { padding: 24px; }
  .approach { padding: 26px 22px; }

  .sectors { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .sectors li { min-height: 64px; padding: 14px 16px; font-size: .9375rem; }

  /* Pasos en vertical, con línea conectora */
  .steps { grid-template-columns: 1fr; gap: 0; }
  .step {
    display: grid;
    grid-template-columns: 46px 1fr;
    column-gap: 20px;
    padding-bottom: 32px;
  }
  .step:last-child { padding-bottom: 0; }
  .step::before {
    content: "";
    position: absolute;
    left: 22px;
    top: 46px;
    bottom: 0;
    width: 2px;
    background: var(--gray-200);
  }
  .step:last-child::before { display: none; }
  .step-marker { grid-row: span 3; margin-bottom: 0; box-shadow: none; }
  .step > :not(.step-marker) { grid-column: 2; }

  .hero-actions .btn,
  .contact-actions .btn { width: 100%; }

  .contact-item dd { font-size: 1.0625rem; }
  .contact-form { padding: 28px 20px; }
  .form-row { grid-template-columns: 1fr; }
  .form-submit { justify-self: stretch; }

  .footer-inner { flex-direction: column; align-items: flex-start; padding-right: var(--gutter); }
  /* Espacio para que el botón flotante no tape el texto del footer */
  .site-footer { padding-bottom: 96px; }

  .wa-float { right: 16px; bottom: 16px; width: 52px; height: 52px; }
}

@media (max-width: 400px) {
  :root { --gutter: 16px; }
  .sectors { grid-template-columns: 1fr; }
  .logo-text { font-size: 1.125rem; }
}

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