/* ============================================================
   SEGURIDAD DE COLOMBIA — Páginas de SECTOR
   Estilos específicos. Reutiliza variables, .container, .section,
   .btn*, sistema [data-anim] y header/topbar/footer de styles.css.
   ============================================================ */

/* ---------- Shared bits (eyebrow + section headers) ---------- */
.eyebrow {
  display: inline-block;
  font-family: var(--f-body);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  color: var(--c-navy);
  margin-bottom: var(--sp-3);
}
.sec-head { margin-bottom: var(--sp-12); }
.sec-head--center { text-align: center; max-width: 760px; margin-inline: auto; }
.sec-head h2 {
  font-family: var(--f-title);
  font-weight: 700;
  font-size: clamp(1.5rem, 3.2vw, 2.1rem);
  color: var(--c-navy);
  line-height: 1.2;
}

/* ============================================================
   HERO — light banner, image bleeds on the right
   ============================================================ */
.sec-hero {
  position: relative;
  overflow: hidden;
  /* The hero artwork only covers the right 72% and fades to near-white on its
     left edge (educativo 249, corporativo/residencial 252). A grey backdrop
     left a visible seam where the two met, so match the artwork instead. */
  background: #fafafa;
  min-height: clamp(380px, 46vw, 560px);
  display: flex;
  align-items: center;
}
.sec-hero-bg {
  position: absolute;
  inset: 0 0 0 auto;
  width: 72%;
  height: 100%;
  z-index: 0;
}
.sec-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center right;
}
.sec-hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  padding-block: var(--sp-12);
}
.sec-hero-text { max-width: 460px; }
.sec-hero-text .eyebrow { color: var(--c-navy); }
.sec-hero-text h1 {
  font-family: var(--f-title);
  font-weight: 800;
  font-size: clamp(1.9rem, 4.6vw, 3rem);
  line-height: 1.12;
  color: var(--c-navy);
  margin-bottom: var(--sp-4);
}
.sec-hero-text h1 span { color: var(--c-orange); }
.sec-hero-text p {
  font-family: var(--f-body);
  color: var(--c-text);
  font-size: 1.02rem;
  line-height: 1.6;
  max-width: 400px;
}
/* Soft fade on the image's left edge so the text never collides with it */
.sec-hero--fade .sec-hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  /* Must start on the exact section bg colour (#fafafa) or a seam appears where
     the fade meets the solid left column. Long, eased fade keeps the text side
     fully covered and blends smoothly into the photo. */
  background: linear-gradient(
    90deg,
    #fafafa 0%,
    #fafafa 18%,
    rgba(250, 250, 250, 0.9) 26%,
    rgba(250, 250, 250, 0.7) 33%,
    rgba(250, 250, 250, 0.45) 40%,
    rgba(250, 250, 250, 0.2) 47%,
    rgba(250, 250, 250, 0) 56%
  );
  pointer-events: none;
}

/* ============================================================
   TABS DE SECTORES
   ============================================================ */
.sec-tabs-wrap {
  background: var(--c-white);
  border-bottom: 1px solid var(--c-border);
  box-shadow: var(--shadow-sm);
  position: relative;
  z-index: 2;
}
.sec-tabs {
  display: flex;
  gap: 2px;
  overflow-x: auto;
  scrollbar-width: none;
}
.sec-tabs::-webkit-scrollbar { display: none; }
.sec-tab {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-5) var(--sp-4);
  min-width: 104px;
  color: var(--c-text);
  text-decoration: none;
  font-family: var(--f-title);
  font-weight: 600;
  font-size: 0.92rem;
  border-bottom: 3px solid transparent;
  transition: background var(--d-fast) var(--ease-out),
              color var(--d-fast) var(--ease-out),
              border-color var(--d-fast) var(--ease-out);
}
.sec-tab svg { color: var(--c-navy); transition: color var(--d-fast) var(--ease-out); }
.sec-tab:hover { background: var(--c-bg-gray); }
.sec-tab.is-active {
  background: var(--c-navy);
  color: var(--c-white);
  border-bottom-color: var(--c-orange);
}
.sec-tab.is-active svg { color: var(--c-orange); }

/* ============================================================
   BLOQUE 1 — PROTECCIÓN QUE IMPULSA RESULTADOS
   ============================================================ */
.sec-impulsa-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.sec-impulsa-text h2 {
  font-family: var(--f-title);
  font-weight: 700;
  font-size: clamp(1.6rem, 3.4vw, 2.3rem);
  color: var(--c-navy);
  line-height: 1.18;
  margin-bottom: var(--sp-5);
}
.sec-impulsa-text h2 span { color: var(--c-orange); }
.sec-impulsa-text p {
  font-family: var(--f-body);
  color: var(--c-text);
  font-size: 1.05rem;
  line-height: 1.65;
}
.sec-impulsa-img img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  display: block;
}

/* ============================================================
   BLOQUE 2 — RIESGOS QUE IMPACTAN
   ============================================================ */
.sec-riesgos { background: var(--c-bg-gray); }
.sec-riesgos-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
}
.sec-riesgo { text-align: center; }
.sec-riesgo img {
  height: 56px;
  width: auto;
  margin: 0 auto var(--sp-4); /* img is display:block globally → center it */
}
.sec-riesgo h3 {
  font-family: var(--f-title);
  font-weight: 700;
  font-size: 1.08rem;
  color: var(--c-navy);
  margin-bottom: var(--sp-2);
}
.sec-riesgo p {
  font-family: var(--f-body);
  color: var(--c-text);
  font-size: 0.92rem;
  line-height: 1.5;
}

/* ============================================================
   BLOQUE 3 — CONTROL TOTAL
   ============================================================ */
.sec-control { overflow: hidden; }
.sec-control-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  padding-block: clamp(3rem, 7vw, 6rem);
}
.sec-control-text h2 {
  font-family: var(--f-title);
  font-weight: 700;
  font-size: clamp(1.5rem, 3.2vw, 2.1rem);
  color: var(--c-navy);
  line-height: 1.18;
  margin-bottom: var(--sp-8);
}
.sec-control-list { list-style: none; display: grid; gap: var(--sp-5); }
.sec-control-list li {
  display: flex;
  gap: var(--sp-4);
  align-items: flex-start;
}
.sec-control-list div {
  font-family: var(--f-body);
  color: var(--c-text);
  font-size: 0.98rem;
  line-height: 1.55;
}
.sec-control-list strong { color: var(--c-navy); font-weight: 700; }
.sec-check {
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--c-orange);
  color: var(--c-navy);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}
.sec-control-img {
  position: relative;
}
.sec-control-img img {
  width: 100%;
  border-radius: var(--radius-lg);
  display: block;
}

/* ============================================================
   BLOQUE 4 — ASÍ FUNCIONA (pasos 01–04)
   ============================================================ */
.sec-pasos-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1.25rem, 3vw, 2rem);
  position: relative;
  counter-reset: paso;
}
.sec-paso {
  text-align: center;
  position: relative;
  padding-top: var(--sp-3);
}
/* dotted connector behind the numbers */
.sec-paso:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 34px;
  left: calc(50% + 34px);
  right: calc(-50% + 34px);
  border-top: 2px dashed var(--c-orange);
  opacity: .5;
  z-index: 0;
}
.sec-paso-num {
  position: relative;
  z-index: 1;
  display: inline-block;
  font-family: var(--f-title);
  font-weight: 800;
  font-size: 2.6rem;
  color: var(--c-orange);
  line-height: 1;
  margin-bottom: var(--sp-4);
}
.sec-paso h3 {
  font-family: var(--f-title);
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--c-navy);
  margin-bottom: var(--sp-2);
}
.sec-paso p {
  font-family: var(--f-body);
  color: var(--c-text);
  font-size: 0.9rem;
  line-height: 1.5;
}
.sec-pasos-cta {
  display: flex;
  justify-content: center;
  margin-top: var(--sp-12);
}

/* ============================================================
   BLOQUE 5 — LOGOS CLIENTES
   ============================================================ */
.sec-clientes { border-top: 1px solid var(--c-border); }
.sec-clientes-title {
  text-align: center;
  font-family: var(--f-title);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.85rem;
  color: var(--c-text);
  margin-bottom: var(--sp-10);
}
/* Marquee infinito de logos (a color). 3 copias + margin uniforme en
   cada logo → translateX(-33.333%) reinicia sin saltos aunque los
   logos tengan anchos distintos. */
.sec-marquee {
  overflow: hidden;
  position: relative;
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.sec-marquee-track {
  display: flex;
  align-items: center;
  width: max-content;
  animation: sec-marquee 34s linear infinite;
}
.sec-marquee:hover .sec-marquee-track { animation-play-state: paused; }
.sec-marquee-track img {
  height: 64px;
  width: auto;
  object-fit: contain;
  flex: 0 0 auto;
  margin-right: clamp(3rem, 6vw, 5.5rem);
}
@keyframes sec-marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-33.333%); }
}
@media (prefers-reduced-motion: reduce) {
  .sec-marquee-track {
    animation: none;
    flex-wrap: wrap;
    justify-content: center;
    row-gap: var(--sp-8);
  }
  .sec-marquee-track img:nth-child(n+6) { display: none; } /* show only one set */
}

/* ============================================================
   SECTOR EDUCATIVO — bloques específicos
   ============================================================ */

/* ---- Riesgos: imagen + lista con separadores ---- */
.sec-riesgos-edu-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.sec-riesgos-edu-img img {
  width: 100%;
  display: block;
  border-radius: 30px; /* clips the leftover white rounded corners from the source JPG */
  box-shadow: var(--shadow-lg);
}
.sec-riesgo-list { list-style: none; }
.sec-riesgo-list li {
  padding: var(--sp-5) 0;
  border-bottom: 1px solid var(--c-border);
}
.sec-riesgo-list li:first-child { padding-top: 0; }
.sec-riesgo-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.sec-riesgo-list strong {
  display: block;
  font-family: var(--f-title);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--c-navy);
  margin-bottom: var(--sp-1);
}
.sec-riesgo-list span {
  font-family: var(--f-body);
  color: var(--c-text);
  font-size: 0.95rem;
  line-height: 1.5;
}

/* ---- Servicios: 5 columnas con divisores verticales ---- */
.sec-servicios { background: #f1f5f9; }
.sec-servicios-lead {
  font-family: var(--f-body);
  color: var(--c-text);
  font-size: 1.02rem;
  line-height: 1.6;
  max-width: 820px;
  margin: var(--sp-4) auto 0;
}
.sec-servicios-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
}
.sec-servicio {
  padding: 0 clamp(1rem, 2vw, 1.75rem);
  border-left: 1px solid var(--c-border);
}
.sec-servicio:first-child { border-left: 0; padding-left: 0; }
.sec-servicio h3 {
  font-family: var(--f-title);
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--c-navy);
  line-height: 1.25;
  margin-bottom: var(--sp-1);
}
.sec-servicio p {
  font-family: var(--f-body);
  color: var(--c-text);
  font-size: 0.92rem;
  line-height: 1.5;
}

/* ---- Cita / banner ---- */
.sec-cita-wrap { background: #f1f5f9; padding-bottom: clamp(2.5rem, 6vw, 5rem); }
.sec-cita {
  display: grid;
  grid-template-columns: auto 1fr 1fr;
  align-items: center;
  gap: clamp(1.5rem, 4vw, 3rem);
  background: transparent;
  border: 1px solid #c9d8e4;
  border-radius: var(--radius-xl);
  padding: clamp(1.5rem, 4vw, 2.5rem) clamp(1.75rem, 4vw, 3rem);
}
.sec-cita-ico { width: 64px; height: auto; flex-shrink: 0; }
.sec-cita-quote {
  font-family: var(--f-title);
  font-weight: 700;
  font-size: clamp(1.15rem, 2.2vw, 1.5rem);
  color: var(--c-navy);
  line-height: 1.25;
}
.sec-cita-quote span { color: var(--c-orange); }
.sec-cita-text {
  font-family: var(--f-body);
  color: var(--c-text);
  font-size: 0.98rem;
  line-height: 1.55;
}

/* ---- Proceso: pasos con círculos numerados ---- */
.sec-proceso { padding-bottom: clamp(1.5rem, 3vw, 2.5rem); }
/* Solo en educativo: junta el banner CTA con la fila de logos (sin afectar corporativo) */
.sec-proceso + .sec-clientes {
  padding-top: clamp(1.5rem, 3vw, 2rem);
  border-top: 0;
}
.sec-proceso-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
  margin-bottom: var(--sp-12);
}
.sec-proceso-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--sp-3);
  align-items: start;
}
.sec-proceso-num {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--c-orange);
  color: var(--c-white);
  font-family: var(--f-title);
  font-weight: 700;
  font-size: 1rem;
  display: grid;
  place-items: center;
}
.sec-proceso-item h3 {
  font-family: var(--f-title);
  font-weight: 700;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--c-navy);
  margin-bottom: var(--sp-2);
  line-height: 1.2;
}
.sec-proceso-item p {
  font-family: var(--f-body);
  color: var(--c-text);
  font-size: 0.9rem;
  line-height: 1.5;
}
.sec-proceso-cta {
  display: block;
  max-width: 720px;
  margin-inline: auto;
  text-align: center;
  background: var(--c-navy);
  color: var(--c-white);
  font-family: var(--f-title);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  padding: var(--sp-5) var(--sp-8);
  border-radius: var(--radius);
  transition: background var(--d-base) var(--ease-out), transform var(--d-base) var(--ease-out);
}
.sec-proceso-cta:hover { background: var(--c-navy-700); transform: translateY(-2px); }

/* ---- Logos estáticos (pocos clientes) ---- */
.sec-logos-static {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: clamp(2.5rem, 7vw, 5rem);
}
.sec-logos-static img {
  height: 60px;
  width: auto;
  object-fit: contain;
}

/* ============================================================
   SECTOR INDUSTRIAL — bloques específicos
   ============================================================ */

/* Header sólido (esta página no tiene hero con imagen) */
.header--solid {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom-color: var(--c-border);
  box-shadow: var(--shadow-sm);
}

/* Hero solo texto */
.sec-hero-plain {
  text-align: center;
  background: var(--c-white);
  padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(1.5rem, 4vw, 3rem);
}
.sec-hero-plain h1 {
  font-family: var(--f-title);
  font-weight: 800;
  font-size: clamp(1.7rem, 4vw, 2.6rem);
  color: var(--c-navy);
  line-height: 1.15;
  margin-bottom: var(--sp-4);
}
.sec-hero-plain p {
  font-family: var(--f-body);
  color: var(--c-text);
  font-size: 1.05rem;
  line-height: 1.6;
  max-width: 720px;
  margin-inline: auto;
}

/* Riesgos industrial: título naranja + lista inline */
.sec-riesgos-ind-title {
  font-family: var(--f-title);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  color: var(--c-orange);
  margin-bottom: var(--sp-6);
}
.sec-riesgos-ind-img img { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.sec-riesgo-list--inline li {
  font-family: var(--f-body);
  color: var(--c-text);
  font-size: 0.95rem;
  line-height: 1.55;
}
.sec-riesgo-list--inline strong { display: inline; color: var(--c-navy); }

/* Servicios industrial: 6 cards con iconos */
.sec-servicios-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.75rem, 3.5vw, 3rem) clamp(2rem, 4vw, 3.5rem);
}
.sec-card-ind img { height: 56px; width: auto; margin-bottom: var(--sp-4); }
.sec-card-ind h3 {
  font-family: var(--f-title);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--c-navy);
  margin-bottom: var(--sp-2);
}
.sec-card-ind p {
  font-family: var(--f-body);
  color: var(--c-text);
  font-size: 0.92rem;
  line-height: 1.55;
}

/* Beneficios: banner oscuro con imagen de fondo */
.sec-beneficios {
  background:
    linear-gradient(90deg, rgba(5,62,92,.97) 0%, rgba(5,62,92,.92) 38%, rgba(5,62,92,.55) 60%, rgba(5,62,92,.12) 100%),
    url('../assets/img/sectores/industrial/trabajadores.jpg') center / cover no-repeat;
  background-color: var(--c-navy);
}
.sec-beneficios-inner {
  padding-block: clamp(3rem, 6vw, 5rem);
  max-width: 720px;
}
.sec-beneficios-inner h2 {
  font-family: var(--f-title);
  font-weight: 700;
  font-size: clamp(1.4rem, 3vw, 2rem);
  color: var(--c-white);
  line-height: 1.2;
  margin-bottom: var(--sp-8);
}
.sec-beneficios-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-5) clamp(1.5rem, 3vw, 2.5rem);
  margin-bottom: var(--sp-8);
}
.sec-beneficio {
  font-family: var(--f-body);
  color: rgba(255,255,255,.82);
  font-size: 0.95rem;
  line-height: 1.5;
}
.sec-beneficio strong { color: var(--c-white); font-weight: 700; }
.sec-beneficios-cta {
  display: inline-block;
  background: var(--c-navy-900);
  color: var(--c-white);
  font-family: var(--f-title);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  padding: var(--sp-4) var(--sp-8);
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,.18);
  transition: background var(--d-base) var(--ease-out), transform var(--d-base) var(--ease-out);
}
.sec-beneficios-cta:hover { background: #021f30; transform: translateY(-2px); }

/* ============================================================
   SECTOR RESIDENCIAL — bloques específicos
   ============================================================ */

/* Hero residencial: más alto y con más espacio para el texto
   (lleva título + subtítulo + 3 features, no cabe como el hero base) */
.sec-hero--res { min-height: clamp(540px, 56vw, 720px); }
.sec-hero--res .sec-hero-bg { width: 58%; }
.sec-hero--res .sec-hero-text { max-width: 560px; }

/* Hero: 3 features con iconos */
.sec-hero-features {
  list-style: none;
  display: grid;
  gap: var(--sp-4);
  margin-top: var(--sp-6);
}
.sec-hero-features li { display: flex; align-items: center; gap: var(--sp-3); }
.sec-hero-features img { width: 40px; height: 40px; flex-shrink: 0; object-fit: contain; }
.sec-hero-features strong {
  display: block;
  font-family: var(--f-title);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--c-navy);
}
.sec-hero-features span { font-family: var(--f-body); color: var(--c-text); font-size: 0.85rem; }

/* Cards con fotos + números */
.sec-res-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1.25rem, 3vw, 2rem);
}
.sec-res-card-img img {
  width: 100%;
  border-radius: var(--radius);
  display: block;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.sec-res-num {
  display: block;
  font-family: var(--f-title);
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--c-orange);
  margin: var(--sp-4) 0 var(--sp-1);
}
.sec-res-card h3 {
  font-family: var(--f-title);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--c-navy);
  margin-bottom: var(--sp-2);
}
.sec-res-card p { font-family: var(--f-body); color: var(--c-text); font-size: 0.9rem; line-height: 1.5; }

/* Tecnología: texto + imagen + 5 features */
.sec-res-tech-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  margin-bottom: var(--sp-12);
}
.sec-res-tech-text h2 {
  font-family: var(--f-title);
  font-weight: 700;
  font-size: clamp(1.5rem, 3.2vw, 2.1rem);
  color: var(--c-navy);
  line-height: 1.18;
  margin-bottom: var(--sp-4);
}
.sec-res-tech-text p { font-family: var(--f-body); color: var(--c-text); font-size: 1.02rem; line-height: 1.65; }
.sec-res-tech-img img { width: 100%; border-radius: var(--radius-lg); display: block; }

/* Cierre: cita + CTA naranja */
.sec-res-cierre { background: var(--c-bg-gray); padding-block: clamp(2.5rem, 5vw, 4rem); }
.sec-res-cita {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
  padding-bottom: var(--sp-10);
}
.sec-res-cita-quote {
  font-family: var(--f-title);
  font-weight: 700;
  font-size: clamp(1.2rem, 2.4vw, 1.55rem);
  color: var(--c-navy);
  line-height: 1.25;
  border-right: 1px solid var(--c-border);
  padding-right: clamp(1.5rem, 4vw, 3rem);
}
.sec-res-cita-quote span { color: var(--c-orange); }
.sec-res-cita-mid { display: flex; align-items: center; gap: var(--sp-4); }
.sec-res-cita-ico { width: 64px; height: auto; flex-shrink: 0; }
.sec-res-cita-mid p { font-family: var(--f-body); color: var(--c-text); font-size: 0.98rem; line-height: 1.55; }
.sec-res-cta-wrap { text-align: center; }

/* ============================================================
   COMERCIAL — Amenazas (fila de 5 con divisores)
   ============================================================ */
.sec-amenazas-panel {
  background: var(--c-bg-gray);
  border-radius: var(--radius-xl);
  padding: clamp(1.75rem, 3.5vw, 2.75rem) clamp(1.25rem, 3vw, 2.25rem);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: clamp(0.75rem, 2vw, 1.75rem);
}
.sec-amenaza {
  padding-left: clamp(0.85rem, 1.6vw, 1.5rem);
}
.sec-amenaza:first-child { padding-left: 0; }
.sec-amenaza:not(:first-child) { border-left: 1px solid #d3dade; }
.sec-amenaza img { width: 46px; height: 46px; margin-bottom: var(--sp-4); }
.sec-amenaza h3 {
  font-family: var(--f-title);
  font-weight: 700;
  font-size: 1rem;
  color: var(--c-navy);
  line-height: 1.25;
  margin-bottom: var(--sp-2);
}
.sec-amenaza p {
  font-family: var(--f-body);
  font-size: 0.88rem;
  color: var(--c-text);
  line-height: 1.5;
}

/* ============================================================
   COMERCIAL — Servicios (6 cards foto + texto)
   ============================================================ */
.sec-serv-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
}
.sec-serv-card {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: var(--sp-4);
  align-items: start;
}
.sec-serv-card img {
  width: 96px;
  height: 96px;
  object-fit: cover;
  border-radius: 10px;
}
.sec-serv-card h3 {
  font-family: var(--f-title);
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--c-navy);
  margin-bottom: var(--sp-2);
}
.sec-serv-card p {
  font-family: var(--f-body);
  font-size: 0.9rem;
  color: var(--c-text);
  line-height: 1.5;
}

/* ============================================================
   COMERCIAL — Diferencial (banner navy + 4 iconos)
   ============================================================ */
.sec-diferencial {
  background: var(--c-navy);
  color: var(--c-white);
  padding-block: clamp(2.75rem, 6vw, 5rem);
}
.sec-diferencial-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.eyebrow--orange { color: var(--c-orange); }
.sec-diferencial-text h2 {
  font-family: var(--f-title);
  font-weight: 700;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  line-height: 1.2;
  color: var(--c-white);
  margin-bottom: var(--sp-4);
}
.sec-diferencial-text h2 span { color: var(--c-orange); }
.sec-diferencial-text p {
  font-family: var(--f-body);
  font-size: 1rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.82);
  max-width: 380px;
}
.sec-diferencial-items {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 3vw, 2.25rem);
}
.sec-dif-item {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: var(--sp-4);
  align-items: start;
}
.sec-dif-item img { width: 56px; height: 56px; }
.sec-dif-item h3 {
  font-family: var(--f-title);
  font-weight: 700;
  font-size: 1rem;
  color: var(--c-white);
  margin-bottom: var(--sp-2);
}
.sec-dif-item p {
  font-family: var(--f-body);
  font-size: 0.88rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.78);
}

/* ============================================================
   COMERCIAL — Cita + logo cliente + CTA
   ============================================================ */
.sec-cita--com {
  grid-template-columns: 1.1fr 1.3fr 0.85fr;
  align-items: stretch;
}
.sec-cita--com .sec-cita-quote {
  border-right: 1px solid #c9d8e4;
  padding-right: clamp(1.25rem, 3vw, 2.5rem);
}
.sec-cita-mid {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  border-right: 1px solid #c9d8e4;
  padding-right: clamp(1.25rem, 3vw, 2.5rem);
}
.sec-cita-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-3);
  text-align: center;
}
.sec-cita-logo span {
  font-family: var(--f-body);
  font-size: 0.85rem;
  color: var(--c-text);
  line-height: 1.4;
}
.sec-cita-logo img { width: auto; height: 76px; }
.sec-cita-cta { text-align: center; margin-top: clamp(1.75rem, 3vw, 2.5rem); }

/* ============================================================
   SALUD — Hero (texto + 4 items izquierda, imagen derecha)
   ============================================================ */
.sec-salud-hero {
  position: relative;
  overflow: hidden;
  background: #eef1f3;
}
.sec-salud-hero-media {
  position: absolute;
  inset: 0 0 0 auto;
  width: 52%;
  height: 100%;
  z-index: 0;
}
.sec-salud-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
/* fade the image's left edge into the panel so text stays clean */
.sec-salud-hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    #eef1f3 0%,
    rgba(238, 241, 243, 0.9) 14%,
    rgba(238, 241, 243, 0) 42%
  );
  pointer-events: none;
}
.sec-salud-hero-inner {
  position: relative;
  z-index: 1;
  padding-block: clamp(2.5rem, 5vw, 4rem);
}
.sec-salud-hero-text { max-width: 620px; }
.sec-salud-hero-text h1 {
  font-family: var(--f-title);
  font-weight: 800;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  line-height: 1.14;
  color: var(--c-navy);
  margin-bottom: var(--sp-4);
}
.sec-salud-hero-text h1 span { color: var(--c-orange); }
.sec-salud-hero-text > p {
  font-family: var(--f-body);
  color: var(--c-text);
  font-size: 1.02rem;
  line-height: 1.6;
  max-width: 480px;
  margin-bottom: var(--sp-10);
}
.sec-salud-amenazas {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.25rem, 3vw, 2rem) clamp(1.5rem, 3vw, 2.5rem);
  max-width: 560px;
}
.sec-salud-amenaza {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: var(--sp-3);
  align-items: start;
}
.sec-salud-amenaza img { width: 44px; height: 44px; }
.sec-salud-amenaza h3 {
  font-family: var(--f-title);
  font-weight: 700;
  font-size: 0.98rem;
  color: var(--c-navy);
  margin-bottom: var(--sp-1);
  line-height: 1.2;
}
.sec-salud-amenaza p {
  font-family: var(--f-body);
  font-size: 0.85rem;
  color: var(--c-text);
  line-height: 1.45;
}

/* ============================================================
   SALUD — Servicios (imagen izquierda + lista 6 derecha)
   ============================================================ */
.sec-salud-serv-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.sec-salud-serv-img {
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 1 / 1;
}
.sec-salud-serv-img img { width: 100%; height: 100%; object-fit: cover; }
.sec-salud-serv-list { display: grid; gap: clamp(1rem, 2vw, 1.4rem); }
.sec-salud-serv-list li {
  display: block;
  padding-bottom: clamp(0.85rem, 1.6vw, 1.2rem);
  border-bottom: 1px solid var(--c-border);
}
.sec-salud-serv-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.sec-salud-serv-list strong {
  display: inline;
  font-family: var(--f-title);
  font-weight: 700;
  font-size: 1rem;
  color: var(--c-orange);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.sec-salud-serv-list span {
  font-family: var(--f-body);
  color: var(--c-text);
  font-size: 0.94rem;
  line-height: 1.5;
}
.sec-salud-serv-list strong::after { content: ": "; color: var(--c-text); }

/* ============================================================
   SALUD — Diferencial bg (foto hospital con overlay navy)
   ============================================================ */
.sec-diferencial--salud {
  background:
    linear-gradient(rgba(5, 62, 92, 0.93), rgba(5, 62, 92, 0.96)),
    url("../assets/img/sectores/salud/diferencial-bg.jpg") center / cover no-repeat;
}
.sec-diferencial--salud .sec-dif-item h3 { color: var(--c-orange); }

/* ============================================================
   SALUD — Cita con CTA verde + logo placeholder
   ============================================================ */
.sec-cita-mid--cta { flex-direction: column; align-items: flex-start; gap: var(--sp-4); }
.sec-cita-logo-ph {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 118px;
  height: 118px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--c-border);
  text-align: center;
  line-height: 1.1;
}
.sec-cita-logo-ph strong {
  font-family: var(--f-title);
  font-weight: 800;
  font-size: 1rem;
  color: var(--c-navy);
  letter-spacing: 0.02em;
}
.sec-cita-logo-ph small {
  font-family: var(--f-body);
  font-size: 0.62rem;
  color: var(--c-text);
  margin-top: 2px;
}

/* ============================================================
   FINANCIERO — Hero (caja navy, imagen derecha, barra de badges)
   ============================================================ */
.sec-hero-fin {
  background: var(--c-white);
  padding-top: clamp(1.25rem, 2.5vw, 2rem);
}
.sec-hero-fin-box {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--c-navy);
  min-height: clamp(420px, 40vw, 520px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
/* image bleeds on the right; dark gradient keeps the text legible */
.sec-hero-fin-img {
  position: absolute;
  inset: 0 0 0 auto;
  width: 62%;
  height: 100%;
  z-index: 0;
}
.sec-hero-fin-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center right;
}
.sec-hero-fin-img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    var(--c-navy) 0%,
    rgba(5, 62, 92, 0.92) 22%,
    rgba(5, 62, 92, 0.35) 55%,
    rgba(5, 62, 92, 0) 80%
  );
  pointer-events: none;
}
.sec-hero-fin-body {
  position: relative;
  z-index: 1;
  padding: clamp(2rem, 4vw, 3.25rem) clamp(1.75rem, 4vw, 3.25rem) 0;
  max-width: 620px;
}
.sec-hero-fin-body h1,
.sec-hero-fin-body h2 {
  font-family: var(--f-title);
  font-weight: 800;
  font-size: clamp(1.8rem, 4vw, 2.7rem);
  line-height: 1.14;
  color: var(--c-white);
  margin-bottom: var(--sp-5);
}
.sec-hero-fin-body h1 span,
.sec-hero-fin-body h2 span { color: var(--c-orange); }
.sec-hero-fin-body p {
  font-family: var(--f-body);
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.98rem;
  line-height: 1.6;
  max-width: 440px;
  margin-bottom: var(--sp-4);
}
/* translucent strip with the 4 pillars at the bottom of the box */
.sec-hero-fin-badges {
  position: relative;
  z-index: 1;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(0.75rem, 2vw, 1.75rem);
  margin-top: clamp(1.75rem, 3.5vw, 2.75rem);
  padding: clamp(1rem, 2vw, 1.4rem) clamp(1.75rem, 4vw, 3.25rem);
  background: rgba(3, 40, 60, 0.55);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(2px);
}
.sec-hero-fin-badges li {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}
.sec-hero-fin-badges img {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
}
.sec-hero-fin-badges span {
  font-family: var(--f-body);
  font-size: 0.74rem;
  line-height: 1.3;
  color: rgba(255, 255, 255, 0.92);
}

/* ============================================================
   FINANCIERO — Servicios (8 cards con icono circular)
   ============================================================ */
.sec-fin-serv { background: var(--c-white); }
.sec-fin-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1rem, 2vw, 1.5rem);
}
.sec-fin-card {
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: clamp(1.25rem, 2vw, 1.75rem);
  box-shadow: var(--shadow-sm);
  transition: transform var(--d-fast) var(--ease-out),
              box-shadow var(--d-fast) var(--ease-out);
}
.sec-fin-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.sec-fin-card img {
  width: 52px;
  height: 52px;
  margin-bottom: var(--sp-4);
}
.sec-fin-card h3 {
  font-family: var(--f-title);
  font-weight: 700;
  font-size: 1rem;
  color: var(--c-navy);
  line-height: 1.25;
  margin-bottom: var(--sp-2);
}
.sec-fin-card p {
  font-family: var(--f-body);
  font-size: 0.86rem;
  line-height: 1.55;
  color: var(--c-text);
}

/* ============================================================
   FINANCIERO — Banner diferencial (navy + 4 pilares)
   ============================================================ */
.sec-fin-banner {
  background: var(--c-navy);
  padding-block: clamp(2.5rem, 5vw, 4rem);
}
.sec-fin-banner-head { text-align: center; max-width: 820px; margin-inline: auto; }
.sec-fin-banner-head h2 {
  font-family: var(--f-title);
  font-weight: 700;
  font-size: clamp(1.4rem, 3vw, 2rem);
  color: var(--c-white);
  line-height: 1.2;
  margin-bottom: var(--sp-4);
}
.sec-fin-banner-head p {
  font-family: var(--f-body);
  font-size: 0.95rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.85);
}
.sec-fin-pillars {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: clamp(2rem, 4vw, 3rem);
  max-width: 880px;
  margin-inline: auto;
}
.sec-fin-pillars li {
  text-align: center;
  font-family: var(--f-title);
  font-weight: 600;
  font-size: clamp(0.92rem, 1.6vw, 1.05rem);
  color: var(--c-white);
  line-height: 1.3;
  padding-inline: var(--sp-4);
}
.sec-fin-pillars li + li { border-left: 1px solid rgba(255, 255, 255, 0.22); }

/* ============================================================
   FINANCIERO — CTA naranja + logo cliente
   ============================================================ */
.sec-fin-cta-wrap {
  background: var(--c-white);
  padding-block: clamp(2.5rem, 5vw, 4rem);
  text-align: center;
}
.sec-fin-cta .btn--primary {
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.92rem;
}
.sec-fin-exp { margin-top: clamp(2rem, 4vw, 3rem); }
.sec-fin-exp span {
  display: block;
  font-family: var(--f-body);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-text);
  margin-bottom: var(--sp-4);
}
.sec-fin-exp img {
  display: inline-block;
  width: auto;
  height: 46px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .sec-fin-grid { grid-template-columns: repeat(2, 1fr); }
  .sec-impulsa-grid,
  .sec-control-grid { grid-template-columns: 1fr; }
  .sec-impulsa-img { order: -1; }
  .sec-riesgos-grid { grid-template-columns: 1fr 1fr; }
  .sec-pasos-grid { grid-template-columns: 1fr 1fr; gap: var(--sp-8); }
  .sec-paso:not(:last-child)::after { display: none; }
  /* educativo */
  .sec-riesgos-edu-grid { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; }
  .sec-servicios-grid { grid-template-columns: 1fr 1fr 1fr; row-gap: var(--sp-8); }
  .sec-servicio:nth-child(4) { border-left: 0; padding-left: 0; }
  .sec-cita { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .sec-proceso-grid { grid-template-columns: 1fr 1fr; }
  /* industrial */
  .sec-servicios-cards { grid-template-columns: 1fr 1fr; }
  .sec-beneficios-grid { grid-template-columns: 1fr; }
  .sec-beneficios-inner { max-width: 100%; }
  .sec-beneficios {
    background:
      linear-gradient(rgba(5,62,92,.9), rgba(5,62,92,.95)),
      url('../assets/img/sectores/industrial/trabajadores.jpg') center / cover no-repeat;
  }
  /* residencial */
  .sec-res-cards { grid-template-columns: 1fr 1fr; }
  .sec-res-tech-grid { grid-template-columns: 1fr; }
  .sec-res-tech-img { order: -1; }
  .sec-res-cita { grid-template-columns: 1fr; }
  .sec-res-cita-quote {
    border-right: 0; padding-right: 0;
    border-bottom: 1px solid var(--c-border); padding-bottom: var(--sp-6);
  }
  /* comercial */
  .sec-serv-grid { grid-template-columns: 1fr 1fr; }
  .sec-diferencial-grid { grid-template-columns: 1fr; }
  .sec-cita--com { grid-template-columns: 1fr; text-align: center; }
  /* financiero */
  .sec-hero-fin-badges { grid-template-columns: 1fr 1fr; row-gap: var(--sp-3); }
  .sec-fin-pillars { grid-template-columns: 1fr 1fr; row-gap: var(--sp-6); }
  .sec-fin-pillars li:nth-child(3) { border-left: 0; }
  /* salud */
  .sec-salud-hero-media { position: relative; width: 100%; height: 280px; }
  .sec-salud-hero-media::after { display: none; }
  .sec-salud-hero-inner { padding-block: clamp(2rem, 5vw, 3rem); }
  .sec-salud-hero-text { max-width: 100%; }
  .sec-salud-serv-grid { grid-template-columns: 1fr; }
  .sec-salud-serv-img { max-width: 460px; margin-inline: auto; aspect-ratio: 4 / 3; }
  .sec-cita--salud .sec-cita-mid--cta { align-items: center; }
  .sec-cita--com .sec-cita-quote {
    border-right: 0; padding-right: 0;
    border-bottom: 1px solid #c9d8e4; padding-bottom: var(--sp-6);
  }
  .sec-cita-mid {
    border-right: 0; padding-right: 0; justify-content: center;
    border-bottom: 1px solid #c9d8e4; padding-bottom: var(--sp-6);
  }
}

@media (max-width: 760px) {
  .sec-hero { min-height: 0; }
  .sec-hero-bg { width: 100%; opacity: .35; }
  .sec-hero-inner { padding-block: var(--sp-16); }
  .sec-hero-text { max-width: 100%; }
  .sec-tab { min-width: 92px; font-size: 0.82rem; padding: var(--sp-4) var(--sp-3); }
  /* financiero */
  .sec-hero-fin-img { width: 100%; opacity: .5; }
  .sec-hero-fin-img::after {
    background: linear-gradient(180deg, rgba(5,62,92,.45) 0%, var(--c-navy) 70%);
  }
  .sec-hero-fin-body { padding-inline: clamp(1.25rem, 5vw, 1.75rem); }
  .sec-hero-fin-body h1,
  .sec-hero-fin-body h2 { font-size: clamp(1.5rem, 6.2vw, 1.9rem); }
  .sec-hero-fin-body h1 br,
  .sec-hero-fin-body h2 br { display: none; }
  .sec-hero-fin-badges { padding-inline: clamp(1.25rem, 5vw, 1.75rem); }
  .sec-fin-grid { grid-template-columns: 1fr 1fr; }
  /* comercial */
  .sec-amenazas-panel { grid-template-columns: 1fr 1fr; gap: var(--sp-6); }
  .sec-amenaza { padding-left: 0; }
  .sec-amenaza:not(:first-child) { border-left: 0; }
  .sec-diferencial-items { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  /* financiero */
  .sec-hero-fin-badges { grid-template-columns: 1fr; }
  .sec-fin-grid { grid-template-columns: 1fr; }
  .sec-riesgos-grid { grid-template-columns: 1fr; }
  /* educativo */
  .sec-servicios-grid { grid-template-columns: 1fr; }
  .sec-servicio { border-left: 0; padding-left: 0; padding-bottom: var(--sp-5); border-bottom: 1px solid var(--c-border); }
  .sec-servicio:last-child { border-bottom: 0; }
  .sec-proceso-grid { grid-template-columns: 1fr; }
  /* industrial */
  .sec-servicios-cards { grid-template-columns: 1fr; }
  /* residencial */
  .sec-res-cards { grid-template-columns: 1fr; }
  /* comercial */
  .sec-serv-grid { grid-template-columns: 1fr; }
  .sec-amenazas-panel { grid-template-columns: 1fr; }
  /* salud */
  .sec-salud-amenazas { grid-template-columns: 1fr; }
}
