/* =========================================================
   JR SOLUTIONS — Estilos principales
   Innovación en cada solución.
   ---------------------------------------------------------
   1. Variables de marca
   2. Base
   3. Utilidades y botones
   4. Navbar
   5. Hero + mockup
   6. Secciones genéricas
   7. Servicios
   8. Soluciones
   9. Por qué JR
   10. Proceso
   11. Proyectos
   12. Antes / Después
   13. CTA
   14. Footer
   15. Animaciones
   16. Responsive
   17. Páginas internas (cabecera, fichas de detalle, demostraciones)
   18. Contacto (formulario, canales, preguntas frecuentes)
   ========================================================= */

/* 1. VARIABLES DE MARCA ----------------------------------- */
:root {
  --jr-navy: #0B1F3B;
  --jr-navy-2: #12305A;
  --jr-blue: #0066FF;
  --jr-teal: #00C2A8;
  --jr-cyan: #00E5FF;
  --jr-graphite: #2D3748;
  --jr-gray: #64748B;
  --jr-light: #E5EAF0;
  --jr-bg: #F6F8FB;
  --jr-white: #FFFFFF;
  --jr-warn: #F5A524;

  --jr-gradient: linear-gradient(135deg, var(--jr-blue) 0%, var(--jr-teal) 100%);
  --jr-gradient-deep: linear-gradient(135deg, var(--jr-navy) 0%, #0A3D8F 55%, var(--jr-teal) 130%);

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;

  --shadow-xs: 0 1px 2px rgba(11, 31, 59, .05);
  --shadow-sm: 0 4px 14px rgba(11, 31, 59, .06);
  --shadow-md: 0 14px 40px rgba(11, 31, 59, .09);
  --shadow-lg: 0 30px 70px rgba(11, 31, 59, .14);

  --header-h: 76px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* 2. BASE -------------------------------------------------- */
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--jr-graphite);
  background: var(--jr-white);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 { color: var(--jr-navy); font-weight: 700; letter-spacing: -.02em; }

a { color: var(--jr-blue); text-decoration: none; transition: color .2s var(--ease); }

.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }

::selection { background: rgba(0, 194, 168, .25); color: var(--jr-navy); }

:focus-visible { outline: 3px solid rgba(0, 102, 255, .45); outline-offset: 3px; border-radius: 6px; }

/* 3. UTILIDADES Y BOTONES --------------------------------- */
.text-gradient {
  background: var(--jr-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.btn {
  font-weight: 600;
  border-radius: 12px;
  padding: .7rem 1.4rem;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.btn-lg { padding: .9rem 1.7rem; font-size: 1rem; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-jr-primary {
  color: #fff;
  background: var(--jr-gradient);
  border: 0;
  box-shadow: 0 8px 20px rgba(0, 102, 255, .22);
}
.btn-jr-primary:hover,
.btn-jr-primary:focus-visible { color: #fff; box-shadow: 0 12px 28px rgba(0, 102, 255, .32); }

.btn-jr-outline {
  color: var(--jr-navy);
  background: var(--jr-white);
  border: 1px solid var(--jr-light);
  box-shadow: var(--shadow-xs);
}
.btn-jr-outline:hover,
.btn-jr-outline:focus-visible { color: var(--jr-blue); border-color: rgba(0, 102, 255, .35); box-shadow: var(--shadow-sm); }

.btn-jr-light {
  color: var(--jr-navy);
  background: #fff;
  border: 0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .18);
}
.btn-jr-light:hover,
.btn-jr-light:focus-visible { color: var(--jr-blue); background: #fff; }

/* Marca (logo) */
.brand {
  display: inline-flex;
  align-items: center;
  padding: 0;
  margin-right: 1rem;
}
/* Logotipo horizontal oficial (assets/images/logo-jr-solutions*.svg) */
.brand-logo { display: block; height: 40px; width: auto; }
.brand--footer .brand-logo { height: 44px; }

/* 4. NAVBAR ----------------------------------------------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1030;
  transition: background-color .3s var(--ease), box-shadow .3s var(--ease), backdrop-filter .3s var(--ease);
}
.site-header .navbar { min-height: var(--header-h); padding: .6rem 0; }

.site-header.is-scrolled {
  background: rgba(255, 255, 255, .86);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  box-shadow: 0 1px 0 rgba(11, 31, 59, .06), 0 8px 24px rgba(11, 31, 59, .05);
}

.navbar .nav-link {
  position: relative;
  color: var(--jr-graphite);
  font-weight: 500;
  font-size: .95rem;
  padding: .5rem .9rem !important;
}
.navbar .nav-link::after {
  content: "";
  position: absolute;
  left: .9rem;
  right: .9rem;
  bottom: .2rem;
  height: 2px;
  border-radius: 2px;
  background: var(--jr-gradient);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s var(--ease);
}
.navbar .nav-link:hover,
.navbar .nav-link.active { color: var(--jr-navy); }
.navbar .nav-link:hover::after,
.navbar .nav-link.active::after { transform: scaleX(1); }

.nav-cta { padding: .6rem 1.15rem; font-size: .92rem; }

/* Botón hamburguesa personalizado */
.navbar-toggler {
  border: 1px solid var(--jr-light);
  border-radius: 12px;
  padding: .55rem .6rem;
  background: #fff;
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
}
.navbar-toggler:focus { box-shadow: 0 0 0 3px rgba(0, 102, 255, .2); }
.toggler-bar {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: var(--jr-navy);
  transition: transform .3s var(--ease), opacity .2s;
}
.navbar-toggler[aria-expanded="true"] .toggler-bar:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.navbar-toggler[aria-expanded="true"] .toggler-bar:nth-child(2) { opacity: 0; }
.navbar-toggler[aria-expanded="true"] .toggler-bar:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* 5. HERO -------------------------------------------------- */
.hero {
  position: relative;
  padding: calc(var(--header-h) + 4.5rem) 0 6rem;
  background: linear-gradient(180deg, #F3F7FD 0%, var(--jr-white) 100%);
  overflow: hidden;
}

.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: .45;
}
.hero-glow--blue { width: 520px; height: 520px; background: rgba(0, 102, 255, .28); top: -160px; right: -80px; }
.hero-glow--cyan { width: 420px; height: 420px; background: rgba(0, 229, 255, .28); bottom: -160px; right: 28%; }
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(11, 31, 59, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11, 31, 59, .045) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 60% at 70% 40%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 70% 40%, #000 20%, transparent 75%);
}

.hero .container { position: relative; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .4rem .9rem;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--jr-light);
  box-shadow: var(--shadow-xs);
  color: var(--jr-navy);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .04em;
  margin-bottom: 1.5rem;
}
.eyebrow-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--jr-teal);
  box-shadow: 0 0 0 4px rgba(0, 194, 168, .18);
}

.hero-title {
  font-size: clamp(2.3rem, 5vw, 3.75rem);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -.035em;
  margin-bottom: 1.4rem;
}
.hero-lead {
  font-size: 1.15rem;
  color: var(--jr-gray);
  max-width: 540px;
  margin-bottom: 2.2rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: .85rem; margin-bottom: 2.2rem; }

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
  color: var(--jr-graphite);
  font-size: .92rem;
  font-weight: 500;
}
.hero-points i { color: var(--jr-teal); margin-right: .4rem; }

/* --- Mockup del hero --- */
.hero-visual {
  position: relative;
  padding: 2.5rem 1.5rem 3rem;
  max-width: 620px;
  margin-inline: auto;
}

.laptop { position: relative; }
.laptop-screen {
  background: var(--jr-navy);
  border-radius: 18px 18px 6px 6px;
  padding: 10px;
  box-shadow: var(--shadow-lg);
}
.laptop-base {
  position: relative;
  height: 16px;
  margin: 0 -6%;
  background: linear-gradient(180deg, #DCE3EC 0%, #B9C4D2 100%);
  border-radius: 0 0 16px 16px;
  box-shadow: 0 18px 30px rgba(11, 31, 59, .14);
}
.laptop-base span {
  position: absolute;
  top: 0;
  left: 50%;
  width: 18%;
  height: 6px;
  transform: translateX(-50%);
  background: #A9B5C4;
  border-radius: 0 0 8px 8px;
}

.app {
  display: flex;
  background: var(--jr-bg);
  border-radius: 10px;
  overflow: hidden;
  font-size: 10px;
  line-height: 1.3;
  aspect-ratio: 16 / 10.4;
}
.app-sidebar {
  width: 46px;
  background: var(--jr-navy);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 12px 0;
  border-right: 1px solid rgba(255, 255, 255, .06);
}
.app-logo { width: 24px; height: auto; margin-bottom: 8px; }
.app-nav {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  color: rgba(255, 255, 255, .5);
  font-size: 12px;
}
.app-nav.is-active { background: rgba(0, 229, 255, .14); color: var(--jr-cyan); }

.app-main { flex: 1; padding: 12px 14px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.app-topbar { display: flex; justify-content: space-between; align-items: center; }
.app-title { display: block; font-weight: 700; color: var(--jr-navy); font-size: 12px; }
.app-subtitle { display: block; color: var(--jr-gray); font-size: 9px; }
.app-topbar-actions { display: flex; gap: 6px; align-items: center; }
.app-search {
  width: 24px; height: 24px; border-radius: 7px; background: #fff;
  display: grid; place-items: center; color: var(--jr-gray); box-shadow: var(--shadow-xs);
}
.app-avatar {
  width: 24px; height: 24px; border-radius: 50%; background: var(--jr-gradient);
  color: #fff; font-weight: 700; font-size: 8px; display: grid; place-items: center;
}

.app-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.kpi {
  background: #fff;
  border-radius: 9px;
  padding: 8px 9px;
  box-shadow: var(--shadow-xs);
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.kpi-label { color: var(--jr-gray); font-size: 8.5px; }
.kpi-value { color: var(--jr-navy); font-weight: 800; font-size: 13px; letter-spacing: -.02em; }
.kpi-trend { font-size: 8px; font-weight: 600; }
.kpi-trend.up { color: var(--jr-teal); }

.app-charts { display: grid; grid-template-columns: 1.7fr 1fr; gap: 8px; flex: 1; min-height: 0; }
.chart-card {
  background: #fff;
  border-radius: 9px;
  padding: 8px 9px;
  box-shadow: var(--shadow-xs);
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.chart-head { display: flex; justify-content: space-between; align-items: center; font-weight: 600; color: var(--jr-navy); font-size: 9px; margin-bottom: 4px; }
.chart-legend { display: inline-flex; align-items: center; gap: 4px; color: var(--jr-gray); font-weight: 500; }
.chart-legend i { width: 6px; height: 6px; border-radius: 50%; background: var(--jr-blue); }
.line-chart { width: 100%; flex: 1; min-height: 50px; }
.chart-gridlines line { stroke: var(--jr-light); stroke-width: 1; stroke-dasharray: 3 4; }

.bars {
  flex: 1;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 6px;
  min-height: 50px;
  padding-top: 4px;
}
.bars span {
  flex: 1;
  height: var(--h);
  border-radius: 4px 4px 2px 2px;
  background: linear-gradient(180deg, var(--jr-cyan), var(--jr-blue));
  opacity: .9;
}
.bars span:nth-child(even) { background: linear-gradient(180deg, #6EE7D8, var(--jr-teal)); }

.app-table { background: #fff; border-radius: 9px; padding: 6px 9px; box-shadow: var(--shadow-xs); }
.app-row { display: flex; align-items: center; gap: 8px; padding: 4px 0; }
.app-row + .app-row { border-top: 1px solid var(--jr-bg); }

.dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.dot--teal { background: var(--jr-teal); }
.dot--blue { background: var(--jr-blue); }
.dot--cyan { background: var(--jr-cyan); }

.row-line { display: block; height: 6px; border-radius: 4px; background: var(--jr-light); flex-shrink: 1; }
.w-40 { width: 40%; } .w-45 { width: 45%; } .w-50 { width: 50%; } .w-55 { width: 55%; }
.w-60 { width: 60%; } .w-70 { width: 70%; }

.status {
  margin-left: auto;
  font-size: 8px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 999px;
  white-space: nowrap;
}
.status--ok { color: #00876F; background: rgba(0, 194, 168, .14); }
.status--progress { color: var(--jr-blue); background: rgba(0, 102, 255, .1); }
.status--warn { color: #B26B00; background: rgba(245, 165, 36, .16); }

/* Etiquetas flotantes */
.float-tag {
  position: absolute;
  display: flex;
  align-items: center;
  gap: .7rem;
  padding: .7rem .95rem;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(229, 234, 240, .9);
  border-radius: 14px;
  box-shadow: var(--shadow-md);
  font-size: .8rem;
  line-height: 1.25;
  animation: float 6s ease-in-out infinite;
  z-index: 2;
}
.float-tag strong { display: block; color: var(--jr-navy); font-weight: 700; white-space: nowrap; }
.float-tag small { display: inline-flex; align-items: center; gap: 5px; color: var(--jr-gray); font-size: .72rem; }

.float-tag--1 { top: 0; left: -.5rem; }
.float-tag--2 { top: 42%; right: -1.5rem; animation-delay: -2s; }
.float-tag--3 { bottom: .5rem; left: 8%; animation-delay: -4s; }

.float-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  color: #fff;
  font-size: 1rem;
  flex-shrink: 0;
}
.float-icon--blue { background: linear-gradient(135deg, var(--jr-blue), #3D8BFF); }
.float-icon--teal { background: linear-gradient(135deg, var(--jr-teal), var(--jr-cyan)); }
.float-icon--navy { background: linear-gradient(135deg, var(--jr-navy), var(--jr-navy-2)); }

.live-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--jr-teal);
  animation: pulse 2s ease-out infinite;
}

/* 6. SECCIONES GENÉRICAS ---------------------------------- */
.section { padding: 6.5rem 0; position: relative; }
.section--soft { background: var(--jr-bg); }

.section-header { max-width: 680px; margin: 0 auto 3.5rem; text-align: center; }
.section-header--left { margin: 0 0 2rem; text-align: left; }

.section-kicker {
  display: inline-block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--jr-blue);
  margin-bottom: .9rem;
}
.section-kicker::before {
  content: "";
  display: inline-block;
  width: 22px;
  height: 2px;
  margin-right: .6rem;
  vertical-align: middle;
  background: var(--jr-gradient);
  border-radius: 2px;
}
.section-title {
  font-size: clamp(1.85rem, 3.4vw, 2.6rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.03em;
  margin-bottom: 1rem;
}
.section-lead { font-size: 1.08rem; color: var(--jr-gray); margin: 0; }

/* 7. SERVICIOS -------------------------------------------- */
.service-card {
  height: 100%;
  padding: 2rem 1.7rem;
  background: #fff;
  border: 1px solid var(--jr-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xs);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: var(--jr-gradient);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s var(--ease);
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: transparent; }
.service-card:hover::before { transform: scaleX(1); }

.icon-box {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 16px;
  margin-bottom: 1.4rem;
  font-size: 1.45rem;
  color: var(--jr-blue);
  background: linear-gradient(135deg, rgba(0, 102, 255, .1), rgba(0, 229, 255, .14));
  transition: background .35s var(--ease), color .35s var(--ease);
}
.service-card:hover .icon-box { background: var(--jr-gradient); color: #fff; }

.service-card h3 { font-size: 1.12rem; margin-bottom: .6rem; }
.service-card p { color: var(--jr-gray); margin: 0; font-size: .96rem; }

/* 8. SOLUCIONES ------------------------------------------- */
.solution-card {
  --accent: var(--jr-blue);
  --accent-2: var(--jr-cyan);
  --accent-soft: rgba(0, 102, 255, .1);

  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 2rem 1.75rem 1.75rem;
  background: #fff;
  border: 1px solid var(--jr-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xs);
  position: relative;
  overflow: hidden;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.solution-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}
.solution-card::after {
  content: "";
  position: absolute;
  width: 180px;
  height: 180px;
  top: -90px;
  right: -90px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-soft), transparent 70%);
  pointer-events: none;
}
.solution-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }

.solution--finanzas    { --accent: #0066FF; --accent-2: #3D8BFF; --accent-soft: rgba(0, 102, 255, .14); }
.solution--inventarios { --accent: #00C2A8; --accent-2: #2EE6C8; --accent-soft: rgba(0, 194, 168, .16); }
.solution--academico   { --accent: #5B5BF0; --accent-2: #8B7CFF; --accent-soft: rgba(91, 91, 240, .14); }
.solution--empresarial { --accent: #0B1F3B; --accent-2: #00B8E6; --accent-soft: rgba(0, 184, 230, .16); }

.solution-top { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-bottom: 1.4rem; }
.solution-icon {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 14px;
  font-size: 1.35rem;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 8px 18px var(--accent-soft);
}
.solution-tag {
  font-size: .72rem;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-soft);
  padding: .3rem .7rem;
  border-radius: 999px;
  white-space: nowrap;
}
.solution--empresarial .solution-tag { color: var(--jr-navy); }

.solution-name { font-size: 1.3rem; font-weight: 800; letter-spacing: .01em; margin-bottom: .7rem; }
.solution-name span { font-weight: 500; }
.solution-card > p { color: var(--jr-gray); font-size: .95rem; margin-bottom: 1.3rem; }

.feature-list { list-style: none; padding: 0; margin: 0 0 1.6rem; display: grid; gap: .5rem; }
.feature-list li { display: flex; align-items: center; gap: .6rem; font-size: .92rem; font-weight: 500; color: var(--jr-graphite); }
.feature-list li::before {
  content: "\2713";
  font-weight: 700;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 6px;
  font-size: .8rem;
  color: var(--accent);
  background: var(--accent-soft);
  flex-shrink: 0;
}
.solution--empresarial .feature-list li::before { color: #0090B8; }

.solution-link {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-weight: 600;
  font-size: .95rem;
  color: var(--accent);
  padding-top: 1.1rem;
  border-top: 1px solid var(--jr-light);
}
.solution-link i { transition: transform .3s var(--ease); }
.solution-link:hover { color: var(--accent); }
.solution-link:hover i { transform: translateX(5px); }

/* 9. POR QUÉ JR ------------------------------------------- */
.why-card {
  height: 100%;
  padding: 1.8rem 1.6rem;
  border-radius: var(--radius-lg);
  background: var(--jr-bg);
  border: 1px solid transparent;
  transition: background .35s var(--ease), border-color .35s var(--ease), box-shadow .35s var(--ease), transform .35s var(--ease);
}
.why-card:hover { background: #fff; border-color: var(--jr-light); box-shadow: var(--shadow-md); transform: translateY(-4px); }
.why-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 13px;
  margin-bottom: 1.1rem;
  font-size: 1.25rem;
  color: #fff;
  background: var(--jr-gradient-deep);
}
.why-card h3 { font-size: 1.08rem; margin-bottom: .5rem; }
.why-card p { margin: 0; color: var(--jr-gray); font-size: .95rem; }

.why-highlight {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.3rem 1.5rem;
  border-radius: var(--radius);
  background: var(--jr-gradient-deep);
  color: #fff;
  box-shadow: var(--shadow-md);
}
.why-highlight p { margin: 0; font-weight: 600; font-size: 1.05rem; }
.why-mark { width: 44px; height: auto; flex-shrink: 0; }

/* 10. PROCESO --------------------------------------------- */
.process {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  position: relative;
  counter-reset: step;
}
.process::before {
  content: "";
  position: absolute;
  top: 58px;
  left: 12%;
  right: 12%;
  height: 2px;
  background: linear-gradient(90deg, var(--jr-blue), var(--jr-teal), var(--jr-cyan));
  opacity: .35;
}
.process-step {
  position: relative;
  text-align: center;
  padding: 0 .75rem;
}
.step-number {
  display: block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .14em;
  color: var(--jr-blue);
  margin-bottom: .8rem;
}
.step-icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin: 0 auto 1.4rem;
  border-radius: 20px;
  font-size: 1.5rem;
  color: var(--jr-blue);
  background: #fff;
  border: 1px solid var(--jr-light);
  box-shadow: var(--shadow-sm);
  transition: transform .35s var(--ease), background .35s var(--ease), color .35s var(--ease), box-shadow .35s var(--ease);
}
.process-step:hover .step-icon { transform: translateY(-4px); background: var(--jr-gradient); color: #fff; box-shadow: 0 12px 26px rgba(0, 102, 255, .25); border-color: transparent; }
.process-step h3 { font-size: 1.15rem; margin-bottom: .45rem; }
.process-step p { color: var(--jr-gray); font-size: .95rem; margin: 0 auto; max-width: 240px; }

/* 11. PROYECTOS ------------------------------------------- */
.project-card {
  --accent: var(--jr-blue);
  --accent-soft: rgba(0, 102, 255, .1);
  height: 100%;
  border-radius: var(--radius-lg);
  background: #fff;
  border: 1px solid var(--jr-light);
  box-shadow: var(--shadow-xs);
  overflow: hidden;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.project-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.project--inventarios { --accent: var(--jr-teal); --accent-soft: rgba(0, 194, 168, .12); }

.project-preview {
  padding: 2.2rem 2.2rem 0;
  background:
    radial-gradient(circle at 85% 0%, var(--accent-soft), transparent 55%),
    linear-gradient(160deg, #EEF3FA 0%, #F8FAFD 100%);
  overflow: hidden;
}
.mock-window {
  background: #fff;
  border-radius: 14px 14px 0 0;
  box-shadow: 0 -2px 0 rgba(11, 31, 59, .02), var(--shadow-md);
  font-size: 10px;
  line-height: 1.3;
  transform: translateY(6px);
  transition: transform .45s var(--ease);
}
.project-card:hover .mock-window { transform: translateY(0); }

.mock-bar {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 9px 12px;
  border-bottom: 1px solid var(--jr-bg);
}
.mock-bar i { width: 8px; height: 8px; border-radius: 50%; background: var(--jr-light); }
.mock-bar i:first-child { background: #FF8A80; }
.mock-bar i:nth-child(2) { background: #FFD27A; }
.mock-bar i:nth-child(3) { background: #7EE2B8; }
.mock-bar span {
  margin-left: 10px;
  padding: 2px 10px;
  border-radius: 6px;
  background: var(--jr-bg);
  color: var(--jr-gray);
  font-size: 9px;
}
.mock-body { padding: 14px; display: grid; gap: 10px; background: var(--jr-bg); }
.mock-card { background: #fff; border-radius: 10px; padding: 10px 12px; box-shadow: var(--shadow-xs); }
.mock-label { display: block; color: var(--jr-gray); font-size: 9px; font-weight: 500; }
.mock-label--small { font-size: 8px; margin-top: 4px; }

/* Finanzas */
.fin-balance {
  padding: 14px 16px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--jr-navy) 0%, #0A4FC9 100%);
  color: #fff;
}
.fin-balance .mock-label { color: rgba(255, 255, 255, .65); }
.fin-amount { display: block; font-size: 20px; font-weight: 800; letter-spacing: -.02em; margin: 2px 0 8px; }
.fin-split { display: flex; flex-wrap: wrap; gap: 6px; }
.pill { display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; border-radius: 999px; font-size: 8.5px; font-weight: 600; }
.pill--in { background: rgba(0, 229, 255, .18); color: #9FF5FF; }
.pill--out { background: rgba(255, 255, 255, .12); color: rgba(255, 255, 255, .85); }

.fin-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 10px; }
.donut-wrap { display: flex; align-items: center; gap: 12px; margin-top: 8px; }
.donut {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  flex-shrink: 0;
  background: conic-gradient(var(--jr-blue) 0 46%, var(--jr-teal) 46% 78%, var(--jr-cyan) 78% 100%);
  -webkit-mask: radial-gradient(circle, transparent 52%, #000 53%);
  mask: radial-gradient(circle, transparent 52%, #000 53%);
}
.donut-legend { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; color: var(--jr-graphite); font-size: 9px; }
.donut-legend i { display: inline-block; width: 7px; height: 7px; border-radius: 2px; background: var(--c); margin-right: 5px; }

.goal-value { display: block; font-size: 18px; font-weight: 800; color: var(--jr-navy); margin: 4px 0 6px; }
.progress-track { display: block; height: 6px; border-radius: 4px; background: var(--jr-light); overflow: hidden; }
.progress-track span { display: block; height: 100%; width: var(--w); background: var(--jr-gradient); border-radius: 4px; }

.tx { display: flex; align-items: center; gap: 9px; padding: 5px 0; }
.tx + .tx { border-top: 1px solid var(--jr-bg); }
.tx-icon { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 6px; font-size: 9px; flex-shrink: 0; }
.tx-icon--in { color: #00876F; background: rgba(0, 194, 168, .14); }
.tx-icon--out { color: var(--jr-blue); background: rgba(0, 102, 255, .1); }
.tx-amount { margin-left: auto; font-weight: 700; color: var(--jr-navy); font-size: 9.5px; white-space: nowrap; }
.tx-amount--in { color: #00876F; }

/* Inventarios */
.inv-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.inv-value { display: block; font-size: 17px; font-weight: 800; color: var(--jr-navy); letter-spacing: -.02em; margin-top: 2px; }
.inv-value--teal { color: var(--jr-teal); }
.inv-value--warn { color: var(--jr-warn); }

.inv-table { padding: 6px 12px; }
.inv-row {
  display: grid;
  grid-template-columns: 1.5fr 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 6px 0;
}
.inv-row + .inv-row { border-top: 1px solid var(--jr-bg); }
.inv-row > span:first-child { display: flex; align-items: center; gap: 8px; min-width: 0; }
.inv-row--head { color: var(--jr-gray); font-size: 8.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.inv-row .status { margin-left: 0; }
.inv-thumb { width: 18px; height: 18px; border-radius: 5px; flex-shrink: 0; background: var(--c); opacity: .85; }
.inv-bar { display: block; height: 5px; border-radius: 4px; background: var(--jr-light); overflow: hidden; }
.inv-bar span { display: block; height: 100%; width: var(--w); border-radius: 4px; background: linear-gradient(90deg, var(--jr-teal), var(--jr-cyan)); }
.inv-bar--warn span { background: var(--jr-warn); }

.mini-bars { display: flex; align-items: flex-end; gap: 6px; height: 46px; margin-top: 8px; }
.mini-bars span {
  flex: 1;
  height: var(--h);
  border-radius: 4px 4px 2px 2px;
  background: linear-gradient(180deg, #6EE7D8, var(--jr-teal));
}
.mini-bars span:nth-child(4) { background: linear-gradient(180deg, var(--jr-cyan), var(--jr-blue)); }

.project-info { padding: 1.8rem 2rem 2rem; }
.project-tag {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: .5rem;
}
.project-info h3 { font-size: 1.35rem; font-weight: 800; letter-spacing: .01em; margin-bottom: .5rem; }
.project-info p { color: var(--jr-gray); margin: 0; }

/* 12. ANTES / DESPUÉS ------------------------------------- */
.compare {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1.75rem;
  max-width: 980px;
  margin: 0 auto;
}
.compare-card {
  height: 100%;
  padding: 2.2rem 2rem;
  border-radius: var(--radius-lg);
  position: relative;
}
.compare-label {
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  padding: .35rem .85rem;
  border-radius: 999px;
  margin-bottom: 1.5rem;
}
.compare-card ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .95rem; }
.compare-card li { display: flex; align-items: center; gap: .75rem; font-weight: 500; }
.compare-card li i { font-size: 1.1rem; flex-shrink: 0; }

.compare--before {
  background: #fff;
  border: 1px dashed #CBD5E1;
  color: var(--jr-gray);
}
.compare--before .compare-label { background: #EEF1F5; color: var(--jr-gray); }
.compare--before li { text-decoration: line-through; text-decoration-color: rgba(100, 116, 139, .35); }
.compare--before li i { color: #A0AEC0; }

.compare--after {
  background: var(--jr-gradient-deep);
  color: #fff;
  box-shadow: var(--shadow-lg);
}
.compare--after .compare-label { background: rgba(255, 255, 255, .14); color: var(--jr-cyan); }
.compare--after li i { color: var(--jr-cyan); }

.compare-bridge { display: flex; flex-direction: column; align-items: center; gap: .75rem; align-self: stretch; justify-content: center; }
.bridge-line {
  width: 2px;
  flex: 1;
  max-height: 90px;
  background: linear-gradient(180deg, transparent, var(--jr-teal));
  border-radius: 2px;
}
.bridge-line:last-child { background: linear-gradient(180deg, var(--jr-teal), transparent); }
.bridge-icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--jr-gradient);
  box-shadow: 0 0 0 8px rgba(0, 194, 168, .12), 0 12px 28px rgba(0, 102, 255, .28);
  animation: bridge-pulse 3s ease-in-out infinite;
}
.bridge-icon svg { width: 30px; height: 30px; }

/* 13. CTA -------------------------------------------------- */
.cta-section { padding-top: 5.5rem; padding-bottom: 6.5rem; }
.cta-box {
  position: relative;
  overflow: hidden;
  padding: 4.5rem 2rem;
  border-radius: 32px;
  text-align: center;
  color: #fff;
  background:
    radial-gradient(circle at 15% 20%, rgba(0, 229, 255, .35), transparent 45%),
    radial-gradient(circle at 90% 90%, rgba(0, 194, 168, .45), transparent 50%),
    linear-gradient(135deg, var(--jr-navy) 0%, #0050D8 60%, var(--jr-teal) 120%);
  box-shadow: var(--shadow-lg);
}
.cta-mark {
  position: absolute;
  width: 420px;
  height: 420px;
  right: -90px;
  bottom: -120px;
  opacity: .1;
  pointer-events: none;
}
.cta-content { position: relative; max-width: 640px; margin: 0 auto; }
.cta-box h2 { color: #fff; font-size: clamp(1.8rem, 3.6vw, 2.75rem); font-weight: 800; line-height: 1.15; margin-bottom: 1rem; }
.cta-box p { font-size: 1.12rem; color: rgba(255, 255, 255, .82); margin-bottom: 2rem; }

.cta-contacts { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem 1.75rem; margin-top: 2rem; }
.cta-contacts a { display: inline-flex; align-items: center; gap: .5rem; color: rgba(255, 255, 255, .85); font-weight: 500; font-size: .95rem; }
.cta-contacts a:hover { color: #fff; }

/* 14. FOOTER ---------------------------------------------- */
.site-footer {
  background: var(--jr-navy);
  color: rgba(255, 255, 255, .65);
  padding: 4.5rem 0 1.75rem;
}
.brand--footer, .brand--footer:hover { color: #fff; }
.footer-tagline { color: var(--jr-cyan); font-weight: 600; margin: 1rem 0 .5rem; }
.footer-text { max-width: 380px; font-size: .95rem; margin: 0; }

.footer-title {
  color: #fff;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
}
.footer-links, .footer-contact { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
.footer-links a, .footer-contact a { color: rgba(255, 255, 255, .65); font-size: .95rem; }
.footer-links a:hover, .footer-contact a:hover { color: var(--jr-cyan); }
.footer-contact a { display: inline-flex; align-items: center; gap: .6rem; word-break: break-word; }
.footer-contact i { color: var(--jr-cyan); }

.social { display: flex; gap: .6rem; margin-top: 1.5rem; }
.social a {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  color: #fff;
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .08);
  transition: background .25s var(--ease), transform .25s var(--ease);
}
.social a:hover { background: var(--jr-gradient); transform: translateY(-3px); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-top: 3.5rem;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(255, 255, 255, .08);
  font-size: .88rem;
}
.footer-bottom p { margin: 0; }
.back-to-top {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: #fff;
  background: rgba(255, 255, 255, .08);
  transition: background .25s var(--ease), transform .25s var(--ease);
}
.back-to-top:hover { color: #fff; background: var(--jr-gradient); transform: translateY(-3px); }

/* 15. ANIMACIONES ----------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
  transition-delay: var(--delay, 0s);
}
.reveal.is-visible { opacity: 1; transform: none; }
/* Sin JS el contenido sigue visible */
.no-js .reveal { opacity: 1; transform: none; }

.line-path { stroke-dasharray: 600; stroke-dashoffset: 600; }
.hero-visual.is-visible .line-path { animation: draw 1.8s .3s var(--ease) forwards; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(0, 194, 168, .5); }
  100% { box-shadow: 0 0 0 7px rgba(0, 194, 168, 0); }
}
@keyframes bridge-pulse {
  0%, 100% { box-shadow: 0 0 0 8px rgba(0, 194, 168, .12), 0 12px 28px rgba(0, 102, 255, .28); }
  50% { box-shadow: 0 0 0 14px rgba(0, 194, 168, .06), 0 12px 28px rgba(0, 102, 255, .28); }
}
@keyframes draw { to { stroke-dashoffset: 0; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  .line-path { stroke-dashoffset: 0; }
}

/* 16. RESPONSIVE ------------------------------------------ */
@media (max-width: 1199.98px) {
  .float-tag--2 { right: -.5rem; }
}

@media (max-width: 991.98px) {
  :root { --header-h: 68px; }

  .site-header { background: rgba(255, 255, 255, .92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }

  .navbar-collapse {
    margin-top: .75rem;
    padding: 1rem;
    background: #fff;
    border: 1px solid var(--jr-light);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
  }
  .navbar .nav-link { padding: .7rem .75rem !important; border-radius: 10px; }
  .navbar .nav-link::after { display: none; }
  .navbar .nav-link.active, .navbar .nav-link:hover { background: var(--jr-bg); }
  .nav-cta { display: block; width: 100%; margin-top: .75rem; }

  .hero { padding: calc(var(--header-h) + 3rem) 0 4.5rem; text-align: center; }
  .hero-lead { margin-inline: auto; }
  .hero-actions, .hero-points { justify-content: center; }

  .section { padding: 5rem 0; }

  .section-header--left { text-align: center; margin-inline: auto; }

  .process { grid-template-columns: repeat(2, 1fr); row-gap: 3rem; }
  .process::before { display: none; }

  .compare { grid-template-columns: 1fr; gap: 1rem; max-width: 520px; }
  .compare-bridge { flex-direction: row; }
  .bridge-line { width: auto; height: 2px; max-height: none; max-width: 80px; background: linear-gradient(90deg, transparent, var(--jr-teal)); }
  .bridge-line:last-child { background: linear-gradient(90deg, var(--jr-teal), transparent); }
}

@media (max-width: 767.98px) {
  .hero-visual { padding: 2rem .25rem 2.5rem; }
  .float-tag { padding: .5rem .7rem; font-size: .72rem; gap: .5rem; }
  .float-tag small { display: none; }
  .float-icon { width: 28px; height: 28px; font-size: .85rem; border-radius: 8px; }
  .float-tag--1 { left: 0; top: .25rem; }
  .float-tag--2 { right: 0; }
  .float-tag--3 { left: 4%; bottom: .25rem; }

  .app-sidebar { width: 34px; }
  .app-nav { width: 22px; height: 22px; font-size: 10px; }
  .app-kpis .kpi:nth-child(3) { display: none; }
  .app-kpis { grid-template-columns: repeat(2, 1fr); }

  .project-preview { padding: 1.5rem 1.25rem 0; }
  .project-info { padding: 1.5rem; }

  .cta-box { padding: 3.5rem 1.5rem; border-radius: 24px; }
  .cta-mark { width: 280px; height: 280px; }

  .footer-bottom { flex-direction: column-reverse; text-align: center; }
}

@media (max-width: 575.98px) {
  .brand-logo { height: 34px; }

  /* El gutter g-5 (3rem) excede el padding del contenedor y provocaba scroll horizontal */
  .row.g-5 { --bs-gutter-x: 1.5rem; }

  .hero-actions .btn { width: 100%; }
  .section { padding: 4.25rem 0; }
  .section-header { margin-bottom: 2.5rem; }

  .process { grid-template-columns: 1fr; }

  .fin-grid { grid-template-columns: 1fr; }
  .inv-row { grid-template-columns: 1.3fr .8fr auto; gap: 8px; }
  .app-charts { grid-template-columns: 1fr; }
  .chart-card--bars { display: none; }
}

/* 17. PÁGINAS INTERNAS ------------------------------------ */
/* Cabecera de página: reutiliza el fondo del hero (.hero-bg, .hero-glow, .hero-grid) */
.page-hero {
  position: relative;
  padding: calc(var(--header-h) + 4.5rem) 0 4.5rem;
  background: linear-gradient(180deg, #F3F7FD 0%, var(--jr-white) 100%);
  overflow: hidden;
}
.page-hero .container { position: relative; }
.page-hero-content { max-width: 780px; }

.page-title {
  font-size: clamp(2.1rem, 4.4vw, 3.25rem);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -.035em;
  margin-bottom: 1.2rem;
}
.page-lead { font-size: 1.12rem; color: var(--jr-gray); max-width: 640px; margin: 0; }

.breadcrumb-jr {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  list-style: none;
  padding: 0;
  margin: 0 0 1.25rem;
  font-size: .88rem;
  font-weight: 500;
  color: var(--jr-gray);
}
.breadcrumb-jr li + li::before { content: "/"; margin-right: .5rem; color: #A0AEC0; }
.breadcrumb-jr a { color: var(--jr-gray); }
.breadcrumb-jr a:hover { color: var(--jr-blue); }
.breadcrumb-jr [aria-current] { color: var(--jr-navy); font-weight: 600; }

/* Accesos rápidos a las fichas de la página */
.page-subnav { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 2rem; }
.subnav-link {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .5rem 1rem;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--jr-light);
  box-shadow: var(--shadow-xs);
  color: var(--jr-navy);
  font-size: .88rem;
  font-weight: 600;
  transition: color .25s var(--ease), border-color .25s var(--ease), box-shadow .25s var(--ease), transform .25s var(--ease);
}
.subnav-link i { color: var(--jr-blue); }
.subnav-link:hover { color: var(--jr-blue); border-color: rgba(0, 102, 255, .35); box-shadow: var(--shadow-sm); transform: translateY(-2px); }

/* Texto corrido */
.prose { margin-bottom: 2rem; }
.prose p { color: var(--jr-gray); font-size: 1.02rem; }
.prose p:last-child { margin-bottom: 0; }

/* Panel con lista de iconos */
.info-panel {
  padding: 2.25rem 2rem;
  border-radius: var(--radius-lg);
  background: #fff;
  border: 1px solid var(--jr-light);
  box-shadow: var(--shadow-md);
}
.info-panel-title {
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--jr-navy);
  margin-bottom: 1.5rem;
}
.icon-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.35rem; }
.icon-list li { display: flex; align-items: flex-start; gap: 1rem; }
.icon-list .icon-box { width: 46px; height: 46px; margin: 0; border-radius: 13px; font-size: 1.2rem; flex-shrink: 0; }
.icon-list h3 { font-size: 1.02rem; margin: .1rem 0 .2rem; }
.icon-list p { margin: 0; color: var(--jr-gray); font-size: .94rem; }
.icon-list a { color: var(--jr-navy); }
.icon-list a:hover { color: var(--jr-blue); }

/* Misión y visión */
.statement-card {
  height: 100%;
  padding: 2.5rem 2.25rem;
  border-radius: var(--radius-lg);
  background: #fff;
  border: 1px solid var(--jr-light);
  box-shadow: var(--shadow-xs);
}
.statement-card h3 { font-size: 1.45rem; font-weight: 800; margin-bottom: .8rem; }
.statement-card p { margin: 0; font-size: 1.05rem; color: var(--jr-gray); }
.statement-card--dark {
  background: var(--jr-gradient-deep);
  border-color: transparent;
  box-shadow: var(--shadow-md);
}
.statement-card--dark h3 { color: #fff; }
.statement-card--dark p { color: rgba(255, 255, 255, .82); }
.statement-card--dark .icon-box { background: rgba(255, 255, 255, .12); color: var(--jr-cyan); }

/* Fichas de detalle (servicios y soluciones) */
/* Acento por defecto con :where() (especificidad 0) para que .solution--* lo reemplace */
:where(.detail-card) {
  --accent: var(--jr-blue);
  --accent-2: var(--jr-cyan);
  --accent-soft: rgba(0, 102, 255, .1);
}
.detail-card {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 2.5rem;
  padding: 2.75rem;
  background: #fff;
  border: 1px solid var(--jr-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xs);
  overflow: hidden;
  scroll-margin-top: 1.5rem;
}
.detail-card + .detail-card { margin-top: 1.5rem; }
.detail-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}
.detail-card .solution-top { justify-content: flex-start; }
.detail-card .solution-name,
.detail-title { font-size: clamp(1.5rem, 2.6vw, 1.9rem); font-weight: 800; letter-spacing: -.01em; margin-bottom: .8rem; }
.detail-head { display: flex; align-items: center; flex-wrap: wrap; gap: .75rem; margin-bottom: 1.4rem; }
.detail-head .icon-box { margin: 0; }
.detail-intro > p { color: var(--jr-gray); margin-bottom: 1.4rem; }

.detail-meta {
  display: flex;
  gap: .7rem;
  margin: 0;
  padding: 1rem 1.1rem;
  border-radius: var(--radius-sm);
  background: var(--jr-bg);
  font-size: .92rem;
  color: var(--jr-graphite);
}
.detail-meta i { color: var(--accent); font-size: 1.05rem; line-height: 1.5; }
.detail-meta strong { color: var(--jr-navy); }
.solution--empresarial .detail-meta i { color: #0090B8; }

.detail-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }

.detail-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; align-content: start; }
.detail-block { padding: 1.6rem 1.5rem; border-radius: var(--radius); background: var(--jr-bg); }
.detail-subtitle {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--jr-navy);
  margin-bottom: 1rem;
}
.detail-block .feature-list { margin: 0; }

/* Banda informativa */
.note-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin-top: 3rem;
  padding: 1.75rem 2rem;
  border-radius: var(--radius-lg);
  background: #fff;
  border: 1px solid var(--jr-light);
  box-shadow: var(--shadow-sm);
}
.note-band h3 { font-size: 1.2rem; margin-bottom: .25rem; }
.note-band p { margin: 0; color: var(--jr-gray); }
.note-band .btn { flex-shrink: 0; }

/* Demostraciones (proyectos) */
.demo { scroll-margin-top: 1.5rem; }
.demo + .demo { margin-top: 5rem; }
.project-card--preview .project-preview { padding-bottom: 0; }

:where(.project-detail) { --accent: var(--jr-blue); --accent-soft: rgba(0, 102, 255, .1); }
.project-detail h2 { font-size: clamp(1.6rem, 2.8vw, 2rem); font-weight: 800; letter-spacing: .01em; margin-bottom: .8rem; }
.project-detail > p { color: var(--jr-gray); margin-bottom: 1.6rem; }
.project-detail .feature-list { margin-bottom: 0; }

@media (max-width: 991.98px) {
  .page-hero { padding: calc(var(--header-h) + 3rem) 0 3.5rem; text-align: center; }
  .page-hero-content { margin-inline: auto; }
  .page-lead { margin-inline: auto; }
  .breadcrumb-jr, .page-subnav { justify-content: center; }

  .detail-card { grid-template-columns: 1fr; gap: 2rem; padding: 2.25rem 2rem; }
  .demo + .demo { margin-top: 4rem; }
  .project-detail { text-align: center; }
  .project-detail .feature-list { max-width: 420px; margin-inline: auto; text-align: left; }
  .project-detail .detail-actions { justify-content: center; }
}

@media (max-width: 767.98px) {
  .info-panel { padding: 1.75rem 1.4rem; }
  .statement-card { padding: 2rem 1.6rem; }
  .detail-card { padding: 2rem 1.4rem 1.5rem; }
  .detail-columns { grid-template-columns: 1fr; }
  .detail-block { padding: 1.4rem 1.25rem; }
  .note-band { flex-direction: column; align-items: flex-start; padding: 1.5rem 1.4rem; }
}

@media (max-width: 575.98px) {
  .detail-actions .btn, .note-band .btn { width: 100%; }
}

/* 18. CONTACTO -------------------------------------------- */
.contact-card {
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  background: #fff;
  border: 1px solid var(--jr-light);
  box-shadow: var(--shadow-md);
}
.contact-title { font-size: 1.6rem; font-weight: 800; margin-bottom: .5rem; }
.contact-intro { color: var(--jr-gray); margin-bottom: 1.75rem; }

.contact-form .form-label { font-size: .9rem; font-weight: 600; color: var(--jr-navy); margin-bottom: .4rem; }
.contact-form .form-label .optional { font-weight: 500; color: var(--jr-gray); }
.contact-form .form-control,
.contact-form .form-select {
  padding: .75rem 1rem;
  border: 1px solid var(--jr-light);
  border-radius: 12px;
  background-color: var(--jr-bg);
  color: var(--jr-graphite);
  font-size: .96rem;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease), background-color .2s var(--ease);
}
.contact-form .form-select { padding-right: 2.5rem; }
.contact-form .form-control:focus,
.contact-form .form-select:focus {
  background-color: #fff;
  border-color: rgba(0, 102, 255, .5);
  box-shadow: 0 0 0 4px rgba(0, 102, 255, .12);
}
.contact-form .form-control.is-invalid,
.contact-form .form-select.is-invalid { background-color: #fff; border-color: var(--bs-form-invalid-border-color); }
.contact-form .form-control.is-invalid:focus,
.contact-form .form-select.is-invalid:focus { box-shadow: 0 0 0 4px rgba(var(--bs-danger-rgb), .12); }
.contact-form .form-control.is-invalid { padding-right: calc(1.5em + 1rem); }
.contact-form textarea.form-control { min-height: 140px; resize: vertical; }

.form-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }
.form-hint { margin: 1rem 0 0; font-size: .85rem; color: var(--jr-gray); }
.form-status {
  display: flex;
  gap: .6rem;
  margin-top: 1.25rem;
  padding: .9rem 1.1rem;
  border-radius: 12px;
  background: rgba(0, 194, 168, .1);
  color: #00715C;
  font-size: .92rem;
  font-weight: 500;
}
.form-status:empty { display: none; }
.form-status i { line-height: 1.5; }

/* Canales de contacto */
.contact-aside { display: grid; gap: 1rem; }
.contact-aside-title { font-size: 1.15rem; font-weight: 700; margin: 0 0 .25rem; }
.channel-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.3rem 1.4rem;
  border-radius: var(--radius-lg);
  background: #fff;
  border: 1px solid var(--jr-light);
  box-shadow: var(--shadow-xs);
  color: var(--jr-graphite);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.channel-card:hover { color: var(--jr-graphite); transform: translateY(-3px); box-shadow: var(--shadow-md); }
.channel-card strong { display: block; color: var(--jr-navy); font-size: 1rem; }
.channel-card small { display: block; color: var(--jr-gray); font-size: .88rem; word-break: break-word; }
.channel-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  flex-shrink: 0;
  font-size: 1.3rem;
  color: var(--jr-blue);
  background: linear-gradient(135deg, rgba(0, 102, 255, .1), rgba(0, 229, 255, .14));
}
.channel-arrow { margin-left: auto; color: var(--jr-blue); transition: transform .3s var(--ease); }
.channel-card:hover .channel-arrow { transform: translateX(4px); }

.channel-card--primary { background: var(--jr-gradient-deep); border-color: transparent; box-shadow: var(--shadow-md); }
.channel-card--primary strong { color: #fff; }
.channel-card--primary small { color: rgba(255, 255, 255, .75); }
.channel-card--primary .channel-icon { background: rgba(255, 255, 255, .14); color: var(--jr-cyan); }
.channel-card--primary .channel-arrow { color: var(--jr-cyan); }

.aside-box {
  padding: 1.6rem 1.5rem;
  border-radius: var(--radius-lg);
  background: #fff;
  border: 1px solid var(--jr-light);
}
.steps-mini { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.1rem; counter-reset: mini; }
.steps-mini li { display: flex; gap: .9rem; counter-increment: mini; }
.steps-mini li::before {
  content: counter(mini);
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  flex-shrink: 0;
  font-size: .85rem;
  font-weight: 700;
  color: #fff;
  background: var(--jr-gradient);
}
.steps-mini strong { display: block; color: var(--jr-navy); font-size: .96rem; }
.steps-mini span { display: block; color: var(--jr-gray); font-size: .9rem; }

.social--light { margin-top: 0; }
.social--light a { color: var(--jr-navy); background: var(--jr-bg); border-color: var(--jr-light); }
.social--light a:hover { color: #fff; }

/* Preguntas frecuentes (acordeón de Bootstrap con la paleta de marca) */
.faq { max-width: 820px; margin: 0 auto; }
.faq .accordion {
  --bs-accordion-border-color: var(--jr-light);
  --bs-accordion-border-radius: var(--radius);
  --bs-accordion-inner-border-radius: calc(var(--radius) - 1px);
  --bs-accordion-btn-color: var(--jr-navy);
  --bs-accordion-active-color: var(--jr-blue);
  --bs-accordion-active-bg: #fff;
  --bs-accordion-btn-focus-box-shadow: inset 0 0 0 3px rgba(0, 102, 255, .2);
  --bs-accordion-btn-padding-x: 1.4rem;
  --bs-accordion-btn-padding-y: 1.2rem;
  --bs-accordion-body-padding-x: 1.4rem;
  --bs-accordion-body-padding-y: 0;
}
.faq .accordion-item {
  border-top: 1px solid var(--jr-light);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-xs);
}
.faq .accordion-item + .accordion-item { margin-top: .85rem; }
.faq .accordion-button { font-weight: 600; font-size: 1rem; }
.faq .accordion-button:not(.collapsed) { box-shadow: none; }
.faq .accordion-body { padding-bottom: 1.4rem; color: var(--jr-gray); }

@media (max-width: 767.98px) {
  .contact-card { padding: 1.9rem 1.4rem; }
}

@media (max-width: 575.98px) {
  .form-actions .btn { width: 100%; }
}
