/* Labher Solutions — sitio público */
:root {
  --navy-950: #060f33; --navy: #0a1747; --navy-800: #11205c; --navy-700: #1a2b70;
  --line: rgba(255,255,255,.1); --line-2: rgba(255,255,255,.18);
  --teal: #3fd0be; --teal-dim: rgba(63,208,190,.14);
  --magenta: #ec0f8e; --magenta-hover: #ff2a9f;
  --text: #fff; --muted: #c2cee6; --muted-2: #8e9cc4;
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Space Grotesk", "Manrope", system-ui, sans-serif;
  --r: 10px; --r-lg: 16px;
  --wrap: 1180px; --gutter: clamp(16px, 4vw, 32px);
  --head-h: 72px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--head-h) + 12px); }
body { margin: 0; font: 400 1rem/1.6 var(--font); color: var(--text); background: var(--navy); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg { max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); line-height: 1.12; margin: 0; letter-spacing: -.01em; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--teal); color: var(--navy); padding: 10px 14px; border-radius: 8px; z-index: 100; font-weight: 700; }
.skip:focus { top: 12px; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 860px; }

/* Botones */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 22px; border-radius: 999px; font: 700 .95rem var(--font); text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: background .2s, border-color .2s, transform .2s; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn-cta { background: var(--magenta); color: #fff; }
.btn-cta:hover { background: var(--magenta-hover); }
.btn-outline { border-color: var(--line-2); color: #fff; background: transparent; }
.btn-outline:hover { border-color: var(--teal); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: progress; }

/* Cabecera */
.site-head { position: sticky; top: 0; z-index: 50; background: rgba(10,23,71,.82); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid transparent; transition: border-color .2s, background .2s; }
.site-head.scrolled { border-color: var(--line); background: rgba(6,15,51,.92); }
.head-row { display: flex; align-items: center; gap: 24px; height: var(--head-h); }
.brand { white-space: nowrap; min-width: 0; display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 700 1.2rem var(--display); letter-spacing: .02em; }
.logo-img { height: 36px; width: auto; display: block; }
.logo-mark { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--teal-dim); color: var(--teal); }
.logo-mark svg { width: 22px; height: 22px; }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a { padding: 8px 14px; border-radius: 999px; text-decoration: none; color: var(--muted); font-weight: 600; font-size: .95rem; }
.nav a:hover, .nav a.active { color: #fff; background: rgba(255,255,255,.06); }
.nav-cta-mobile { display: none !important; }
.lang-switch { display: flex; gap: 2px; padding: 3px; border: 1px solid var(--line-2); border-radius: 999px; flex: none; }
.lang-switch a { min-width: 38px; min-height: 32px; display: grid; place-items: center; border-radius: 999px; font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-decoration: none; color: var(--muted); }
.lang-switch a:hover { color: #fff; }
.lang-switch a[aria-current] { background: #fff; color: var(--navy); }
.burger { display: none; margin-left: auto; width: 46px; height: 46px; border: 1px solid var(--line-2); border-radius: 12px; background: transparent; cursor: pointer; padding: 12px 11px; flex-direction: column; justify-content: space-between; }
.burger span { display: block; height: 2px; background: #fff; border-radius: 2px; transition: transform .25s, opacity .25s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Portada */
.hero { position: relative; padding: clamp(48px, 9vw, 110px) 0 clamp(56px, 8vw, 96px); overflow: hidden;
  background: radial-gradient(900px 500px at 85% 20%, rgba(63,208,190,.12), transparent 60%), radial-gradient(700px 500px at 0% 100%, rgba(236,15,142,.08), transparent 60%), var(--navy); }
.hero-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border: 1px solid var(--line-2); border-radius: 999px; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 4px var(--teal-dim); }
.hero h1 { font-size: clamp(2.3rem, 5.6vw, 4rem); margin: 22px 0 20px; }
.hero h1 em { font-style: normal; color: var(--teal); display: block; }
.hero-lead { color: var(--muted); font-size: clamp(1rem, 1.4vw, 1.12rem); max-width: 560px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-stats { display: grid; grid-template-columns: repeat(4, auto); gap: 18px 28px; margin: 44px 0 0; padding-top: 26px; border-top: 1px solid var(--line); }
.hero-stats dt { font: 700 1.25rem var(--display); }
.hero-stats dd { margin: 2px 0 0; color: var(--muted-2); font-size: .85rem; }

.mock { background: linear-gradient(180deg, var(--navy-800), var(--navy-950)); border: 1px solid var(--line-2); border-radius: 18px; box-shadow: 0 40px 90px rgba(0,0,0,.45), 0 0 0 1px rgba(63,208,190,.06); overflow: hidden; }
.mock-bar { display: flex; align-items: center; gap: 6px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.mock-bar > span { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,.18); }
.mock-bar b { margin-left: auto; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--teal); display: flex; align-items: center; gap: 6px; }
.live { width: 7px; height: 7px; border-radius: 50%; background: var(--teal); animation: pulse 1.6s infinite; }
.mock-map { padding: 10px; }
.map-svg { display: block; width: 100%; height: auto; }
.map-grid { color: rgba(255,255,255,.06); }
.route { fill: none; stroke: var(--teal); stroke-width: 2; stroke-dasharray: 6 7; opacity: .7; animation: dash 30s linear infinite; }
.pin { fill: var(--navy); stroke-width: 3; }
.pin-a { stroke: #4ade80; } .pin-b { stroke: #60a5fa; } .pin-c { stroke: var(--magenta); } .pin-d { stroke: #4ade80; }
.runner { fill: var(--teal); filter: drop-shadow(0 0 8px var(--teal)); }
.mock-toast { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 0 16px 16px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.04); font-size: .85rem; color: var(--muted); }
.mock-toast b { color: var(--teal); }
@keyframes pulse { 50% { opacity: .3; } }
@keyframes dash { to { stroke-dashoffset: -400; } }

/* Secciones */
.sec { padding: clamp(64px, 9vw, 112px) 0; border-top: 1px solid var(--line); }
.sec.alt { background: var(--navy-950); }
.sec-head { max-width: 760px; margin-bottom: clamp(32px, 5vw, 56px); }
.sec-head.center { margin-inline: auto; text-align: center; }
.eyebrow { color: var(--teal); font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 14px; }
.sec h2 { font-size: clamp(1.9rem, 3.8vw, 2.9rem); }
.sec h2.big { font-size: clamp(2.1rem, 5vw, 3.6rem); }
.lead { color: var(--muted); font-size: 1.08rem; margin-top: 16px; }
.prose { margin-top: 22px; color: var(--muted); font-size: clamp(1.05rem, 1.6vw, 1.25rem); }
.prose p + p { margin-top: 1em; }
.problema { background: linear-gradient(180deg, var(--navy), var(--navy-950)); }
.icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: var(--teal-dim); color: var(--teal); flex: none; }
ul[role="list"], ol[role="list"] { list-style: none; margin: 0; padding: 0; }

/* Funcionalidades */
.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feat-card { all: unset; box-sizing: border-box; display: flex; flex-direction: column; gap: 10px; height: 100%; width: 100%; padding: 24px; border: 1px solid var(--line); border-radius: var(--r-lg); background: rgba(255,255,255,.025); cursor: pointer; transition: border-color .2s, background .2s, transform .2s; }
.feat-card:hover { border-color: rgba(63,208,190,.5); background: rgba(63,208,190,.05); transform: translateY(-2px); }
.feat-card:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }
.feat-title { font: 700 1.15rem var(--display); margin-top: 6px; }
.feat-text { color: var(--muted); font-size: .95rem; flex: 1; }
.more { color: var(--teal); font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; font-style: normal; }

/* Pestañas */
.tabs { margin-top: 56px; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 8px; background: rgba(255,255,255,.02); }
.tab-list { display: flex; gap: 6px; padding: 4px; }
.tab-list button { flex: 1; min-height: 46px; border: 0; border-radius: 10px; background: transparent; color: var(--muted); font: 700 .95rem var(--font); cursor: pointer; }
.tab-list button[aria-selected="true"] { background: var(--teal); color: var(--navy); }
.tab-panel { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; padding: 12px 8px 8px; }
.tab-panel[hidden] { display: none; }
.tab-item { padding: 18px 16px; border-left: 1px solid var(--line); }
.tab-item:first-child { border-left: 0; }
.tab-item h3 { font-size: 1.05rem; margin-bottom: 8px; }
.tab-item p { color: var(--muted); font-size: .92rem; }

/* Pasos */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: s; }
.steps li { padding: 26px; border: 1px solid var(--line); border-radius: var(--r-lg); background: rgba(255,255,255,.02); }
.n { display: inline-block; font: 700 1rem var(--display); color: var(--teal); margin-bottom: 14px; }
.steps h3 { font-size: 1.2rem; margin-bottom: 8px; }
.steps p { color: var(--muted); }

/* Industrias */
.ind-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.ind-grid li { padding: 26px; border-radius: var(--r-lg); border: 1px solid var(--line); background: linear-gradient(160deg, rgba(63,208,190,.06), transparent 50%); }
.ind-grid h3 { font-size: 1.2rem; margin: 18px 0 8px; }
.ind-grid p { color: var(--muted); font-size: .95rem; }

/* Por qué */
.value-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.value-card { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; background: rgba(255,255,255,.025); }
.value-card summary { list-style: none; cursor: pointer; display: flex; flex-direction: column; gap: 4px; }
.value-card summary::-webkit-details-marker { display: none; }
.value-card strong { font: 700 clamp(1.6rem, 2.6vw, 2.2rem) var(--display); color: var(--teal); }
.value-card summary span { color: #fff; font-weight: 600; }
.value-card .more { margin-top: 10px; }
.value-card .more::after { content: " ▾"; }
.value-card[open] .more::after { content: " ▴"; }
.value-card p { margin-top: 12px; color: var(--muted); font-size: .93rem; }
.points { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; margin-top: 48px; }
.points li { padding-top: 18px; border-top: 2px solid var(--teal); }
.points h3 { font-size: 1.08rem; margin-bottom: 8px; }
.points p { color: var(--muted); font-size: .93rem; }

/* Implementación */
.impl { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.impl li { display: flex; gap: 18px; padding: 26px; border: 1px solid var(--line); border-radius: var(--r-lg); }
.impl .n { display: grid; place-items: center; flex: none; width: 42px; height: 42px; border-radius: 50%; background: var(--magenta); color: #fff; margin: 0; }
.impl h3 { font-size: 1.15rem; margin-bottom: 8px; }
.impl p { color: var(--muted); font-size: .95rem; }

/* Contacto */
.contact { background: radial-gradient(800px 500px at 100% 0%, rgba(236,15,142,.1), transparent 60%), var(--navy-950); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.contact-list { display: flex; flex-direction: column; gap: 12px; }
.contact-list li { display: flex; align-items: center; gap: 12px; color: var(--muted); }
.contact-list svg { color: var(--teal); }
.contact-list a { text-decoration: none; font-weight: 600; color: #fff; }
.contact-list a:hover { color: var(--teal); }
.form { background: var(--navy-800); border: 1px solid var(--line-2); border-radius: 20px; padding: clamp(20px, 3vw, 32px); display: flex; flex-direction: column; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field label { font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.opt { text-transform: none; letter-spacing: 0; font-weight: 500; color: var(--muted-2); }
.field input, .field select, .field textarea { width: 100%; font: 500 1rem var(--font); color: #fff; background: var(--navy-950); border: 1px solid var(--line-2); border-radius: var(--r); padding: 12px 14px; min-height: 48px; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 40px; }
.field select option { color: #000; }
.field textarea { resize: vertical; min-height: 120px; }
.field input::placeholder, .field textarea::placeholder { color: var(--muted-2); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px var(--teal-dim); }
.field [aria-invalid="true"] { border-color: #ff6b8a; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-msg { font-weight: 600; min-height: 1.2em; }
.form-msg.ok { color: var(--teal); }
.form-msg.err { color: #ff8aa5; }
.legal-note { font-size: .8rem; color: var(--muted-2); }

/* Pie */
.site-foot { background: var(--navy-950); border-top: 1px solid var(--line); padding: 56px 0 28px; color: var(--muted); font-size: .95rem; }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
.foot-grid h2 { font: 700 .8rem var(--font); letter-spacing: .14em; text-transform: uppercase; color: #fff; margin-bottom: 14px; }
.foot-grid nav, .foot-grid > div:last-child { display: flex; flex-direction: column; gap: 8px; }
.foot-grid a { text-decoration: none; }
.foot-grid a:hover { color: var(--teal); }
.motto { font: 700 1.3rem var(--display); color: #fff; margin: 18px 0 8px; letter-spacing: .02em; text-transform: uppercase; }
.foot-legal { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); font-size: .85rem; color: var(--muted-2); }

/* Ventana de detalle */
.modal { width: min(560px, calc(100vw - 32px)); max-height: calc(100vh - 48px); padding: 0; border: 1px solid var(--line-2); border-radius: 20px; background: var(--navy-800); color: #fff; box-shadow: 0 40px 100px rgba(0,0,0,.6); }
.modal::backdrop { background: rgba(3,8,30,.72); backdrop-filter: blur(4px); }
.modal[open] { animation: pop .22s ease-out; }
.modal-x { position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-2); background: transparent; color: #fff; font-size: 1rem; cursor: pointer; }
.modal-x:hover { border-color: var(--teal); }
.modal-body { padding: 36px clamp(22px, 4vw, 36px) 32px; }
.modal-body h3 { font-size: 1.6rem; margin-bottom: 12px; padding-right: 40px; }
.modal-body > p:not(.eyebrow) { color: var(--muted); }
.checks { list-style: none; padding: 0; margin: 20px 0 0; display: flex; flex-direction: column; gap: 10px; }
.checks li { position: relative; padding-left: 30px; }
.checks li::before { content: ""; position: absolute; left: 0; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--teal-dim) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233fd0be' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center/12px no-repeat; }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.98); } }

/* Aparición al hacer scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* Responsivo */
@media (max-width: 1024px) {
  .feat-grid, .steps, .ind-grid { grid-template-columns: repeat(2, 1fr); }
  .value-grid, .points { grid-template-columns: repeat(2, 1fr); }
  .tab-panel { grid-template-columns: repeat(2, 1fr); }
  .tab-item:nth-child(3) { border-left: 0; }
  .impl { grid-template-columns: 1fr; }
}
@media (max-width: 880px) {
  .burger { display: flex; margin-left: 0; }
  .lang-switch { margin-left: auto; }
  .head-cta { display: none; }
  .nav { position: fixed; inset: var(--head-h) 0 auto 0; flex-direction: column; gap: 2px; padding: 12px var(--gutter) 20px; background: var(--navy-950); border-bottom: 1px solid var(--line); transform: translateY(-110%); visibility: hidden; transition: transform .25s ease, visibility .25s; }
  .nav.open { transform: none; visibility: visible; }
  .nav a { padding: 14px; font-size: 1.05rem; border-radius: 10px; }
  .nav-cta-mobile { display: inline-flex !important; margin-top: 10px; }
  .hero-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-grid > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .feat-grid, .steps, .ind-grid, .value-grid, .points, .row-2, .tab-panel { grid-template-columns: 1fr; }
  .tab-item { border-left: 0; border-top: 1px solid var(--line); }
  .tab-item:first-child { border-top: 0; }
  .hero-actions .btn { flex: 1; }
  .head-row { gap: 12px; }
  .brand { font-size: 1.02rem; gap: 8px; }
  .logo-img { max-width: 150px; height: auto; max-height: 34px; }
  .lang-switch a { min-width: 34px; }
  .foot-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
