/* Perfil profesional: estilos compartidos por la versión en español (/) y en inglés (/en/). */
:root {
  --navy: #14213d; --navy-2: #1d2d50; --line-d: #34446a;
  --bg: #f4f6f9; --card: #fff; --text: #1d2433; --muted: #5d6880; --soft: #b9c3d6;
  --accent: #fca311; --blue: #2456d3; --pill: #e8eefc; --line: #e3e7ee;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --max: 1100px; --r: 12px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 70px; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: system-ui, -apple-system, "Segoe UI", Roboto, Inter, sans-serif; line-height: 1.6; }
a { color: var(--blue); }
.w { max-width: var(--max); margin: 0 auto; padding: 0 28px; }
p { margin: 0 0 12px; }

/* Navegación */
.lang { display: flex; gap: 4px; font-size: .85rem; margin-left: 22px; }
.lang a, .lang span { padding: 4px 9px; border-radius: 6px; text-decoration: none; color: var(--soft); border: 1px solid var(--line-d); }
.lang span { background: var(--accent); color: var(--navy); border-color: var(--accent); font-weight: 700; }
.lang a:hover { color: #fff; }
nav .right { display: flex; align-items: center; }
nav { position: sticky; top: 0; z-index: 10; background: var(--navy); border-bottom: 1px solid var(--line-d); }
nav .w { display: flex; justify-content: space-between; align-items: center; height: 62px; }
nav b { color: #fff; }
nav ul { display: flex; gap: 20px; list-style: none; margin: 0; padding: 0; }
nav ul a { color: var(--soft); text-decoration: none; font-size: .9rem; }
nav ul a:hover { color: #fff; }
@media (max-width: 860px) { nav ul { display: none; } }

/* Portada */
header { background: var(--navy); color: #fff; }
.hero { display: grid; grid-template-columns: 300px 1fr; gap: 48px; align-items: center; padding: 48px 0 80px; }
.photo { width: 300px; height: 360px; border-radius: var(--r); border: 4px solid #fff; overflow: hidden; background: var(--navy-2); }
.photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 15%; display: block; }
.photo { position: relative; }
.photo .initials { display: none; position: absolute; inset: 0; place-items: center; font-size: 5rem; font-weight: 800; letter-spacing: .04em; color: #fff; background: linear-gradient(150deg, var(--navy-2), #2a3f6e); }
.photo.nophoto img { display: none; }
.photo.nophoto .initials { display: grid; }
.kick { font-family: var(--mono); color: #7fb3ff; font-size: .85rem; }
h1 { font-size: clamp(2.1rem, 4.5vw, 2.9rem); line-height: 1.15; margin: 6px 0 8px; }
.role { font-size: 1.15rem; color: #d5dbe7; margin: 0 0 14px; }
.hero p { color: var(--soft); max-width: 62ch; }
.btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.btn { display: inline-block; padding: 11px 18px; border-radius: 8px; font-weight: 700; text-decoration: none; background: var(--accent); color: var(--navy); border: 1px solid var(--accent); }
.btn.o { background: transparent; color: #fff; border-color: #4b5a7a; }
.btn.d { background: var(--navy); color: #fff; border-color: var(--navy); }
.btn:hover { filter: brightness(1.08); }
@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; text-align: center; gap: 26px; }
  .photo { width: 220px; height: 264px; margin: 0 auto; }
  .hero p { margin-left: auto; margin-right: auto; }
  .btns { justify-content: center; }
}

/* Cifras */
.kp { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: -40px; position: relative; }
.kp div { background: var(--card); border-radius: var(--r); padding: 18px 20px; box-shadow: 0 6px 20px rgba(20,33,61,.08); }
.kp b { font-size: 1.65rem; color: var(--navy); display: block; line-height: 1.25; }
.kp span { font-size: .83rem; color: var(--muted); }
@media (max-width: 760px) { .kp { grid-template-columns: 1fr 1fr; } }

/* Secciones */
section { padding: 30px 0 10px; }
h2 { font-size: 1.55rem; margin: 30px 0 18px; }
h2::before { content: ""; display: inline-block; width: 6px; height: 22px; background: var(--accent); margin-right: 10px; vertical-align: -3px; border-radius: 2px; }
h3 { margin: 0; font-size: 1.04rem; line-height: 1.35; }
.intro { color: var(--muted); max-width: 75ch; margin-top: -6px; }
.g { display: grid; gap: 18px; }
.g2 { grid-template-columns: 1fr 1fr; }
@media (max-width: 700px) { .g2 { grid-template-columns: 1fr; } }
.card { background: var(--card); border-radius: var(--r); padding: 20px 22px; box-shadow: 0 2px 10px rgba(20,33,61,.05); }
.card .m { font-size: .86rem; color: var(--muted); margin: 2px 0 8px; }
.card p, .card li { font-size: .93rem; color: #3c4558; }
.card p:last-child { margin-bottom: 0; }
.card ul { margin: 0; padding-left: 18px; }
.card li { margin-bottom: 4px; }
.pills { margin-top: 10px; }
.pill { display: inline-block; font-family: var(--mono); font-size: .74rem; background: var(--pill); color: var(--blue); padding: 2px 8px; border-radius: 6px; margin: 4px 4px 0 0; }
.pill.gold { background: #fff3db; color: #8a5a00; }

/* Perfil */
.split { display: grid; grid-template-columns: 1.35fr 1fr; gap: 22px; align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.lead { font-size: 1.05rem; }
.wins li { margin-bottom: 8px; }
.wins b { color: var(--navy); }

/* Portafolio */
.prod { display: grid; grid-template-columns: 1fr 1fr; background: var(--card); border-radius: var(--r); overflow: hidden; box-shadow: 0 2px 10px rgba(20,33,61,.05); margin-bottom: 20px; }
.prod .txt { padding: 26px 28px; }
.prod .vis { background: var(--navy); padding: 22px; display: flex; flex-direction: column; justify-content: center; gap: 10px; }
.prod .vis img { width: 100%; border-radius: 8px; display: block; }
.prod .thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.prod h3 { font-size: 1.35rem; }
.prod .tag { font-family: var(--mono); font-size: .75rem; color: var(--blue); margin-bottom: 4px; }
.prod .say { font-weight: 600; color: var(--navy); }
.prod ul { padding-left: 18px; margin: 10px 0 14px; }
.prod li { font-size: .93rem; color: #3c4558; margin-bottom: 4px; }
.prod .btn { font-size: .9rem; padding: 9px 16px; }
@media (max-width: 860px) { .prod { grid-template-columns: 1fr; } }
.mock { background: #0f1a33; border: 1px solid var(--line-d); border-radius: 10px; padding: 18px; color: #e8eefb; }
.mock .row { display: flex; gap: 10px; margin-bottom: 12px; }
.mock .k { flex: 1; background: rgba(255,255,255,.04); border: 1px solid var(--line-d); border-radius: 8px; padding: 10px; }
.mock small { color: var(--soft); display: block; font-size: .7rem; }
.gauge { width: 104px; height: 104px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(#3fd0ff 0 82%, var(--line-d) 82% 100%); flex: none; }
.gauge div { width: 80px; height: 80px; border-radius: 50%; background: #0f1a33; display: grid; place-items: center; text-align: center; font-weight: 800; font-size: 1.4rem; line-height: 1; }
.gauge small { font-size: .58rem; font-weight: 500; margin-top: 3px; }
.note { font-size: .75rem; color: var(--soft); margin: 0; }

/* Casos */
.case { background: var(--card); border-radius: var(--r); padding: 20px 22px; box-shadow: 0 2px 10px rgba(20,33,61,.05); }
.case .num { font-family: var(--mono); font-size: .8rem; color: var(--accent); font-weight: 700; display: block; margin-bottom: 2px; }
.case p { font-size: .93rem; color: #3c4558; margin-bottom: 10px; }
.case .res { font-size: .9rem; font-weight: 600; color: #0f7a43; border-left: 3px solid #0f7a43; padding-left: 10px; }
.case h4 { margin: 0 0 6px; font-size: .9rem; color: var(--navy); }
.case ul { margin: 0; padding-left: 18px; font-size: .92rem; color: #3c4558; }
.case li { margin-bottom: 4px; }
.featured { border-top: 4px solid var(--accent); margin-bottom: 18px; }
.case-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.case-head .num { display: inline; margin-right: 8px; }
.case-head h3 { display: inline; font-size: 1.25rem; }
.case-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin: 12px 0 14px; }
@media (max-width: 760px) { .case-grid { grid-template-columns: 1fr; } }
.agents b { color: var(--navy); }
.scale { display: flex; flex-wrap: wrap; gap: 10px; }
.scale span { background: var(--bg); border-radius: 8px; padding: 6px 12px; font-size: .86rem; color: var(--muted); }
.scale b { color: var(--navy); }
.tag-s { font-family: var(--mono); font-size: .75rem; color: var(--blue); margin-bottom: 4px; }

/* Implementación B2B y clientes */
.b2b { background: var(--navy); color: #fff; border-radius: var(--r); padding: 30px 32px; margin-top: 30px; }
.b2b .tag-s { color: #7fb3ff; }
.b2b h2.plain { margin: 4px 0 10px; font-size: 1.6rem; }
.b2b h2.plain::before { display: none; }
.b2b-head { display: grid; grid-template-columns: 1.2fr 1fr; gap: 28px; align-items: start; }
.b2b-head p { color: var(--soft); margin: 0; }
.b2b-list { margin: 0; padding: 0; list-style: none; }
.b2b-list li { padding-left: 24px; position: relative; margin-bottom: 8px; color: #d5dbe7; font-size: .94rem; }
.b2b-list li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }
@media (max-width: 760px) { .b2b-head { grid-template-columns: 1fr; } .b2b { padding: 24px 20px; } }
.logos-label { margin: 26px 0 12px; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--soft); font-weight: 600; }
.marquee { background: #fff; border-radius: var(--r); overflow: hidden; padding: 22px 0; position: relative; }
.marquee::before, .marquee::after { content: ""; position: absolute; top: 0; bottom: 0; width: 70px; z-index: 1; pointer-events: none; }
.marquee::before { left: 0; background: linear-gradient(90deg, #fff, rgba(255,255,255,0)); }
.marquee::after { right: 0; background: linear-gradient(270deg, #fff, rgba(255,255,255,0)); }
.track { --gap: 56px; display: flex; align-items: center; gap: var(--gap); width: max-content; margin: 0; padding: 0 calc(var(--gap) / 2); list-style: none; animation: logos 28s linear infinite; }
.marquee:hover .track { animation-play-state: paused; }
.track li { flex: none; width: 130px; height: 44px; display: grid; place-items: center; }
.track img { max-width: 130px; max-height: 40px; width: auto; height: auto; object-fit: contain; display: block; }
@keyframes logos { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .track { animation: none; flex-wrap: wrap; justify-content: center; width: auto; gap: 28px 40px; }
  .track li[aria-hidden] { display: none; }
  .marquee::before, .marquee::after { display: none; }
}
@media (max-width: 480px) { .track { --gap: 36px; animation-duration: 22s; } .track li { width: 100px; } .track img { max-width: 100px; max-height: 34px; } }
.more-note { color: var(--soft); font-size: .85rem; margin-top: 10px; text-align: right; }
.tm { font-size: .72rem; color: #8592b0; margin: 12px 0 0; }

/* Formación y herramientas */
dl.tools { margin: 0; }
dl.tools dt { font-weight: 600; margin-top: 12px; color: var(--navy); }
dl.tools dt:first-child { margin-top: 0; }
dl.tools dd { margin: 2px 0 0; color: var(--muted); font-size: .92rem; }
.cert { display: flex; gap: 14px; align-items: center; }
.seal { flex: none; width: 50px; height: 50px; border-radius: 10px; display: grid; place-items: center; font-weight: 800; font-size: .78rem; background: var(--navy); color: var(--accent); }
.seal.soft { background: var(--pill); color: var(--blue); }
.cert p { margin: 0; font-size: .88rem; color: var(--muted); }

/* Contacto */
.contact { background: var(--navy); color: #fff; margin-top: 50px; padding: 54px 0; text-align: center; }
.contact h2 { margin-top: 0; }
.contact p { color: var(--soft); }
.contact .btns { justify-content: center; }
footer { background: var(--navy); color: #7f8bab; text-align: center; font-size: .82rem; padding: 0 0 26px; }
