/* =========================================================
   TRIATECH Solutions — estilos propios (Bootstrap 5 + CSS)
   Paleta y tipografía calcadas del diseño original.
   ========================================================= */

:root {
  --navy: #0a2a4d;
  --navy-foreground: #f2f4f8;
  --azul: #0c447c;
  --morado: #3c3489;
  --cian: #1fd8e8;
  --cian-foreground: #0a2a4d;
  --crema: #eef1f6;

  --background: #ffffff;
  --foreground: #1b2430;
  --muted-foreground: #55606e;
  --border-color: #e2e6ec;

  --font-sans: 'Inter', system-ui, sans-serif;
  --font-heading: 'Space Grotesk', system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', monospace;

  /* Sistema de elevación y movimiento —consistente en todo el sitio */
  --shadow-sm: 0 1px 2px rgba(10,42,77,0.06), 0 1px 3px rgba(10,42,77,0.06);
  --shadow-md: 0 12px 28px -12px rgba(10,42,77,0.22);
  --shadow-lg: 0 24px 56px -20px rgba(10,42,77,0.32);
  --shadow-glow: 0 0 0 1px rgba(31,216,232,0.18), 0 16px 36px -14px rgba(31,216,232,0.3);
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

@media (prefers-reduced-motion: reduce) {
  * { transition-duration: 0.001ms !important; animation-duration: 0.001ms !important; }
}

/* Foco visible y consistente —accesibilidad */
a:focus-visible,
button:focus-visible,
.btn-cian:focus-visible,
.btn-outline-navy:focus-visible,
.tab-btn:focus-visible {
  outline: 2px solid var(--cian);
  outline-offset: 3px;
  border-radius: 2px;
}

body {
  font-family: var(--font-sans);
  color: var(--foreground);
  background: var(--background);
}

h1, h2, h3, h4, .font-heading {
  font-family: var(--font-heading);
}

a { text-decoration: none; }

.py-lg-6 { padding-top: 5.5rem; padding-bottom: 5.5rem; }

/* ---------- Utilidades de color reutilizadas ---------- */
.text-navy-foreground { color: var(--navy-foreground); }
.text-navy-foreground-70 { color: rgba(242, 244, 248, 0.75); }
.text-navy { color: var(--navy); }
.text-muted-70 { color: rgba(27, 36, 48, 0.7); }

.section-navy {
  position: relative;
  background:
    linear-gradient(rgba(31,216,232,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(31,216,232,0.04) 1px, transparent 1px),
    var(--navy);
  background-size: 44px 44px, 44px 44px, 100% 100%;
}
.section-navy::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 40%, rgba(31,216,232,0.05) 50%, transparent 60%);
  background-size: 260% 100%;
  animation: headerShine 9s linear infinite;
  pointer-events: none;
}
.section-navy > * { position: relative; z-index: 1; }
.section-light { background: var(--background); }
.section-crema { background: var(--crema); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.eyebrow::before {
  content: '';
  width: 1.1rem;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
  flex-shrink: 0;
}
.eyebrow-cian { color: var(--cian); }
.eyebrow-morado { color: var(--morado); }

.section-title {
  position: relative;
  padding-left: 1rem;
  font-weight: 700;
  color: var(--navy);
  font-size: 1.6rem;
}
.section-title::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.2em;
  bottom: 0.2em;
  width: 4px;
  border-radius: 2px;
  background: var(--cian);
}
@media (min-width: 992px) {
  .section-title { font-size: 2rem; }
}
.section-title.text-navy-foreground { color: var(--navy-foreground); }

/* ---------- Signature: reticle (mira de escaneo) ----------
   Motivo propio de marca: TRIATECH "encuentra la brecha" —
   las esquinas de mira aparecen en números, badges y tarjetas
   clave para reforzar la idea de detección/diagnóstico. */
.reticle {
  position: relative;
}
.reticle::before,
.reticle::after,
.reticle .rt-tl,
.reticle .rt-br {
  content: '';
  position: absolute;
  width: 0.85rem;
  height: 0.85rem;
  border-color: var(--cian);
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.reticle::before {
  top: -6px; left: -6px;
  border-top: 2px solid; border-left: 2px solid;
  transform: translate(4px, 4px);
}
.reticle::after {
  bottom: -6px; right: -6px;
  border-bottom: 2px solid; border-right: 2px solid;
  transform: translate(-4px, -4px);
}
.reticle:hover::before,
.reticle:hover::after,
.reticle.rt-static::before,
.reticle.rt-static::after {
  opacity: 1;
  transform: translate(0, 0);
}

.display-title {
  font-weight: 700;
  font-size: 1.9rem;
  line-height: 1.2;
  max-width: 46rem;
}
@media (min-width: 992px) {
  .display-title { font-size: 2.75rem; }
}

.lead-text {
  font-size: 1.125rem;
  line-height: 1.7;
}

/* ---------- Botones ---------- */
.btn-cian {
  background-color: var(--cian);
  color: var(--cian-foreground);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.7rem 1.5rem;
  border-radius: 0.5rem;
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  justify-content: center;
}
.btn-cian:hover { background-color: #17c2d1; color: var(--cian-foreground); }

.btn-outline-navy {
  border: 1px solid rgba(31, 216, 232, 0.4);
  color: var(--navy-foreground);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.7rem 1.5rem;
  border-radius: 0.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  justify-content: center;
  background: transparent;
}
.btn-outline-navy:hover { border-color: var(--cian); color: var(--cian); }

/* =========================================================
   NAVBAR
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1050;
  background: linear-gradient(120deg, rgba(10,42,77,0.97) 0%, rgba(13,55,96,0.97) 100%);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 20px -6px rgba(0,0,0,0.3);
  transition: box-shadow 0.25s var(--ease);
}
.site-header::before {
  content: '';
  display: block;
  height: 3px;
  background: linear-gradient(90deg, var(--azul), var(--morado), var(--cian));
}
.site-header::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 35%, rgba(31,216,232,0.08) 50%, transparent 65%);
  background-size: 260% 100%;
  animation: headerShine 7s linear infinite;
  pointer-events: none;
}
@keyframes headerShine {
  0% { background-position: 130% 0; }
  100% { background-position: -130% 0; }
}
.site-header .navbar { position: relative; z-index: 1; }
.site-header.is-scrolled {
  box-shadow: 0 8px 28px -6px rgba(0,0,0,0.45);
  border-bottom-color: rgba(31,216,232,0.15);
}
.site-header .navbar { padding: 0.4rem 0; transition: padding 0.25s var(--ease); }
.site-header.is-scrolled .navbar { padding: 0.15rem 0; }
.site-header.is-scrolled .logo-navbar { height: clamp(32px, 7vw, 64px); }
.site-header .navbar-brand {
  padding: 0;
  display: flex;
  align-items: center;
  flex-shrink: 0;
  max-width: 60%;
}
.logo-navbar {
  height: clamp(38px, 9vw, 100px);
  width: auto;
  max-width: 100%;
  object-fit: contain;
  display: block;
  transition: height 0.25s var(--ease);
}

.brand-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.5rem;
  background: var(--cian);
  color: var(--cian-foreground);
  font-size: 1.1rem;
}

.brand-text {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.1;
  color: var(--navy-foreground);
}
.brand-sub {
  display: block;
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: var(--cian);
}

.site-header .nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(242, 244, 248, 0.85);
  font-weight: 500;
  font-size: 0.9rem;
  padding: 0.55rem 1rem;
  border-radius: 0.6rem;
  border: 1px solid transparent;
  transition: color 0.2s var(--ease), background-color 0.2s var(--ease), box-shadow 0.2s var(--ease), transform 0.2s var(--ease), border-color 0.2s var(--ease);
}
.site-header .nav-link i { font-size: 0.85rem; opacity: 0.8; transition: transform 0.2s var(--ease); }

/* En reposo, sin fondo —el color solo aparece con el hover/active */

.site-header .nav-link.active {
  color: var(--cian);
  border-color: rgba(31,216,232,0.35);
}
.site-header .nav-link:hover,
.site-header .nav-link.show {
  color: var(--cian);
  background-color: rgba(31,216,232,0.18) !important;
  border-color: rgba(31,216,232,0.5);
  box-shadow: 0 0 0 1px rgba(31,216,232,0.25), 0 10px 22px -8px rgba(31,216,232,0.55);
  transform: translateY(-2px) scale(1.06);
}
.site-header .nav-link:hover i { transform: scale(1.15); }
.site-header .dropdown-toggle::after { transition: transform 0.25s var(--ease); }
.site-header .dropdown-toggle.show::after,
.site-header .dropdown-toggle[aria-expanded="true"]::after {
  transform: rotate(180deg);
}

.site-header .dropdown-menu {
  background: var(--navy);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0.6rem;
  padding: 0;
  overflow: hidden;
  min-width: 19rem;
  max-width: 90vw;
  box-shadow: var(--shadow-lg);
}
.site-header .dropdown-menu.show {
  animation: dropdownIn 0.2s var(--ease);
}
@media (max-width: 767.98px) {
  .site-header .dropdown-menu { min-width: 100%; }
}
@keyframes dropdownIn {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}
.site-header .dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  white-space: normal;
  padding: 0.85rem 1.1rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  border-left: 2px solid transparent;
  color: var(--navy-foreground) !important;
  transition: background-color 0.18s var(--ease), border-color 0.18s var(--ease);
}
.site-header .dropdown-item:last-child { border-bottom: none; }
.site-header .dropdown-item:hover,
.site-header .dropdown-item.active {
  background: rgba(31,216,232,0.1);
  border-left-color: var(--cian);
  color: var(--navy-foreground) !important;
}
.dropdown-item-icon {
  flex-shrink: 0;
  width: 2.3rem; height: 2.3rem;
  border-radius: 0.55rem;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.05rem;
  transition: transform 0.18s var(--ease), filter 0.18s var(--ease);
}
.site-header .dropdown-item:hover .dropdown-item-icon {
  transform: scale(1.1) rotate(-4deg);
  filter: brightness(1.15);
}
.dropdown-item-text { min-width: 0; }
.dropdown-item-title {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--navy-foreground) !important;
}
.dropdown-item-desc {
  display: block;
  font-size: 0.75rem;
  color: rgba(242, 244, 248, 0.6) !important;
  margin-top: 0.15rem;
  line-height: 1.4;
}

.navbar-toggler {
  color: var(--navy-foreground);
  border: none;
  font-size: 1.5rem;
  background: transparent;
}
.navbar-toggler:focus { box-shadow: none; }

@media (max-width: 991.98px) {
  .site-header .navbar-collapse {
    background: var(--navy);
    margin-top: 1rem;
    padding: 1rem 0 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }
  .site-header .dropdown-menu {
    position: static !important;
    transform: none !important;
    margin-top: 0.25rem;
  }
}

/* =========================================================
   HERO (home)
   ========================================================= */
.hero-section {
  position: relative;
  background-color: var(--navy);
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('../img/hero-cyber.png');
  background-size: cover;
  background-position: center;
  z-index: 0;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, var(--navy) 0%, rgba(10,42,77,0.9) 45%, rgba(10,42,77,0.6) 100%);
  z-index: 0;
}
.hero-content { position: relative; z-index: 1; padding: 5.5rem 0; }

/* ---------- Panel visual flotante del hero (mini dashboard) ---------- */
.hero-panel {
  position: relative;
  border-radius: 1rem;
  background: rgba(13, 30, 51, 0.75);
  border: 1px solid rgba(31,216,232,0.25);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(6px);
  overflow: hidden;
  animation: heroPanelFloat 5s ease-in-out infinite;
  transition: box-shadow 0.3s var(--ease), border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.hero-panel:hover {
  border-color: rgba(31,216,232,0.55);
  box-shadow: var(--shadow-glow), var(--shadow-lg);
}
.hero-panel::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  height: 40%;
  background: linear-gradient(to bottom, transparent, rgba(31,216,232,0.12), transparent);
  animation: heroPanelScan 4s linear infinite;
  pointer-events: none;
}
@keyframes heroPanelScan {
  0% { top: -40%; }
  100% { top: 100%; }
}
@keyframes heroPanelFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
.hero-panel-topbar {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.85rem 1.1rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
}
.hero-panel-dot { width: 0.55rem; height: 0.55rem; border-radius: 50%; background: rgba(255,255,255,0.2); }
.hero-panel-dot:first-child { background: #dc3545; }
.hero-panel-dot:nth-child(2) { background: #ffc107; }
.hero-panel-dot:nth-child(3) { background: #28a745; }
.hero-panel-label {
  margin-left: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: rgba(242,244,248,0.6);
  letter-spacing: 0.04em;
}
.hero-panel-body { padding: 1.1rem; position: relative; z-index: 1; }
.hero-panel-row {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.65rem 0.7rem 0.65rem 0.85rem;
  border-radius: 0.6rem;
  border-left: 3px solid rgba(31,216,232,0.4);
  font-size: 0.88rem;
  color: var(--navy-foreground);
  transition: background-color 0.2s var(--ease), transform 0.2s var(--ease), border-color 0.2s var(--ease);
}
.hero-panel-row.is-warn { border-left-color: #ffc107; }
.hero-panel-row:hover { background: rgba(31,216,232,0.1); transform: translateX(5px); }
.hero-panel-row-icon {
  flex-shrink: 0;
  width: 2.1rem; height: 2.1rem;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(31,216,232,0.15);
  transition: transform 0.2s var(--ease), background-color 0.2s var(--ease);
}
.hero-panel-row.is-warn .hero-panel-row-icon { background: rgba(255,193,7,0.15); }
.hero-panel-row-icon i { color: var(--cian); font-size: 1rem; }
.hero-panel-row.is-warn .hero-panel-row-icon i { color: #ffc107; }
.hero-panel-row:hover .hero-panel-row-icon { transform: scale(1.15) rotate(-8deg); }
.hero-panel-row-label { flex: 1; }
.hero-panel-badge {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  border-radius: 0.3rem;
  padding: 0.25rem 0.55rem;
}
.hero-panel-badge-ok { background: rgba(31,216,232,0.15); color: var(--cian); box-shadow: 0 0 0 1px rgba(31,216,232,0.3); }
.hero-panel-badge-warn { background: rgba(255,193,7,0.15); color: #ffc107; box-shadow: 0 0 0 1px rgba(255,193,7,0.3); }
.hero-panel-score { margin-top: 0.8rem; padding: 0.9rem 0.9rem 0.2rem; border-top: 1px solid rgba(255,255,255,0.08); }
.hero-panel-score-label { font-size: 0.78rem; color: rgba(242,244,248,0.6); }
.hero-panel-score-value { font-family: var(--font-heading); font-weight: 700; color: var(--cian); font-size: 0.95rem; }
.hero-panel-score-track {
  position: relative;
  margin-top: 0.5rem;
  height: 0.5rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  overflow: hidden;
}
.hero-panel-score-fill {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--azul), var(--cian));
  box-shadow: 0 0 10px rgba(31,216,232,0.6);
}
@media (min-width: 992px) { .hero-content { padding: 7.5rem 0; } }

.hero-stats {
  margin-top: 3.2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  max-width: 46rem;
}
.hero-stat-value {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--cian);
}
.hero-stat-label {
  font-size: 0.75rem;
  color: rgba(242, 244, 248, 0.7);
  margin-top: 0.2rem;
}

/* =========================================================
   JOURNEY (Proteger / Optimizar / Transformar)
   ========================================================= */
.journey-frame {
  border-radius: 1rem;
  border: 1px solid var(--border-color);
  background: #fff;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.journey-topbar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(120deg, var(--navy) 0%, #0d3760 100%);
  border-bottom: 1px solid var(--border-color);
  padding: 0.7rem 1.2rem;
}
.journey-dot {
  width: 0.7rem; height: 0.7rem;
  border-radius: 50%;
  background: rgba(242, 244, 248, 0.3);
}
.journey-topbar-label {
  margin-left: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  color: rgba(242, 244, 248, 0.7);
  letter-spacing: 0.03em;
}

.journey-rail { position: relative; margin-bottom: 2.5rem; }
.journey-rail-line {
  position: absolute;
  left: 0; right: 0; top: 50%;
  height: 3px;
  transform: translateY(-50%);
  background: linear-gradient(90deg, var(--azul), var(--morado), var(--cian));
  background-size: 200% 100%;
  border-radius: 2px;
  animation: journeyFlow 4s linear infinite;
}
@keyframes journeyFlow {
  0% { background-position: 200% 0; }
  100% { background-position: 0 0; }
}
.journey-rail-dot {
  width: 3.75rem; height: 3.75rem;
  border-radius: 50%;
  border: 4px solid #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--navy-foreground);
  box-shadow: 0 4px 14px rgba(0,0,0,0.2), 0 0 0 5px rgba(255,255,255,0.5);
  position: relative;
  z-index: 1;
  animation: journeyDotPulse 2.6s ease-in-out infinite;
}
.journey-rail-dot:nth-child(2) { animation-delay: 0.3s; }
.journey-rail-dot:nth-child(3) { animation-delay: 0.6s; }
@keyframes journeyDotPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}

.stage-card {
  position: relative;
  height: 100%;
  border-radius: 0.85rem;
  border: 1px solid var(--border-color);
  background: linear-gradient(165deg, #fff 0%, var(--crema) 100%);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}
.stage-card:hover {
  box-shadow: 0 0 0 1px var(--stage-accent, var(--cian)), var(--shadow-lg);
}
.stage-icon {
  width: 3.1rem; height: 3.1rem;
  border-radius: 0.7rem;
  display: flex; align-items: center; justify-content: center;
  color: var(--navy-foreground);
  font-size: 1.3rem;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
  background-image: linear-gradient(160deg, rgba(255,255,255,0.3), transparent);
}
.stage-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
}
.stage-title { font-weight: 700; color: var(--navy); font-size: 1.25rem; margin: 0; }
.stage-subtitle { font-size: 0.9rem; font-weight: 500; color: rgba(27,36,48,0.7); }
.stage-items { flex: 1; font-size: 0.9rem; color: rgba(27,36,48,0.8); }
.stage-items li { display: flex; align-items: flex-start; gap: 0.6rem; margin-bottom: 0.5rem; }
.stage-icon-check {
  margin-top: 0.15rem;
  font-size: 0.95rem;
  flex-shrink: 0;
  transition: transform 0.2s var(--ease);
}
.stage-items li:hover .stage-icon-check { transform: scale(1.25) rotate(-6deg); }
.stage-outcome {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 1rem;
  border-left: 3px solid;
  background: #fff;
  padding: 0.8rem 1rem;
  border-radius: 0.4rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--navy);
  box-shadow: var(--shadow-sm);
}
.stage-outcome i { font-size: 1rem; flex-shrink: 0; }
.stage-arrow {
  display: none;
}
@media (min-width: 992px) {
  .stage-arrow {
    display: flex;
    position: absolute;
    right: -1rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 2.2rem; height: 2.2rem;
    border-radius: 50%;
    color: var(--navy-foreground);
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 16px -4px rgba(0,0,0,0.35), 0 0 0 4px rgba(255,255,255,0.6);
    animation: stageArrowPulse 2.4s ease-in-out infinite;
  }
}
@keyframes stageArrowPulse {
  0%, 100% { transform: translateY(-50%) scale(1); }
  50% { transform: translateY(-50%) scale(1.12); }
}

/* =========================================================
   INTERACTIVE TABS (Encuentra tu problema)
   ========================================================= */
.tabs-section { background: var(--navy); }
.tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  border-radius: 999px;
  padding: 0.65rem 1.3rem;
  font-size: 0.88rem;
  font-weight: 600;
  border: 1px solid rgba(255,255,255,0.15);
  color: rgba(242, 244, 248, 0.7);
  background: rgba(255,255,255,0.03);
  box-shadow: var(--shadow-sm);
}
.tab-btn i { font-size: 0.95rem; }
.tab-btn:hover { border-color: rgba(31,216,232,0.6); color: var(--cian); box-shadow: var(--shadow-glow); }
.tab-btn.active { background: var(--cian); color: var(--cian-foreground); border-color: var(--cian); box-shadow: 0 8px 20px -6px rgba(31,216,232,0.6); }

.tab-panel {
  position: relative;
  border-radius: 1rem;
  border: 1px solid rgba(31,216,232,0.15);
  background: rgba(255,255,255,0.03);
  padding: 1.5rem;
  box-shadow: var(--shadow-lg);
}
@media (min-width: 992px) { .tab-panel { padding: 2.5rem; } }

.tab-solution-box {
  margin-top: 1.5rem;
  border-radius: 0.85rem;
  border: 1px solid rgba(31,216,232,0.2);
  background: var(--navy);
  padding: 1.2rem;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease), transform 0.25s var(--ease);
}
.tab-solution-box:hover {
  border-color: rgba(31,216,232,0.5);
  box-shadow: var(--shadow-glow);
  transform: translateY(-3px);
}
.tab-solution-title-row { display: flex; align-items: center; gap: 0.5rem; }
.tab-solution-title-row i { color: var(--cian); font-size: 1.1rem; }
.tab-solution-result {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
  color: var(--cian);
  font-weight: 500;
  font-size: 0.9rem;
  margin-top: 0.6rem;
}
.tab-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--cian);
  font-weight: 600;
  font-size: 0.9rem;
  margin-top: 1.5rem;
}
.tab-link:hover { color: var(--navy-foreground); }
.tab-pain-icon {
  color: #ffc107;
  font-size: 1rem;
  margin-right: 0.4rem;
}

.tab-visual {
  position: relative;
  border-radius: 0.85rem;
  background: linear-gradient(to bottom right, rgba(12,68,124,0.4), rgba(60,52,137,0.3));
  padding: 1.5rem;
  overflow: hidden;
  border: 1px solid rgba(31,216,232,0.15);
  transition: box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
}
.tab-visual::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  height: 35%;
  background: linear-gradient(to bottom, transparent, rgba(31,216,232,0.1), transparent);
  animation: heroPanelScan 5s linear infinite;
  pointer-events: none;
}
.tab-visual:hover { box-shadow: var(--shadow-glow); border-color: rgba(31,216,232,0.35); }
@media (min-width: 992px) { .tab-visual { padding: 2rem; } }
.tab-visual-title {
  position: relative;
  z-index: 1;
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--cian);
}
.tab-step {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 1rem;
  border-radius: 0.6rem;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(10,42,77,0.6);
  padding: 0.7rem 1rem;
  margin-bottom: 0.7rem;
  color: var(--navy-foreground);
  font-size: 0.9rem;
  font-weight: 500;
  transition: transform 0.2s var(--ease), border-color 0.2s var(--ease), background-color 0.2s var(--ease);
}
.tab-step:hover {
  transform: translateX(6px);
  border-color: rgba(31,216,232,0.4);
  background: rgba(31,216,232,0.08);
}
.tab-step-number {
  width: 2rem; height: 2rem;
  border-radius: 50%;
  background: var(--cian);
  color: var(--cian-foreground);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
  transition: transform 0.2s var(--ease);
}
.tab-step:hover .tab-step-number { transform: scale(1.15) rotate(-6deg); }

/* =========================================================
   MODULAR PROGRAM
   ========================================================= */
.module-card {
  height: 100%;
  border-radius: 0.9rem;
  border: 1px solid var(--border-color);
  background: #fff;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.module-card-head {
  position: relative;
  height: 5.5rem;
  display: flex;
  align-items: center;
  padding: 0 1.1rem;
  overflow: hidden;
}
.module-card-head .module-number {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.8rem;
  color: rgba(255,255,255,0.95);
  position: relative;
  z-index: 1;
}
.module-head-icon {
  position: absolute;
  right: -0.5rem;
  bottom: -0.6rem;
  font-size: 3.4rem;
  color: rgba(255,255,255,0.18);
  transition: transform 0.35s var(--ease), color 0.35s var(--ease);
}
.module-card:hover .module-head-icon { transform: scale(1.15) rotate(-8deg); color: rgba(255,255,255,0.3); }
.module-card-body { padding: 1.2rem; display: flex; flex-direction: column; flex: 1; }
.module-tag {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--morado);
}
.module-title { font-weight: 700; color: var(--navy); font-size: 1rem; margin-top: 0.5rem; }
.module-detail { font-size: 0.8rem; color: rgba(27,36,48,0.7); flex: 1; margin-top: 0.4rem; }
.module-hours-block { border-top: 1px solid var(--border-color); padding-top: 0.7rem; margin-top: 0.8rem; }
.module-hours { font-family: var(--font-heading); font-weight: 700; color: var(--navy); font-size: 1.1rem; margin: 0; }
.module-hours-label { font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted-foreground); }

.modules-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.1rem;
}
@media (min-width: 576px) { .modules-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 992px) { .modules-grid { grid-template-columns: repeat(5, 1fr); } }

.accent-azul { background-color: var(--azul); color: var(--navy-foreground); }
.accent-morado { background-color: var(--morado); color: var(--navy-foreground); }
.accent-cian { background-color: var(--cian); color: var(--cian-foreground); }

.note-banner {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  border-radius: 0.6rem;
  border-left: 4px solid var(--cian);
  background: var(--crema);
  padding: 1rem 1.3rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--navy);
  box-shadow: var(--shadow-sm);
}
.note-banner i { color: var(--cian); font-size: 1.1rem; margin-top: 0.1rem; flex-shrink: 0; }

/* =========================================================
   RESULTS SHOWCASE
   ========================================================= */
.result-card {
  height: 100%;
  border-radius: 0.85rem;
  border: 1px solid var(--border-color);
  background: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.04);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
}
.result-sector-badge {
  border-radius: 999px;
  background: var(--navy);
  color: var(--navy-foreground);
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.25rem 0.7rem;
  white-space: nowrap;
}
.result-before { color: rgba(27,36,48,0.6); font-size: 0.9rem; }
.result-action { color: rgba(27,36,48,0.8); font-size: 0.9rem; display: flex; gap: 0.5rem; }
.result-outcome {
  margin-top: 1.2rem;
  background: rgba(31,216,232,0.15);
  border-radius: 0.6rem;
  padding: 0.7rem 1rem;
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--navy);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* =========================================================
   BRANDS
   ========================================================= */
.brands-section { border-top: 1px solid var(--border-color); border-bottom: 1px solid var(--border-color); background: var(--crema); }

.ally-featured-card {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  max-width: 42rem;
  margin: 0 auto;
  border-radius: 0.9rem;
  background: linear-gradient(120deg, var(--navy) 0%, #1a1a2e 100%);
  border: 1px solid rgba(220,53,69,0.4);
  padding: 1.4rem 1.7rem;
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
  animation: allyGlow 3.2s ease-in-out infinite;
}
@keyframes allyGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(220,53,69,0.25), var(--shadow-sm); }
  50% { box-shadow: 0 0 0 8px rgba(220,53,69,0), var(--shadow-md); }
}
.ally-featured-card:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: var(--shadow-lg);
  border-color: rgba(220,53,69,0.7);
  animation-play-state: paused;
}
.ally-featured-icon {
  flex-shrink: 0;
  width: 5rem; height: 5rem;
  border-radius: 0.9rem;
  background: #dc3545;
  color: #fff;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  transition: transform 0.25s var(--ease);
}
.ally-featured-card:hover .ally-featured-icon { transform: scale(1.1) rotate(-6deg); }
.ally-featured-logo-img { width: 100%; height: 100%; object-fit: cover; }
.ally-featured-text { flex: 1; min-width: 0; }
.ally-featured-title {
  display: block;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  color: #fff;
  letter-spacing: 0.01em;
}
.ally-featured-desc {
  display: block;
  font-size: 0.8rem;
  color: rgba(242,244,248,0.65);
  margin-top: 0.2rem;
}
.ally-featured-arrow { color: rgba(242,244,248,0.5); transition: transform 0.2s var(--ease), color 0.2s var(--ease); }
.ally-featured-card:hover .ally-featured-arrow { transform: translateX(4px); color: #dc3545; }

.brands-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
@media (min-width: 576px) { .brands-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 992px) { .brands-grid { grid-template-columns: repeat(4, 1fr); } }

.brand-badge-card {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 8rem;
  border-radius: 0.85rem;
  border: 1px solid var(--border-color);
  border-top: 3px solid var(--azul);
  background: #fff;
  padding: 0.9rem;
  cursor: pointer;
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
}
.brand-badge-card:nth-child(3n+2) { border-top-color: var(--morado); }
.brand-badge-card:nth-child(3n+3) { border-top-color: var(--cian); }
.brand-badge-card:hover {
  transform: scale(1.06) translateY(-5px);
  box-shadow: var(--shadow-glow);
}
.brand-logo-img {
  max-height: 5.2rem;
  max-width: 96%;
  width: auto;
  object-fit: contain;
  transition: transform 0.25s var(--ease);
}
.brand-badge-card:hover .brand-logo-img { transform: scale(1.1); }

.brand-monogram {
  width: 2.2rem; height: 2.2rem;
  border-radius: 50%;
  background: var(--navy);
  color: var(--cian);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: background-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.brand-badge-card:nth-child(3n+1) .brand-monogram { background: var(--azul); }
.brand-badge-card:nth-child(3n+2) .brand-monogram { background: var(--morado); }
.brand-badge-card:nth-child(3n+3) .brand-monogram { background: var(--cian); color: var(--cian-foreground); }
.brand-badge-card:hover .brand-monogram { transform: scale(1.12) rotate(-6deg); }
.brand-name {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  color: rgba(10,42,77,0.55);
  transition: color 0.25s var(--ease);
}
.brand-badge-card:hover .brand-name { color: var(--navy); }

/* =========================================================
   CTA BAND — Sesión de diagnóstico
   ========================================================= */
.cta-band { background: var(--navy); }
.cta-band-inner {
  border-radius: 1rem;
  background: linear-gradient(135deg, rgba(12,68,124,0.5), rgba(60,52,137,0.4));
  padding: 2rem;
  text-align: center;
}
@media (min-width: 992px) { .cta-band-inner { padding: 3.5rem 3rem; } }
.cta-band .eyebrow { justify-content: center; }
.cta-band-title {
  color: var(--navy-foreground);
  font-weight: 700;
  font-size: 1.4rem;
  max-width: 40rem;
  margin: 0 auto;
}
@media (min-width: 992px) { .cta-band-title { font-size: 1.9rem; } }
.cta-band-subtitle {
  color: rgba(242,244,248,0.75);
  margin-top: 0.8rem;
  max-width: 34rem;
  margin-left: auto;
  margin-right: auto;
}
.cta-badges-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.7rem;
  margin-top: 1.6rem;
}
.cta-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--navy-foreground);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 999px;
  padding: 0.4rem 0.9rem;
}
.cta-badge i { color: var(--cian); }
.cta-band-footer { margin-top: 2rem; }
.cta-contact-line {
  margin-top: 1rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: rgba(242,244,248,0.6);
}
.cta-contact-line a { color: rgba(242,244,248,0.8); }
.cta-contact-line a:hover { color: var(--cian); }
.cta-contact-line span { margin: 0 0.4rem; }

/* =========================================================
   SERVICE PAGE (páginas internas de servicio)
   ========================================================= */
.info-card {
  border-radius: 0.85rem;
  border: 1px solid var(--border-color);
  background: #fff;
  box-shadow: var(--shadow-sm);
  padding: 1.1rem 1.2rem;
  font-size: 0.9rem;
  color: rgba(27,36,48,0.8);
}
.info-card-icon {
  flex-shrink: 0;
  width: 2.4rem; height: 2.4rem;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.info-card:hover .info-card-icon,
.deliverable-item:hover .info-card-icon {
  transform: scale(1.15) rotate(-8deg);
  box-shadow: var(--shadow-glow);
}
.icon-morado { color: var(--morado); font-size: 1.4rem; }

.result-banner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  border-radius: 0.85rem;
  background: linear-gradient(120deg, var(--navy) 0%, #0d3760 100%);
  color: var(--cian);
  text-align: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.25rem;
  padding: 1.3rem 1.5rem;
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.result-banner i { font-size: 1.1rem; }

.deliverable-item {
  border-radius: 0.6rem;
  border: 1px solid var(--border-color);
  background: #fff;
  box-shadow: var(--shadow-sm);
  padding: 0.9rem 1.1rem;
  font-size: 0.9rem;
  color: rgba(27,36,48,0.8);
}

.service-hero-icon {
  width: 4rem; height: 4rem;
  border-radius: 1rem;
  background: rgba(31,216,232,0.14);
  border: 1px solid rgba(31,216,232,0.35);
  color: var(--cian);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem;
  box-shadow: var(--shadow-glow);
  transition: transform 0.25s var(--ease);
  animation: heroPanelFloat 4.5s ease-in-out infinite;
}
.service-hero-icon:hover { transform: scale(1.1) rotate(-6deg); animation-play-state: paused; }

.case-card {
  border-radius: 1rem;
  border: 1px solid var(--border-color);
  background: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.04);
  overflow: hidden;
}
.case-card-header {
  background: var(--navy);
  color: var(--cian);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.9rem 1.3rem;
}
.case-card-body { padding: 1.5rem; }
.case-card-body h3 { color: var(--navy); font-weight: 700; font-size: 1.2rem; }
.case-card-body p { color: rgba(27,36,48,0.7); margin-top: 0.8rem; }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer { background: var(--navy); color: var(--navy-foreground); }
.footer-heading {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--cian);
}
.footer-muted { color: rgba(242,244,248,0.7); font-size: 0.9rem; }
.footer-tagline { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.15em; color: var(--cian); }
.footer-link { color: rgba(242,244,248,0.7); font-size: 0.9rem; }
.footer-link:hover { color: var(--cian); }
.footer-icon { color: var(--cian); }
.footer-fineprint { font-size: 0.75rem; color: rgba(242,244,248,0.5); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); font-size: 0.75rem; color: rgba(242,244,248,0.5); }

/* =========================================================
   DIFERENCIADORES (home)
   ========================================================= */
.diff-statement {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--navy);
  font-size: 1.5rem;
  line-height: 1.35;
}
@media (min-width: 992px) { .diff-statement { font-size: 1.9rem; } }

.diff-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
@media (min-width: 768px) { .diff-grid { grid-template-columns: repeat(2, 1fr); } }

.diff-card {
  position: relative;
  border-radius: 1rem;
  border: 1px solid var(--border-color);
  background: linear-gradient(160deg, #fff 0%, var(--crema) 100%);
  padding: 1.7rem;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}
.diff-topbar {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  border-radius: 1rem 1rem 0 0;
  background: currentColor;
  opacity: 0.35;
}
.diff-card:nth-child(4n+1) { color: var(--azul); }
.diff-card:nth-child(4n+2) { color: var(--morado); }
.diff-card:nth-child(4n+3) { color: var(--cian); }
.diff-card:nth-child(4n+4) { color: var(--azul); }
.diff-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: var(--shadow-lg);
  border-color: currentColor;
}
.diff-icon {
  flex-shrink: 0;
  width: 3rem; height: 3rem;
  border-radius: 0.7rem;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.diff-card:hover .diff-icon { transform: scale(1.12) rotate(-6deg); box-shadow: var(--shadow-glow); }
.diff-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.75rem;
  color: rgba(27,36,48,0.5);
  background: rgba(27,36,48,0.06);
  width: 2rem;
  height: 2rem;
  border-radius: 0.4rem;
}
.diff-title {
  font-weight: 700;
  color: var(--navy);
  font-size: 1.15rem;
  margin-top: 1.1rem;
}
.diff-detail { color: rgba(27,36,48,0.7); font-size: 0.92rem; line-height: 1.6; }

/* =========================================================
   WHY-GRID (Etapa Optimizar / Transformar)
   ========================================================= */
.why-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 768px) { .why-grid { grid-template-columns: repeat(2, 1fr); } }

.why-card { display: flex; gap: 1rem; align-items: flex-start; }
.why-icon {
  flex-shrink: 0;
  width: 3rem; height: 3rem;
  border-radius: 0.6rem;
  background: var(--navy);
  color: var(--cian);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
}
.why-title { font-weight: 700; color: var(--navy); font-size: 1.05rem; margin: 0 0 0.4rem; }
.why-detail { color: rgba(27,36,48,0.7); font-size: 0.9rem; line-height: 1.6; }

/* =========================================================
   STEP TIMELINE (pasos 01–05)
   ========================================================= */
.step-timeline {
  position: relative;
  margin: 0;
  padding: 0;
}
.step-item {
  position: relative;
  display: flex;
  gap: 1.3rem;
  padding-bottom: 2rem;
}
.step-item:last-child { padding-bottom: 0; }
.step-item::before {
  content: '';
  position: absolute;
  left: 1.35rem;
  top: 3rem;
  bottom: 0;
  width: 2px;
  background: var(--border-color);
}
.step-item:last-child::before { display: none; }
.step-number {
  flex-shrink: 0;
  width: 2.7rem; height: 2.7rem;
  border-radius: 50%;
  background: var(--navy);
  color: var(--cian);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  font-size: 0.95rem;
  position: relative;
  z-index: 1;
}
.step-title { font-weight: 700; color: var(--navy); font-size: 1.1rem; margin: 0 0 0.4rem; }
.step-deliverable {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--morado);
  background: rgba(60,52,137,0.08);
  border-radius: 0.4rem;
  padding: 0.3rem 0.6rem;
  margin-bottom: 0.6rem;
}
.step-detail { color: rgba(27,36,48,0.7); font-size: 0.9rem; line-height: 1.6; }

.section-title-light {
  font-weight: 700;
  color: var(--navy-foreground);
  font-size: 1.6rem;
  position: relative;
  padding-left: 1rem;
}
.section-title-light::before {
  content: '';
  position: absolute;
  left: 0; top: 0.2em; bottom: 0.2em;
  width: 4px; border-radius: 2px;
  background: var(--cian);
}
@media (min-width: 992px) { .section-title-light { font-size: 2rem; } }

/* =========================================================
   TRIAWARENESS — stats, riesgos, planes
   ========================================================= */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
@media (min-width: 768px) { .stat-grid { grid-template-columns: repeat(4, 1fr); } }
.stat-card {
  border-radius: 0.75rem;
  background: #fff;
  border: 1px solid var(--border-color);
  padding: 1.3rem 1rem;
  text-align: center;
}
.stat-value { font-family: var(--font-heading); font-weight: 700; font-size: 1.7rem; color: var(--navy); }
.stat-label { font-size: 0.78rem; color: rgba(27,36,48,0.65); margin-top: 0.3rem; }

.risk-list { display: flex; flex-direction: column; gap: 0.7rem; }
.risk-item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: 0.6rem;
  padding: 0.9rem 1.2rem;
  background: #fff;
}
.risk-item.risk-critical { border-color: rgba(220, 53, 69, 0.4); background: rgba(220, 53, 69, 0.04); }
.risk-label { font-weight: 700; color: var(--navy); font-size: 0.95rem; flex-shrink: 0; min-width: 9rem; display: inline-flex; align-items: center; gap: 0.5rem; }
.risk-tag {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  color: #fff;
  background: #dc3545;
  border-radius: 0.3rem;
  padding: 0.1rem 0.4rem;
}
.risk-detail { color: rgba(27,36,48,0.65); font-size: 0.88rem; }

.plan-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
@media (min-width: 768px) { .plan-grid { grid-template-columns: repeat(3, 1fr); } }
.plan-card {
  border-radius: 0.85rem;
  border: 1px solid var(--border-color);
  background: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.04);
  padding: 1.5rem;
}
.plan-step {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--cian-foreground);
  background: var(--cian);
  border-radius: 0.3rem;
  padding: 0.2rem 0.5rem;
}
.plan-name { font-weight: 700; color: var(--navy); font-size: 1.25rem; margin: 0.8rem 0 0.2rem; }
.plan-tag { font-size: 0.85rem; color: var(--morado); font-weight: 600; }
.plan-hours { font-family: var(--font-heading); font-weight: 700; color: var(--navy); font-size: 1.1rem; margin: 0.6rem 0; }
.plan-items { margin-top: 1rem; }
.plan-items li {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  font-size: 0.88rem;
  color: rgba(27,36,48,0.75);
  margin-bottom: 0.55rem;
}
.plan-items i { color: var(--navy); margin-top: 0.15rem; flex-shrink: 0; }

/* =========================================================
   HACKER RANGERS
   ========================================================= */
.hr-section { background: linear-gradient(160deg, var(--navy) 0%, #0d3760 100%); }

.hr-partner-pill {
  display: inline-block;
  background: #dc3545;
  color: #fff;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  border-radius: 999px;
  padding: 0.5rem 1.1rem;
  box-shadow: 0 8px 20px -8px rgba(220,53,69,0.6);
}
.hr-wordmark {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 2.1rem;
  letter-spacing: 0.02em;
  color: #fff;
  display: inline-block;
}
@media (min-width: 992px) { .hr-wordmark { font-size: 2.8rem; } }
.hr-wordmark-accent { color: #ef5164; }

.hr-verification {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--cian);
  font-weight: 500;
  border: 1px solid rgba(31,216,232,0.3);
  border-radius: 999px;
  padding: 0.5rem 1rem;
}
.hr-features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 768px) { .hr-features-grid { grid-template-columns: repeat(3, 1fr); } }
.hr-feature {
  border-radius: 0.7rem;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.04);
  padding: 1.1rem 1.3rem;
}
.hr-feature-icon { color: var(--cian); font-size: 1.3rem; margin-bottom: 0.6rem; display: block; }
.hr-feature-title { font-weight: 700; color: var(--navy-foreground); font-size: 0.95rem; margin-bottom: 0.4rem; }
.hr-feature-detail { color: rgba(242,244,248,0.65); font-size: 0.85rem; line-height: 1.55; }

.hr-badges-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.9rem;
}
@media (min-width: 768px) { .hr-badges-row { grid-template-columns: repeat(2, 1fr); } }
.hr-badge {
  border-left: 3px solid var(--cian);
  padding: 0.3rem 0 0.3rem 1rem;
}
.hr-badge-label { display: block; font-weight: 700; color: var(--cian); font-size: 0.85rem; }
.hr-badge-detail { display: block; color: rgba(242,244,248,0.6); font-size: 0.82rem; margin-top: 0.2rem; }

.hr-mobile {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: rgba(242,244,248,0.55);
}
.hr-mobile i { color: var(--cian); }

/* ---------- Link "Conoce más" dentro de las stage-card del home ---------- */
.stage-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--navy);
  margin-top: 1rem;
}
.stage-link:hover { color: var(--morado); }
.stage-link i { transition: transform 0.2s var(--ease); }
.stage-link:hover i { transform: translateX(4px); }
.stage-card:hover .stage-link { color: var(--morado); }
.stage-card:hover .stage-link i { transform: translateX(4px); }

/* =========================================================
   MOVIMIENTO Y HOVER GLOBAL — mismo lenguaje en toda la web
   ========================================================= */

/* Tarjetas grandes: crecen levemente y ganan sombra */
.module-card, .case-card, .plan-card {
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
}
.module-card:hover, .case-card:hover, .plan-card:hover {
  transform: translateY(-6px) scale(1.015);
  box-shadow: var(--shadow-md);
  border-color: rgba(31,216,232,0.35);
}

/* Tarjetas pequeñas de grid: crecen sutil */
.info-card, .deliverable-item, .stat-card, .diff-card, .why-card, .hr-feature {
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), border-color 0.2s var(--ease), background-color 0.2s var(--ease);
}
.info-card:hover, .deliverable-item:hover, .stat-card:hover, .diff-card:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: var(--shadow-md);
  border-color: rgba(31,216,232,0.4);
  background-color: rgba(31,216,232,0.04);
}
.why-card:hover .why-icon {
  background: var(--cian);
  color: var(--cian-foreground);
  transform: scale(1.1);
}
.why-icon { transition: transform 0.2s var(--ease), background-color 0.2s var(--ease), color 0.2s var(--ease); }
.hr-feature:hover {
  transform: translateY(-4px) scale(1.02);
  background: rgba(31,216,232,0.08);
  border-color: rgba(31,216,232,0.35);
}

/* Números/badges: crecen y cambian de color al hover de su tarjeta padre */
/* diff-number ya no cambia en hover —el protagonismo lo tiene diff-icon */
.plan-card:hover .plan-step { transform: scale(1.08); }
.plan-step { display: inline-block; transition: transform 0.2s var(--ease); }
.module-card:hover .module-number { transform: scale(1.12) rotate(-4deg); }
.module-number { transition: transform 0.25s var(--ease); }

/* Íconos de servicios/pasos: giran o crecen levemente */
.step-item:hover .step-number {
  background: var(--cian);
  color: var(--cian-foreground);
  transform: scale(1.12);
}
.step-number { transition: transform 0.2s var(--ease), background-color 0.2s var(--ease), color 0.2s var(--ease); }

/* Tabs: crecen al pasar el mouse, no solo al activarse */
.tab-btn { transition: transform 0.2s var(--ease), background-color 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease); }
.tab-btn:hover:not(.active) { transform: translateY(-2px) scale(1.03); }

/* Botones: elevación + sombra cian + flecha que avanza */
.btn-cian {
  box-shadow: 0 8px 20px -8px rgba(31,216,232,0.55);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background-color 0.2s var(--ease);
}
.btn-cian i { transition: transform 0.2s var(--ease); }
.btn-cian:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 14px 28px -8px rgba(31,216,232,0.65);
}
.btn-cian:hover i { transform: translateX(4px); }
.btn-cian:active { transform: translateY(-1px) scale(0.98); }

.btn-outline-navy {
  transition: transform 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease), background-color 0.2s var(--ease);
}
.btn-outline-navy i { transition: transform 0.2s var(--ease); }
.btn-outline-navy:hover {
  transform: translateY(-3px) scale(1.03);
  background: rgba(31,216,232,0.08);
}
.btn-outline-navy:hover i { transform: translateX(4px); }

/* Links de texto con flecha: la flecha avanza al hover */
.tab-link, .proteger-link { transition: color 0.2s var(--ease); }
.tab-link i, .proteger-link i { transition: transform 0.2s var(--ease); }
.tab-link:hover i, .proteger-card:hover .proteger-link i { transform: translateX(4px); }

/* Nav links: subrayado que crece desde el centro */
.site-header .nav-link {
  position: relative;
  transition: color 0.2s var(--ease), background-color 0.2s var(--ease), box-shadow 0.2s var(--ease), transform 0.2s var(--ease);
}
.site-header .nav-link:not(.dropdown-toggle)::after {
  content: '';
  position: absolute;
  left: 50%; right: 50%;
  bottom: 0.15rem;
  height: 2px;
  background: var(--cian);
  transition: left 0.2s var(--ease), right 0.2s var(--ease);
}
.site-header .nav-link:hover:not(.dropdown-toggle)::after,
.site-header .nav-link.active:not(.dropdown-toggle)::after {
  left: 0.9rem; right: 0.9rem;
}

/* Logo: leve crecimiento al pasar el mouse */
.navbar-brand { transition: transform 0.2s var(--ease); }
.navbar-brand:hover { transform: scale(1.04); }

/* Módulos y planes: ícono/check dentro de la lista se anima */
.plan-items i, .solution-items i { transition: transform 0.2s var(--ease); }
.plan-card:hover .plan-items i { transform: scale(1.15); }

/* Journey: la tarjeta completa reacciona */
.stage-card { transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease); }
.stage-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.stage-card:hover .stage-icon { transform: scale(1.1) rotate(-4deg); }
.stage-icon { transition: transform 0.25s var(--ease); }

/* =========================================================
   SOCIOS ESTRATÉGICOS (página aliados-estrategicos.php)
   ========================================================= */
.partner-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 768px) { .partner-grid { grid-template-columns: repeat(3, 1fr); } }
.partner-card {
  display: block;
  border-radius: 1rem;
  border: 1px solid var(--border-color);
  border-top: 4px solid var(--azul);
  background: #fff;
  padding: 1.8rem;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
}
.partner-card:nth-child(2) { border-top-color: var(--morado); }
.partner-card:nth-child(3) { border-top-color: var(--cian); }
.partner-card:hover {
  transform: translateY(-8px) scale(1.015);
  box-shadow: var(--shadow-lg);
}
.partner-logo-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 8.5rem;
  border-radius: 0.7rem;
  background: var(--crema);
  padding: 0.8rem;
  margin-bottom: 1.2rem;
  transition: background-color 0.25s var(--ease);
}
.partner-card:hover .partner-logo-wrap { background: #fff; box-shadow: inset 0 0 0 1px var(--border-color); }
.partner-logo-img {
  max-height: 6.5rem;
  max-width: 92%;
  object-fit: contain;
  transition: transform 0.25s var(--ease);
}
.partner-card:hover .partner-logo-img { transform: scale(1.08); }
.partner-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--morado);
  background: rgba(60,52,137,0.08);
  border-radius: 0.3rem;
  padding: 0.3rem 0.65rem;
}
.partner-detail { color: rgba(27,36,48,0.75); font-size: 0.95rem; margin-top: 0.8rem; line-height: 1.6; }
.partner-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--navy);
  background: transparent;
  border: 1.5px solid var(--navy);
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
  font-weight: 700;
  font-size: 0.82rem;
  margin-top: 1.2rem;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.partner-card:hover .partner-link {
  background: var(--cian);
  color: var(--cian-foreground);
  border-color: var(--cian);
  transform: translateX(3px);
}

/* =========================================================
   REDES SOCIALES —footer y CTA band
   ========================================================= */
.footer-social-icon {
  width: 2.3rem; height: 2.3rem;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.15);
  color: var(--navy-foreground);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  transition: transform 0.2s var(--ease), background-color 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.footer-social-icon:hover {
  background: var(--cian);
  color: var(--cian-foreground);
  border-color: var(--cian);
  transform: translateY(-3px) scale(1.08);
}

.cta-social-row {
  display: flex;
  justify-content: center;
  gap: 0.7rem;
  margin-top: 0.9rem;
}
.cta-social-row a {
  width: 2.1rem; height: 2.1rem;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.15);
  color: rgba(242,244,248,0.7);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem;
  transition: transform 0.2s var(--ease), background-color 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.cta-social-row a:hover {
  background: var(--cian);
  color: var(--cian-foreground);
  border-color: var(--cian);
  transform: translateY(-3px) scale(1.1);
}

/* =========================================================
   ENCABEZADO "11 marcas líder" —aliados-estrategicos.php
   ========================================================= */
.brands-headline {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
}
.brands-headline-number {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 3.5rem;
  line-height: 1;
  background: linear-gradient(135deg, var(--azul), var(--cian));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.brands-headline-title {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--navy);
  font-size: 1.5rem;
  text-align: left;
}
@media (min-width: 992px) {
  .brands-headline-number { font-size: 4.5rem; }
  .brands-headline-title { font-size: 1.9rem; }
}

/* =========================================================
   ROW CARDS — mismo lenguaje visual que la tarjeta de Hacker
   Rangers, aplicado a Socios Estratégicos y las 11 marcas
   ========================================================= */
.row-card-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.row-card {
  display: flex;
  align-items: center;
  gap: 1.3rem;
  background: #fff;
  border: 1px solid var(--border-color);
  border-left: 4px solid var(--azul);
  border-radius: 0.9rem;
  padding: 1.1rem 1.4rem;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
}
.row-card:nth-child(3n+2) { border-left-color: var(--morado); }
.row-card:nth-child(3n+3) { border-left-color: var(--cian); }
.row-card:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: var(--shadow-lg);
}
.row-card-icon {
  flex-shrink: 0;
  width: 5.5rem; height: 5.5rem;
  border-radius: 0.8rem;
  background: var(--crema);
  display: flex; align-items: center; justify-content: center;
  padding: 0.7rem;
  transition: transform 0.25s var(--ease), background-color 0.25s var(--ease);
}
.row-card-icon img { max-width: 100%; max-height: 100%; object-fit: contain; }
.row-card:hover .row-card-icon { transform: scale(1.08); background: #fff; box-shadow: inset 0 0 0 1px var(--border-color); }
.row-card-icon-sm { width: 4.3rem; height: 4.3rem; }
.row-card-text { flex: 1; min-width: 0; }
.row-card-title {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--navy);
  font-size: 1.1rem;
}
.row-card-desc {
  display: block;
  color: rgba(27,36,48,0.7);
  font-size: 0.88rem;
  margin-top: 0.3rem;
  line-height: 1.5;
}
.row-card-arrow {
  flex-shrink: 0;
  color: rgba(27,36,48,0.3);
  font-size: 1.1rem;
  transition: transform 0.2s var(--ease), color 0.2s var(--ease);
}
.row-card:hover .row-card-arrow { color: var(--cian); transform: translateX(5px); }
.row-card-sm .row-card-title { font-size: 1rem; }
