/* =========================================================
   Evolf · Sobre nosotros (nosotros.php) — prefijo .nos-
   Reutiliza tokens --cx-* de evolf-casos.css
   ========================================================= */
.nos-page { --nos-r: 4px; --sv-top: 89px; }
.nos-hero .wrap { position: relative; z-index: 1; }
.nos-hero h1 span { display: inline; }
.nos-hero .hero-shade { background: linear-gradient(90deg, rgba(10,20,51,.72) 0%, rgba(10,20,51,.28) 42%, rgba(10,20,51,.08) 100%); }
.nos-page img { display: block; width: 100%; height: 100%; object-fit: cover; }
.nos-intro { margin: 0; max-width: 54ch; font-size: clamp(16px, 1.25vw, 18px); line-height: 1.6; color: var(--cx-muted-l); }
.band-navy .nos-intro { color: var(--cx-muted-d); }
.nos-link { color: #fff; font-weight: 600; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.4); padding-bottom: 2px; transition: border-color .3s; }
.nos-link:hover { border-color: var(--cx-cyan); }
.nos-link--dark { color: var(--cx-purple); border-color: rgba(91,25,196,.35); }

/* ---------- Hero ---------- */
.nos-hero-grid { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: center;
  padding-top: clamp(72px, 8vw, 128px); padding-bottom: clamp(48px, 5vw, 72px); }
.nos-hero .cx-h1 { font-size: clamp(42px, 5vw, 76px); max-width: none; }
.nos-hero-copy { display: grid; gap: 26px; align-content: start; }
.nos-hero-actions { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; margin-top: 6px; }
.nos-hero-media { position: relative; aspect-ratio: 5 / 4.4; }
.nos-hero-photo { position: absolute; inset: 0 14% 16% 0; color: var(--cx-cyan); }
.nos-hero-photo img { border-radius: var(--nos-r); }
.nos-hero-photo2 { position: absolute; right: 0; bottom: 0; width: 46%; aspect-ratio: 3 / 2; border: 6px solid var(--cx-navy-900); border-radius: var(--nos-r); overflow: hidden;
  box-shadow: 0 24px 60px -20px rgba(0,0,0,.6); animation: nosFloat 9s ease-in-out infinite; }
.nos-hero-badge { position: absolute; left: -18px; bottom: 6%; display: flex; gap: 12px; align-items: center; padding: 14px 18px; background: var(--cx-purple); color: #fff;
  border-radius: var(--nos-r); box-shadow: 0 18px 40px -16px rgba(91,25,196,.8); }
.nos-hero-badge b { font-size: 34px; line-height: 1; letter-spacing: -.03em; }
.nos-hero-badge span { font-size: 13px; line-height: 1.25; color: rgba(255,255,255,.85); }
@keyframes nosFloat { 50% { transform: translateY(-10px); } }

.nos-facts { position: relative; margin: 0; padding: 0 0 clamp(48px, 6vw, 88px); display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid var(--cx-hair-d); }
.nos-facts > div { padding: 22px 20px 0 0; border-right: 1px solid var(--cx-hair-d); padding-left: 20px; }
.nos-facts > div:first-child { padding-left: 0; }
.nos-facts > div:last-child { border-right: 0; }
.nos-facts dt { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--cx-cyan); margin-bottom: 10px; }
.nos-facts dd { margin: 0; font-size: clamp(26px, 2.6vw, 38px); font-weight: 700; letter-spacing: -.03em; line-height: 1.05; }
.nos-facts dd small { font-size: 14px; font-weight: 500; letter-spacing: 0; color: var(--cx-muted-d); margin-left: 4px; }
.nos-facts .nos-dd-text { font-size: clamp(17px, 1.4vw, 20px); letter-spacing: -.01em; line-height: 1.25; }

/* ---------- Historia ---------- */
.nos-story-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.nos-story-head { position: sticky; top: calc(var(--sv-top, 113px) + 32px); display: grid; gap: 22px; }
.nos-tl { list-style: none; margin: 0; padding: 0 0 0 36px; position: relative; display: grid; gap: clamp(36px, 4vw, 56px); --p: 0; }
.nos-tl::before, .nos-tl::after { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; background: var(--cx-hair-l); }
.nos-tl::after { background: linear-gradient(var(--cx-purple), var(--cx-cyan)); transform-origin: top; transform: scaleY(var(--p)); }
.nos-tl-item { position: relative; }
.nos-tl-item::before { content: ""; position: absolute; left: -36px; top: 4px; width: 16px; height: 16px; border-radius: 50%; background: var(--cx-paper); border: 2px solid var(--cx-hair-l);
  transition: border-color .4s, background .4s, box-shadow .4s; z-index: 1; }
.nos-tl-item.is-on::before { border-color: var(--cx-purple); background: var(--cx-purple); box-shadow: 0 0 0 6px rgba(91,25,196,.14); }
.nos-tl-when { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--cx-purple); margin-bottom: 8px; }
.nos-tl-item h3 { margin: 0 0 8px; font-size: clamp(22px, 2vw, 28px); letter-spacing: -.02em; color: var(--cx-navy); }
.nos-tl-item p { margin: 0; max-width: 46ch; font-size: 16px; line-height: 1.6; color: var(--cx-muted-l); }

/* ---------- Equipo ---------- */
.nos-team-head { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: end; margin-bottom: clamp(40px, 5vw, 64px); }
.nos-group { display: flex; align-items: center; gap: 16px; margin: 0 0 24px; font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--cx-navy); }
.nos-group::after { content: ""; flex: 1; height: 1px; background: var(--cx-hair-l); }
.nos-grid { list-style: none; margin: 0 0 clamp(40px, 5vw, 64px); padding: 0; display: grid; gap: 16px; }
.nos-grid--lead { grid-template-columns: repeat(3, 1fr); }
.nos-grid--team { grid-template-columns: repeat(4, 1fr); margin-bottom: 32px; }

/* Tarjeta horizontal: foto pequeña + datos + LinkedIn */
.nos-p { display: flex; gap: 18px; align-items: center; padding: 12px; background: var(--cx-paper); border: 1px solid var(--cx-hair-l); border-radius: var(--nos-r);
  transition: border-color .4s, box-shadow .5s var(--cx-ease), transform .5s var(--cx-ease); }
.nos-p:hover { border-color: rgba(91,25,196,.35); box-shadow: 0 18px 40px -24px rgba(19,41,93,.45); transform: translateY(-3px); }
.nos-p-photo { position: relative; flex: none; margin: 0; width: 112px; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 3px; background: var(--cx-navy-900); }
.nos-p--lead { padding: 14px; gap: 22px; }
.nos-p--lead .nos-p-photo { width: 168px; }
.nos-p-photo img { transition: transform .8s var(--cx-ease); }
.nos-p:hover .nos-p-photo img { transform: scale(1.05); }
.nos-p-photo.is-mono { display: grid; place-items: center;
  background:
    radial-gradient(rgba(0,202,207,.22) 1px, transparent 1.4px) 0 0 / 12px 12px,
    radial-gradient(120% 90% at 20% 0%, #5B19C4 0%, transparent 60%),
    linear-gradient(160deg, #13295D 0%, #0A1433 100%); }
.nos-p-ini { font-size: 32px; font-weight: 700; letter-spacing: -.03em; color: #fff; }
.nos-p--lead .nos-p-ini { font-size: 48px; }
.nos-p-body { min-width: 0; display: grid; gap: 4px; justify-items: start; }
.nos-p-tag { font-size: 11px; font-weight: 700; letter-spacing: .14em; color: var(--cx-purple); }
.nos-p-name { margin: 0; font-size: 16px; line-height: 1.2; letter-spacing: -.01em; color: var(--cx-navy); }
.nos-p--lead .nos-p-name { font-size: clamp(18px, 1.5vw, 21px); }
.nos-p-role { margin: 0; font-size: 13px; color: var(--cx-muted-l); }
.nos-p-in { margin-top: 8px; display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 2px; background: #fff; border: 1px solid var(--cx-hair-l);
  font-size: 12px; font-weight: 700; color: var(--cx-navy); text-decoration: none; transition: background .3s, color .3s, border-color .3s; }
.nos-p-in svg { color: #0A66C2; transition: color .3s; }
.nos-p-in:hover { background: #0A66C2; border-color: #0A66C2; color: #fff; }
.nos-p-in:hover svg { color: #fff; }
.nos-p--lead .nos-p-in { padding: 8px 12px; font-size: 13px; }
.nos-team-more { margin: 0; padding-top: 24px; border-top: 1px solid var(--cx-hair-l); font-size: 17px; color: var(--cx-muted-l); }
.nos-team-more b { color: var(--cx-navy); }

/* ---------- Valores ---------- */
.nos-vgrid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.nos-v { padding: 28px 24px 30px; border: 1px solid var(--cx-hair-d); color: var(--cx-cyan); background: rgba(255,255,255,.02); transition: background .4s, transform .5s var(--cx-ease); }
.nos-v:hover { background: rgba(255,255,255,.05); transform: translateY(-4px); }
.nos-v-n { display: block; font-size: 52px; font-weight: 700; letter-spacing: -.04em; line-height: 1; margin-bottom: 40px;
  background: linear-gradient(135deg, var(--cx-cyan), #A57CFF); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nos-v h3 { margin: 0 0 10px; font-size: 22px; color: #fff; letter-spacing: -.015em; }
.nos-v p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--cx-muted-d); }

/* ---------- Cita ---------- */
.nos-quote blockquote { margin: 0 auto; max-width: 980px; position: relative; text-align: center; }
.nos-quote blockquote::before { content: "“"; display: block; font-size: 120px; line-height: .6; color: rgba(255,255,255,.28); margin-bottom: 8px; }
.nos-quote p { margin: 0; color: #fff; font-size: clamp(28px, 3.4vw, 48px); line-height: 1.18; letter-spacing: -.025em; font-weight: 600; }
.nos-quote em { font-style: normal; color: var(--cx-cyan); }

/* ---------- Oficinas ---------- */
.nos-mosaic { display: grid; grid-template-columns: 1.4fr .8fr 1fr; grid-template-rows: repeat(2, clamp(180px, 18vw, 280px)); gap: 16px; }
.nos-m { margin: 0; overflow: hidden; border-radius: var(--nos-r); background: var(--cx-navy-900); }
.nos-m img { transition: transform 1s var(--cx-ease); }
.nos-m:hover img { transform: scale(1.05); }
.nos-m--a { grid-row: 1 / 3; }
.nos-m--b { grid-row: 1 / 3; }

/* ---------- Cierre ---------- */
.nos-end-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.nos-end-card { display: grid; gap: 16px; align-content: start; padding: clamp(28px, 3.5vw, 48px); border: 1px solid var(--cx-hair-d); color: var(--cx-cyan); text-decoration: none;
  transition: background .4s, transform .5s var(--cx-ease); }
.nos-end-card .h2 { margin: 0; color: #fff; }
.nos-end-card p { margin: 0; max-width: 42ch; font-size: 17px; line-height: 1.55; color: var(--cx-muted-d); }
.nos-end-card:hover { background: rgba(255,255,255,.04); transform: translateY(-4px); }
.nos-end-card--solid { background: var(--cx-purple); border-color: var(--cx-purple); }
.nos-end-card--solid .kicker-bar { color: #fff !important; }
.nos-end-card--solid p { color: rgba(255,255,255,.85); }
.nos-end-card--solid:hover { background: var(--purple-600, #4C14A6); }
.nos-end-go { margin-top: 12px; font-weight: 700; color: #fff; }
.nos-end-go span { display: inline-block; transition: transform .35s var(--cx-ease); }
.nos-end-card:hover .nos-end-go span { transform: translateX(5px); }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .nos-grid--team { grid-template-columns: repeat(2, 1fr); }
  .nos-grid--lead { grid-template-columns: 1fr; }
  .nos-vgrid { grid-template-columns: repeat(2, 1fr); }
  .nos-facts { grid-template-columns: repeat(3, 1fr); row-gap: 24px; }
  .nos-facts > div:nth-child(3) { border-right: 0; }
  .nos-facts > div:nth-child(4) { padding-left: 0; }
}
@media (max-width: 860px) {
  .nos-hero-grid, .nos-story-grid, .nos-team-head, .nos-end-grid { grid-template-columns: 1fr; }
  .nos-story-head { position: static; }
  .nos-hero-media { max-width: 560px; }
  .nos-hero-badge { left: 12px; }

  .nos-mosaic { grid-template-columns: 1fr 1fr; grid-template-rows: repeat(3, 200px); }
  .nos-m--a { grid-row: auto; grid-column: 1 / 3; } .nos-m--b { grid-row: 2 / 4; }
}
@media (max-width: 560px) {
  .nos-grid--team { grid-template-columns: 1fr; }
  .nos-vgrid { grid-template-columns: 1fr; }
  .nos-facts { grid-template-columns: 1fr 1fr; }
  .nos-facts > div { border-right: 0 !important; padding-left: 0 !important; }
}
@media (prefers-reduced-motion: reduce) {
  .nos-hero-photo2 { animation: none; }
  .nos-tl::after { transform: none; }
}
.nos-end-card--solid .kicker-bar::before { background: #fff !important; }
.nos-p-photo img, .nos-m img { object-position: center 34%; }
.nos-hero-photo img { object-position: center 18%; }

/* Foto de grupo en el hero: imagen principal más ancha */
.nos-hero-media.has-group .nos-hero-photo { inset: 0 0 16% 0; }
.nos-hero-media.has-group .nos-hero-photo2 { display: none; }
@media (max-width: 1240px) and (min-width: 1081px) { .nos-grid--team .nos-p-photo { width: 96px; } }
