/* portal.css — HONDULegal landing.
 * Modelo: bifurcación diagonal Legal / Técnico inspirada en el referente del cliente,
 * pero rediseñado con un fondo navy oscuro profesional, paleta azul + verde secundario
 * y sin las dos últimas secciones del referente (banda Rigor Legal + stats).
 */

* { box-sizing: border-box; }
html, body { margin: 0; }
body.hl {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  background: var(--hl-bg);
  color: var(--hl-fg-1);
}

/* Soft atmospheric backlight on the light page */
body.hl::before {
  content: "";
  position: fixed;
  inset: -10%;
  background:
    radial-gradient(60% 50% at 15% 110%, rgba(20, 98, 174, 0.06), transparent 65%),
    radial-gradient(50% 45% at 100% -10%, rgba(13, 92, 83, 0.05), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.portal {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  position: relative;
  z-index: 1;
}

/* legacy decorative geo nodes — hidden in the new dark layout */
.portal .page-geo { display: none; }

.portal-container {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 40px;
}

/* ============================================================
 * HEADER — white, with subtle bottom border
 * ============================================================ */
.portal-header {
  padding: 14px 0;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--hl-border);
  position: sticky;
  top: 0;
  z-index: 30;
  transition: box-shadow 220ms var(--hl-ease-out);
}
.portal-header.scrolled {
  box-shadow: 0 4px 20px -10px rgba(11, 30, 64, 0.18);
}

/* Animated rainbow stripe at the very bottom of the header bar */
.portal-header::after {
  content: "";
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg,
    var(--hl-teal-500)  0%,
    var(--hl-teal-300)  14%,
    var(--hl-green-500) 28%,
    var(--hl-green-300) 42%,
    var(--hl-blue-300)  57%,
    var(--hl-navy-500)  71%,
    var(--hl-blue-500)  85%,
    var(--hl-teal-500)  100%);
  background-size: 200% 100%;
  animation: headerLine 14s linear infinite;
  pointer-events: none;
}
@keyframes headerLine {
  from { background-position: 0% 0; }
  to   { background-position: 200% 0; }
}
@media (prefers-reduced-motion: reduce) {
  .portal-header::after { animation: none; }
}
.portal-header .row {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 56px;
}
.portal-header .mark { height: 56px; display: block; }
.portal-header nav {
  display: flex;
  align-items: center;
  gap: 30px;
  flex: 1;
  justify-content: center;
}
.portal-header nav a {
  font-family: var(--hl-font-ui);
  font-weight: 500;
  font-size: 14.5px;
  color: var(--hl-fg-2);
  text-decoration: none;
  transition: color 140ms;
  white-space: nowrap;
  position: relative;
  padding: 6px 0;
}
.portal-header nav a:hover { color: var(--hl-navy-700); }
.portal-header nav a.active {
  color: var(--hl-blue-600);
  font-weight: 600;
}
.portal-header nav a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--hl-blue-500);
  border-radius: 2px;
}
/* ── Desktop dropdown nav ──────────────────────────────────── */
.nav-dropdown {
  position: relative;
}
.nav-drop-trigger {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--hl-font-ui);
  font-weight: 500;
  font-size: 14.5px;
  color: var(--hl-fg-2);
  cursor: pointer;
  white-space: nowrap;
  padding: 6px 0;
  transition: color 140ms;
  user-select: none;
}
.nav-drop-trigger:hover { color: var(--hl-navy-700); }
.nav-drop-trigger.active { color: var(--hl-blue-600); font-weight: 600; }
.nav-drop-trigger svg {
  transition: transform 200ms var(--hl-ease-out);
  flex-shrink: 0;
}
.nav-drop-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-4px);
  opacity: 0;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  min-width: 150px;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border: 1px solid var(--hl-border);
  border-radius: 10px;
  box-shadow: 0 8px 24px -8px rgba(11, 30, 64, 0.14);
  padding: 6px;
  padding-top: 12px;
  transition: opacity 160ms var(--hl-ease-out), transform 160ms var(--hl-ease-out);
  z-index: 40;
}
.nav-drop-menu::before {
  content: "";
  position: absolute;
  top: -10px;
  left: 0; right: 0;
  height: 10px;
}
.nav-dropdown:hover .nav-drop-trigger svg { transform: rotate(180deg); }
.nav-dropdown:hover .nav-drop-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.nav-drop-menu a {
  padding: 9px 14px !important;
  border-radius: 7px;
  font-size: 14px !important;
  transition: background 120ms, color 120ms;
}
.nav-drop-menu a:hover {
  background: rgba(20, 98, 174, 0.06);
}
.nav-drop-menu a.active::after { display: none; }

/* ── Mobile accordion (inside mob-drawer) ────────────────── */
.mob-accordion-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  font-family: var(--hl-font-ui);
  font-size: 15px;
  font-weight: 500;
  color: var(--hl-fg-2);
  background: none;
  border: none;
  padding: 14px 20px;
  border-left: 3px solid transparent;
  cursor: pointer;
  transition: background 120ms, color 120ms;
  text-align: left;
}
.mob-accordion-trigger:hover,
.mob-accordion-trigger:active { color: var(--hl-navy-700); background: rgba(20, 98, 174, 0.04); }
.mob-accordion-trigger.active { color: var(--hl-blue-600); border-left-color: var(--hl-blue-500); font-weight: 600; }
.mob-accordion-trigger svg {
  transition: transform 200ms var(--hl-ease-out);
  flex-shrink: 0;
}
.mob-accordion-trigger svg.rotated { transform: rotate(180deg); }
.mob-sub {
  display: flex;
  flex-direction: column;
  background: rgba(20, 98, 174, 0.03);
  animation: mobSubIn 160ms var(--hl-ease-out) both;
}
@keyframes mobSubIn {
  from { opacity: 0; max-height: 0; }
  to   { opacity: 1; max-height: 120px; }
}
.mob-sub a {
  padding-left: 38px !important;
  font-size: 14px !important;
}

.portal-header .header-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--hl-blue-500) 0%, var(--hl-blue-600) 100%);
  color: white;
  font-family: var(--hl-font-ui);
  font-weight: 600;
  font-size: 14px;
  border: none;
  cursor: pointer;
  transition: transform 140ms var(--hl-ease-out), box-shadow 140ms var(--hl-ease-out);
  text-decoration: none;
  box-shadow:
    0 8px 22px -8px rgba(20, 98, 174, 0.55),
    0 0 0 0 rgba(20, 98, 174, 0.45);
  position: relative;
  overflow: hidden;
  animation: ctaPulse 2.8s ease-in-out infinite;
}
.portal-header .header-cta::before {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  left: -50%;
  width: 40%;
  background: linear-gradient(115deg,
    transparent 0%,
    rgba(255,255,255,0.0) 30%,
    rgba(255,255,255,0.45) 50%,
    rgba(255,255,255,0.0) 70%,
    transparent 100%);
  transform: skewX(-18deg);
  animation: ctaShimmer 3.4s ease-in-out infinite;
  pointer-events: none;
}
.portal-header .header-cta:hover {
  transform: translateY(-1px);
  box-shadow:
    0 12px 28px -8px rgba(20, 98, 174, 0.75),
    0 0 0 4px rgba(20, 98, 174, 0.18);
  animation-play-state: paused;
}
.portal-header .header-cta .star {
  display: inline-block;
  color: rgba(255, 255, 255, 0.95);
  font-size: 12px;
  line-height: 1;
  animation: ctaSparkle 2.2s ease-in-out infinite;
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.7);
}
@keyframes ctaPulse {
  0%, 100% { box-shadow: 0 8px 22px -8px rgba(20, 98, 174, 0.55), 0 0 0 0 rgba(20, 98, 174, 0.45); }
  50%      { box-shadow: 0 10px 26px -8px rgba(20, 98, 174, 0.7),  0 0 0 6px rgba(20, 98, 174, 0); }
}
@keyframes ctaShimmer {
  0%   { left: -50%; }
  60%  { left: 110%; }
  100% { left: 110%; }
}
@keyframes ctaSparkle {
  0%, 100% { transform: scale(1) rotate(0deg);   opacity: 0.95; }
  50%      { transform: scale(1.25) rotate(180deg); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .portal-header .header-cta,
  .portal-header .header-cta::before,
  .portal-header .header-cta .star { animation: none; }
}

/* ============================================================
 * MAIN
 * ============================================================ */
.portal-main {
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* ============================================================
 * HERO TAGLINE — slim editorial headline above the diagonal split
 * ============================================================ */
.hero-tagline {
  text-align: center;
  padding: 44px 24px 56px;
  max-width: 1080px;
  margin: 0 auto;
  position: relative;
}
.hero-tagline .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--hl-font-ui);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--hl-blue-200);
  margin-bottom: 18px;
}
.hero-tagline .eyebrow::before,
.hero-tagline .eyebrow::after {
  content: "";
  display: inline-block;
  width: 32px; height: 1px;
  background: var(--hl-blue-400);
}
.hero-tagline h1 {
  font-family: var(--hl-font-display);
  font-weight: 600;
  font-size: clamp(28px, 3.4vw, 46px);
  line-height: 1.12;
  letter-spacing: -0.012em;
  color: var(--hl-navy-700);
  margin: 0;
  text-wrap: balance;
}
.hero-tagline h1 em {
  font-style: italic;
  font-weight: 500;
  color: var(--hl-green-600);
}
body[data-accent="blue"] .hero-tagline h1 em { color: var(--hl-blue-500); }

@media (max-width: 880px) {
  .hero-tagline { padding: 40px 20px 24px; }
}

/* ============================================================
 * HERO — diagonal bifurcation
 *
 * Two halves split by a subtle diagonal line; left = Legal (dark
 * photo, navy veil); right = Técnico (lighter photo, blue tint).
 * A central circular medallion with the institutional mark bridges
 * the two sides, picking up the central crest from the referente
 * but rendered with our own visual language.
 * ============================================================ */
.hero-split {
  position: relative;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: clamp(420px, 56vh, 720px);
  overflow: hidden;
  background: var(--hl-navy-900);
}

/* Single-screen mode handled at end of file via @media (min-width: 881px) */
.hero-split .side {
  position: relative;
  overflow: hidden;
  display: flex;
  padding: 56px 56px 72px;
}
.hero-split .side.legal { justify-content: flex-end; align-items: flex-start; padding-top: 72px; }
.hero-split .side.tecnico { justify-content: flex-start; align-items: flex-end; }
.hero-split .side .photo {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
}
.hero-split .side.legal .photo {
  background-image: url('../assets/Balanza final.png');
  background-position: center center;
  background-color: #050F25;
  transform: scale(1.0);
  transform-origin: center center;
}
.hero-split .side.tecnico .photo {
  background-image: url('../assets/FINAL 4.0 fondo servicios tecnicos.png');
  background-position: center center;
  transform: scale(1.0);
  transform-origin: center center;
}

/* Diagonal cut: each side has its right (or left) edge slanted via clip-path
 * so the meeting line is a single diagonal centered on the viewport. */
.hero-split .side.legal {
  width: calc(100% + 45px);
  clip-path: polygon(0 0, 100% 0, calc(100% - 90px) 100%, 0 100%);
  z-index: 2;
}
.hero-split .side.tecnico {
  width: calc(100% + 45px);
  clip-path: polygon(90px 0, 100% 0, 100% 100%, 0 100%);
  margin-left: -45px;
  z-index: 1;
}

/* Subtle directional veil — only the legal side has a soft darkening on the
 * text area for legibility. Técnico side: solo un ligero degradado del lado
 * del texto (no es difuminado completo) para que el blanco lea sobre la cara. */
.hero-split .side.legal .veil {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(90deg,
      rgba(5, 15, 37, 0.0) 0%,
      rgba(5, 15, 37, 0.18) 30%,
      rgba(5, 15, 37, 0.55) 60%,
      rgba(5, 15, 37, 0.82) 100%);
}
.hero-split .side.tecnico .veil {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(90deg,
      rgba(5, 15, 37, 0.65) 0%,
      rgba(5, 15, 37, 0.35) 30%,
      rgba(5, 15, 37, 0.0) 55%,
      rgba(5, 15, 37, 0.0) 100%);
}

/* Diagonal seam — a prominent line down the middle that separates the two halves */
.hero-split::after {
  content: "";
  position: absolute;
  top: -10%; bottom: -10%;
  left: 50%;
  width: 4px;
  background:
    linear-gradient(180deg,
      rgba(255,255,255, 0) 0%,
      rgba(255,255,255, 0.95) 50%,
      rgba(255,255,255, 0) 100%);
  transform: translateX(-2px) skewX(-8.5deg);
  pointer-events: none;
  z-index: 3;
  box-shadow:
    0 0 20px rgba(255, 255, 255, 0.55),
    0 0 40px rgba(94, 155, 217, 0.45);
}

.hero-split .side .content {
  position: relative;
  z-index: 2;
  color: white;
  max-width: 460px;
}
.hero-split .side.legal .content { padding-right: 60px; padding-left: 48px; text-align: left; }
.hero-split .side.tecnico .content { padding-left: 115px; padding-right: 0; text-align: left; }

/* Icon badge above title (legal = scales, técnico = analytics) */
.hero-split .side .icon-badge {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 28px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(8px);
}
.hero-split .side.legal .icon-badge { color: var(--hl-blue-200); }
.hero-split .side.tecnico .icon-badge { color: var(--hl-green-300); }
body[data-accent="blue"] .hero-split .side.tecnico .icon-badge { color: var(--hl-blue-200); }
.hero-split .side .icon-badge svg { width: 30px; height: 30px; stroke-width: 1.5; }

.hero-split .side .eyebrow {
  font-family: var(--hl-font-ui);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--hl-blue-200);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.hero-split .side .eyebrow::before {
  content: "";
  display: inline-block;
  width: 28px; height: 1px;
  background: var(--hl-blue-300);
  flex-shrink: 0;
}
.hero-split .side .eyebrow > span {
  flex: 1;
}
.hero-split .side.tecnico .eyebrow { color: var(--hl-blue-100); }

.hero-split .side h2 {
  font-family: var(--hl-font-display);
  font-weight: 600;
  font-size: clamp(34px, 3.6vw, 52px);
  line-height: 1.04;
  letter-spacing: -0.01em;
  margin: 0 0 18px;
  color: white;
  text-wrap: balance;
  text-shadow: 0 2px 16px rgba(5, 15, 37, 0.55);
}
.hero-split .side h2 em {
  font-style: italic;
  font-weight: 500;
  color: var(--hl-blue-200);
}
.hero-split .side.tecnico h2 em { color: var(--hl-green-500); text-shadow: 0 4px 24px rgba(20, 98, 174, 1), 0 0 40px rgba(20, 98, 174, 0.7); }

.hero-split .side .desc {
  font-family: var(--hl-font-body);
  font-size: 16px;
  line-height: 1.6;
  color: rgba(255,255,255,0.78);
  margin: 0 0 32px;
  max-width: 380px;
  text-wrap: pretty;
}

.hero-split .side .chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 32px;
  max-width: 420px;
}
.hero-split .side .chip {
  font-family: var(--hl-font-ui);
  font-size: 11.5px;
  font-weight: 500;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.78);
  border: 1px solid rgba(255,255,255,0.12);
  white-space: nowrap;
}
.hero-split .side .chip.more {
  background: transparent;
  color: var(--hl-blue-200);
  border-color: var(--hl-blue-400);
}

.hero-split .side .card-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  border-radius: 8px;
  font-family: var(--hl-font-ui);
  font-weight: 600;
  font-size: 14px;
  border: none;
  cursor: pointer;
  transition: all 200ms var(--hl-ease-out);
  text-decoration: none;
}
.hero-split .side.legal .card-cta {
  background: var(--hl-blue-200);
  color: var(--hl-navy-900);
  box-shadow: 0 12px 28px -10px rgba(94, 155, 217, 0.5);
}
.hero-split .side.legal .card-cta:hover {
  background: var(--hl-blue-100);
  transform: translateY(-1px);
  box-shadow: 0 16px 32px -10px rgba(94, 155, 217, 0.7);
}
.hero-split .side.tecnico .card-cta {
  background: var(--hl-green-500);
  color: white;
  box-shadow: 0 12px 28px -10px rgba(13, 92, 83, 0.5);
}
.hero-split .side.tecnico .card-cta:hover {
  background: var(--hl-green-600);
  transform: translateY(-1px);
  box-shadow: 0 16px 32px -10px rgba(13, 92, 83, 0.7);
}
/* Accent="blue" mode: técnico button uses blue, not green */
body[data-accent="blue"] .hero-split .side.tecnico .card-cta {
  background: var(--hl-blue-200);
  color: var(--hl-navy-900);
  box-shadow: 0 12px 28px -10px rgba(94, 155, 217, 0.5);
}
body[data-accent="blue"] .hero-split .side.tecnico .card-cta:hover {
  background: var(--hl-blue-100);
  box-shadow: 0 16px 32px -10px rgba(94, 155, 217, 0.7);
}
.hero-split .side .card-cta svg { width: 16px; height: 16px; stroke-width: 2; transition: transform 200ms; }
.hero-split .side .card-cta:hover svg { transform: translateX(4px); }

/* Central medallion bridging both sides */
.hero-medallion {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 4;
  box-shadow:
    0 20px 40px -14px rgba(0,0,0,0.5),
    0 0 0 1px rgba(255,255,255,0.18);
}
.hero-medallion::before {
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 1px dashed rgba(255,255,255,0.4);
  z-index: 0;
}
.hero-medallion::after {
  content: "";
  position: absolute;
  inset: -20px;
  border-radius: 50%;
  border: 1px solid rgba(94, 155, 217, 0.18);
  z-index: 0;
}
.hero-medallion img {
  width: 68px;
  height: auto;
  display: block;
  position: relative;
  z-index: 1;
}

/* Mobile: stack instead of diagonal */
@media (max-width: 920px) {
  .hero-split {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .hero-split .side {
    padding: 44px 24px;
    min-height: 420px;
  }
  .hero-split .side.legal {
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 60px), 0 100%);
  }
  .hero-split .side.tecnico {
    margin-left: 0;
    width: 100%;
    margin-top: -60px;
    clip-path: polygon(0 60px, 100% 0, 100% 100%, 0 100%);
  }
  .hero-split::after { display: none; }
  .hero-split .side .content { max-width: 100%; padding: 0; margin: 0; }
  .hero-split .side .desc { max-width: 100%; }
  .hero-medallion { display: none; } /* oculto en móvil */
}

/* ============================================================
 * SERVICES GRID — banda bajo el hero match al referente.
 * Dos columnas pegadas, cada una con un título centrado y 4 íconos
 * lineales en fila. Botón "+" central a caballo entre las dos.
 * ============================================================ */
.services-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  width: 100%;
}
.services-grid .sg-col {
  position: relative;
  padding: 18px 56px 22px;
  min-height: 0;
  text-align: center;
}
.services-grid .sg-legal {
  background: linear-gradient(180deg, #CEDEEA 0%, #BBCEDD 100%);
  color: var(--hl-fg-1);
}
.services-grid .sg-tecnico {
  background: linear-gradient(180deg, #D4EAE8 0%, #BFDBDA 100%);
  color: var(--hl-fg-1);
}

.services-grid .sg-title {
  font-family: var(--hl-font-ui);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--hl-blue-600);
  margin: 0 0 8px;
}
.services-grid .sg-tecnico .sg-title { color: var(--hl-green-300); }

.services-grid .sg-rule {
  display: block;
  width: 48px;
  height: 2px;
  background: var(--hl-blue-500);
  margin: 0 auto 14px;
  border-radius: 2px;
}
.services-grid .sg-tecnico .sg-rule {
  background: var(--hl-green-300);
}
.services-grid .sg-tecnico .sg-ico {
  border-color: var(--hl-green-300);
  color: var(--hl-green-300);
}
.services-grid .sg-tecnico .sg-item:hover .sg-ico {
  background: var(--hl-green-500);
  color: white;
  box-shadow: 0 12px 24px -10px rgba(13, 92, 83, 0.55);
}

.services-grid .sg-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.services-grid .sg-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 4px;
  cursor: default;
  transition: transform 220ms var(--hl-ease-out);
}
.services-grid .sg-item:hover {
  transform: translateY(-3px);
}
.services-grid .sg-ico {
  width: 44px; height: 44px;
  border-radius: 999px;
  border: 1.5px solid var(--hl-blue-500);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--hl-blue-500);
  flex-shrink: 0;
  background: transparent;
  transition: all 220ms var(--hl-ease-out);
}
.services-grid .sg-item:hover .sg-ico {
  background: var(--hl-blue-500);
  color: white;
  box-shadow: 0 12px 24px -10px rgba(20, 98, 174, 0.55);
}
.services-grid .sg-ico svg { width: 20px; height: 20px; stroke-width: 1.5; }

.services-grid .sg-label {
  font-family: var(--hl-font-ui);
  font-weight: 500;
  font-size: 12px;
  line-height: 1.3;
  color: var(--hl-navy-700);
  text-wrap: balance;
  max-width: 140px;
}

/* "+" button at center, overlapping the seam between the two cols */
.services-grid .sg-plus {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: var(--hl-blue-500);
  color: white;
  border: 3px solid white;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5;
  box-shadow: 0 12px 26px -10px rgba(20, 98, 174, 0.55);
  transition: all 220ms var(--hl-ease-out);
}
.services-grid .sg-plus:hover {
  background: var(--hl-blue-600);
  transform: translate(-50%, -50%) scale(1.08);
}
.services-grid .sg-plus svg { width: 18px; height: 18px; stroke-width: 2.5; }

@media (max-width: 920px) {
  .services-grid { grid-template-columns: 1fr; }
  .services-grid .sg-col { padding: 28px 20px 32px; }
  .services-grid .sg-list { grid-template-columns: repeat(2, 1fr); gap: 18px; }
  .services-grid .sg-label { font-size: 13px; max-width: 160px; }
  .services-grid .sg-plus {
    position: relative;
    top: auto; left: auto;
    transform: none;
    margin: -28px auto 0;
  }
  .services-grid .sg-plus:hover { transform: scale(1.08); }
}
@media (max-width: 480px) {
  .services-grid .sg-list { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .services-grid .sg-ico { width: 40px; height: 40px; }
  .services-grid .sg-ico svg { width: 18px; height: 18px; }
}


/* ============================================================
 * ThemisX BAND
 * ============================================================ */
.themisx-band {
  max-width: 1320px;
  margin: 20px auto 24px;
  width: 100%;
  padding: 0 40px;
}
.themisx-band .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 26px;
  background:
    linear-gradient(135deg, rgba(11, 30, 64, 0.95) 0%, rgba(20, 98, 174, 0.65) 130%);
  border: 1px solid rgba(94, 155, 217, 0.18);
  border-radius: 14px;
  color: white;
  cursor: pointer;
  transition: all 220ms var(--hl-ease-out);
  position: relative;
  overflow: hidden;
}
.themisx-band .inner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 100% 50%, rgba(13, 92, 83, 0.18) 0%, transparent 55%);
  pointer-events: none;
}
/* Scanning glint that sweeps across the banner — suggests live data / AI activity */
.themisx-band .inner::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  width: 28%;
  left: -30%;
  background: linear-gradient(115deg,
    transparent 0%,
    rgba(94, 155, 217, 0.0) 20%,
    rgba(154, 200, 255, 0.18) 50%,
    rgba(94, 155, 217, 0.0) 80%,
    transparent 100%);
  filter: blur(6px);
  animation: tx-scan 7s linear infinite;
  pointer-events: none;
  z-index: 0;
}
@keyframes tx-scan {
  0%   { left: -30%; opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { left: 110%; opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .themisx-band .inner::after { animation: none; display: none; }
}
.themisx-band .inner:hover {
  transform: translateY(-2px);
  border-color: var(--hl-blue-400);
  box-shadow: 0 18px 40px -18px rgba(20, 98, 174, 0.5);
}
.themisx-band .left { display: flex; align-items: center; gap: 18px; position: relative; z-index: 1; }

/* Badge — AI orb with pulsing sonar rings + counter-rotating ring + drifting hue */
.themisx-band .badge {
  width: 52px; height: 52px;
  border-radius: 999px;
  background:
    radial-gradient(circle at 35% 30%,
      rgba(180, 220, 255, 0.95) 0%,
      var(--hl-blue-300) 30%,
      var(--hl-blue-600) 75%,
      var(--hl-navy-900) 100%);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  position: relative;
  box-shadow:
    0 0 0 1px rgba(154, 200, 255, 0.35) inset,
    0 0 24px rgba(94, 155, 217, 0.45);
  animation: tx-orb-hue 6s ease-in-out infinite;
}
@keyframes tx-orb-hue {
  0%, 100% { filter: hue-rotate(0deg) saturate(1); }
  50%      { filter: hue-rotate(-18deg) saturate(1.12); }
}
.themisx-band .badge .star {
  font-size: 18px;
  color: white;
  line-height: 1;
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.6);
  animation: tx-star-spin 14s linear infinite;
  display: inline-block;
}
@keyframes tx-star-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
/* Two sonar rings emitting from the badge */
.themisx-band .badge::before,
.themisx-band .badge::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 999px;
  border: 1px solid var(--hl-blue-300);
  animation: tx-sonar 2.8s ease-out infinite;
  pointer-events: none;
}
.themisx-band .badge::after { animation-delay: 1.4s; }
@keyframes tx-sonar {
  0%   { transform: scale(1);   opacity: 0.85; }
  80%  { opacity: 0; }
  100% { transform: scale(2.0); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .themisx-band .badge,
  .themisx-band .badge::before,
  .themisx-band .badge::after,
  .themisx-band .badge .star { animation: none; }
}

.themisx-band .copy {
  font-family: var(--hl-font-ui);
  font-size: 15px;
  line-height: 1.5;
  color: rgba(255,255,255,0.92);
}
.themisx-band .copy strong { font-weight: 700; color: white; }
.themisx-band .copy .sep { opacity: 0.45; margin: 0 8px; }

/* Thinking dots that follow "con IA" — three pips that animate like a typing indicator */
.themisx-band .think {
  display: inline-flex;
  gap: 4px;
  margin-left: 8px;
  vertical-align: middle;
}
.themisx-band .think i {
  width: 5px; height: 5px;
  border-radius: 999px;
  background: var(--hl-blue-300);
  display: inline-block;
  animation: tx-think 1.4s ease-in-out infinite;
  box-shadow: 0 0 6px rgba(154, 200, 255, 0.6);
}
.themisx-band .think i:nth-child(2) { animation-delay: 0.18s; background: var(--hl-green-300); box-shadow: 0 0 6px rgba(61, 171, 158, 0.6); }
.themisx-band .think i:nth-child(3) { animation-delay: 0.36s; }
@keyframes tx-think {
  0%, 80%, 100% { transform: translateY(0);    opacity: 0.4; }
  40%           { transform: translateY(-3px); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .themisx-band .think i { animation: none; opacity: 1; }
}

.themisx-band .right {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--hl-font-ui);
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
  position: relative;
  z-index: 1;
}
.themisx-band .right .arrow {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: var(--hl-blue-500);
  display: flex; align-items: center; justify-content: center;
  transition: transform 200ms;
  box-shadow: 0 8px 20px -6px rgba(20, 98, 174, 0.6);
}
.themisx-band .inner:hover .arrow { transform: translateX(4px); background: var(--hl-blue-600); }
.themisx-band .right svg { width: 16px; height: 16px; color: white; stroke-width: 2; }

/* ============================================================
 * About link + footer
 * ============================================================ */
.portal-about-link { text-align: center; padding: 16px 0 16px; }
.portal-about-link a {
  font-family: var(--hl-font-ui);
  font-size: 13.5px;
  color: var(--hl-fg-3);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 140ms;
}
.portal-about-link a:hover { color: var(--hl-blue-600); }
.portal-about-link a svg { width: 14px; height: 14px; stroke-width: 2; transition: transform 200ms; }
.portal-about-link a:hover svg { transform: translateX(3px); }

.portal-disclaimer {
  padding: 24px 0 28px;
  text-align: center;
  background: white;
  border-top: 1px solid var(--hl-border);
}
.portal-disclaimer p {
  font-family: var(--hl-font-ui);
  font-size: 11px;
  line-height: 1.6;
  color: var(--hl-fg-3);
  margin: 0 auto;
  max-width: 760px;
  padding: 0 24px;
}

/* ============================================================
 * Drilldown panel (legacy — kept for backward compat, the cards
 * navigate to real pages, but the markup may still be reachable)
 * ============================================================ */
.portal-drilldown {
  position: fixed; inset: 0;
  background: var(--hl-bg);
  z-index: 80;
  overflow-y: auto;
  animation: drillIn 320ms var(--hl-ease-out);
}
@keyframes drillIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.portal-drilldown .dd-bar {
  position: sticky; top: 0;
  background: rgba(5, 15, 37, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding: 16px 0; z-index: 5;
}
.portal-drilldown .dd-bar .row { display: flex; align-items: center; justify-content: space-between; }
.portal-drilldown .back-btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--hl-font-ui);
  font-size: 14px; font-weight: 600;
  color: white; background: none;
  border: 1px solid rgba(255,255,255,0.2);
  padding: 8px 16px; border-radius: 8px;
  cursor: pointer; transition: all 140ms;
}
.portal-drilldown .back-btn:hover { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.4); }
.portal-drilldown .back-btn svg { width: 14px; height: 14px; stroke-width: 2; }
.portal-drilldown .dd-eyebrow {
  font-family: var(--hl-font-ui);
  font-weight: 700; font-size: 12px;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--hl-blue-200);
}
.portal-drilldown .dd-eyebrow.navy { color: var(--hl-green-300); }

/* ============================================================
 * ThemisX chat modal
 * ============================================================ */
.tx-scrim {
  position: fixed; inset: 0;
  background: rgba(5, 15, 37, 0.65);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 100;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  padding: 0;
  animation: txFade 220ms ease-out;
}
@keyframes txFade { from { opacity: 0; } to { opacity: 1; } }
.tx-panel {
  background: white;
  width: 100%;
  max-width: 440px;
  height: 100vh;
  display: flex;
  flex-direction: column;
  box-shadow: -20px 0 60px -20px rgba(5, 15, 37, 0.6);
  animation: txSlide 320ms var(--hl-ease-out);
}
@keyframes txSlide { from { transform: translateX(40px); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

.tx-head {
  padding: 18px 22px;
  background: var(--hl-navy-900);
  color: white;
  display: flex;
  align-items: center;
  gap: 14px;
}
.tx-head .avatar {
  width: 42px; height: 42px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--hl-blue-500), var(--hl-blue-700));
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-size: 18px; color: white;
  font-family: var(--hl-font-display);
  font-weight: 700; position: relative;
}
.tx-head .avatar::after {
  content: "";
  position: absolute;
  bottom: 0; right: 0;
  width: 10px; height: 10px;
  background: var(--hl-green-500);
  border-radius: 999px;
  border: 2px solid var(--hl-navy-900);
}
.tx-head .who { flex: 1; }
.tx-head .name { font-family: var(--hl-font-display); font-weight: 700; font-size: 17px; }
.tx-head .role { font-family: var(--hl-font-ui); font-size: 12px; opacity: 0.7; }
.tx-head .close-btn {
  width: 32px; height: 32px;
  border-radius: 999px;
  background: rgba(255,255,255,0.1);
  border: none; color: white; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 140ms;
}
.tx-head .close-btn:hover { background: rgba(255,255,255,0.2); }
.tx-head .close-btn svg { width: 16px; height: 16px; stroke-width: 2; }

.tx-body { flex: 1; overflow-y: auto; padding: 22px; display: flex; flex-direction: column; gap: 14px; }
.tx-msg {
  font-family: var(--hl-font-body);
  font-size: 14.5px;
  line-height: 1.55;
  padding: 12px 16px;
  border-radius: 18px;
  max-width: 88%;
  white-space: pre-wrap;
  text-wrap: pretty;
}
.tx-msg.bot { background: #F2F5FB; color: #0B1E40; border-bottom-left-radius: 6px; align-self: flex-start; }
.tx-msg.user { background: var(--hl-blue-500); color: white; border-bottom-right-radius: 6px; align-self: flex-end; }
.tx-msg.disclaimer { background: #FEF3C7; border: 1px solid #FDE68A; color: #78350F; font-size: 13px; padding: 10px 14px; border-bottom-left-radius: 12px; }
.tx-suggestions { display: flex; flex-direction: column; gap: 8px; padding-bottom: 4px; }
.tx-suggestions button {
  font-family: var(--hl-font-ui);
  font-size: 13.5px;
  text-align: left;
  padding: 10px 14px;
  border-radius: 999px;
  background: white;
  border: 1px solid #DCE5F2;
  color: var(--hl-navy-700);
  cursor: pointer;
  transition: all 140ms;
}
.tx-suggestions button:hover { border-color: var(--hl-blue-500); background: #F2F5FB; }
.tx-typing { display: inline-flex; gap: 4px; padding: 14px 18px; background: #F2F5FB; border-radius: 18px; border-bottom-left-radius: 6px; align-self: flex-start; }
.tx-typing span { width: 7px; height: 7px; border-radius: 999px; background: #7E8DAA; animation: txDot 1.2s ease-in-out infinite; }
.tx-typing span:nth-child(2) { animation-delay: 0.15s; }
.tx-typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes txDot { 0%, 60%, 100% { transform: translateY(0); opacity: 0.4; } 30% { transform: translateY(-4px); opacity: 1; } }

.tx-foot { border-top: 1px solid #DCE5F2; padding: 14px 18px; background: white; }
.tx-foot .input-row { display: flex; align-items: center; gap: 8px; background: #F4F7FC; border-radius: 999px; padding: 6px 6px 6px 16px; border: 1px solid #DCE5F2; transition: all 140ms; }
.tx-foot .input-row:focus-within { border-color: var(--hl-blue-500); background: white; }
.tx-foot input { flex: 1; border: none; background: none; outline: none; font-family: var(--hl-font-ui); font-size: 14.5px; color: #0B1E40; padding: 8px 0; }
.tx-foot .send-btn {
  width: 36px; height: 36px;
  border-radius: 999px;
  background: var(--hl-blue-500);
  border: none; color: white;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: all 140ms;
}
.tx-foot .send-btn:hover { background: var(--hl-blue-600); }
.tx-foot .send-btn:disabled { background: #DCE5F2; color: #7E8DAA; cursor: not-allowed; }
.tx-foot .send-btn svg { width: 16px; height: 16px; stroke-width: 2; }
.tx-foot .legal-note { font-family: var(--hl-font-ui); font-size: 10.5px; color: #7E8DAA; text-align: center; margin: 8px 0 0; }

/* Accent variant: when accent="blue" we suppress green tints */
body[data-accent="blue"] .hero-split .side.tecnico h2 em { color: var(--hl-blue-200); }
body[data-accent="blue"] .services-band .col.tecnico .col-head .num { color: var(--hl-blue-300); }
body[data-accent="blue"] .services-band .col.tecnico .col-head .divider { background: linear-gradient(90deg, rgba(94,155,217,0.4), transparent); }
body[data-accent="blue"] .services-band .col.tecnico .ico .ring { background: rgba(20, 98, 174, 0.12); border-color: rgba(94, 155, 217, 0.30); color: var(--hl-blue-200); }
body[data-accent="blue"] .services-band .col.tecnico .ico:hover .ring { background: rgba(20, 98, 174, 0.22); border-color: var(--hl-blue-400); }

/* ============================================================
 * About modal
 * ============================================================ */
.about-modal-scrim {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(5, 15, 37, 0.65);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  animation: txFade 220ms ease-out;
}
.about-modal {
  background: white;
  width: 100%;
  max-width: 560px;
  border-radius: 20px;
  padding: 40px;
  position: relative;
  animation: aboutRise 320ms var(--hl-ease-out);
}
@keyframes aboutRise { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.about-modal .close {
  position: absolute; top: 18px; right: 18px;
  width: 36px; height: 36px;
  border-radius: 999px;
  background: #E8EEF7;
  border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.about-modal .close svg { width: 16px; height: 16px; stroke-width: 2; color: #0B1E40; }
.about-modal h2 {
  font-family: var(--hl-font-display);
  font-weight: 700;
  font-size: 30px;
  color: #0B1E40;
  margin: 0 0 14px;
  letter-spacing: -0.02em;
}
.about-modal p {
  font-family: var(--hl-font-body);
  font-size: 15.5px;
  line-height: 1.6;
  color: #34466B;
  margin: 0 0 14px;
}
.about-modal .contact {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid #DCE5F2;
  display: grid;
  gap: 10px;
}
.about-modal .contact-row {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--hl-font-ui);
  font-size: 14px;
  color: #0B1E40;
}
.about-modal .contact-row svg { width: 16px; height: 16px; color: var(--hl-blue-500); stroke-width: 1.75; }

/* ============================================================
 * Tablet / narrow desktop (920px..1200px) — tighten paddings so
 * the diagonal hero + services still breathe.
 * ============================================================ */
@media (max-width: 1200px) and (min-width: 921px) {
  .portal-container { padding: 0 28px; }
  .themisx-band { padding: 0 28px; }
  .hero-split .side { padding: 48px 40px; }
  .hero-split .side.legal .content { padding-right: 24px; }
  .hero-split .side.tecnico .content { padding-left: 56px; }
  .services-grid .sg-col { padding: 18px 28px 22px; }
  .services-grid .sg-list { gap: 12px; }
  .services-grid .sg-label { font-size: 11.5px; max-width: 120px; }
}

/* ============================================================
 * Mobile
 * ============================================================ */
@media (max-width: 880px) {
  .portal-container { padding: 0 20px; }
  .portal-header { padding: 10px 0; }
  .portal-header .mark { height: 42px; }
  .portal-header nav { display: none; }        /* se reemplaza por mob-drawer */
  .portal-header .header-cta { display: none; } /* se mueve al drawer */
  .themisx-band { padding: 0 20px; margin: 24px auto; }
  .themisx-band .inner { flex-direction: column; align-items: flex-start; border-radius: 14px; padding: 18px 20px; gap: 14px; }
  .themisx-band .copy { font-size: 14px; }
  .tx-panel { max-width: 100%; }

  /* ── Hamburger + drawer ─────────────────────────────────── */
  .nav-burger {
    margin-left: auto !important;  /* empuja burger al borde derecho */
  }

  .mob-scrim {
    display: block !important;
    position: fixed;
    inset: 0;
    background: rgba(5, 15, 37, 0.45);
    z-index: 29;
    animation: mobScrimIn 200ms ease-out both;
  }
  @keyframes mobScrimIn {
    from { opacity: 0; }
    to   { opacity: 1; }
  }

  .mob-drawer {
    display: flex !important;
    flex-direction: column;
    position: fixed;
    top: 77px; left: 0; right: 0;
    background: #fff;
    border-top: 1px solid var(--hl-border);
    padding: 8px 0 0;
    z-index: 31;
    max-height: calc(100dvh - 77px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    animation: mobDrawerIn 380ms cubic-bezier(0.22, 0.68, 0.35, 1) both;
    transform-origin: top center;
  }
  @keyframes mobDrawerIn {
    from { opacity: 0; transform: translateY(-100%); }
    to   { opacity: 1; transform: translateY(0); }
  }
  .mob-drawer a {
    font-family: var(--hl-font-ui);
    font-size: 15px;
    font-weight: 500;
    color: var(--hl-fg-2);
    text-decoration: none;
    padding: 14px 20px;
    border-left: 3px solid transparent;
    transition: background 120ms, color 120ms;
  }
  .mob-drawer a:hover,
  .mob-drawer a:active { color: var(--hl-navy-700); background: rgba(20, 98, 174, 0.04); }
  .mob-drawer a.active { color: var(--hl-blue-600); border-left-color: var(--hl-blue-500); font-weight: 600; }
  .mob-drawer .mob-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 16px 20px calc(16px + env(safe-area-inset-bottom, 0px));
    padding: 13px 22px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--hl-blue-500) 0%, var(--hl-blue-600) 100%);
    color: white;
    font-family: var(--hl-font-ui);
    font-weight: 600;
    font-size: 14px;
    border: none;
    cursor: pointer;
    justify-content: center;
    box-shadow: 0 8px 22px -8px rgba(20, 98, 174, 0.55);
    flex-shrink: 0;
  }
  .mob-drawer .mob-cta .star {
    display: inline-block;
    color: rgba(255, 255, 255, 0.95);
    font-size: 12px;
    line-height: 1;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.7);
  }
}

/* ============================================================
 * HAMBURGER BUTTON — siempre visible en estructura; se oculta en
 * desktop dentro de @media (min-width: 881px) más abajo.
 * ============================================================ */
.nav-burger {
  display: flex;           /* oculto en desktop por la media query ≥881px */
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;             /* touch target mínimo recomendado (44x44) */
  height: 44px;
  background: none;
  border: 1.5px solid rgba(11, 30, 64, 0.14);
  border-radius: 10px;
  cursor: pointer;
  flex-shrink: 0;
  margin-left: 4px;
  padding: 0;
  transition: border-color 160ms, background 160ms;
  -webkit-tap-highlight-color: rgba(20, 98, 174, 0.12);
}
.nav-burger:hover,
.nav-burger:active { border-color: rgba(11, 30, 64, 0.28); background: rgba(20, 98, 174, 0.04); }
.nav-burger span {
  display: block;
  width: 20px; height: 2px;
  background: var(--hl-navy-700);
  border-radius: 2px;
  transition: transform 220ms var(--hl-ease-out), opacity 160ms;
  transform-origin: center;
  pointer-events: none;     /* el span no debe interceptar el tap del botón */
}
.nav-burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.is-open span:nth-child(2) { opacity: 0; }
.nav-burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile drawer — oculto por defecto en desktop. En móvil la media
 * query (max-width:880px) lo activa con !important. */
.mob-drawer { display: none; }
.mob-scrim { display: none; }

/* ============================================================
 * SINGLE SCREEN — tablet y escritorio (≥881px): toda la landing
 * cabe en un viewport sin scroll. El hero absorbe el espacio libre.
 * Móvil (≤880px) mantiene scroll normal y usa menú hamburguesa.
 * ============================================================ */
@media (min-width: 881px) {
  /* Ocultar hamburger en desktop/tablet */
  .nav-burger { display: none; }

  /* ── Single screen: body = 100vh explícito ──────────────────
   * Usamos 100vh directo (no 100%) para evitar dependencias de
   * la cadena html→body→#root→.portal cuando #root es un bloque.
   * body.hl:not(.internal) garantiza que sólo afecta al index.   */
  body.hl:not(.internal) {
    height: 100vh;
    overflow: hidden;  /* los modales usan position:fixed — no se ven afectados */
  }

  /* #root es el div de React entre body y .portal; heredamos altura */
  body.hl:not(.internal) > #root {
    height: 100%;      /* 100% de body = 100vh */
    overflow: hidden;
  }

  /* .portal llena #root; como flex-column, header + main se reparten */
  .portal {
    height: 100%;      /* 100% de #root = 100vh */
    min-height: 0;     /* cancela el min-height: 100vh global */
    overflow: hidden;
  }

  /* portal-main llena lo que queda después del header */
  .portal-main {
    flex: 1;
    min-height: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
  }

  /* Hero: flex:1 absorbe el espacio sobrante — cancela el clamp */
  .hero-split {
    flex: 1 1 0;
    min-height: 0;
  }

  /* Ilustraciones: sin zoom, centradas */
  .hero-split .side.legal .photo  { transform: scale(1.0); transform-origin: center center; }
  .hero-split .side.tecnico .photo { transform: scale(1.0); transform-origin: center center; }

  /* Hero: compactar espaciado interno */
  .hero-split .side { padding: 28px 48px 48px; }
  .hero-split .side .icon-badge { width: 50px; height: 50px; margin-bottom: 12px; }
  .hero-split .side .icon-badge svg { width: 24px; height: 24px; }
  .hero-split .side .eyebrow { margin-bottom: 10px; }
  .hero-split .side h2 { font-size: clamp(26px, 2.6vw, 40px); margin-bottom: 10px; }
  .hero-split .side .desc { font-size: 14px; line-height: 1.5; margin-bottom: 16px; }
  .hero-split .side .chip-row { margin-bottom: 16px; gap: 5px; }
  .hero-split .side .chip { padding: 4px 9px; font-size: 11px; }

  /* Servicios: compactar banda */
  .services-grid .sg-col { padding: 10px 40px 12px; }
  .services-grid .sg-title { margin-bottom: 4px; }
  .services-grid .sg-rule { margin-bottom: 10px; }
  .services-grid .sg-list { gap: 10px; }
  .services-grid .sg-ico { width: 38px; height: 38px; }
  .services-grid .sg-ico svg { width: 17px; height: 17px; }
  .services-grid .sg-label { font-size: 11px; }

  /* ThemisX: compactar */
  .themisx-band { margin: 5px auto 5px; }
  .themisx-band .inner { padding: 9px 22px; }
  .themisx-band .badge { width: 42px; height: 42px; }
  .themisx-band .badge .star { font-size: 15px; }
  .themisx-band .copy { font-size: 13.5px; }

  /* Footer: compactar */
  .portal-about-link { padding: 4px 0; }
  .portal-about-link a { font-size: 12.5px; }
  .portal-disclaimer { padding: 6px 0 8px; }
  .portal-disclaimer p { font-size: 10.5px; }
}

/* ═══════════════════════════════════════════════════════════════════
 * ABOUT SECTION — Sobre Nosotros
 * ═══════════════════════════════════════════════════════════════════ */
.about-section {
  background: white;
  padding: 80px 0 88px;
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--hl-border);
}

.about-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 40px;
}

.about-head {
  max-width: 640px;
  margin-bottom: 52px;
}

.about-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--hl-blue-500);
  margin-bottom: 14px;
}

.about-dot {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--hl-blue-500);
  flex-shrink: 0;
}

.about-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3vw, 2.75rem);
  color: var(--hl-navy-700);
  line-height: 1.1;
  margin: 0 0 18px;
  font-weight: 700;
}

.about-head h2 em {
  font-style: italic;
  color: var(--hl-blue-500);
}

.about-lede {
  font-size: 1.0625rem;
  color: var(--hl-fg-2);
  line-height: 1.65;
  margin: 0;
}

/* ── Misión / Visión grid ───────────────────────────────────────── */
.mv-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 28px;
}

.mv-card {
  background: var(--hl-bg);
  border-radius: 16px;
  padding: 36px 32px 36px 40px;
  border: 1px solid var(--hl-border);
  box-shadow: 0 2px 16px rgba(11, 30, 64, 0.05);
  position: relative;
  overflow: hidden;
}

.mv-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 4px; height: 100%;
  border-radius: 16px 0 0 16px;
}

.mv-card.mission::before { background: var(--hl-blue-500); }
.mv-card.vision::before  { background: var(--hl-navy-700); }

.mv-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}

.mv-card.mission .mv-icon {
  background: rgba(20, 98, 174, 0.1);
  color: var(--hl-blue-500);
}

.mv-card.vision .mv-icon {
  background: var(--hl-navy-700);
  color: white;
}

.mv-icon i, .mv-icon svg { width: 22px; height: 22px; }

.mv-card h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--hl-navy-700);
  margin: 0 0 14px;
}

.mv-card p {
  font-size: 0.9375rem;
  color: var(--hl-fg-2);
  line-height: 1.75;
  margin: 0;
}

/* ── Valores / Trust bar ────────────────────────────────────────── */
.about-values {
  display: flex;
  border: 1px solid var(--hl-border);
  border-radius: 12px;
  overflow: hidden;
  background: var(--hl-bg);
}

.about-value {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 22px 16px;
  border-right: 1px solid var(--hl-border);
  text-align: center;
  transition: background 180ms ease;
}

.about-value:last-child { border-right: none; }
.about-value:hover { background: rgba(20, 98, 174, 0.04); }

.about-value i, .about-value svg {
  width: 22px; height: 22px;
  color: var(--hl-blue-500);
}

.about-value span {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--hl-fg-1);
  letter-spacing: .02em;
}

/* ── Responsive ─────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .about-section { padding: 56px 0 64px; }
  .about-container { padding: 0 20px; }
  .mv-grid { grid-template-columns: 1fr; }
  .about-values { flex-wrap: wrap; }
  .about-value {
    flex: 1 1 50%;
    border-right: 1px solid var(--hl-border);
    border-bottom: 1px solid var(--hl-border);
  }
  .about-value:nth-child(2n) { border-right: none; }
  .about-value:nth-last-child(-n+2) { border-bottom: none; }
}
