/* ══════════════════════════════════════════════════════════════════
   BSCare – nosotros.css  (Página "Nosotros")
   Colores del logo: azul marino, azul, celeste y rojo de la marca.
   ══════════════════════════════════════════════════════════════════ */

.ns-section { padding: 3.75rem 1.5rem; background: #fff; }
.ns-alt { background: var(--blue-bg); }
.ns-wrap { max-width: 1080px; margin: 0 auto; }
.ns-head { margin-bottom: 2.25rem; }
.ns-head .section-title { font-size: clamp(1.5rem, 3vw, 2.2rem); }
.ns-head .section-subtitle { font-size: 0.92rem; }
/* Última sección antes del footer: misma línea roja divisoria del inicio */
.ns-last { }   /* la línea roja ahora está en el borde superior del footer (main.css) */

/* ── Íconos corporativos ────────────────────────────────────────── */
.ns-ico {
  width: 42px; height: 42px; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 12px;
  background: var(--blue-pale); color: var(--c, var(--blue-primary));
  transition: background var(--t-med), color var(--t-med), transform var(--t-med);
}
.ns-ico svg { width: 22px; height: 22px; }
.ns-ico-text { font-family: var(--font-display); font-weight: 900; font-size: 0.95rem; letter-spacing: -0.02em; }
.ns-ico-sm {
  width: 28px; height: 28px; flex-shrink: 0; border-radius: 8px;
  display: inline-flex; align-items: center; justify-content: center;
  background: #fff; color: var(--c, var(--blue-primary));
  border: 1px solid rgba(0, 58, 140, 0.12);
}
.ns-ico-sm svg { width: 16px; height: 16px; }

/* ── Misión, Visión y Propósito ─────────────────────────────────── */
.ns-mvp { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.ns-mvp-card {
  display: flex; gap: 0.9rem; align-items: flex-start;
  background: #fff; border: 1px solid var(--gray-100);
  border-top: 3px solid var(--c);
  border-radius: var(--radius-lg);
  padding: 1.15rem 1.2rem;
  box-shadow: 0 4px 14px rgba(0, 58, 140, 0.06);
  transition: transform var(--t-med), box-shadow var(--t-med);
}
.ns-mvp-card:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(0, 58, 140, 0.12); }
.ns-mvp-card:hover .ns-ico { background: var(--c); color: #fff; }
.ns-mvp-card h3 { font-family: var(--font-display); font-size: 1.05rem; font-weight: 900; color: var(--c); margin-bottom: 0.3rem; }
.ns-mvp-card p { font-size: 0.82rem; color: var(--gray-500); line-height: 1.6; }

/* ── Evolucionamos: orígenes → hoy ──────────────────────────────── */
.ns-evo {
  position: relative;
  display: grid; grid-template-columns: 1fr 1fr;
  max-width: 820px; margin: 0 auto 1.25rem;
  border-radius: var(--radius-xl); overflow: hidden;
  box-shadow: 0 14px 36px rgba(0, 58, 140, 0.14);
}
.ns-evo-side {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  gap: 0.55rem; padding: 1.5rem 1.75rem;
}
.ns-evo-before { background: #fff; }
.ns-evo-after { background: linear-gradient(135deg, var(--blue-deep), var(--blue-mid)); color: #fff; }
.ns-evo-label {
  font-size: 0.66rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 0.25rem 0.75rem; border-radius: var(--radius-full);
  background: var(--blue-pale); color: var(--blue-primary);
}
.ns-evo-after .ns-evo-label { background: rgba(255, 255, 255, 0.16); color: #fff; }
.ns-evo-logo { height: 64px; width: auto; object-fit: contain; }
.ns-evo-logo-bs { width: 96px; object-fit: cover; border-radius: 12px; box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25); }
.ns-evo-side strong { font-family: var(--font-display); font-size: 1rem; font-weight: 900; color: var(--gray-900); }
.ns-evo-after strong { color: #fff; }
.ns-evo-side p { font-size: 0.8rem; line-height: 1.55; color: var(--gray-500); }
.ns-evo-after p { color: rgba(255, 255, 255, 0.82); }
.ns-evo-arrow {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 40px; height: 40px; border-radius: 50%;
  background: #fff; color: var(--red-primary);
  display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 1.15rem;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
}

/* ── Acordeones (información desplegable) ───────────────────────── */
.ns-acc-grid { display: grid; gap: 0.75rem; align-items: start; }
.ns-acc-grid-4 { grid-template-columns: repeat(4, 1fr); }
.ns-acc-grid-2 { grid-template-columns: repeat(2, 1fr); }
.ns-acc {
  background: #fff; border: 1px solid var(--gray-100);
  border-radius: var(--radius-lg);
  box-shadow: 0 3px 10px rgba(0, 58, 140, 0.05);
  transition: border-color var(--t-med), box-shadow var(--t-med);
  list-style: none;
}
.ns-acc:hover, .ns-acc.open { border-color: rgba(0, 58, 140, 0.25); box-shadow: 0 10px 26px rgba(0, 58, 140, 0.12); }
.ns-acc-head {
  width: 100%; display: flex; align-items: center; gap: 0.75rem;
  padding: 0.75rem 0.9rem;
  background: none; border: 0; cursor: pointer; text-align: left; font-family: inherit;
}
.ns-acc-head .ns-ico { width: 36px; height: 36px; border-radius: 10px; }
.ns-acc-head .ns-ico svg { width: 19px; height: 19px; }
.ns-acc.open .ns-ico, .ns-acc-head:hover .ns-ico { background: var(--c, var(--blue-primary)); color: #fff; }
.ns-acc-title { flex: 1; min-width: 0; font-size: 0.86rem; font-weight: 700; color: var(--gray-900); line-height: 1.3; }
.ns-acc-title small {
  display: block; font-size: 0.64rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--c, var(--blue-primary)); margin-bottom: 0.15rem;
}
.ns-chev {
  font-size: 1.2rem; font-weight: 800; color: var(--gray-400);
  transition: transform var(--t-med), color var(--t-med);
}
.ns-acc.open .ns-chev { transform: rotate(90deg); color: var(--c, var(--blue-primary)); }
.ns-acc-head:focus-visible { outline: 2px solid var(--blue-primary); outline-offset: -2px; border-radius: var(--radius-lg); }
.ns-acc-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.35s ease; }
.ns-acc.open .ns-acc-body { grid-template-rows: 1fr; }
.ns-acc-body > div { overflow: hidden; min-height: 0; padding: 0 0.95rem; }
.ns-acc.open .ns-acc-body > div { padding-bottom: 0.9rem; }
.ns-acc-body p { font-size: 0.8rem; color: var(--gray-500); line-height: 1.6; }
.ns-acc-big .ns-acc-head { padding: 1rem 1.1rem; }
.ns-acc-big { border-top: 3px solid var(--c); }
.ns-acc-big .ns-acc-title { font-family: var(--font-display); font-size: 1.05rem; font-weight: 900; }
.ns-acc-big .ns-acc-body > div { padding: 0 1.15rem; }
.ns-acc-big.open .ns-acc-body > div { padding-bottom: 1.15rem; }
.ns-acc-big .ns-acc-body p { font-size: 0.85rem; margin-bottom: 0.75rem; }
.ns-list { display: flex; flex-direction: column; gap: 0.55rem; }
.ns-list li { display: flex; gap: 0.6rem; align-items: flex-start; font-size: 0.8rem; color: var(--gray-600); line-height: 1.5; }
.ns-list strong { color: var(--gray-900); }

/* ── Evolución de marca: las imágenes se juntan al hacer scroll ─── */
.ns-brand {
  --p: 0; /* progreso del scroll (0 → 1), lo actualiza nosotros.js */
  display: grid; grid-template-columns: 1fr 110px 1fr; align-items: center;
  max-width: 640px; margin: 0 auto 1.25rem;
}
.ns-brand-img {
  margin: 0; text-align: center;
  transition: transform 0.1s linear, opacity 0.1s linear;
}
.ns-brand-img img {
  width: 100%; aspect-ratio: 1 / 1; object-fit: contain; background: #fff; padding: 1.1rem;
  border-radius: var(--radius-xl);
  box-shadow: 0 16px 40px rgba(0, 32, 96, 0.22);
}
.ns-brand-img figcaption { margin-top: 0.7rem; font-size: 0.8rem; font-weight: 800; color: var(--gray-700); }
.ns-brand-1 { transform: translateX(calc((1 - var(--p)) * -140px)) rotate(calc((1 - var(--p)) * -6deg)); opacity: calc(0.25 + var(--p) * 0.75); }
.ns-brand-2 { transform: translateX(calc((1 - var(--p)) * 140px)) rotate(calc((1 - var(--p)) * 6deg)); opacity: calc(0.25 + var(--p) * 0.75); }
.ns-brand-arrow { padding: 0 0.5rem; opacity: calc(var(--p) * 1.4 - 0.2); transform: scale(calc(0.6 + var(--p) * 0.4)); }
.ns-brand-arrow svg { width: 100%; overflow: visible; }
.ns-arrow-line {
  fill: none; stroke: url(#nsArrowGrad); stroke-width: 5; stroke-linecap: round;
  stroke-dasharray: 10 8; animation: nsArrowFlow 0.9s linear infinite;
}
.ns-arrow-head {
  fill: none; stroke: #CC1A1A; stroke-width: 5; stroke-linecap: round; stroke-linejoin: round;
  animation: nsArrowNudge 1.4s ease-in-out infinite;
}
@keyframes nsArrowFlow { to { stroke-dashoffset: -18; } }
@keyframes nsArrowNudge { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(6px); } }
.ns-brand-note {
  max-width: 760px; margin: 0 auto; text-align: center;
  font-size: 0.85rem; color: var(--gray-600); line-height: 1.7;
  background: var(--blue-bg); border-radius: var(--radius-lg); padding: 0.9rem 1.2rem;
}

/* ── Trayectoria: logo + dock vertical ──────────────────────────── */
.ns-journey { display: grid; grid-template-columns: 280px 1fr; gap: 2.5rem; align-items: center; }
.ns-journey-logo { text-align: center; position: sticky; top: calc(var(--nav-h) + 2rem); }
.ns-journey-logo-ring {
  width: 220px; height: 220px; margin: 0 auto 1rem; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: radial-gradient(circle, #fff 55%, var(--blue-pale) 56%, var(--blue-pale) 70%, transparent 71%);
  box-shadow: 0 0 0 6px rgba(26, 92, 200, 0.08), 0 20px 50px rgba(0, 58, 140, 0.18);
  animation: nsLogoPulse 3.5s ease-in-out infinite;
}
.ns-journey-logo-ring img { width: 62%; height: auto; }
@keyframes nsLogoPulse {
  0%, 100% { box-shadow: 0 0 0 6px rgba(26, 92, 200, 0.08), 0 20px 50px rgba(0, 58, 140, 0.18); }
  50%      { box-shadow: 0 0 0 16px rgba(26, 92, 200, 0.05), 0 24px 60px rgba(0, 58, 140, 0.22); }
}
.ns-journey-logo p { font-size: 0.85rem; color: var(--gray-500); line-height: 1.6; }
.ns-dock { position: relative; display: flex; flex-direction: column; gap: 0.6rem; padding-left: 0; margin: 0; }
/* Línea de progreso que une las etapas (azul → rojo) */
.ns-dock::before {
  content: ''; position: absolute; left: 33px; top: 24px; bottom: 24px; width: 3px; border-radius: 3px;
  background: linear-gradient(180deg, var(--blue-deep), var(--blue-mid) 50%, var(--red-primary));
  opacity: 0.35;
}
.ns-dock-item { position: relative; background: transparent; border: 0; box-shadow: none; }
.ns-dock-item:hover, .ns-dock-item.open { box-shadow: none; }
.ns-dock-btn {
  background: #fff; border: 1px solid var(--gray-100); border-radius: var(--radius-full);
  padding: 0.45rem 1rem 0.45rem 0.45rem;
  box-shadow: 0 3px 10px rgba(0, 58, 140, 0.06);
  transition: box-shadow var(--t-med), border-color var(--t-med);
}
.ns-dock-item.open .ns-dock-btn, .ns-dock-btn:hover { border-color: var(--c); box-shadow: 0 10px 24px rgba(0, 58, 140, 0.14); }
.ns-dock-node {
  position: relative; z-index: 1;
  width: 50px; height: 50px; flex-shrink: 0; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--c); color: #fff;
  box-shadow: 0 0 0 4px #fff, 0 6px 14px rgba(0, 0, 0, 0.18);
  transition: transform 0.18s ease-out; will-change: transform;
}
.ns-dock-ico svg { width: 22px; height: 22px; display: block; }
.ns-dock-item .ns-acc-body > div { padding: 0 1rem 0 4.4rem; }
.ns-dock-item.open .ns-acc-body > div { padding-top: 0.55rem; padding-bottom: 0.3rem; }
.ns-dock-item .ns-acc-body p {
  background: #fff; border-left: 3px solid var(--c);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 0.65rem 0.85rem; font-size: 0.82rem;
}

/* ── Valores: una sola línea de botones + panel desplegable ─────── */
.ns-values { display: grid; grid-template-columns: repeat(6, 1fr); gap: 0.6rem; }
.ns-value {
  display: flex; flex-direction: column; align-items: center; gap: 0.45rem;
  padding: 0.85rem 0.5rem; cursor: pointer;
  background: #fff; border: 1px solid var(--gray-100); border-radius: var(--radius-lg);
  font-family: var(--font-main); font-size: 0.82rem; font-weight: 700; color: var(--gray-900);
  box-shadow: 0 3px 10px rgba(0, 58, 140, 0.05);
  transition: transform var(--t-med), border-color var(--t-med), box-shadow var(--t-med);
}
.ns-value:hover { transform: translateY(-3px); border-color: rgba(0, 58, 140, 0.25); }
.ns-value[aria-selected="true"] { border-color: var(--blue-primary); box-shadow: 0 10px 24px rgba(0, 58, 140, 0.16); }
.ns-value[aria-selected="true"] .ns-ico, .ns-value:hover .ns-ico { background: var(--blue-primary); color: #fff; }
.ns-value:focus-visible { outline: 2px solid var(--blue-primary); outline-offset: 2px; }
.ns-value-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.35s ease; }
.ns-value-panel.open { grid-template-rows: 1fr; }
.ns-value-panel > div { overflow: hidden; min-height: 0; }
.ns-value-panel p {
  margin-top: 0.75rem; text-align: center;
  background: #fff; border: 1px solid rgba(0, 58, 140, 0.15); border-radius: var(--radius-lg);
  padding: 0.85rem 1.1rem; font-size: 0.88rem; color: var(--gray-700);
}
.ns-value-panel p strong { color: var(--blue-primary); }

/* ── Responsive ─────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .ns-mvp { grid-template-columns: 1fr; }
  .ns-acc-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .ns-journey { grid-template-columns: 1fr; gap: 1.5rem; }
  .ns-journey-logo { position: static; }
  .ns-journey-logo-ring { width: 150px; height: 150px; }
  .ns-values { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
  .ns-section { padding: 2.75rem 1rem; }
  .ns-evo { grid-template-columns: 1fr; }
  .ns-evo-arrow { position: static; transform: rotate(90deg); margin: -20px auto; z-index: 1; }
  .ns-acc-grid-2, .ns-acc-grid-4 { grid-template-columns: 1fr; }
  .ns-brand { grid-template-columns: 1fr 64px 1fr; }
  /* En celular el recorrido es corto para que las imágenes nunca salgan de la pantalla */
  .ns-brand-1 { transform: translateX(calc((1 - var(--p)) * -14px)); }
  .ns-brand-2 { transform: translateX(calc((1 - var(--p)) * 14px)); }
  .ns-values { grid-template-columns: repeat(3, 1fr); }
  .ns-dock-item .ns-acc-body > div { padding-left: 1rem; }
}
@media (prefers-reduced-motion: reduce) {
  .ns-brand { --p: 1 !important; }
  .ns-arrow-line, .ns-arrow-head, .ns-journey-logo-ring { animation: none; }
}
