/* ============================================================
   HBF Servicios SpA · Sitio web corporativo
   Misma línea gráfica del brochure: Inter / Inter Display,
   azul eléctrico #0056B3, rojo corporativo #D90429, navy #0B192C.
   ============================================================ */
@font-face { font-family: "Inter"; src: url(../fonts/Inter-Regular.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url(../fonts/Inter-Medium.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Inter"; src: url(../fonts/Inter-SemiBold.woff2) format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Inter"; src: url(../fonts/Inter-Bold.woff2) format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Inter Display"; src: url(../fonts/InterDisplay-ExtraBold.woff2) format("woff2"); font-weight: 800; font-display: swap; }

:root {
  --blanco: #FFFFFF;
  --gris-fondo: #F4F6F9;
  --navy: #0B192C;
  --navy-2: #12233D;
  --navy-3: #1A2F50;
  --azul: #0056B3;
  --azul-claro: #3D8BFF;
  --rojo: #D90429;
  --rojo-osc: #B00321;
  --tinta: #14213D;
  --gris: #5B6475;
  --linea: #DCE3EE;
  --radio: 6px;            /* rounded-md: esquinas técnicas suavizadas */
  --sombra: 0 10px 30px rgba(11, 25, 44, .08);
  --ancho: 1200px;
  --nav-h: 72px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 8px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--tinta); background: var(--blanco);
  font-size: 16px; line-height: 1.6; text-rendering: optimizeLegibility;
  font-feature-settings: "cv11" 1;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--azul); }
button, input, select, textarea { font: inherit; color: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.saltar { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--rojo); color: #fff; padding: 10px 16px; border-radius: var(--radio); font-weight: 600; text-decoration: none; }
.saltar:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--azul-claro); outline-offset: 2px; }

.contenedor { width: min(100% - 40px, var(--ancho)); margin-inline: auto; }
.seccion { padding: 96px 0; }
.seccion--gris { background: var(--gris-fondo); }
.seccion--oscura { background: var(--navy); color: #fff; }

.ico { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---------- tipografía ---------- */
.display { font-family: "Inter Display", "Inter", sans-serif; font-weight: 800; letter-spacing: -0.025em; line-height: 1.08; }
.kicker {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 12px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--azul);
}
.kicker::before { content: ""; width: 34px; height: 4px; background: var(--rojo); transform: skewX(-30deg); }
.seccion--oscura .kicker, .hero .kicker, .boletin .kicker { color: #9CC3FF; }
.titulo-seccion { font-size: clamp(30px, 4vw, 44px); margin: 14px 0 14px; }
.bajada { color: var(--gris); font-size: 18px; max-width: 720px; }
.seccion--oscura .bajada { color: #B7C3D6; }
.cabecera { margin-bottom: 48px; }

/* ---------- botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 22px; border-radius: var(--radio); border: 2px solid transparent;
  font-weight: 600; font-size: 15px; line-height: 1.2; text-decoration: none; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s;
}
.btn .ico { width: 20px; height: 20px; }
.btn:hover { transform: translateY(-1px); }
.btn--rojo { background: var(--rojo); color: #fff; box-shadow: 0 8px 20px rgba(217, 4, 41, .25); }
.btn--rojo:hover { background: var(--rojo-osc); }
.btn--borde { border-color: rgba(255,255,255,.55); color: #fff; background: rgba(255,255,255,.04); }
.btn--borde:hover { border-color: #fff; background: rgba(255,255,255,.1); }
.btn--borde-azul { border-color: var(--azul); color: var(--azul); background: #fff; }
.btn--borde-azul:hover { background: var(--azul); color: #fff; }
.btn--wsp { background: #1FAF54; color: #fff; }
.btn--wsp:hover { background: #178F44; }
.btn--azul { background: var(--azul); color: #fff; }
.btn--azul:hover { background: #00468F; }
.btn--bloque { width: 100%; }
.btn[disabled] { opacity: .6; cursor: wait; transform: none; }

/* ---------- navbar ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--nav-h);
  background: rgba(11, 25, 44, .92); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid rgba(255,255,255,.06); transition: box-shadow .2s, background-color .2s;
}
.nav.con-sombra { background: rgba(11, 25, 44, .98); box-shadow: 0 6px 24px rgba(0,0,0,.25); }
.nav__in { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nav__logo img { height: 40px; width: auto; }
.nav__menu { display: flex; align-items: center; gap: 4px; list-style: none; }
.nav__menu a:not(.btn) {
  display: block; padding: 8px 12px; border-radius: var(--radio);
  color: #D5DEEC; text-decoration: none; font-size: 14.5px; font-weight: 500; transition: color .2s, background-color .2s;
}
.nav__menu a:not(.btn):hover, .nav__menu a.activo { color: #fff; background: rgba(255,255,255,.07); }
.nav__menu a.activo { box-shadow: inset 0 -2px 0 var(--rojo); }
.nav__menu .btn { margin-left: 10px; padding: 10px 18px; }
.nav__toggle { display: none; background: none; border: 0; color: #fff; width: 44px; height: 44px; border-radius: var(--radio); cursor: pointer; }
.nav__toggle span, .nav__toggle span::before, .nav__toggle span::after { display: block; width: 22px; height: 2px; background: currentColor; margin: auto; position: relative; transition: transform .25s, background-color .25s; }
.nav__toggle span::before, .nav__toggle span::after { content: ""; position: absolute; left: 0; }
.nav__toggle span::before { top: -7px; } .nav__toggle span::after { top: 7px; }
.nav__toggle[aria-expanded="true"] span { background: transparent; }
.nav__toggle[aria-expanded="true"] span::before { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1060px) {
  .nav__toggle { display: block; margin-left: auto; }
  .nav__in { justify-content: flex-start; }
  .nav__menu {
    position: fixed; top: var(--nav-h); left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--navy); padding: 12px 20px 24px; border-bottom: 3px solid var(--rojo);
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .2s, transform .2s, visibility .2s;
    max-height: calc(100vh - var(--nav-h)); overflow-y: auto;
  }
  .nav__menu.abierto { opacity: 1; transform: none; visibility: visible; }
  .nav__menu a:not(.btn) { padding: 14px 8px; font-size: 16px; border-bottom: 1px solid rgba(255,255,255,.06); border-radius: 0; }
  .nav__menu .btn { margin: 16px 0 0; }
}

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--navy); color: #fff; padding: calc(var(--nav-h) + 80px) 0 170px; }
.hero__fondo { position: absolute; inset: 0; pointer-events: none; }
.hero__fondo svg { width: 100%; height: 100%; }
.hero__in { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(36px, 5.4vw, 62px); margin: 20px 0 22px; }
.hero h1 .acento { color: #5EA2FF; }
.hero__sub { font-size: clamp(17px, 1.6vw, 19px); color: #C9D4E5; max-width: 620px; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.hero__sellos { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 40px; list-style: none; color: #AFC0D8; font-size: 14px; font-weight: 500; }
.hero__sellos li { display: flex; align-items: center; gap: 8px; }
.hero__sellos .ico { width: 18px; height: 18px; color: #5EA2FF; }
.hero__diagrama { position: relative; background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.1); border-radius: var(--radio); padding: 28px; }
.hero__diagrama::before { content: ""; position: absolute; top: -1px; left: 24px; width: 64px; height: 4px; background: var(--rojo); transform: skewX(-30deg); }
.hero__diagrama figcaption { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: #8FA3C0; font-weight: 600; margin-bottom: 14px; }
.unilineal { width: 100%; height: auto; color: #7FA9E6; }
.unilineal .pulso { stroke: var(--rojo); stroke-dasharray: 10 190; animation: pulso 3.2s linear infinite; }
@keyframes pulso { to { stroke-dashoffset: -200; } }
.hero__corte { position: absolute; left: 0; right: 0; bottom: -1px; height: 110px; }
.hero__corte svg { width: 100%; height: 100%; }

@media (max-width: 560px) { .hero__ctas .btn { width: 100%; } .contacto__botones .btn { width: 100%; } }
@media (max-width: 960px) {
  .hero__in { grid-template-columns: 1fr; }
  .hero__diagrama { max-width: 520px; }
}

/* ---------- franja de líneas (bajo hero) ---------- */
.franja { margin-top: -44px; position: relative; z-index: 2; }
.franja__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; background: #fff; border-radius: var(--radio); box-shadow: var(--sombra); overflow: hidden; }
.franja__item { display: flex; gap: 16px; padding: 26px 28px; text-decoration: none; color: inherit; border-top: 4px solid var(--azul); transition: background-color .2s; }
.franja__item:nth-child(2) { border-top-color: var(--rojo); }
.franja__item:nth-child(3) { border-top-color: var(--navy); }
.franja__item + .franja__item { border-left: 1px solid var(--linea); }
.franja__item:hover { background: var(--gris-fondo); }
.franja__item .ico { width: 30px; height: 30px; color: var(--azul); margin-top: 2px; }
.franja__num { font-size: 12px; font-weight: 700; color: var(--rojo); letter-spacing: .1em; }
.franja__item strong { display: block; font-size: 16.5px; line-height: 1.3; margin: 2px 0 4px; }
.franja__item span.txt { font-size: 14px; color: var(--gris); }
@media (max-width: 860px) {
  .franja__grid { grid-template-columns: 1fr; }
  .franja__item + .franja__item { border-left: 0; border-top-width: 4px; }
}

/* ---------- quiénes somos ---------- */
.nosotros__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.nosotros__texto p { color: var(--gris); font-size: 17px; margin-bottom: 16px; }
.nosotros__texto p strong { color: var(--tinta); }
.cita { margin-top: 28px; display: flex; gap: 14px; align-items: flex-start; padding: 20px 22px; background: var(--gris-fondo); border-left: 4px solid var(--rojo); border-radius: 0 var(--radio) var(--radio) 0; font-weight: 600; }
.cita .ico { color: var(--azul); }
.socios { display: grid; gap: 20px; }
.socio {
  position: relative; display: grid; grid-template-columns: 56px 1fr; gap: 18px;
  background: var(--navy); color: #fff; border-radius: var(--radio); padding: 26px 26px 26px 24px; overflow: hidden;
}
.socio::after { content: ""; position: absolute; right: -30px; bottom: -30px; width: 120px; height: 120px; background: linear-gradient(135deg, transparent 50%, rgba(0, 86, 179, .35) 50%); }
.socio__ico { width: 56px; height: 56px; border-radius: var(--radio); display: grid; place-items: center; background: var(--azul); }
.socio--b .socio__ico { background: var(--rojo); }
.socio__ico .ico { width: 28px; height: 28px; color: #fff; }
.socio__etiqueta { font-size: 11.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #9FB2CF; }
.socio h3 { font-size: 21px; margin: 6px 0 2px; }
.socio__acad { color: #FF5A74; font-weight: 600; font-size: 14.5px; }
.socio p { color: #C4CFDF; font-size: 15px; margin-top: 10px; position: relative; z-index: 1; }

.pilares { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 64px; }
.pilar { background: #fff; border: 1px solid var(--linea); border-radius: var(--radio); padding: 26px 22px; transition: border-color .2s, box-shadow .2s, transform .2s; }
.pilar:hover { border-color: #B9CBE6; box-shadow: var(--sombra); transform: translateY(-2px); }
.pilar__ico { width: 48px; height: 48px; border-radius: var(--radio); background: #E8F1FC; color: var(--azul); display: grid; place-items: center; margin-bottom: 16px; }
.pilar h3 { font-size: 17px; margin-bottom: 6px; }
.pilar p { color: var(--gris); font-size: 15px; }
@media (max-width: 1000px) { .pilares { grid-template-columns: 1fr 1fr; } .nosotros__grid { grid-template-columns: 1fr; gap: 40px; } }
@media (max-width: 560px) { .pilares { grid-template-columns: 1fr; } .socio { grid-template-columns: 1fr; } }

/* ---------- líneas de negocio ---------- */
.lineas { display: grid; gap: 24px; }
.linea { display: grid; grid-template-columns: 220px 1fr; background: #fff; border-radius: var(--radio); box-shadow: var(--sombra); overflow: hidden; }
.linea__lado { position: relative; background: var(--azul); color: #fff; padding: 28px; display: flex; flex-direction: column; justify-content: space-between; min-height: 220px; overflow: hidden; }
.linea--2 .linea__lado { background: var(--rojo); }
.linea--3 .linea__lado { background: var(--navy); }
.linea__lado::after { content: ""; position: absolute; right: -60px; top: 0; bottom: 0; width: 90px; background: #fff; transform: skewX(-12deg); }
.linea__num { font-family: "Inter Display", "Inter", sans-serif; font-weight: 800; font-size: 56px; line-height: 1; }
.linea__lado .ico { width: 40px; height: 40px; }
.linea__cuerpo { padding: 32px 36px 32px 20px; }
.linea h3 { font-size: 24px; margin-bottom: 8px; }
.linea__desc { color: var(--gris); margin-bottom: 18px; max-width: 760px; }
.lista { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 28px; }
.lista li { position: relative; padding-left: 22px; font-size: 15px; }
.lista li::before { content: ""; position: absolute; left: 0; top: .5em; width: 10px; height: 6px; background: var(--azul); transform: skewX(-30deg); }
.linea--2 .lista li::before { background: var(--rojo); }
.linea--3 .lista li::before { background: var(--navy); }
.linea__cta { margin-top: 22px; display: inline-flex; align-items: center; gap: 8px; font-weight: 600; text-decoration: none; }
.linea__cta .ico { width: 18px; height: 18px; transition: transform .2s; }
.linea__cta:hover .ico { transform: translateX(4px); }
@media (max-width: 800px) {
  .linea { grid-template-columns: 1fr; }
  .linea__lado { min-height: 0; flex-direction: row; align-items: center; padding: 20px 24px; }
  .linea__lado::after { display: none; }
  .linea__cuerpo { padding: 26px 24px; }
  .lista { grid-template-columns: 1fr; }
}

/* ---------- centro técnico ---------- */
.filtros { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 32px; }
.filtro {
  border: 1.5px solid var(--linea); background: #fff; color: var(--tinta);
  padding: 9px 16px; border-radius: var(--radio); font-size: 14.5px; font-weight: 600; cursor: pointer; transition: all .2s;
}
.filtro:hover { border-color: var(--azul); color: var(--azul); }
.filtro[aria-pressed="true"] { background: var(--azul); border-color: var(--azul); color: #fff; }
.articulos { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.tarjeta-art {
  display: flex; flex-direction: column; background: #fff; border: 1px solid var(--linea); border-radius: var(--radio);
  overflow: hidden; transition: box-shadow .2s, transform .2s, border-color .2s;
}
.tarjeta-art:hover { box-shadow: var(--sombra); transform: translateY(-2px); border-color: #B9CBE6; }
.tarjeta-art[hidden] { display: none; }
.tarjeta-art__banda { height: 6px; background: linear-gradient(90deg, var(--azul) 0 70%, var(--rojo) 70%); }
.tarjeta-art__in { padding: 26px 26px 24px; display: flex; flex-direction: column; flex: 1; }
.etiqueta { display: inline-block; align-self: flex-start; font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 5px 10px; border-radius: 4px; background: #E8F1FC; color: var(--azul); }
.etiqueta--efi { background: #E7F6EC; color: #157A3A; }
.etiqueta--sus { background: #FDE8EC; color: var(--rojo-osc); }
.tarjeta-art h3 { font-size: 20px; line-height: 1.3; margin: 14px 0 10px; }
.tarjeta-art p { color: var(--gris); font-size: 15px; flex: 1; }
.tarjeta-art__pie { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--linea); font-size: 13.5px; color: var(--gris); }
.btn-leer { background: none; border: 0; color: var(--azul); font-weight: 700; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; padding: 6px 0; }
.btn-leer .ico { width: 18px; height: 18px; transition: transform .2s; }
.btn-leer:hover .ico { transform: translateX(4px); }
.aviso-normativo { margin-top: 24px; font-size: 13.5px; color: var(--gris); }
@media (max-width: 800px) { .articulos { grid-template-columns: 1fr; } }

/* newsletter */
.boletin {
  margin-top: 56px; display: grid; grid-template-columns: 1.1fr 1fr; gap: 36px; align-items: center;
  background: var(--navy); color: #fff; border-radius: var(--radio); padding: 40px; position: relative; overflow: hidden;
}
.boletin::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: var(--rojo); }
.boletin h3 { font-size: 26px; margin: 10px 0 8px; }
.boletin p { color: #B7C3D6; }
.boletin__form { display: grid; gap: 12px; }
.boletin__fila { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.boletin input, .boletin select {
  width: 100%; padding: 13px 14px; border-radius: var(--radio); border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.06); color: #fff;
}
.boletin select option { color: var(--tinta); }
.boletin input::placeholder { color: #8FA3C0; }
.boletin .consent { font-size: 12.5px; color: #8FA3C0; }
@media (max-width: 860px) { .boletin { grid-template-columns: 1fr; padding: 30px 24px; } .boletin__fila { grid-template-columns: 1fr; } }

/* ---------- modal artículo ---------- */
.modal { border: 0; padding: 0; background: transparent; max-width: none; max-height: none; width: 100%; height: 100%; }
.modal::backdrop { background: rgba(6, 14, 26, .72); backdrop-filter: blur(3px); }
.modal__caja {
  width: min(100% - 24px, 860px); max-height: calc(100% - 48px); margin: 24px auto; background: #fff; border-radius: var(--radio);
  display: flex; flex-direction: column; overflow: hidden; box-shadow: 0 30px 80px rgba(0,0,0,.35);
}
.modal__cab { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 20px 16px 28px; border-bottom: 1px solid var(--linea); background: var(--gris-fondo); }
.modal__cab img { height: 30px; width: auto; }
.modal__cerrar { width: 40px; height: 40px; border: 0; border-radius: var(--radio); background: transparent; cursor: pointer; display: grid; place-items: center; color: var(--tinta); }
.modal__cerrar:hover { background: #E3E8F0; }
.modal__cuerpo { overflow-y: auto; padding: 36px 44px 44px; overscroll-behavior: contain; }
.modal__pie { padding: 16px 28px; border-top: 1px solid var(--linea); display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; background: #fff; }
.modal__pie p { font-size: 14px; color: var(--gris); }
@media (max-width: 600px) { .modal__cuerpo { padding: 26px 22px 32px; } .modal__caja { width: 100%; max-height: 100%; margin: 0; border-radius: 0; height: 100%; } }

/* contenido del artículo */
.articulo h2 { font-family: "Inter Display", "Inter", sans-serif; font-weight: 800; letter-spacing: -0.02em; font-size: clamp(24px, 3vw, 32px); line-height: 1.15; margin: 14px 0 10px; }
.articulo .meta { font-size: 14px; color: var(--gris); margin-bottom: 24px; }
.articulo .resumen { font-size: 18px; color: var(--tinta); border-left: 4px solid var(--azul); padding-left: 16px; margin-bottom: 28px; }
.articulo h3 { font-size: 20px; margin: 30px 0 10px; }
.articulo p { margin-bottom: 14px; color: #2C3850; }
.articulo ul, .articulo ol { margin: 0 0 16px 22px; color: #2C3850; }
.articulo li { margin-bottom: 6px; }
.articulo table { width: 100%; border-collapse: collapse; margin: 8px 0 20px; font-size: 14.5px; }
.articulo th, .articulo td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--linea); vertical-align: top; }
.articulo th { background: var(--gris-fondo); font-weight: 700; }
.articulo .tabla { overflow-x: auto; }
.articulo .nota { background: var(--gris-fondo); border-radius: var(--radio); padding: 16px 18px; font-size: 14.5px; margin: 20px 0; }
.articulo .nota strong { color: var(--azul); }
.articulo .fuentes { margin-top: 30px; padding-top: 18px; border-top: 1px solid var(--linea); font-size: 13.5px; color: var(--gris); }
.articulo .fuentes ul { color: var(--gris); }
.articulo .fuentes a { word-break: break-word; }

/* ---------- sectores ---------- */
.sectores { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.sector { background: var(--navy-2); border: 1px solid rgba(255,255,255,.08); border-radius: var(--radio); padding: 28px 24px; position: relative; transition: border-color .2s, transform .2s; }
.sector::before { content: ""; position: absolute; top: -1px; left: 24px; width: 40px; height: 4px; background: var(--azul-claro); transform: skewX(-30deg); }
.sector:hover { border-color: rgba(94, 162, 255, .5); transform: translateY(-2px); }
.sector .ico { width: 34px; height: 34px; color: #7FB0FF; margin-bottom: 16px; }
.sector h3 { font-size: 18px; margin-bottom: 6px; }
.sector p { color: #AFBDD2; font-size: 15px; }
.sector--cta { background: var(--rojo); border-color: var(--rojo); display: flex; flex-direction: column; justify-content: space-between; }
.sector--cta::before { background: #fff; }
.sector--cta p { color: #FFE1E6; }
.sector--cta a { color: #fff; font-weight: 700; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; letter-spacing: .06em; text-transform: uppercase; font-size: 13.5px; }
.sector--cta a .ico { width: 20px; height: 20px; margin: 0; color: #fff; }
@media (max-width: 960px) { .sectores { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .sectores { grid-template-columns: 1fr; } }

/* ---------- contacto ---------- */
.contacto__grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 48px; align-items: start; }
.datos { list-style: none; display: grid; gap: 14px; margin: 28px 0; }
.datos li { display: flex; gap: 14px; align-items: flex-start; }
.datos__ico { width: 44px; height: 44px; border-radius: var(--radio); background: var(--azul); color: #fff; display: grid; place-items: center; flex: none; }
.datos li:nth-child(2) .datos__ico { background: var(--rojo); }
.datos__ico .ico { width: 22px; height: 22px; }
.datos small { display: block; font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--gris); font-weight: 700; }
.datos a, .datos span.v { color: var(--tinta); font-weight: 600; text-decoration: none; }
.datos a:hover { color: var(--azul); }
.contacto__botones { display: flex; flex-wrap: wrap; gap: 12px; }
.mapa { margin-top: 28px; border-radius: var(--radio); overflow: hidden; border: 1px solid var(--linea); aspect-ratio: 16 / 10; background: var(--gris-fondo); }
.mapa iframe { width: 100%; height: 100%; border: 0; display: block; }

.formulario { background: #fff; border-radius: var(--radio); box-shadow: var(--sombra); padding: 36px; border-top: 5px solid var(--azul); }
.formulario h3 { font-size: 22px; margin-bottom: 4px; }
.formulario > p { color: var(--gris); font-size: 15px; margin-bottom: 22px; }
.campos { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.campo { display: grid; gap: 6px; }
.campo--ancho { grid-column: 1 / -1; }
.campo label { font-size: 13.5px; font-weight: 600; }
.campo label .req { color: var(--rojo); }
.campo input, .campo select, .campo textarea {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--linea); border-radius: var(--radio); background: #fff; transition: border-color .2s, box-shadow .2s;
}
.campo textarea { min-height: 130px; resize: vertical; }
.campo input:focus, .campo select:focus, .campo textarea:focus { outline: none; border-color: var(--azul); box-shadow: 0 0 0 3px rgba(0, 86, 179, .15); }
.campo input:user-invalid, .campo select:user-invalid, .campo textarea:user-invalid { border-color: var(--rojo); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: var(--gris); grid-column: 1 / -1; }
.check input { margin-top: 3px; accent-color: var(--azul); width: 16px; height: 16px; flex: none; }
.hp { position: absolute !important; left: -9999px !important; }
.estado-form { margin-top: 14px; font-size: 14.5px; font-weight: 600; min-height: 1.4em; }
.estado-form.ok { color: #157A3A; }
.estado-form.error { color: var(--rojo); }
.boletin .estado-form.ok { color: #6EE29A; }
.boletin .estado-form.error { color: #FF8A9C; }
@media (max-width: 960px) { .contacto__grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .campos { grid-template-columns: 1fr; } .formulario { padding: 26px 20px; } }

/* ---------- footer ---------- */
.footer { background: var(--navy); color: #AFBDD2; padding: 64px 0 28px; position: relative; }
.footer::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 5px; background: linear-gradient(90deg, var(--azul) 0 62%, var(--rojo) 62%); }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; }
.footer__logo img { height: 46px; width: auto; margin-bottom: 16px; }
.footer h4 { color: #fff; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 14px; }
.footer ul { list-style: none; display: grid; gap: 8px; font-size: 14.5px; }
.footer a { color: #AFBDD2; text-decoration: none; }
.footer a:hover { color: #fff; }
.footer p { font-size: 14.5px; }
.footer__legal { margin-top: 48px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.08); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 13px; color: #8293AE; }
@media (max-width: 900px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer__grid { grid-template-columns: 1fr; } }

/* ---------- WhatsApp flotante ---------- */
.wsp-flotante {
  position: fixed; right: 22px; bottom: 22px; z-index: 90; width: 60px; height: 60px; border-radius: 50%;
  background: #25D366; color: #fff; display: grid; place-items: center; box-shadow: 0 10px 28px rgba(0,0,0,.28);
  transition: transform .2s, box-shadow .2s;
}
.wsp-flotante:hover { transform: scale(1.07); box-shadow: 0 14px 34px rgba(0,0,0,.32); }
.wsp-flotante svg { width: 32px; height: 32px; }
.wsp-flotante::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #25D366; animation: onda 2.4s ease-out infinite;
}
@keyframes onda { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(1.55); opacity: 0; } }
.wsp-flotante__tip {
  position: absolute; right: 72px; white-space: nowrap; background: var(--navy); color: #fff; font-size: 13.5px; font-weight: 600;
  padding: 8px 12px; border-radius: var(--radio); opacity: 0; transform: translateX(6px); transition: opacity .2s, transform .2s; pointer-events: none;
}
.wsp-flotante:hover .wsp-flotante__tip, .wsp-flotante:focus-visible .wsp-flotante__tip { opacity: 1; transform: none; }

/* ---------- aparición al hacer scroll ---------- */
.js .aparece { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .aparece.visible { opacity: 1; transform: none; }

/* ---------- impresión ---------- */
@media print {
  .nav, .wsp-flotante, .hero__fondo, .boletin, .formulario, .mapa { display: none !important; }
  .hero { padding-top: 40px; }
}
