/* =====================================================================
   ARALIA — Sitio comercial (www.aralia.cl)
   Estilos propios del sitio, construidos sobre aralia.css (tokens).
   No redefinir tokens aquí; solo componentes de página.
   ===================================================================== */

html, body { overflow-x: hidden; }
body.sitio { background: var(--bg); }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--navy-900); color: #fff; padding: 10px 16px; border-radius: 10px; transition: top .2s; }
.skip-link:focus { top: 12px; color: #fff; }

/* Sin animaciones (capturas headless) */
.no-motion .reveal { opacity: 1; transform: none; transition: none; }
.no-motion *, .no-motion *::before, .no-motion *::after { transition: none !important; animation: none !important; }

/* ---------- Header ---------- */
.site-header.is-scrolled { box-shadow: 0 6px 24px -12px rgba(12, 28, 50, .18); background: rgba(255,255,255,.94); }
.site-logo { display: inline-flex; align-items: center; flex: none; }
.site-logo img { height: 32px; }
.site-nav__mobile { display: none; }
.nav-toggle .icon { width: 22px; height: 22px; }
.nav-toggle .icon--close { display: none; }
.site-header.is-open .nav-toggle .icon--open { display: none; }
.site-header.is-open .nav-toggle .icon--close { display: block; }
@media (max-width: 1080px) and (min-width: 901px) {
  .site-nav a { padding: 8px 10px; font-size: .9rem; }
  .site-actions .btn { padding: 0 16px; }
}
@media (max-width: 900px) {
  .site-header.is-open .site-nav { gap: 2px; }
  .site-header.is-open .site-nav a { padding: 12px 14px; font-size: 1rem; border-radius: 12px; }
  .site-nav__mobile { display: block; }
  .site-nav__mobile.btn { display: flex; margin-top: 10px; height: 48px; }
  .site-header.is-open .site-nav .site-nav__mobile.btn--primary { color: #fff; background: var(--navy-800); }
  .site-header.is-open .site-nav .site-nav__mobile.btn--ghost { color: var(--navy-800); background: #fff; }
}
@media (max-width: 520px) {
  .site-actions .btn--primary { display: none; }
  .site-logo img { height: 28px; }
}

/* ---------- Tipografía de sección ---------- */
.display { font-size: clamp(2.5rem, 5.4vw, 4.3rem); line-height: 1.04; letter-spacing: -.035em; font-weight: 800; }
.display em, .h2-accent em { font-style: normal; background: linear-gradient(120deg, var(--navy-700), var(--steel-400)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.section--dark .h2-accent em { background: linear-gradient(120deg, #fff, var(--steel-200)); -webkit-background-clip: text; background-clip: text; }
.section-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head.center { margin-left: auto; margin-right: auto; }
.section-head h2 { margin-bottom: 14px; }
.section-head--split { max-width: none; display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; }
.section-head--split > div { max-width: 680px; }
.section--dark .lead { color: #b7c8dc; }
.section--dark .eyebrow { color: var(--steel-200); }
.section--dark .muted { color: #9fb3c9; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--navy-700); }
.link-arrow .icon { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.link-arrow:hover .icon { transform: translateX(3px); }
.section--dark .link-arrow { color: var(--steel-200); }
.section--dark .link-arrow:hover { color: #fff; }

/* ---------- Hero (inicio) ---------- */
.hero--home { padding-top: clamp(48px, 7vw, 88px); }
.hero--home::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(700px 420px at 85% 8%, rgba(168,195,222,.32), transparent 70%);
}
.hero--home .container { position: relative; }
.hero__copy .lead { margin-bottom: 32px; }
.hero__ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.hero__note { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 10px 22px; color: var(--text-muted); font-size: .9rem; }
.hero__note span { display: inline-flex; align-items: center; gap: 8px; }
.hero__note .icon { width: 16px; height: 16px; color: var(--leaf-600); }
.hero__visual { padding: 28px 0 36px; }
.hero__visual .hero__photo { aspect-ratio: 4 / 3.6; }
.float-card { font-size: .85rem; }
.float-card--run { top: 0; left: -36px; min-width: 250px; }
.float-card--chart { bottom: 0; right: -24px; width: 280px; }
.float-card--domain { top: 44%; right: -28px; display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 999px; font-size: .82rem; }
.float-card__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.float-card__title { font: 700 .92rem/1.2 var(--font-display); color: var(--navy-900); }
.float-card__meta { color: var(--text-subtle); font-size: .78rem; }
.float-card__big { font: 800 1.6rem/1 var(--font-display); color: var(--navy-900); letter-spacing: -.02em; margin-top: 10px; display: flex; align-items: baseline; gap: 8px; }
.float-card__big small { font: 600 .78rem var(--font-body); color: var(--leaf-600); letter-spacing: 0; }
.float-card .progress { height: 6px; margin-top: 12px; }
.float-card .progress__bar { width: 100%; }
.spark { width: 100%; height: 56px; margin-top: 10px; }
.float-card--domain .mono { color: var(--navy-800); font-weight: 500; }
.floaty { animation: floaty 7s ease-in-out infinite; }
.floaty--slow { animation-duration: 9s; animation-delay: -3s; }
@keyframes floaty { 50% { transform: translateY(-8px); } }
@media (max-width: 1180px) {
  .float-card--run { left: -12px; }
  .float-card--chart { right: -8px; }
  .float-card--domain { right: -8px; }
}
@media (max-width: 960px) {
  .hero__visual { max-width: 640px; }
  .float-card--run { left: 12px; }
  .float-card--chart { right: 12px; }
  .float-card--domain { right: 12px; }
}
@media (max-width: 560px) {
  .hero__visual { padding: 0; }
  .float-card--run { position: relative; left: auto; top: auto; margin: -48px 16px 0; min-width: 0; }
  .float-card--chart, .float-card--domain { display: none; }
}

/* ---------- Franja de industrias ---------- */
.industries { padding: 40px 0 0; }
.industries + .section { padding-top: clamp(64px, 8vw, 104px); }
.industries__label { text-align: center; font: 600 .78rem/1 var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--text-subtle); margin-bottom: 26px; }
.industries__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.industries__list a, .industries__list li > span {
  display: inline-flex; align-items: center; gap: 10px; height: 48px; padding: 0 18px 0 8px; border-radius: 999px;
  background: #fff; border: 1px solid var(--border); color: var(--navy-800); font: 600 .95rem var(--font-display);
  transition: border-color .2s, transform .2s var(--ease), box-shadow .2s;
}
.industries__list a:hover { border-color: var(--steel-200); transform: translateY(-2px); box-shadow: var(--shadow); color: var(--navy-900); }
.ind-ico { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--info-100); color: var(--navy-700); }
.ind-ico .icon { width: 18px; height: 18px; }

/* ---------- Comparación informe vs modelo vivo ---------- */
.versus { display: grid; grid-template-columns: 1fr 1.15fr; gap: 20px; align-items: stretch; }
.versus__col { border-radius: var(--radius-lg); padding: clamp(24px, 3vw, 36px); border: 1px solid var(--border); background: #fff; }
.versus__col h3 { display: flex; align-items: center; gap: 10px; font-size: 1.1rem; }
.versus__col ul { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 14px; }
.versus__col li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; color: var(--text-muted); line-height: 1.5; }
.versus__col li .icon { width: 20px; height: 20px; margin-top: 2px; }
.versus__col--old li .icon { color: var(--text-subtle); }
.versus__col--old h3 { color: var(--text-muted); }
.versus__col--new { background: var(--grad-brand); border-color: transparent; color: var(--text-on-dark); box-shadow: var(--shadow-lg); }
.versus__col--new h3 { color: #fff; }
.versus__col--new li { color: #d3e0ee; }
.versus__col--new li .icon { color: #7fdcb2; }
.versus__tag { display: inline-flex; font: 600 .72rem/1 var(--font-body); letter-spacing: .1em; text-transform: uppercase; padding: 6px 10px; border-radius: 999px; background: rgba(255,255,255,.12); color: var(--steel-200); margin-bottom: 14px; }
.versus__col--old .versus__tag { background: var(--bg-sunken); color: var(--text-subtle); }
@media (max-width: 860px) { .versus { grid-template-columns: 1fr; } }

/* ---------- Servicios ---------- */
.service-card { display: flex; flex-direction: column; height: 100%; }
.service-card h3 { margin-bottom: 10px; }
.service-card p { color: var(--text-muted); margin-bottom: 18px; }
.service-card .tags { margin-top: auto; display: flex; flex-wrap: wrap; gap: 6px; }
.service-card .tags span { font-size: .78rem; padding: 4px 10px; border-radius: 999px; background: var(--mist-50); border: 1px solid var(--border); color: var(--text-muted); }
.service-card--cta { background: var(--navy-900); border-color: var(--navy-900); color: var(--text-on-dark); justify-content: space-between; }
.service-card--cta h3 { color: #fff; }
.service-card--cta p { color: #b7c8dc; }

/* ---------- Mockup de la plataforma (HTML/CSS) ---------- */
.mockup { border-radius: 18px; background: #fff; box-shadow: 0 40px 80px -24px rgba(0,0,0,.45), 0 0 0 1px rgba(255,255,255,.08); overflow: hidden; color: var(--text); font-size: 13px; line-height: 1.4; }
.mockup__bar { display: flex; align-items: center; gap: 14px; height: 40px; padding: 0 14px; background: #eef2f7; border-bottom: 1px solid var(--border); }
.mockup__dots { display: flex; gap: 6px; }
.mockup__dots i { width: 10px; height: 10px; border-radius: 50%; background: #cfd8e3; }
.mockup__url { flex: 1; max-width: 360px; margin: 0 auto; height: 24px; border-radius: 8px; background: #fff; border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; gap: 6px; font: 500 11.5px var(--font-mono); color: var(--text-muted); }
.mockup__url .icon { width: 12px; height: 12px; color: var(--leaf-600); }
.mockup__app { display: grid; grid-template-columns: 168px 1fr; min-height: 380px; }
.mockup__side { background: var(--navy-900); padding: 14px 10px; color: #a9bbd0; display: flex; flex-direction: column; gap: 3px; }
.mockup__brand { display: flex; align-items: center; gap: 8px; padding: 2px 8px 14px; color: #fff; font: 700 12px var(--font-display); letter-spacing: .02em; }
.mockup__brand img { width: 20px; height: 20px; }
.mockup__link { display: flex; align-items: center; gap: 8px; padding: 7px 8px; border-radius: 8px; font-size: 12px; }
.mockup__link .icon { width: 14px; height: 14px; }
.mockup__link.is-active { background: rgba(114,152,189,.22); color: #fff; box-shadow: inset 2px 0 0 var(--steel-200); }
.mockup__main { padding: 16px 18px; background: var(--bg-soft); display: grid; gap: 12px; align-content: start; min-width: 0; }
.mockup__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.mockup__head strong { font: 700 14px var(--font-display); color: var(--navy-900); }
.mockup__head .env-pill { height: 20px; font-size: 9.5px; padding: 0 8px; }
.mockup__kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.mk { background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; }
.mk span { display: block; font-size: 10.5px; color: var(--text-muted); }
.mk b { display: block; font: 700 17px/1.2 var(--font-display); color: var(--navy-900); margin-top: 2px; font-variant-numeric: tabular-nums; }
.mk em { font-style: normal; font-size: 10.5px; font-weight: 600; color: var(--leaf-600); }
.mockup__panels { display: grid; grid-template-columns: 1.35fr 1fr; gap: 10px; }
.mpanel { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; min-width: 0; }
.mpanel__title { font-size: 11px; font-weight: 600; color: var(--navy-900); margin-bottom: 8px; display: flex; justify-content: space-between; gap: 8px; }
.mpanel__title span { color: var(--text-subtle); font-weight: 500; }
.bars { flex: 1; display: flex; align-items: end; gap: 6px; min-height: 96px; padding-top: 4px; }
.bars i { flex: 1; border-radius: 4px 4px 0 0; background: linear-gradient(180deg, var(--steel-300), var(--steel-500)); min-height: 8px; }
.bars i.is-opt { background: linear-gradient(180deg, #5cc79b, var(--leaf-600)); }
.bars-legend { display: flex; gap: 12px; margin-top: 8px; font-size: 10px; color: var(--text-muted); }
.bars-legend span { display: inline-flex; align-items: center; gap: 5px; }
.bars-legend i { width: 8px; height: 8px; border-radius: 2px; background: var(--steel-400); }
.bars-legend i.is-opt { background: var(--leaf-500); }
.mrows { display: grid; gap: 6px; }
.mrow { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 11px; padding: 6px 8px; border-radius: 7px; background: var(--mist-25); border: 1px solid var(--border); }
.mrow b { font-weight: 600; color: var(--navy-900); }
.mrow .badge { height: 18px; font-size: 9.5px; padding: 0 7px; }
.mockup--compact .mockup__app { grid-template-columns: 1fr; min-height: 0; }
.mockup--compact .mockup__side { display: none; }
@media (max-width: 760px) {
  .mockup__app { grid-template-columns: 1fr; }
  .mockup__side { display: none; }
}
@media (max-width: 520px) {
  .mockup__panels { grid-template-columns: 1fr; }
  .mockup__kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mockup__kpis .mk:nth-child(3) { display: none; }
  .mockup__url { font-size: 10.5px; }
}

/* ---------- Sección plataforma en inicio ---------- */
.platform-home { position: relative; overflow: hidden; }
.platform-home::before { content: ""; position: absolute; width: 900px; height: 900px; right: -300px; top: -380px; background: radial-gradient(closest-side, rgba(90,129,173,.35), transparent); pointer-events: none; }
.platform-home .container { position: relative; }
.platform-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
@media (max-width: 1000px) { .platform-grid { grid-template-columns: 1fr; } }
.steps-list { list-style: none; padding: 0; margin: 28px 0 32px; display: grid; gap: 6px; counter-reset: st; }
.steps-list li { display: grid; grid-template-columns: 44px 1fr; gap: 16px; padding: 14px 16px; border-radius: 16px; transition: background .2s; }
.steps-list li:hover { background: rgba(255,255,255,.05); }
.steps-list .step-ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: rgba(168,195,222,.14); color: var(--steel-200); }
.steps-list h3 { font-size: 1.05rem; margin: 2px 0 4px; }
.steps-list p { margin: 0; color: #a9bdd3; font-size: .95rem; }

/* ---------- Estadísticas / características ---------- */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--border); border-radius: var(--radius-xl); background: #fff; overflow: hidden; }
.stats > div { padding: clamp(24px, 3vw, 36px); border-left: 1px solid var(--border); }
.stats > div:first-child { border-left: 0; }
.stats p { margin: 12px 0 0; color: var(--text-muted); font-size: .95rem; }
.stats .stat small { font-size: .5em; font-weight: 700; color: var(--steel-400); margin-left: 2px; }
@media (max-width: 900px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats > div:nth-child(3) { border-left: 0; }
  .stats > div:nth-child(n+3) { border-top: 1px solid var(--border); }
}
@media (max-width: 480px) {
  .stats { grid-template-columns: 1fr; }
  .stats > div { border-left: 0; }
  .stats > div + div { border-top: 1px solid var(--border); }
}

/* ---------- Proceso ---------- */
.process { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; position: relative; }
.process::before { content: ""; position: absolute; left: 20px; right: 20px; top: 20px; height: 2px; background: linear-gradient(90deg, var(--steel-200), var(--leaf-100)); }
.process li { position: relative; }
.process .step-num { position: relative; box-shadow: 0 0 0 6px var(--bg-soft); }
.section:not(.section--soft) .process .step-num { box-shadow: 0 0 0 6px #fff; }
.process h3 { margin: 22px 0 8px; font-size: 1.15rem; }
.process p { color: var(--text-muted); margin: 0 0 10px; }
.process .when { display: inline-flex; align-items: center; gap: 6px; font-size: .82rem; font-weight: 600; color: var(--steel-500); }
.process .when .icon { width: 14px; height: 14px; }
.process li:last-child .step-num { background: var(--leaf-600); }
@media (max-width: 900px) {
  .process { grid-template-columns: 1fr 1fr; row-gap: 36px; }
  .process::before { display: none; }
}
@media (max-width: 560px) {
  .process { grid-template-columns: 1fr; }
  .process li { display: grid; grid-template-columns: 40px 1fr; column-gap: 18px; }
  .process h3 { margin-top: 6px; }
  .process li > *:not(.step-num) { grid-column: 2; }
  .process .step-num { grid-row: 1 / span 3; }
}

/* ---------- Tarjetas de caso con foto ---------- */
.case-card { display: flex; flex-direction: column; height: 100%; color: inherit; }
.case-card:hover { color: inherit; }
.case-card .media-card__img { transition: transform .5s var(--ease); }
.case-card:hover .media-card__img { transform: scale(1.04); }
.case-card__imgwrap { overflow: hidden; position: relative; }
.case-card__imgwrap .badge { position: absolute; left: 16px; top: 16px; background: rgba(255,255,255,.92); color: var(--navy-800); }
.case-card .media-card__body { display: flex; flex-direction: column; flex: 1; }
.case-card h3 { font-size: 1.15rem; }
.case-card p { color: var(--text-muted); }
.case-card .impact { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--border); display: flex; align-items: center; gap: 8px; font-size: .88rem; font-weight: 600; color: var(--leaf-600); }
.case-card .impact .icon { width: 16px; height: 16px; }

/* ---------- CTA ---------- */
.cta-band::before { content: ""; position: absolute; width: 520px; height: 520px; right: -140px; top: -220px; border-radius: 50%; background: radial-gradient(closest-side, rgba(168,195,222,.35), transparent); }
.cta-band::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px); background-size: 40px 40px; mask-image: linear-gradient(90deg, transparent, #000 70%); -webkit-mask-image: linear-gradient(90deg, transparent, #000 70%); pointer-events: none; }
.cta-band > * { position: relative; z-index: 1; }
.cta-band__grid { display: grid; grid-template-columns: 1.4fr auto; gap: 32px; align-items: center; }
.cta-band__grid .lead { margin-bottom: 0; }
.cta-band__actions { display: flex; gap: 12px; flex-wrap: wrap; }
@media (max-width: 820px) { .cta-band__grid { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer__brand img { height: 32px; width: auto; margin-bottom: 18px; }
.site-footer__brand p { max-width: 34ch; color: #8ea4bc; }
.site-footer__social { display: flex; gap: 10px; margin-top: 18px; }
.site-footer__social a { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.08); }
.site-footer__social a:hover { background: rgba(255,255,255,.12); }
.site-footer__contact li { display: flex; gap: 10px; align-items: flex-start; }
.site-footer__contact .icon { width: 16px; height: 16px; margin-top: 3px; color: var(--steel-300); }
.site-footer__bottom { margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.08); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .85rem; color: #7c93ad; }
.site-footer__bottom a { color: #9fb3c9; }
@media (max-width: 760px) { .site-footer__brand { grid-column: 1 / -1; } }
@media (max-width: 400px) { .site-footer__grid { grid-template-columns: 1fr; } }

/* ---------- Page hero (interiores) ---------- */
.page-hero .lead { margin-bottom: 0; }
.page-hero h1 { font-size: clamp(2.3rem, 5vw, 3.9rem); line-height: 1.06; letter-spacing: -.03em; max-width: 20ch; }
.page-hero__ctas { margin-top: 32px; display: flex; gap: 12px; flex-wrap: wrap; }
.page-hero__crumbs { display: flex; gap: 8px; align-items: center; font-size: .85rem; color: #8ea4bc; margin-bottom: 22px; }
.page-hero__crumbs a { color: #c6d6e8; }
.page-hero__crumbs .icon { width: 14px; height: 14px; }
.subnav { position: sticky; top: 72px; z-index: 30; background: rgba(255,255,255,.94); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); }
.subnav__inner { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; padding: 10px 0; }
.subnav__inner::-webkit-scrollbar { display: none; }
.subnav a { flex: none; display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; color: var(--text-muted); font-weight: 500; font-size: .9rem; white-space: nowrap; }
.subnav a .icon { width: 16px; height: 16px; }
.subnav a:hover, .subnav a.is-active { background: var(--mist-50); color: var(--navy-900); }

/* ---------- Bloques split (imagen + texto) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.split--rev .split__media { order: 2; }
.split__media { position: relative; }
.split__media img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; border-radius: var(--radius-xl); box-shadow: var(--shadow-lg); }
.split__media .float-card { left: -24px; bottom: -24px; max-width: 280px; }
.split--rev .split__media .float-card { left: auto; right: -24px; }
.split h2 { margin-bottom: 16px; }
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
  .split--rev .split__media { order: 0; }
  .split__media .float-card, .split--rev .split__media .float-card { left: 16px; right: 16px; bottom: -28px; max-width: none; }
  .split__media { margin-bottom: 28px; }
}
.checklist { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 12px; }
.checklist li { display: grid; grid-template-columns: 24px 1fr; gap: 12px; color: var(--text-muted); }
.checklist li strong { color: var(--navy-900); font-weight: 600; }
.checklist .icon { width: 20px; height: 20px; margin-top: 2px; color: var(--leaf-600); }
.checklist--2 { grid-template-columns: 1fr 1fr; column-gap: 24px; }
@media (max-width: 560px) { .checklist--2 { grid-template-columns: 1fr; } }
.service-block + .service-block { margin-top: clamp(80px, 10vw, 128px); }
.service-block__num { font: 600 .82rem var(--font-mono); color: var(--steel-400); margin-bottom: 10px; display: block; }
.uses { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.uses span { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 10px; background: var(--mist-50); border: 1px solid var(--border); font-size: .88rem; color: var(--navy-800); font-weight: 500; }
.uses .icon { width: 15px; height: 15px; color: var(--steel-500); }

/* ---------- Entregables / features ---------- */
.feature { display: grid; gap: 6px; align-content: start; }
.feature h3 { font-size: 1.08rem; margin: 0 0 4px; }
.feature p { color: var(--text-muted); margin: 0; }
.section--dark .feature p { color: #a9bdd3; }
.section--dark .card__icon { background: rgba(168,195,222,.14); color: var(--steel-200); }
.section--dark .card { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.08); box-shadow: none; }

/* ---------- Casos por industria ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 40px; }
.filters .chip { height: 38px; padding: 0 14px; font-weight: 500; font-size: .84rem; }
.filters { gap: 6px; }
.filters .chip .icon { width: 16px; height: 16px; }
.filters .chip:hover:not(.is-active) { border-color: var(--steel-200); color: var(--navy-800); }
.industry { display: grid; grid-template-columns: 380px 1fr; gap: 0; border: 1px solid var(--border); border-radius: var(--radius-xl); overflow: hidden; background: #fff; box-shadow: var(--shadow-sm); }
.industry + .industry { margin-top: 28px; }
.industry[hidden] { display: none; }
.industry__media { position: relative; min-height: 280px; }
.industry__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.industry__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(8,19,31,.85)); }
.industry__caption { position: absolute; left: 24px; right: 24px; bottom: 22px; z-index: 1; color: #fff; }
.industry__caption .ind-ico { background: rgba(255,255,255,.16); color: #fff; margin-bottom: 10px; backdrop-filter: blur(6px); }
.industry__caption h2 { color: #fff; font-size: 1.6rem; margin: 0 0 4px; }
.industry__caption p { margin: 0; color: #c6d6e8; font-size: .92rem; }
.industry__cases { display: grid; }
.ucase { padding: clamp(22px, 3vw, 32px); }
.ucase + .ucase { border-top: 1px solid var(--border); }
.ucase h3 { font-size: 1.15rem; margin-bottom: 16px; }
.ucase dl { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 28px; }
.ucase dt { font: 600 .72rem/1 var(--font-body); letter-spacing: .1em; text-transform: uppercase; color: var(--text-subtle); margin-bottom: 6px; display: flex; align-items: center; gap: 6px; }
.ucase dt .icon { width: 14px; height: 14px; }
.ucase dd { margin: 0; color: var(--text-muted); font-size: .94rem; }
.ucase .impact-dd { color: var(--leaf-600); font-weight: 600; }
@media (max-width: 960px) {
  .industry { grid-template-columns: 1fr; }
  .industry__media { min-height: 220px; }
}
@media (max-width: 600px) { .ucase dl { grid-template-columns: 1fr; } }
.disclaimer { display: flex; gap: 12px; align-items: flex-start; padding: 16px 20px; border-radius: var(--radius); background: var(--mist-50); border: 1px solid var(--border); color: var(--text-muted); font-size: .9rem; margin-top: 40px; }
.disclaimer .icon { color: var(--steel-500); margin-top: 3px; }

/* ---------- Tour de la plataforma ---------- */
.tour { display: grid; grid-template-columns: 340px 1fr; gap: clamp(28px, 4vw, 56px); align-items: start; }
.tour__tabs { display: grid; gap: 8px; position: sticky; top: 100px; }
.tour__tab { text-align: left; display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: start; padding: 16px; border-radius: 16px; border: 1px solid transparent; background: transparent; cursor: pointer; font: inherit; color: inherit; transition: background .2s, border-color .2s; }
.tour__tab:hover { background: var(--mist-50); }
.tour__tab .step-num { background: var(--bg-sunken); color: var(--navy-700); transition: background .2s, color .2s; }
.tour__tab strong { display: block; font: 700 1rem var(--font-display); color: var(--navy-900); margin-top: 2px; }
.tour__tab div > span { display: block; font-size: .88rem; color: var(--text-muted); margin-top: 2px; }
.tour__tab[aria-selected="true"] { background: #fff; border-color: var(--border); box-shadow: var(--shadow); }
.tour__tab[aria-selected="true"] .step-num { background: var(--navy-800); color: #fff; }
.tour__panel[hidden] { display: none; }
.tour__panel { animation: fadeUp .4s var(--ease); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.tour__stage { border-radius: var(--radius-xl); padding: clamp(16px, 3vw, 36px); background: var(--grad-brand); position: relative; overflow: hidden; }
.tour__stage::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.08) 1px, transparent 1px); background-size: 22px 22px; }
.tour__stage .mockup { position: relative; }
.tour__text { margin-top: 24px; }
.tour__text h3 { font-size: 1.35rem; }
.tour__text p { color: var(--text-muted); max-width: 64ch; }
@media (max-width: 960px) {
  .tour { grid-template-columns: 1fr; }
  .tour__tabs { position: static; grid-auto-flow: column; grid-auto-columns: minmax(180px, 1fr); overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; }
  .tour__tab div > span { display: none; }
  .tour__tab { grid-template-columns: 40px 1fr; align-items: center; padding: 12px; }
}
/* contenido de pantallas del tour */
.dropzone { border: 2px dashed var(--steel-200); border-radius: 12px; background: #fff; padding: 20px; text-align: center; color: var(--text-muted); font-size: 12px; }
.dropzone .icon { width: 26px; height: 26px; margin: 0 auto 8px; color: var(--steel-500); }
.dropzone b { color: var(--navy-900); display: block; font-size: 13px; }
.srcs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.src { display: flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 9px 10px; font-size: 11.5px; min-width: 0; }
.src .icon { width: 16px; height: 16px; color: var(--steel-500); }
.src b { font-weight: 600; color: var(--navy-900); display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.src small { color: var(--leaf-600); font-weight: 600; font-size: 10px; }
.src > div { min-width: 0; }
.mtable { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 11.5px; background: #fff; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.mtable th { text-align: left; font-size: 9.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted); background: var(--mist-50); padding: 8px 10px; border-bottom: 1px solid var(--border); white-space: nowrap; }
.mtable td { padding: 7px 10px; border-bottom: 1px solid var(--border); white-space: nowrap; }
.mtable tr:last-child td { border-bottom: 0; }
.mtable .num { text-align: right; font-variant-numeric: tabular-nums; }
.mtable td.is-edited { background: var(--warn-100); box-shadow: inset 0 0 0 1.5px var(--warn-500); border-radius: 4px; }
.mtable-wrap { overflow-x: auto; border-radius: 10px; }
.mconsole { background: var(--navy-950); color: #cfe0f1; border-radius: 10px; padding: 12px 14px; font: 400 11px/1.7 var(--font-mono); overflow: hidden; }
.mconsole .t { color: #6f87a3; } .mconsole .ok { color: #6fd3a5; } .mconsole .info { color: #8fb7e0; }
.mconsole .line { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mailcard { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 14px; display: grid; gap: 10px; font-size: 12px; }
.mailcard__row { display: flex; gap: 8px; align-items: center; color: var(--text-muted); flex-wrap: wrap; }
.mailcard__row b { color: var(--navy-900); font-weight: 600; }
.pill-sm { display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; border-radius: 999px; background: var(--info-100); color: var(--navy-700); font-size: 10.5px; font-weight: 600; }
.pill-sm .icon { width: 11px; height: 11px; }
.attach { display: flex; gap: 8px; flex-wrap: wrap; }
.attach span { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 8px; border: 1px solid var(--border); background: var(--mist-25); font-size: 11px; font-weight: 500; }
.attach .icon { width: 14px; height: 14px; color: var(--leaf-600); }

/* Dominio propio */
.domain-visual { display: grid; gap: 12px; }
.domain-row { display: flex; align-items: center; gap: 14px; padding: 16px 18px; background: #fff; border: 1px solid var(--border); border-radius: 16px; box-shadow: var(--shadow-sm); }
.domain-row .icon { width: 20px; height: 20px; color: var(--steel-500); }
.domain-row .mono { font-size: 1rem; color: var(--navy-900); flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.domain-row .mono b { color: var(--steel-500); font-weight: 500; }
.domain-row:nth-child(2) { margin-left: 28px; }
.domain-row:nth-child(3) { margin-left: 56px; }
@media (max-width: 560px) { .domain-row:nth-child(2), .domain-row:nth-child(3) { margin-left: 0; } .domain-row .mono { font-size: .85rem; } }

/* Dev / Prod */
.envs { display: grid; grid-template-columns: 1fr auto 1fr; gap: 16px; align-items: center; }
.env-card { border-radius: var(--radius-lg); padding: 24px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1); }
.env-card h3 { display: flex; align-items: center; gap: 10px; font-size: 1.1rem; margin: 14px 0 8px; }
.env-card p { color: #a9bdd3; margin: 0; font-size: .95rem; }
.env-card ul { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 8px; font-size: .9rem; color: #c6d6e8; }
.env-card li { display: flex; gap: 8px; align-items: center; }
.env-card li .icon { width: 16px; height: 16px; color: var(--steel-200); }
.envs__arrow { display: grid; place-items: center; gap: 6px; color: var(--steel-200); font-size: .8rem; text-align: center; }
.envs__arrow .icon { width: 28px; height: 28px; }
@media (max-width: 820px) { .envs { grid-template-columns: 1fr; } .envs__arrow .icon { transform: rotate(90deg); } }

/* FAQ */
.faq { display: grid; gap: 12px; max-width: 860px; margin: 0 auto; }
.faq details { border: 1px solid var(--border); border-radius: 16px; background: #fff; padding: 0 22px; transition: box-shadow .2s; }
.faq details[open] { box-shadow: var(--shadow); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 0; display: flex; justify-content: space-between; gap: 16px; align-items: center; font: 600 1.02rem var(--font-display); color: var(--navy-900); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { transition: transform .2s var(--ease); color: var(--steel-500); }
.faq details[open] summary .icon { transform: rotate(45deg); }
.faq details p { color: var(--text-muted); margin: 0 0 20px; }

/* ---------- Nosotros ---------- */
.manifesto { font: 600 clamp(1.5rem, 3.2vw, 2.4rem)/1.3 var(--font-display); letter-spacing: -.02em; color: var(--navy-900); max-width: 26ch; }
.manifesto span { color: var(--steel-400); }
.role-card { position: relative; overflow: hidden; }
.role-card h3 { margin-bottom: 8px; }
.role-card > p { color: var(--text-muted); }
.role-card ul { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 8px; font-size: .92rem; color: var(--text-muted); }
.role-card li { display: flex; gap: 10px; align-items: flex-start; }
.role-card li .icon { width: 16px; height: 16px; margin-top: 4px; color: var(--leaf-600); }
.role-card__tag { position: absolute; top: 24px; right: 24px; font: 500 .72rem var(--font-mono); color: var(--text-subtle); }
.value { padding: 28px 0; border-top: 1px solid var(--border); display: grid; grid-template-columns: 64px 1fr; gap: 20px; }
.value__n { font: 600 .9rem var(--font-mono); color: var(--steel-400); padding-top: 4px; }
.value h3 { margin-bottom: 6px; }
.value p { margin: 0; color: var(--text-muted); }
.principles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 56px; }
@media (max-width: 760px) { .principles { grid-template-columns: 1fr; } }
.place { position: relative; border-radius: var(--radius-xl); overflow: hidden; min-height: 360px; display: flex; align-items: flex-end; }
.place img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.place::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8,19,31,.88) 10%, rgba(8,19,31,.2) 80%); }
.place__body { position: relative; z-index: 1; padding: clamp(28px, 5vw, 56px); color: #fff; max-width: 560px; }
.place__body h2 { color: #fff; }
.place__body p { color: #c6d6e8; }

/* ---------- Contacto ---------- */
.contact-hero { padding-bottom: clamp(140px, 16vw, 200px); }
.contact-wrap { margin-top: clamp(-160px, -14vw, -110px); position: relative; z-index: 2; padding-bottom: clamp(64px, 9vw, 120px); }
.contact-grid { display: grid; grid-template-columns: 1.35fr .9fr; gap: 24px; align-items: start; }
@media (max-width: 960px) { .contact-grid { grid-template-columns: 1fr; } }
.form-card { padding: clamp(24px, 4vw, 44px); box-shadow: var(--shadow-lg); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 600px) { .form-grid { grid-template-columns: 1fr; } }
.req { color: var(--danger-500); }
.field.is-invalid .input, .field.is-invalid .select, .field.is-invalid .textarea { border-color: var(--danger-500); }
.field__error { display: none; font-size: .8rem; color: #a83232; }
.field.is-invalid .field__error { display: block; }
.choice-group { display: flex; flex-wrap: wrap; gap: 8px; border: 0; padding: 0; margin: 0; }
.choice-group legend { padding: 0; margin-bottom: 8px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; cursor: pointer; margin: 0; }
.choice span { display: inline-flex; align-items: center; height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--border-strong); font-size: .88rem; color: var(--text-muted); transition: all .15s; }
.choice input:checked + span { background: var(--navy-800); border-color: var(--navy-800); color: #fff; }
.choice input:focus-visible + span { box-shadow: var(--ring); }
.form-foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 8px; }
.side-info { display: grid; gap: 16px; }
.info-item { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start; }
.info-item .card__icon { margin: 0; width: 44px; height: 44px; }
.info-item h3 { font-size: 1rem; margin: 2px 0 2px; }
.info-item p { margin: 0; color: var(--text-muted); font-size: .94rem; }
.next-steps { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 14px; counter-reset: ns; }
.next-steps li { counter-increment: ns; display: grid; grid-template-columns: 28px 1fr; gap: 12px; font-size: .93rem; color: #c6d6e8; }
.next-steps li::before { content: counter(ns); width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: rgba(255,255,255,.1); color: #fff; font: 700 .85rem var(--font-display); }
.next-steps strong { color: #fff; font-weight: 600; }
.dark-card { background: var(--grad-brand); color: var(--text-on-dark); border: 0; }
.dark-card h3 { color: #fff; }
.toast .icon { color: #7fdcb2; }

/* Las imágenes con width/height en el HTML respetan su aspect-ratio en CSS */
.media-card__img, .hero__photo, .split__media img { height: auto; }
.section:not(.section--soft):not(.section--dark) + .section--cta { padding-top: 0; }
@media (max-width: 480px) {
  .stats > div { display: grid; grid-template-columns: 96px 1fr; gap: 12px; align-items: center; padding: 20px 22px; }
  .stats p { margin: 0; }
  .stats .stat { font-size: 2.2rem; }
}
@media (max-width: 560px) { .hide-sm { display: none; } }
.toast:not(.is-show) { pointer-events: none; }
.split > *, .platform-grid > *, .hero__grid > *, .tour > * { min-width: 0; }
.lead .mono { overflow-wrap: anywhere; }
@media (max-width: 520px) {
  .srcs { grid-template-columns: 1fr; }
  .domain-row { padding: 14px; gap: 10px; }
}
@media (max-width: 1100px) {
  .hero--home .hero__grid { grid-template-columns: 1fr; }
  .hero--home .hero__visual { max-width: 680px; }
  .hero--home .float-card--run { left: 12px; }
  .hero--home .float-card--chart, .hero--home .float-card--domain { right: 12px; }
  .platform-grid { grid-template-columns: 1fr; }
}

/* Landing pública: campo trampa anti-spam y aviso de error del formulario */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.toast.is-error { background: #7a1f1f; }
.toast.is-error a { color: #fff; text-decoration: underline; }
