/* ============================================================
   People Lab — Sitio corporativo
   Swiss design inspired · mobile-first · vanilla CSS
   ============================================================ */

/* ---------- Variables ---------- */
:root {
  --azul: #3A96E9;
  --azul-oscuro: #2178c9;
  --negro: #000000;
  --gris-oscuro: #1F2933;
  --gris-medio: #6B7280;
  --gris-suave: #F4F6F8;
  --blanco: #FFFFFF;

  --maxw: 1200px;
  --gutter: clamp(20px, 5vw, 64px);
  --radius: 14px;
  --shadow: 0 1px 2px rgba(31,41,51,.04), 0 8px 24px rgba(31,41,51,.06);
  --shadow-hover: 0 2px 4px rgba(31,41,51,.06), 0 16px 40px rgba(58,150,233,.12);
  --t: .28s cubic-bezier(.4,0,.2,1);

  --fs-hero: clamp(2.5rem, 6vw, 4.6rem);
  --fs-h2: clamp(1.95rem, 4.2vw, 3.1rem);
  --fs-h3: clamp(1.25rem, 1.8vw, 1.5rem);
  --fs-lead: clamp(1.05rem, 1.5vw, 1.25rem);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Poppins', system-ui, sans-serif;
  color: var(--gris-oscuro);
  background: var(--blanco);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ---------- Layout helpers ---------- */
.container { max-width: var(--maxw); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.section { padding: clamp(56px, 9vw, 120px) 0; }
.section--soft { background: var(--gris-suave); }
.section--dark { background: var(--gris-oscuro); color: #fff; }
.center { text-align: center; }
.eyebrow {
  display: inline-block;
  font-size: .78rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  color: var(--azul); margin-bottom: 16px;
}
.lead { font-size: var(--fs-lead); color: var(--gris-medio); max-width: 62ch; }
.section--dark .lead { color: rgba(255,255,255,.72); }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { line-height: .92; font-weight: 600; color: var(--gris-oscuro); letter-spacing: -.03em; }
.section--dark h1, .section--dark h2, .section--dark h3 { color: #fff; }
h1 { font-size: var(--fs-hero); font-weight: 700; line-height: .9; }
h2 { font-size: var(--fs-h2); line-height: .92; }
h3 { font-size: var(--fs-h3); line-height: 1; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 600; font-size: .95rem; line-height: 1;
  padding: 15px 26px; border-radius: 10px; cursor: pointer;
  border: 1.5px solid transparent; transition: var(--t); white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; }
.btn--primary { background: var(--azul); color: #fff; }
.btn--primary:hover { background: var(--azul-oscuro); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(58,150,233,.32); }
.btn--ghost { background: transparent; color: var(--gris-oscuro); border-color: rgba(31,41,51,.18); }
.btn--ghost:hover { border-color: var(--azul); color: var(--azul); transform: translateY(-2px); }
.section--dark .btn--ghost { color: #fff; border-color: rgba(255,255,255,.3); }
.section--dark .btn--ghost:hover { border-color: #fff; color: #fff; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.85); backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(31,41,51,.07);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.nav__logo img { height: 34px; width: auto; }
.nav__menu { display: flex; align-items: center; gap: 34px; }
.nav__links { display: flex; gap: 30px; }
.nav__links a { font-size: .95rem; font-weight: 500; color: var(--gris-oscuro); position: relative; padding: 4px 0; }
.nav__links a::after {
  content: ''; position: absolute; left: 0; bottom: -2px; width: 0; height: 2px;
  background: var(--azul); transition: var(--t);
}
.nav__links a:hover::after, .nav__links a.active::after { width: 100%; }
.nav__links a.active { color: var(--azul); }
.nav__toggle { display: none; background: none; border: 0; cursor: pointer; width: 30px; height: 24px; position: relative; }
.nav__toggle span { position: absolute; left: 0; width: 100%; height: 3px; border-radius: 2px; background: var(--gris-oscuro); transition: var(--t); }
.nav__toggle span:nth-child(1) { top: 1px; }
.nav__toggle span:nth-child(2) { top: 11px; }
.nav__toggle span:nth-child(3) { top: 21px; }
.nav__toggle.is-open span:nth-child(1) { top: 11px; transform: rotate(45deg); }
.nav__toggle.is-open span:nth-child(2) { opacity: 0; }
.nav__toggle.is-open span:nth-child(3) { top: 11px; transform: rotate(-45deg); }

@media (max-width: 900px) {
  .nav__toggle { display: block; z-index: 110; }
  .nav__menu {
    position: fixed; inset: 76px 0 auto 0; flex-direction: column; gap: 0;
    background: #fff; border-bottom: 1px solid rgba(31,41,51,.07);
    padding: 8px var(--gutter) 28px; align-items: stretch;
    transform: translateY(-130%); transition: transform var(--t); box-shadow: var(--shadow);
  }
  .nav__menu.is-open { transform: translateY(0); }
  .nav__links { flex-direction: column; gap: 0; }
  .nav__links a { display: flex; align-items: center; font-size: 1.55rem; line-height: 1.2; padding: 22px 4px; min-height: 76px; text-transform: uppercase; letter-spacing: .02em; border-bottom: 1px solid rgba(31,41,51,.06); }
  .nav__menu .btn { margin-top: 26px; padding: 18px; font-size: 1.15rem; justify-content: center; }
}

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(60px, 9vw, 110px) 0 clamp(50px, 8vw, 90px); overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(40px, 6vw, 80px); align-items: center; }
.hero h1 { margin-bottom: 22px; }
.hero .lead { margin-bottom: 34px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; }
.hero--inner { padding-bottom: clamp(40px, 6vw, 70px); }
.hero--inner .hero__grid { grid-template-columns: 1fr; max-width: 820px; }
@media (max-width: 880px) { .hero__grid { grid-template-columns: 1fr; } .hero__visual { order: -1; } }

/* ---------- Pillar diagram (hero visual) ---------- */
.diagram { position: relative; aspect-ratio: 1/1; max-width: 552px; margin: 0 auto; width: 100%; }

/* Anillo que gira en sentido horario con paradas escalonadas */
.diagram__ring { position: absolute; inset: 0; animation: ring-spin 12s infinite; }

/* Núcleo central — azul oficial sólido, estático */
.diagram__core {
  position: absolute; inset: 50% auto auto 50%; transform: translate(-50%,-50%);
  width: 38%; aspect-ratio: 1; border-radius: 50%; background: var(--azul);
  display: grid; place-items: center; text-align: center; color: #fff; z-index: 3;
  box-shadow: 0 18px 44px rgba(58,150,233,.4);
  animation: core-pulse 2s ease-in-out infinite;
}
.diagram__core span { font-weight: 700; font-size: clamp(1rem,2.8vw,1.4rem); line-height: 1.05; letter-spacing: -.01em; }
.diagram__core img { width: 64%; height: auto; filter: brightness(0) invert(1); }

/* Círculos: línea delgada azul */
.diagram__node {
  position: absolute; width: 34%; aspect-ratio: 1; border-radius: 50%;
  background: #fff; border: 1.5px solid var(--azul); box-shadow: var(--shadow);
  display: grid; place-items: center; text-align: center; padding: 6px; z-index: 2;
  transition: transform .35s cubic-bezier(.34,1.56,.64,1), background .3s, color .3s, box-shadow .3s;
}
.diagram__node span {
  font-size: clamp(.62rem,1.7vw,.78rem); font-weight: 600; color: var(--azul);
  display: block; animation: label-upright 12s infinite; /* mantiene el texto derecho */
}
a.diagram__node { text-decoration: none; cursor: pointer; }
.diagram__node:hover { background: var(--azul); box-shadow: var(--shadow-hover); z-index: 4; }
.diagram__node:hover span { color: #fff; }
.diagram__node.n1 { top: 0; left: 50%; transform: translateX(-50%); }
.diagram__node.n2 { top: 50%; right: 0; transform: translateY(-50%); }
.diagram__node.n3 { bottom: 0; left: 50%; transform: translateX(-50%); }
.diagram__node.n4 { top: 50%; left: 0; transform: translateY(-50%); }
/* Hover: crecen los círculos */
.diagram__node.n1:hover { transform: translateX(-50%) scale(1.22); }
.diagram__node.n2:hover { transform: translateY(-50%) scale(1.22); }
.diagram__node.n3:hover { transform: translateX(-50%) scale(1.22); }
.diagram__node.n4:hover { transform: translateY(-50%) scale(1.22); }

.diagram__lines { position: absolute; inset: 0; z-index: 0; }
.diagram__lines line { stroke: rgba(58,150,233,.35); stroke-width: 1.5; stroke-dasharray: 4 4; }

/* Pausa el giro solo en dispositivos con cursor real (evita que un toque en móvil deje la animación pausada para siempre) */
@media (hover: hover) {
  .diagram:hover .diagram__ring,
  .diagram:hover .diagram__node span { animation-play-state: paused; }
}

/* Giro escalonado: 90° cada 2s con deslizamiento suave */
@keyframes ring-spin {
  0%,   18%  { transform: rotate(0deg); }
  25%,  43%  { transform: rotate(90deg); }
  50%,  68%  { transform: rotate(180deg); }
  75%,  93%  { transform: rotate(270deg); }
  100%       { transform: rotate(360deg); }
}
/* Contra-giro de las etiquetas para que el texto no quede de cabeza */
@keyframes label-upright {
  0%,   18%  { transform: rotate(0deg); }
  25%,  43%  { transform: rotate(-90deg); }
  50%,  68%  { transform: rotate(-180deg); }
  75%,  93%  { transform: rotate(-270deg); }
  100%       { transform: rotate(-360deg); }
}
@keyframes core-pulse {
  0%, 100% { box-shadow: 0 18px 44px rgba(58,150,233,.4); }
  50%      { box-shadow: 0 18px 60px rgba(58,150,233,.6); }
}
@media (prefers-reduced-motion: reduce) {
  .diagram__ring, .diagram__node span, .diagram__core { animation: none; }
}

/* ---------- Banner / positioning strip ---------- */
.banner { background: var(--gris-oscuro); color: #fff; text-align: center; padding: clamp(46px,7vw,84px) 0; }
.banner p { font-size: clamp(1.5rem, 4.4vw, 3rem); font-weight: 700; letter-spacing: -.02em; line-height: 1.2; }
.banner .accent { color: var(--azul); }

/* Franja con mucho más respiro vertical */
.banner--spaced { padding: clamp(72px,12vw,150px) 0; }

/* Trazo de marcador bajo una palabra */
.ink { position: relative; display: inline-block; white-space: nowrap; }
.ink::after {
  content: ''; position: absolute; left: -4%; bottom: -.28em; width: 108%; height: .42em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 40' preserveAspectRatio='none'%3E%3Cpath d='M6 30 C70 14 150 8 232 12 C262 13.5 285 17 296 21 C286 19 258 17 230 17 C150 17 70 22 8 34 C5 34.5 4 31 6 30 Z' fill='%233A96E9'/%3E%3C/svg%3E") no-repeat left center / 100% 100%;
  pointer-events: none;
  /* El trazo se revela de izquierda a derecha (efecto "escrito a marcador") */
  clip-path: inset(0 100% 0 0);
  transition: clip-path .9s cubic-bezier(.65,0,.35,1);
}
.ink.is-drawn::after { clip-path: inset(0 0 0 0); }
@media (prefers-reduced-motion: reduce) { .ink::after { clip-path: inset(0 0 0 0); transition: none; } }

/* ---------- Section header ---------- */
.section-head { max-width: 720px; margin-bottom: clamp(38px, 5vw, 60px); }
.section-head.center { margin-left: auto; margin-right: auto; }
.section-head h2 { margin-bottom: 18px; }

/* ---------- Cards grid ---------- */
.grid { display: grid; gap: 22px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; } }

.card {
  background: #fff; border: 1px solid rgba(31,41,51,.08); border-radius: var(--radius);
  padding: 30px 26px; transition: var(--t); height: 100%;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); border-color: rgba(58,150,233,.3); }
.card__icon {
  width: 48px; height: 48px; border-radius: 12px; background: rgba(58,150,233,.1);
  display: grid; place-items: center; margin-bottom: 20px; color: var(--azul);
}
.card__icon svg { width: 24px; height: 24px; }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--gris-medio); font-size: .96rem; }

/* ---------- Tarjetas-herramienta (abren modal) ---------- */
.card--tool {
  font-family: inherit; text-align: left; cursor: pointer; width: 100%;
  display: flex; flex-direction: column; justify-content: space-between; gap: 18px;
}
.card--tool h3 { transition: color var(--t); }
.card--tool:hover h3 { color: var(--azul); }
.card__more {
  font-size: .82rem; font-weight: 600; color: var(--azul);
  display: inline-flex; align-items: center; gap: 6px;
}
.card__more::after { content: '→'; transition: transform var(--t); }
.card--tool:hover .card__more::after { transform: translateX(4px); }

/* ---------- Modal ---------- */
.modal {
  position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center;
  padding: 24px; opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s;
}
.modal.is-open { opacity: 1; visibility: visible; }
.modal__overlay { position: absolute; inset: 0; background: rgba(15,23,33,.55); backdrop-filter: blur(3px); }
.modal__box {
  position: relative; z-index: 1; background: var(--azul); color: #fff;
  max-width: 460px; width: 100%; border-radius: 18px; padding: clamp(30px,5vw,46px);
  box-shadow: 0 30px 80px rgba(31,41,51,.4); text-align: center;
  transform: translateY(16px) scale(.97); transition: transform .35s cubic-bezier(.34,1.56,.64,1);
}
.modal.is-open .modal__box { transform: none; }
.modal__logo { height: 38px; width: auto; margin: 0 auto 22px; filter: brightness(0) invert(1); }
.modal__box h3 { color: #fff; font-size: 1.5rem; margin-bottom: 14px; line-height: 1; }
.modal__box p { color: rgba(255,255,255,.92); font-size: 1rem; line-height: 1.6; }
.modal__close {
  position: absolute; top: 14px; right: 16px; background: rgba(255,255,255,.18); border: 0;
  color: #fff; width: 34px; height: 34px; border-radius: 50%; font-size: 1.5rem; line-height: 1;
  cursor: pointer; transition: var(--t);
}
.modal__close:hover { background: rgba(255,255,255,.32); transform: rotate(90deg); }

/* ---------- Cycle / steps ---------- */
.steps { counter-reset: step; display: grid; gap: 18px; }
.steps--4 { grid-template-columns: repeat(4, 1fr); }
.steps--5 { grid-template-columns: repeat(5, 1fr); }
@media (max-width: 980px) { .steps--4, .steps--5 { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 560px) { .steps--4, .steps--5 { grid-template-columns: 1fr; } }
.step {
  background: #fff; border: 1px solid rgba(31,41,51,.08); border-radius: var(--radius);
  padding: 28px 24px; position: relative; transition: var(--t);
}
.step:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.step__num {
  counter-increment: step; font-size: .8rem; font-weight: 700; color: var(--azul);
  display: flex; align-items: center; gap: 10px; margin-bottom: 16px;
}
.step__num::before {
  content: counter(step,decimal-leading-zero);
  font-size: 1.6rem; color: var(--gris-oscuro);
}
.step .card__icon { margin-bottom: 16px; }
.step h3 { margin-bottom: 8px; font-size: 1.1rem; }
.step p { color: var(--gris-medio); font-size: .92rem; }

/* ---------- Solution block ---------- */
.solution { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px,5vw,70px); align-items: center; }
.solution + .solution { margin-top: clamp(48px,7vw,90px); }
/* En las filas alternas la imagen va a la izquierda (es el primer hijo en el HTML) */
.solution__num { font-size: 3.4rem; font-weight: 700; color: rgba(58,150,233,.18); line-height: 1; margin-bottom: 8px; }
.solution h2 { margin-bottom: 10px; }
.solution__sub { color: var(--azul); font-weight: 600; margin-bottom: 16px; }
.solution__text { color: var(--gris-medio); margin-bottom: 22px; }
.solution__apps { display: grid; gap: 12px; }
.solution__apps li { display: flex; gap: 12px; align-items: flex-start; font-size: .95rem; }
.solution__apps li::before {
  content: ''; flex: 0 0 18px; height: 18px; margin-top: 3px; border-radius: 5px;
  background: rgba(58,150,233,.12) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%233A96E9' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/12px no-repeat;
}
.solution__media {
  background: var(--gris-suave); border-radius: var(--radius); aspect-ratio: 4/3;
  display: grid; place-items: center; padding: 30px; border: 1px solid rgba(31,41,51,.06);
}
.solution__media svg { width: 60%; height: auto; color: var(--azul); opacity: .9; }
@media (max-width: 820px) {
  .solution { grid-template-columns: 1fr; }
  .solution--rev .solution__media { order: -1; }
  .solution__media { aspect-ratio: 16/9; }
}

/* ---------- Table ---------- */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid rgba(31,41,51,.1); }
table { width: 100%; border-collapse: collapse; min-width: 620px; background: #fff; }
th, td { text-align: left; padding: 18px 22px; border-bottom: 1px solid rgba(31,41,51,.08); font-size: .95rem; }
thead th { background: var(--gris-oscuro); color: #fff; font-weight: 600; font-size: .82rem; letter-spacing: .04em; text-transform: uppercase; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr { transition: background var(--t); }
tbody tr:hover { background: var(--gris-suave); }
td.is-solution { color: var(--azul); font-weight: 600; }

/* ---------- Acordeón (comparativo de valor) ---------- */
.accordion { max-width: 860px; margin: 0 auto; display: grid; gap: 14px; }
.acc__item {
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius); overflow: hidden; transition: border-color var(--t), background var(--t);
}
.acc__item.is-open { border-color: var(--azul); background: rgba(58,150,233,.08); }
.acc__head {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: none; border: 0; cursor: pointer; font-family: inherit; text-align: left;
  padding: 22px clamp(20px,3vw,28px); color: #fff; transition: color var(--t);
}
.acc__reto { font-size: clamp(1.05rem,2vw,1.3rem); font-weight: 600; letter-spacing: -.01em; }
.acc__item.is-open .acc__reto { color: var(--azul); }
.acc__arrow { position: relative; flex: 0 0 22px; height: 22px; }
.acc__arrow::before, .acc__arrow::after {
  content: ''; position: absolute; top: 50%; left: 50%; width: 13px; height: 2px;
  background: var(--azul); border-radius: 2px; transform: translate(-50%,-50%); transition: transform var(--t);
}
.acc__arrow::after { transform: translate(-50%,-50%) rotate(90deg); }
.acc__item.is-open .acc__arrow::after { transform: translate(-50%,-50%) rotate(0); }
.acc__panel { max-height: 0; overflow: hidden; transition: max-height .4s cubic-bezier(.4,0,.2,1); }
.acc__inner { padding: 0 clamp(20px,3vw,28px) 26px; }
.acc__sol { font-size: 1rem; color: rgba(255,255,255,.7); margin-bottom: 6px; }
.acc__sol strong { color: #fff; font-weight: 600; }
.acc__res { font-size: 1rem; color: rgba(255,255,255,.7); margin-bottom: 16px; }
.acc__res span { color: var(--azul); font-weight: 600; }
.acc__desc { color: rgba(255,255,255,.82); font-size: .98rem; line-height: 1.65; max-width: 66ch; }

/* ---------- CTA strip ---------- */
.cta { background: var(--azul); color: #fff; border-radius: clamp(16px,3vw,24px); padding: clamp(40px,6vw,72px); text-align: center; }
.cta h2 { color: #fff; margin-bottom: 14px; }
.cta p { color: rgba(255,255,255,.9); max-width: 60ch; margin: 0 auto 28px; }
.cta .btn--primary { background: #fff; color: var(--azul); }
.cta .btn--primary:hover { background: var(--gris-oscuro); color: #fff; }

/* ---------- Team (filas verticales) ---------- */
.team-list { display: grid; gap: 22px; }
.team-row {
  display: grid; grid-template-columns: 240px 1fr; gap: clamp(24px,4vw,48px); align-items: center;
  background: #fff; border: 1px solid rgba(31,41,51,.08); border-radius: var(--radius);
  padding: clamp(20px,3vw,30px); transition: var(--t);
}
.team-row:hover { box-shadow: var(--shadow-hover); border-color: rgba(58,150,233,.3); transform: translateY(-3px); }
.team-row__photo {
  margin: 0; aspect-ratio: 1/1; border-radius: 12px; overflow: hidden; background: var(--gris-suave);
  position: relative;
}
.team-row__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* Placeholder con iniciales cuando aún no hay foto */
.team-row__photo.is-empty { background: var(--gris-oscuro); }
.team-row__photo.is-empty::after {
  content: attr(data-initials); position: absolute; inset: 0; display: grid; place-items: center;
  color: #fff; font-weight: 700; font-size: clamp(2rem,6vw,3rem); letter-spacing: .04em;
}
.team-row__body h3 { margin-bottom: 4px; }
.team-row__body .role { color: var(--azul); font-weight: 600; font-size: .92rem; margin-bottom: 14px; }
.team-row__body p { color: var(--gris-medio); font-size: .98rem; margin-bottom: 18px; }

.socials { display: flex; gap: 12px; }
.socials a {
  width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center;
  border: 1.5px solid rgba(31,41,51,.14); color: var(--gris-oscuro); transition: var(--t);
}
.socials svg { width: 18px; height: 18px; }
.socials a:hover { background: var(--azul); border-color: var(--azul); color: #fff; transform: translateY(-2px); }

@media (max-width: 640px) {
  .team-row { grid-template-columns: 1fr; text-align: left; }
  .team-row__photo { max-width: 200px; }
}

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1.2fr .9fr; gap: clamp(34px,5vw,64px); align-items: start; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.form { background: #fff; border: 1px solid rgba(31,41,51,.1); border-radius: var(--radius); padding: clamp(26px,4vw,40px); box-shadow: var(--shadow); }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: 7px; }
.field input, .field select, .field textarea {
  width: 100%; font-family: inherit; font-size: .95rem; color: var(--gris-oscuro);
  padding: 13px 15px; border: 1.5px solid rgba(31,41,51,.14); border-radius: 9px; background: #fff;
  transition: var(--t);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--azul); box-shadow: 0 0 0 3px rgba(58,150,233,.14);
}
.field textarea { resize: vertical; min-height: 110px; }
.field--row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 480px) { .field--row { grid-template-columns: 1fr; } }
.form .btn { width: 100%; justify-content: center; margin-top: 6px; }
.form__msg { margin-top: 14px; font-size: .9rem; color: var(--azul); font-weight: 600; display: none; }
.form__msg.show { display: block; }

.contact-emails { display: grid; gap: 14px; }
.email-card {
  background: var(--gris-suave); border: 1px solid rgba(31,41,51,.07); border-radius: 12px;
  padding: 18px 20px; transition: var(--t);
}
.email-card:hover { border-color: rgba(58,150,233,.3); background: #fff; box-shadow: var(--shadow); }
.email-card .label { font-size: .78rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--gris-medio); margin-bottom: 4px; }
.email-card a { color: var(--azul); font-weight: 600; font-size: .95rem; }

/* ---------- Glosario ---------- */
.glos-controls {
  position: sticky; top: 76px; z-index: 50; background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px); padding: 22px 0 16px; margin-bottom: 30px;
  border-bottom: 1px solid rgba(31,41,51,.08);
}
.glos-search { position: relative; margin-bottom: 16px; }
.glos-search svg { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--gris-medio); }
.glos-search input {
  width: 100%; font-family: inherit; font-size: 1rem; padding: 14px 16px 14px 46px;
  border: 1.5px solid rgba(31,41,51,.14); border-radius: 12px; background: #fff; color: var(--gris-oscuro);
  transition: var(--t);
}
.glos-search input:focus { outline: none; border-color: var(--azul); box-shadow: 0 0 0 3px rgba(58,150,233,.14); }

.glos-chips { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 16px; }
.chip {
  font-family: inherit; font-size: .85rem; font-weight: 600; cursor: pointer;
  padding: 8px 16px; border-radius: 999px; border: 1.5px solid rgba(31,41,51,.14);
  background: #fff; color: var(--gris-oscuro); transition: var(--t);
}
.chip:hover { border-color: var(--azul); color: var(--azul); }
.chip.is-active { background: var(--azul); border-color: var(--azul); color: #fff; }

.az { display: flex; flex-wrap: wrap; gap: 4px; }
.az__letter {
  font-family: inherit; font-size: .82rem; font-weight: 600; cursor: pointer;
  width: 30px; height: 30px; border-radius: 8px; border: 0; background: var(--gris-suave);
  color: var(--gris-oscuro); transition: var(--t);
}
.az__letter:hover:not(.is-disabled) { background: var(--azul); color: #fff; }
.az__letter.is-disabled { opacity: .3; cursor: default; }
.glos-meta { margin-top: 12px; font-size: .85rem; color: var(--gris-medio); }

.glos-group { scroll-margin-top: 230px; margin-bottom: 36px; }
.glos-group__letter {
  font-size: 1.6rem; color: var(--azul); font-weight: 700; line-height: 1;
  padding-bottom: 12px; margin-bottom: 22px; border-bottom: 2px solid rgba(58,150,233,.18);
}
.glos-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 900px) { .glos-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 580px) { .glos-grid { grid-template-columns: 1fr; } }

.glos-term {
  background: #fff; border: 1px solid rgba(31,41,51,.08); border-radius: var(--radius);
  padding: 22px 22px 24px; transition: var(--t);
}
.glos-term:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); border-color: rgba(58,150,233,.3); }
.glos-term__tag {
  display: inline-block; font-size: .68rem; font-weight: 600; letter-spacing: .04em;
  text-transform: uppercase; padding: 4px 10px; border-radius: 999px; margin-bottom: 12px;
}
.tag--storytelling { background: rgba(58,150,233,.12); color: var(--azul-oscuro); }
.tag--ie { background: rgba(31,41,51,.08); color: var(--gris-oscuro); }
.tag--cx { background: rgba(58,150,233,.16); color: var(--azul-oscuro); }
.tag--comercial { background: rgba(31,41,51,.85); color: #fff; }
.glos-term h3 { font-size: 1.08rem; margin-bottom: 8px; line-height: 1.1; }
.glos-term p { color: var(--gris-medio); font-size: .92rem; }
.glos-empty { text-align: center; color: var(--gris-medio); padding: 40px 0; }

@media (max-width: 600px) { .glos-controls { top: 0; } }

/* ---------- Footer ---------- */
.footer { background: var(--gris-oscuro); color: rgba(255,255,255,.7); padding: clamp(50px,7vw,80px) 0 30px; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; margin-bottom: 44px; }
@media (max-width: 760px) { .footer__grid { grid-template-columns: 1fr; gap: 30px; } }
.footer__logo img { height: 36px; margin-bottom: 18px; filter: brightness(0) invert(1); }
.footer__desc { font-size: .92rem; max-width: 34ch; }
.footer h4 { color: #fff; font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 18px; }
.footer__list { display: grid; gap: 11px; }
.footer__list a, .footer__list span { font-size: .92rem; transition: var(--t); }
.footer__list a:hover { color: var(--azul); }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 24px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: .85rem; }

/* ---------- Beneficios (lista con check) ---------- */
.benefits { display: grid; gap: 14px; max-width: 760px; }
.benefits li { display: flex; gap: 14px; align-items: flex-start; font-size: 1.02rem; color: var(--gris-oscuro); }
.benefits li::before {
  content: ''; flex: 0 0 22px; height: 22px; margin-top: 1px; border-radius: 6px;
  background: rgba(58,150,233,.12) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%233A96E9' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/14px no-repeat;
}
.section--dark .benefits li { color: rgba(255,255,255,.9); }

/* ---------- Prose / contenido editorial ---------- */
.prose { max-width: 66ch; }
.prose p { color: var(--gris-medio); font-size: var(--fs-lead); }
.prose p + p { margin-top: 18px; }
.section--dark .prose p { color: rgba(255,255,255,.78); }

.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }

/* ---------- Mini test: tarjeta de inicio ---------- */
.minitest { max-width: 720px; margin: 0 auto; background: #fff; border: 1px solid rgba(31,41,51,.1);
  border-radius: clamp(16px,3vw,22px); padding: clamp(30px,5vw,50px); box-shadow: var(--shadow); text-align: center; }
.minitest__icon { width: 62px; height: 62px; border-radius: 16px; background: rgba(58,150,233,.1);
  color: var(--azul); display: grid; place-items: center; margin: 0 auto 22px; }
.minitest__icon svg { width: 30px; height: 30px; }
.minitest h2 { margin-bottom: 14px; }
.minitest__desc { color: var(--gris-medio); font-size: var(--fs-lead); max-width: 56ch; margin: 0 auto 28px; }
.minitest__meta { margin-top: 18px; font-size: .85rem; color: var(--gris-medio); }

/* ---------- Mini test: modal (fondo azul, logo blanco) ---------- */
.mt-modal { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center;
  padding: 20px; opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; }
.mt-modal.is-open { opacity: 1; visibility: visible; }
.mt-modal__overlay { position: absolute; inset: 0; background: rgba(15,23,33,.55); backdrop-filter: blur(3px); }
.mt-modal__box { position: relative; z-index: 1; background: var(--azul); color: #fff;
  max-width: 580px; width: 100%; border-radius: 20px; padding: clamp(28px,4vw,42px);
  box-shadow: 0 30px 80px rgba(31,41,51,.4); max-height: 92vh; overflow-y: auto;
  transform: translateY(16px) scale(.97); transition: transform .35s cubic-bezier(.34,1.56,.64,1); }
.mt-modal.is-open .mt-modal__box { transform: none; }
.mt-modal__logo { height: 34px; width: auto; margin: 0 auto 24px; filter: brightness(0) invert(1); display: block; }
.mt-modal__close { position: absolute; top: 14px; right: 16px; background: rgba(255,255,255,.18); border: 0;
  color: #fff; width: 34px; height: 34px; border-radius: 50%; font-size: 1.5rem; line-height: 1; cursor: pointer; transition: var(--t); }
.mt-modal__close:hover { background: rgba(255,255,255,.32); transform: rotate(90deg); }

.mt-progress { margin-bottom: 20px; }
.mt-progress__label { font-size: .8rem; font-weight: 600; letter-spacing: .04em; color: rgba(255,255,255,.82); margin-bottom: 8px; }
.mt-progress__bar { height: 6px; border-radius: 999px; background: rgba(255,255,255,.22); overflow: hidden; }
.mt-progress__fill { height: 100%; background: #fff; border-radius: 999px; width: 0; transition: width .4s cubic-bezier(.4,0,.2,1); }

.mt-question { font-size: clamp(1.15rem,2.4vw,1.5rem); font-weight: 600; color: #fff; line-height: 1.15;
  margin-bottom: 22px; letter-spacing: -.01em; }
.mt-opts { display: grid; gap: 11px; margin-bottom: 26px; }
.mt-opt { display: flex; gap: 13px; align-items: flex-start; cursor: pointer; padding: 16px 18px;
  border: 1.5px solid rgba(255,255,255,.32); border-radius: 12px; transition: var(--t);
  font-size: .98rem; color: rgba(255,255,255,.92); background: rgba(255,255,255,.06); }
.mt-opt:hover { border-color: #fff; background: rgba(255,255,255,.14); }
.mt-opt input { position: absolute; opacity: 0; width: 0; height: 0; }
.mt-opt__dot { flex: 0 0 20px; height: 20px; margin-top: 1px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,.6); transition: var(--t); position: relative; }
.mt-opt input:focus-visible ~ .mt-opt__dot { box-shadow: 0 0 0 3px rgba(255,255,255,.45); }
.mt-opt.is-selected { border-color: #fff; background: #fff; color: var(--gris-oscuro); }
.mt-opt.is-selected .mt-opt__dot { border-color: var(--azul); background: var(--azul); }
.mt-opt.is-selected .mt-opt__dot::after { content: ''; position: absolute; inset: 4px; border-radius: 50%; background: #fff; }

.mt-nav { display: flex; justify-content: space-between; gap: 12px; }
.mt-modal .btn--light { background: #fff; color: var(--azul); }
.mt-modal .btn--light:hover { background: var(--gris-oscuro); color: #fff; transform: translateY(-2px); }
.mt-modal .btn--lineblanco { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }
.mt-modal .btn--lineblanco:hover { border-color: #fff; transform: translateY(-2px); }
.mt-modal .btn:disabled { opacity: .4; cursor: not-allowed; transform: none; }

/* Resultado dentro del modal */
.mt-result { text-align: center; }
.mt-result__score { font-size: 2.8rem; font-weight: 700; color: #fff; line-height: 1; letter-spacing: -.03em; margin-bottom: 14px; }
.mt-result__bar { height: 8px; border-radius: 999px; background: rgba(255,255,255,.22); overflow: hidden; margin: 0 auto 22px; max-width: 320px; }
.mt-result__fill { height: 100%; background: #fff; border-radius: 999px; width: 0; transition: width .8s cubic-bezier(.4,0,.2,1); }
.mt-result__level { font-size: 1.35rem; font-weight: 700; color: #fff; margin-bottom: 12px; }
.mt-result__text { color: rgba(255,255,255,.9); font-size: 1rem; line-height: 1.6; max-width: 46ch; margin: 0 auto 26px; }
.mt-result__actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
@media (max-width: 480px) {
  .mt-nav { flex-direction: row; }
  .mt-result__actions { flex-direction: column; }
  .mt-result__actions .btn { width: 100%; justify-content: center; }
}

/* ---------- Bloque de enlaces relacionados ---------- */
.related { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 820px) { .related { grid-template-columns: 1fr; } }
.related a {
  display: flex; flex-direction: column; gap: 8px; background: #fff;
  border: 1px solid rgba(31,41,51,.08); border-radius: var(--radius); padding: 26px 24px; transition: var(--t);
}
.related a:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); border-color: rgba(58,150,233,.3); }
.related__icon { width: 50px; height: 50px; border-radius: 13px; background: rgba(58,150,233,.1);
  color: var(--azul); display: grid; place-items: center; margin-bottom: 6px; transition: var(--t); }
.related__icon svg { width: 25px; height: 25px; }
.related a:hover .related__icon { background: var(--azul); color: #fff; }
.related a h3 { font-size: 1.12rem; transition: color var(--t); }
.related a:hover h3 { color: var(--azul); }
.related a span { color: var(--gris-medio); font-size: .92rem; }
.related a .related__go { color: var(--azul); font-weight: 600; font-size: .85rem; }
.related a .related__go::after { content: ' →'; transition: transform var(--t); display: inline-block; }
.related a:hover .related__go::after { transform: translateX(4px); }

/* Botón "Ver más" dentro de las soluciones */
.solution__btn { margin-top: 72px; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}
