/* ===== VARIABLES ===== */
:root {
  --azul: #1b3a5b;
  --azul-oscuro: #12283f;
  --azul-btn: #2f6fd0;
  --naranja: #f28c1e;
  --naranja-claro: #f6a94a;
  --verde-wa: #3aae3a;
  --texto: #2b2b2b;
  --texto-suave: #5a6b7b;
  --gris-bg: #eef3f8;
  --blanco: #ffffff;
  --radio: 14px;
  --sombra: 0 10px 30px rgba(18, 40, 63, 0.10);

  /* ===== TOKENS UNIFICADOS (reutilizan la identidad actual) ===== */
  --color-primary: var(--azul-oscuro);      /* Azul marino principal */
  --color-accent: var(--naranja);           /* Naranja principal de marca */
  --color-accent-hover: #d9770a;             /* Naranja de marca, estado hover */
  --color-text: var(--texto);               /* Texto principal */
  --color-text-muted: var(--texto-suave);   /* Texto secundario */
  --color-background: var(--blanco);         /* Fondo base */
  --color-surface: #f6f9fc;                  /* Fondo neutro muy claro para secciones */
  --color-border: #e6edf4;                   /* Borde/línea sutil unificado */
  --radius-card: 16px;                       /* Radio de tarjetas */
  --radius-btn: 10px;                        /* Radio de botones */
  --shadow-card: 0 10px 30px rgba(18, 40, 63, 0.08); /* Sombra de tarjetas */
  --shadow-card-hover: 0 16px 40px rgba(18, 40, 63, 0.16); /* Sombra tarjeta hover */
  --section-spacing: 88px;                   /* Espaciado vertical estándar entre secciones */

  /* Jerarquía tipográfica (referencia del brief) */
  --fs-h1: clamp(2rem, 4vw, 3.25rem);        /* H1 hero 32-52px */
  --fs-h2: clamp(1.7rem, 2.6vw, 2.25rem);    /* H2 sección 27-36px */
  --fs-h3: 1.2rem;                           /* H3 tarjetas */
  --fs-body: 1rem;                           /* Cuerpo */
  --fs-small: 0.9rem;                        /* Texto secundario */
  --lh-title: 1.2;
  --lh-body: 1.6;
  --content-max: 1140px;                     /* Ancho máximo común del contenido */
  --ease: 200ms;                             /* Transición base de interacción */
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body { margin: 0; padding: 0; overflow-x: hidden; }

html { scroll-behavior: smooth; }

/* Compensa la altura del header sticky al saltar a un ancla */
section[id], header[id], #contacto { scroll-margin-top: 112px; }

body {
  font-family: 'Poppins', system-ui, sans-serif;
  color: var(--texto);
  line-height: 1.6;
  background: var(--blanco);
}

.container {
  width: 100%;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 24px;
}

img { max-width: 100%; display: block; }

/* ===== BOTONES ===== */
.btn {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  font-size: 1rem;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--azul-btn); color: #fff; box-shadow: 0 6px 16px rgba(47,111,208,.35); }
.btn-primary:hover { background: #2a63bb; }
.btn-hero-cta { background: var(--color-accent); color: #fff; box-shadow: 0 6px 16px rgba(242,140,30,.30); }
.btn-hero-cta:hover { background: var(--color-accent-hover); }
.btn-sm { padding: 10px 22px; font-size: .95rem; }
.btn-whatsapp { background: var(--color-accent); color: #fff; box-shadow: 0 6px 16px rgba(242,140,30,.30); transition: background .2s ease, transform .2s ease, box-shadow .2s ease; display: inline-flex; align-items: center; gap: 8px; }
.btn-whatsapp:hover { background: var(--color-accent-hover); transform: translateY(-2px); box-shadow: 0 10px 22px rgba(242,140,30,.40); }
.wa-icon { flex-shrink: 0; }

/* ===== HEADER ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(6px);
  border-bottom: 3px solid transparent;
  border-image: linear-gradient(to right, transparent, var(--azul), transparent) 1;
  transition: box-shadow var(--ease) ease;
}
.site-header.scrolled {
  box-shadow: 0 4px 18px rgba(18, 40, 63, 0.08);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 90px;
  max-width: none;
  padding-left: clamp(20px, 4vw, 60px);
  padding-right: clamp(20px, 4vw, 60px);
}
.brand {
  font-weight: 800;
  font-size: 1.5rem;
  text-decoration: none;
  letter-spacing: -.5px;
  display: inline-flex;
  align-items: center;
}
.brand-logo {
  height: 44px;
  width: auto;
  object-fit: contain;
  display: block;
}
.brand-text {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--azul-oscuro);
  text-transform: uppercase;
  line-height: 1;
}
.brand-accent {
  color: var(--naranja);
}
.brand-name--white,
.footer-brand .brand-name {
  color: #fff;
}
.brand-name {
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.65rem;
  font-weight: 700;
  font-style: italic;
  color: #0B3764;
  letter-spacing: 2px;
  text-transform: uppercase;
  line-height: 1;
  margin-left: 10px;
}
.nav { display: flex; align-items: center; gap: 34px; }
.nav a {
  position: relative;
  text-decoration: none;
  color: var(--azul);
  font-weight: 500;
  font-size: 1.2rem;
  padding: 6px 2px;
  transition: color var(--ease) ease;
}
.nav a:hover { color: var(--naranja); }
/* Subrayado discreto para hover y sección activa */
.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--naranja);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--ease) ease;
}
.nav a:hover::after,
.nav a:focus-visible::after,
.nav a.is-active::after { transform: scaleX(1); }
.nav a.is-active { color: var(--naranja); }
.nav-toggle { display: none; background: none; border: none; flex-direction: column; gap: 5px; cursor: pointer; width: 44px; height: 44px; align-items: center; justify-content: center; }
.nav-toggle span { width: 26px; height: 3px; background: var(--azul); border-radius: 3px; transition: background var(--ease) ease; }

/* ===== HERO ===== */
.hero {
  position: relative;
  overflow: hidden;
  min-height: 520px;
  display: flex;
  align-items: center;
  background: #eef3f8;
}
.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  z-index: 1;
  opacity: 0.55;
  filter: saturate(0.6) brightness(0.75);
}
.hero-curve {
  position: absolute;
  inset: 0;
  z-index: 2;
}
.hero-curve svg {
  width: 100%;
  height: 100%;
  display: block;
}
.hero-inner {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 40px 24px 72px clamp(20px, 4vw, 48px);
}
.hero-content { max-width: 400px; }
.hero-content h1 {
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  line-height: var(--lh-title);
  color: var(--naranja);
  font-weight: 700;
  margin-bottom: 16px;
  white-space: nowrap;
}
.hero-sub {
  color: var(--azul-oscuro);
  font-weight: 700;
  font-size: 1.15rem;
  line-height: 1.3;
  margin-bottom: 28px;
}
.hero-list {
  list-style: none;
  margin-bottom: 30px;
}
.hero-list li {
  color: var(--azul);
  font-size: 0.82rem;
  padding: 6px 0 6px 32px;
  font-weight: 500;
  position: relative;
}
.hero-list li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  top: 7px;
  width: 22px;
  height: 22px;
  background: var(--naranja);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
}
.hero-image {
  position: relative;
  height: 480px;
}
.hero-image img {
  object-fit: cover;
  height: 100%;
  width: 100%;
  /* Onda/curva cóncava en el lado izquierdo, como el diseño original */
  clip-path: ellipse(85% 100% at 78% 50%);
}

/* ===== SOBRE ===== */
.about {
  padding: 0;
  background: #fff;
  overflow: hidden;
  border-top: 3px solid transparent;
  border-image: linear-gradient(to right, transparent, var(--naranja), transparent) 1;
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  max-width: none;
  margin: 0;
  padding: 0;
}
.about-text {
  padding: var(--section-spacing) 48px var(--section-spacing) clamp(20px, 4vw, 48px);
  max-width: 640px;
  margin-left: 0;
}
.about-eyebrow.section-title {
  text-align: left;
  margin-bottom: 12px;
}
.about-heading {
  font-size: 1.55rem;
  line-height: var(--lh-title);
  color: var(--color-primary);
  font-weight: 700;
  margin-bottom: 18px;
}
.about-heading span { color: var(--naranja); }
.about-divider {
  display: block;
  width: 90px;
  height: 3px;
  background: var(--naranja);
  border-radius: 2px;
  margin-bottom: 26px;
}
.about-text p { color: var(--color-text-muted); font-size: var(--fs-body); line-height: var(--lh-body); margin-bottom: 16px; }
.check-list { list-style: none; margin-top: 18px; }
.check-list li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 11px;
  color: var(--texto-suave);
  font-size: 13px;
}
.check-list li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: var(--naranja);
  font-weight: 700;
}
/* Checks en círculo naranja */
.check-list--circle li { padding-left: 34px; margin-bottom: 14px; color: var(--azul-oscuro); font-weight: 500; }
.check-list--circle li::before {
  content: "\2713";
  width: 22px;
  height: 22px;
  background: var(--naranja);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  top: 1px;
}
.about-image {
  position: relative;
  align-self: center;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px 40px 40px 0;
}
.about-image img {
  width: 100%;
  max-width: 600px;
  height: auto;
  object-fit: contain;
  border-radius: var(--radio);
  box-shadow: var(--sombra);
  opacity: 0.8;
  filter: saturate(0.85) brightness(1.06);
  /* Se funde suave hacia el texto (izquierda) */
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 12%);
  mask-image: linear-gradient(to right, transparent 0%, #000 12%);
}

/* ===== SERVICIOS ===== */
.services {
  padding: var(--section-spacing) 0;
  position: relative;
  border-top: 3px solid transparent;
  border-image: linear-gradient(to right, transparent, var(--naranja), transparent) 1;
  background-image:
    linear-gradient(180deg, rgba(246, 249, 252, 0.90) 0%, rgba(238, 243, 248, 0.94) 100%),
    url("fondo-hero-izquierda.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.section-title {
  text-align: center;
  font-size: var(--fs-h2);
  line-height: var(--lh-title);
  color: var(--color-primary);
  font-weight: 800;
  margin-bottom: 40px;
}
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  align-items: stretch;
}
.card {
  position: relative;
  border-radius: var(--radius-card);
  overflow: hidden;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  box-shadow: var(--shadow-card);
  transition: transform .2s ease, box-shadow .2s ease;
  display: flex;
  min-height: 380px;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(18,40,63,.25); }
.card-overlay {
  position: relative;
  z-index: 2;
  width: 100%;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 26px 26px 24px;
  background: linear-gradient(180deg, rgba(11,26,43,0) 0%, rgba(11,26,43,0.30) 48%, rgba(11,26,43,0.88) 100%);
  text-align: left;
}
.card-title {
  color: #fff;
  font-size: var(--fs-h3);
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 10px;
}
.card-text { color: rgba(255,255,255,0.92); font-size: 14px; line-height: 1.55; margin-bottom: 0; }

/* ===== TOGGLE (Ver detalle) ===== */
.toggle-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease;
}
.toggle-body .check-list { margin: 14px 0 0; }
.toggle-body .check-list li { color: rgba(255,255,255,0.9); font-size: .92rem; margin-bottom: 8px; }
.toggle-body .check-list li::before { color: var(--naranja); }
.toggle-header {
  margin-top: 14px;
  padding-top: 0;
  background: none;
  border: none;
  width: 100%;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  cursor: pointer;
  font-family: inherit;
  font-size: .85rem;
  font-weight: 700;
  color: var(--naranja);
  transition: color .15s ease;
}
.toggle-header:hover { color: var(--naranja-claro); }

/* ===== MODAL CONTACTO ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(14, 33, 55, 0.6);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 250ms ease, visibility 250ms ease;
}
.modal-overlay.is-open {
  opacity: 1;
  visibility: visible;
}
.modal-card {
  background-color: #0E2137;
  background-image:
    linear-gradient(180deg, rgba(18, 40, 63, 0.88) 0%, rgba(14, 33, 55, 0.92) 100%),
    url("fondo-claro.png");
  background-size: cover;
  background-position: center;
  border-radius: var(--radius-card);
  padding: 36px 40px;
  width: 100%;
  max-width: 580px;
  position: relative;
  box-shadow: 0 20px 60px rgba(14, 33, 55, 0.25);
  transform: translateY(20px);
  transition: transform 250ms ease;
  color: #fff;
}
.modal-overlay.is-open .modal-card {
  transform: translateY(0);
}
.modal-close {
  position: absolute;
  top: 14px;
  right: 18px;
  background: none;
  border: none;
  font-size: 1.8rem;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  line-height: 1;
  transition: color var(--ease) ease;
}
.modal-close:hover { color: #fff; }
.modal-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
}
.modal-subtitle {
  font-size: var(--fs-small);
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 24px;
}
.contact-form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 5px; }
.form-group--full { grid-column: 1 / -1; }
.form-group label {
  font-size: var(--fs-small);
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
}
.form-group input,
.form-group textarea {
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius-btn);
  padding: 10px 14px;
  font-size: var(--fs-body);
  font-family: inherit;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  transition: border-color var(--ease) ease;
  resize: vertical;
}
.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(255, 255, 255, 0.5);
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(242, 140, 30, 0.2);
  background: rgba(255, 255, 255, 0.15);
}
.form-submit {
  margin-top: 8px;
  width: 100%;
  text-align: center;
}

/* ===== WHATSAPP FLOTANTE ===== */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.4);
  transition: transform var(--ease) ease, box-shadow var(--ease) ease;
  text-decoration: none;
}
.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.55);
}
.whatsapp-float:focus-visible {
  outline: 3px solid var(--naranja);
  outline-offset: 3px;
}

/* ===== FOOTER ===== */
.site-footer {
  position: relative;
  width: 100%;
  margin: 0;
  padding: 0;
  color: #E9EEF3;
  background-color: #0E2137;
  background-image: linear-gradient(180deg, #12283f 0%, #0E2137 100%);
  border-top: 3px solid transparent;
  border-image: linear-gradient(to right, transparent, #2e6da4, transparent) 1;
}
.footer-container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: center;
  gap: 32px;
  padding: 32px 0 28px;
}
.footer-col { display: flex; flex-direction: column; justify-content: center; }
.footer-brand-col { align-items: flex-start; }
.footer-brand { margin-bottom: 12px; display: inline-flex; }
.footer-logo { width: 44px; height: auto; }
.footer-tagline {
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
  color: rgba(233, 238, 243, 0.72);
  margin: 4px 0 0;
  max-width: 240px;
}
.footer-contact { align-items: flex-start; }
.footer-mail {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #E9EEF3;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: color .15s ease;
}
.footer-mail:hover { color: #fff; }
.footer-mail-icon { color: var(--naranja); flex-shrink: 0; }
.footer-location {
  font-size: 13px;
  color: rgba(233, 238, 243, 0.6);
  margin: 8px 0 0;
}
.footer-nav { align-items: flex-start; }
.footer-nav-title {
  color: var(--naranja);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 14px;
}
.footer-nav a {
  color: rgba(233, 238, 243, 0.78);
  font-size: 14px;
  text-decoration: none;
  padding: 5px 0;
  transition: color var(--ease) ease;
}
.footer-nav a:hover,
.footer-nav a:focus-visible { color: var(--naranja); }
.footer-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.10);
  margin: 0;
}
.footer-copy {
  text-align: center;
  padding: 20px 0 24px;
  font-size: 12px;
  font-weight: 400;
  color: rgba(233, 238, 243, 0.55);
  margin: 0;
}
.footer-privacy-link { color: rgba(233, 238, 243, 0.6); text-decoration: none; transition: color var(--ease) ease; }
.footer-privacy-link:hover { color: var(--naranja); }

/* ===== SOLUCIONES TECNOLÓGICAS ===== */
.solutions {
  position: relative;
  padding: 44px 0 60px;
  border-top: 3px solid transparent;
  border-image: linear-gradient(to right, transparent, var(--naranja), transparent) 1;
  background-image:
    linear-gradient(180deg, rgba(8, 24, 48, 0.55) 0%, rgba(10, 28, 52, 0.60) 100%),
    url("fondo-soluciones.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  text-align: center;
  overflow: hidden;
}
.solutions .section-title {
  text-align: center;
  color: #fff;
  margin-bottom: 10px;
}
.solutions .accent { color: var(--naranja); }
.solutions-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--naranja);
  margin-bottom: 10px;
}
.solutions-subtitle {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 8px;
}
/* Circuito SVG */
.sol-circuit-wrap {
  width: 100%;
  max-width: var(--content-max);
  margin: 0 auto;
  height: 40px;
}
.sol-circuit {
  display: block;
  width: 100%;
  height: 40px;
}
/* Grid de tarjetas */
.solutions-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
/* Tarjeta */
.sol-card {
  background: rgba(8, 31, 60, 0.75);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(0, 168, 255, 0.18);
  border-radius: var(--radius-card);
  padding: 0;
  text-align: center;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
  transition: transform 280ms ease, box-shadow 280ms ease, border-color 280ms ease;
}
.sol-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(0, 140, 255, 0.15);
  border-color: rgba(0, 168, 255, 0.4);
}
/* Ícono + halo */
.sol-icon {
  position: relative;
  width: 100%;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 12px 8px;
}
.sol-icon img {
  position: relative;
  z-index: 2;
  max-width: 200px;
  max-height: 185px;
  width: auto;
  height: auto;
  object-fit: contain;
}
/* Halo azul debajo de la imagen */
.sol-halo {
  position: absolute;
  bottom: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 65%;
  height: 24px;
  background: radial-gradient(ellipse at center, rgba(0, 140, 255, 0.65) 0%, rgba(0, 183, 255, 0.3) 45%, transparent 75%);
  filter: blur(10px);
  border-radius: 50%;
  z-index: 1;
  transition: opacity 280ms ease, filter 280ms ease;
}
.sol-card:hover .sol-halo {
  opacity: 1;
  filter: blur(13px);
  background: radial-gradient(ellipse at center, rgba(0, 140, 255, 0.8) 0%, rgba(0, 183, 255, 0.4) 45%, transparent 75%);
}
/* Cuerpo de la tarjeta */
.sol-body {
  padding: 14px 18px 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.sol-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}
.sol-title::after {
  content: "";
  display: block;
  width: 32px;
  height: 2px;
  background: var(--naranja);
  margin: 6px auto 0;
}
.sol-text {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.68);
  line-height: 1.5;
  margin-bottom: 12px;
  flex: 1;
}
.sol-link {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--naranja);
  transition: color var(--ease) ease;
  align-self: center;
}
.sol-card:hover .sol-link { color: #ffaa44; }
.sol-toggle { display: none; }
/* Detalle expandido */
.sol-detail {
  padding: 0 18px 18px;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.6;
  text-align: left;
  border-top: 1px solid rgba(0, 168, 255, 0.2);
  margin-top: 0;
}
.sol-detail p { margin-bottom: 8px; margin-top: 10px; }
.sol-detail-lead { font-weight: 600; color: #fff; }
.sol-detail-subtitle { font-weight: 700; color: var(--naranja); margin-top: 10px; margin-bottom: 6px; }
.sol-detail ul { padding-left: 16px; margin-bottom: 10px; color: rgba(255, 255, 255, 0.72); }
.sol-detail li { margin-bottom: 3px; }
.sol-result { font-size: 0.78rem; color: var(--naranja); font-style: italic; }
/* Onda inferior */
.sol-wave {
  position: relative;
  width: 100%;
  margin-top: 48px;
  line-height: 0;
}
.sol-wave svg { width: 100%; height: 60px; display: block; }

@media (max-width: 1024px) {
  .solutions-grid { grid-template-columns: repeat(2, 1fr); }
  .sol-circuit-wrap { display: none; }
}
@media (max-width: 600px) {
  .solutions-grid { grid-template-columns: 1fr; }
  .sol-icon { height: 160px; }
  .sol-circuit-wrap { display: none; }
}

/* ===== CAPACITACIÓN ===== */
.training {
  padding: 64px 0 56px;
  background: linear-gradient(135deg, #FFFFFF 0%, #FAFAFA 55%, #F5F7F9 100%);
}
.training-grid {
  display: grid;
  grid-template-columns: 46% 1fr;
  align-items: center;
  gap: 40px;
}
.training-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  margin-left: 0;
}
@media (min-width: 861px) {
  .training-text { margin-left: -80px; }
}
.training-title {
  font-size: var(--fs-h2);
  line-height: var(--lh-title);
  color: var(--color-primary);
  font-weight: 800;
  margin-bottom: 14px;
}
.training-title .accent { color: var(--naranja); }
.training-subtitle {
  font-size: var(--fs-body);
  color: var(--color-text-muted);
  line-height: var(--lh-body);
  margin-bottom: 26px;
  max-width: 420px;
}
/* Áreas en línea */
.training-areas {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 26px;
}
.training-areas-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-start;
}
.training-areas span:not(.training-sep) {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-primary);
}
.training-sep {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--naranja);
  flex-shrink: 0;
}
/* Línea inferior */
.training-footer-line {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  text-align: left;
  margin-top: 18px;
  margin-bottom: 10px;
}
.training-footer-bar {
  display: block;
  width: 80px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(to right, transparent 0%, var(--naranja) 20%, var(--naranja) 80%, transparent 100%);
  margin: 0;
}
.training-check {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--naranja);
  flex-shrink: 0;
}
/* Imagen con fundido izquierdo */
.training-image {
  position: relative;
  border-radius: 0 var(--radius-card) var(--radius-card) 0;
  overflow: hidden;
  margin-right: 0;
}
@media (min-width: 861px) {
  .training-image { margin-right: -24px; }
}
.training-image::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 15%;
  height: 100%;
  background: linear-gradient(to right, #FAFAFA 0%, rgba(250, 250, 250, 0) 100%);
  z-index: 2;
  pointer-events: none;
}
.training-image img {
  width: 100%;
  height: 100%;
  max-height: 400px;
  object-fit: cover;
  display: block;
  opacity: 0.8;
  filter: saturate(0.85) brightness(1.06);
}

@media (max-width: 860px) {
  .training-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .training-image {
    border-radius: var(--radius-card);
  }
  .training-image::before { display: none; }
  .training-image img { max-height: 300px; }
  .training-text { margin-left: 0; }
  .training-image { margin-right: 0; }
}

/* ===== FRANJA DE VALOR (dentro de Proceso) ===== */
.value-strip-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 4px 0 40px;
}
.value-strip-inner span {
  color: var(--azul-oscuro);
  font-size: 14px;
  font-weight: 600;
}
.value-strip-inner .value-sep {
  color: var(--naranja);
  font-weight: 700;
  font-size: 16px;
}

/* ===== POR QUÉ ELEGIRNOS ===== */
.why-us {
  background: linear-gradient(135deg, #0a1628 0%, #0d2044 60%, #0a1628 100%);
  padding: 60px 0;
  border-top: 3px solid transparent;
  border-image: linear-gradient(to right, transparent, var(--naranja), transparent) 1;
}
.why-us-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  color: #fff;
  text-align: center;
  margin-bottom: 32px;
}
.why-us-img {
  display: block;
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  border-radius: 16px;
  box-shadow: 0 4px 32px rgba(0,0,0,0.10);
}

/* ===== TALENTO IMAGEN ===== */
.talento-img-section {
  padding: 60px 0 40px;
  background: #fff;
}
.talento-img {
  display: block;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  border-radius: 16px;
  box-shadow: 0 4px 32px rgba(0,0,0,0.08);
}

/* ===== TALENTO ===== */
.talent {
  position: relative;
  overflow: hidden;
  padding: var(--section-spacing) 0 64px;
  background:
    radial-gradient(circle at 15% 25%, rgba(242, 140, 30, 0.14) 0%, rgba(242, 140, 30, 0) 45%),
    radial-gradient(circle at 85% 80%, rgba(242, 140, 30, 0.16) 0%, rgba(242, 140, 30, 0) 45%),
    linear-gradient(180deg, #f4f8fc 0%, #eaf1f8 100%);
  text-align: center;
  border-top: 3px solid transparent;
  border-image: linear-gradient(to right, transparent, var(--naranja), transparent) 1;
}
.talent-inner {
  position: relative;
  z-index: 3;
  max-width: 620px;
}
.talent-title {
  font-size: var(--fs-h2);
  line-height: var(--lh-title);
  color: var(--color-primary);
  font-weight: 800;
  margin-bottom: 18px;
}
.talent-text {
  font-size: 16px;
  line-height: 1.6;
  color: var(--texto-suave);
  margin-bottom: 30px;
}
.talent-avatar {
  position: absolute;
  z-index: 1;
  border-radius: 50%;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 10px 26px rgba(18, 40, 63, 0.14);
  border: 4px solid #fff;
}
.talent-avatar img { width: 100%; height: 100%; object-fit: cover; opacity: 0.8; filter: saturate(0.85) brightness(1.06); }
.talent-avatar--1 { width: 96px; height: 96px; top: 20%; left: 18%; }
.talent-avatar--2 { width: 120px; height: 120px; top: 46%; left: 8%; }
.talent-avatar--3 { width: 108px; height: 108px; top: 22%; right: 16%; }
.talent-avatar--4 { width: 88px; height: 88px; top: 55%; right: 9%; }
.talent-dot {
  position: absolute;
  z-index: 2;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--naranja);
}
.talent-dot--a { top: 30%; left: 30%; }
.talent-dot--b { top: 62%; left: 22%; }
.talent-dot--c { top: 28%; right: 30%; }
.talent-dot--d { top: 66%; right: 24%; }

/* ===== PROCESO ===== */
.process {
  padding: var(--section-spacing) 0;
  background: var(--color-surface);
  border-top: 3px solid transparent;
  border-image: linear-gradient(to right, transparent, var(--naranja), transparent) 1;
  text-align: center;
}
.process-title {
  font-size: var(--fs-h2);
  line-height: var(--lh-title);
  color: var(--color-primary);
  font-weight: 800;
  margin-bottom: 12px;
}
.process-eyebrow {
  font-size: 1.1rem;
  color: var(--naranja);
  font-weight: 700;
  margin-bottom: 16px;
}
.process-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  align-items: stretch;
  padding-top: 44px;
}
/* Línea horizontal punteada que conecta los números (desktop) */
.process-grid::before {
  content: "";
  position: absolute;
  top: 22px;
  left: 12%;
  right: 12%;
  border-top: 2px dashed rgba(22, 138, 203, 0.18);
  z-index: 0;
}
.process-card {
  position: relative;
  z-index: 1;
  background: #fff;
  border: 1px solid var(--color-border);
  border-bottom: 4px solid var(--color-accent);
  border-radius: var(--radius-card);
  padding: 34px 24px 30px;
  text-align: center;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: visible;
}
/* Número en círculo naranja por encima de la tarjeta */
.process-num {
  position: absolute;
  top: -66px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  width: 37px; height: 37px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: #12466E;
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  box-shadow: 0 0 0 7px rgba(18, 70, 110, 0.12);
}
/* Línea vertical que baja del número a la tarjeta */
.process-connector {
  position: absolute;
  top: -22px;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 22px;
  background: rgba(18, 70, 110, 0.45);
  z-index: 2;
}
/* Ícono naranja directamente sobre el fondo blanco de la tarjeta */
.process-icon {
  width: 58px;
  height: 58px;
  flex: 0 0 58px;
  background: transparent;
  color: var(--naranja);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.process-icon img {
  width: 58px;
  height: 58px;
  object-fit: contain;
}
.process-card-title {
  color: var(--color-primary);
  font-size: var(--fs-h3);
  font-weight: 700;
  line-height: var(--lh-title);
  margin-bottom: 12px;
  min-height: 2.4em;
  display: flex;
  align-items: center;
}
.process-line {
  display: block;
  width: 40px;
  height: 3px;
  background: var(--naranja);
  border-radius: 2px;
  margin: 0 auto 16px;
}
.process-card-text {
  color: var(--color-text-muted);
  font-size: 14px;
  line-height: 1.55;
  margin-top: auto;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 860px) {
  .nav, .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 104px; left: 0; right: 0;
    background: #fff;
    padding: 16px 24px;
    gap: 4px;
    box-shadow: var(--sombra);
    border-top: 1px solid var(--color-border);
  }
  .nav.open a { padding: 12px 4px; min-height: 44px; display: flex; align-items: center; }
  .hero { flex-direction: column; min-height: 0; }
  .hero-bg { position: relative; height: 260px; }
  .hero-curve { display: none; }
  .hero-inner { padding: 40px 24px; background: #fff; }
  .hero-content { max-width: 100%; }
  .hero-content h1 { white-space: normal; }
  .about-grid { grid-template-columns: 1fr; }
  .about-text { max-width: 100%; padding: 40px 24px; order: 1; }
  .about-image { order: 2; min-height: 280px; }
  .about-image img {
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 20%);
    mask-image: linear-gradient(to bottom, transparent 0%, #000 20%);
  }
  .cards { grid-template-columns: 1fr; gap: 22px; }
  .talent { padding: 56px 0 48px; }
  .talent-avatar, .talent-dot { display: none; }
  .process { padding: 56px 0; }
  .process-title { margin-bottom: 34px; }
  .process-grid { grid-template-columns: 1fr; gap: 44px; padding-top: 24px; }
  .process-grid::before { display: none; }
  .process-connector { display: none; }
  .process-card { text-align: center; align-items: center; }
  .process-num { top: -30px; }
  .value-strip-inner { flex-direction: column; gap: 8px; }
  .value-strip-inner .value-sep { display: none; }
  .footer-inner {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    gap: 28px;
    padding: 40px 24px 30px;
  }
  .footer-brand-col { align-items: center; }
  .footer-logo { width: 190px; }
  .footer-tagline { max-width: 100%; margin-top: 6px; }
  .footer-contact { align-items: center; }
  .footer-nav { align-items: center; }
}

@media (min-width: 861px) and (max-width: 1024px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: repeat(2, 1fr); row-gap: 64px; }
  .process-grid::before { display: none; }
}

@media (max-width: 480px) {
  .brand-logo { height: 44px; width: auto; }
  .hero-content h1 { white-space: normal; font-size: 1.4rem; }
  .modal-card { padding: 28px 20px; max-width: 100%; }
  .contact-form { grid-template-columns: 1fr; }
}
