/* Kapix 2026 — páginas internas: servicios, blog, artículos y equipo. Usa los tokens de css/styles.css. */

/* ---------- Encabezado de página ---------- */
.page-hero {
  position: relative; isolation: isolate; color: #E6EDF3;
  padding: clamp(48px, 6vw, 88px) 0 clamp(56px, 7vw, 96px);
  background:
    radial-gradient(1000px 520px at 85% -10%, rgba(1, 195, 141, .16), transparent 60%),
    radial-gradient(800px 600px at -10% 110%, rgba(36, 92, 140, .35), transparent 60%),
    linear-gradient(180deg, var(--navy-900), var(--navy) 100%);
}
.page-hero.has-overlap { padding-bottom: calc(clamp(56px, 7vw, 96px) + var(--overlap)); }
:root { --overlap: clamp(80px, 10vw, 140px); }
.eyebrow.on-dark { color: #01C38D; }
.page-title { margin: 18px 0 0; max-width: 20ch; font: 600 clamp(36px, 4.6vw, 58px)/1.08 var(--sans); letter-spacing: -.03em; color: #fff; text-wrap: balance; }
.page-lead { margin: 20px 0 0; max-width: 60ch; color: #B5C3D0; font-size: clamp(17px, 1.4vw, 19px); }
.post-hero .page-title { max-width: 30ch; font-size: clamp(30px, 3.6vw, 46px); line-height: 1.14; }
.page-hero .btn-ghost { background: transparent; color: #fff; border-color: rgba(205, 222, 235, .3); }
.page-hero .btn-ghost:hover { border-color: #fff; }
.page-hero .hero-ctas { margin-top: 28px; }
.crumbs { display: flex; align-items: center; gap: 10px; color: #93A6B8; font: 500 13.5px/1 var(--sans); }
.crumbs a:hover { color: #fff; }
.crumbs span { color: #4F6A82; }

/* ---------- Autor / fecha ---------- */
.byline { display: flex; align-items: center; gap: 12px; min-width: 0; }
.byline > span:last-child { display: grid; gap: 2px; min-width: 0; }
.byline strong { font-size: 14px; font-weight: 600; }
.byline > span:last-child > span { color: var(--muted); font-size: 13px; }
.avatar { display: grid; place-items: center; width: 36px; height: 36px; flex: none; border-radius: 50%; background: var(--green-soft); color: var(--green-ink); font: 600 12.5px/1 var(--sans); letter-spacing: .02em; }
.byline.on-dark { margin-top: 28px; }
.byline.on-dark strong { color: #fff; }
.byline.on-dark > span:last-child > span { color: #93A6B8; }
.byline.on-dark .avatar { background: rgba(1, 195, 141, .16); color: #01C38D; }
.post-cat { color: var(--green-ink); font: 600 12px/1.3 var(--sans); letter-spacing: .1em; text-transform: uppercase; }

/* ---------- Blog: destacado ---------- */
.blog-featured { position: relative; margin-top: calc(var(--overlap) * -1); }
.featured-card {
  display: grid; grid-template-columns: 1.25fr 1fr; overflow: hidden;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow-lg);
}
.featured-img { overflow: hidden; background: var(--bg-3); }
.featured-img img { width: 100%; height: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .8s var(--ease); }
.featured-card:hover .featured-img img { transform: scale(1.03); }
.featured-body { display: grid; align-content: center; justify-items: start; gap: 16px; padding: clamp(24px, 3.5vw, 48px); }
.featured-body h2 { margin: 0; font: 600 clamp(22px, 2.3vw, 30px)/1.22 var(--sans); letter-spacing: -.02em; text-wrap: balance; }
.featured-body p { margin: 0; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------- Blog: listado ---------- */
.blog-list { padding-top: clamp(56px, 7vw, 88px); }
.blog-toolbar { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px 24px; margin-bottom: 28px; }
.blog-list-title { margin: 0; font: 600 clamp(24px, 2.4vw, 30px)/1.2 var(--sans); letter-spacing: -.02em; }
.filter { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-btn {
  display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px;
  border-radius: 999px; border: 1px solid var(--line-2); background: var(--card); font-size: 14px; font-weight: 500;
  transition: background-color .2s, border-color .2s, color .2s;
}
.chip-btn span { color: var(--faint); font: 500 12px/1 var(--mono); }
.chip-btn:hover { border-color: var(--text); }
.chip-btn[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.chip-btn[aria-pressed="true"] span { color: #93A6B8; }
:root[data-theme="dark"] .chip-btn[aria-pressed="true"] { background: var(--green); border-color: var(--green); color: #04261C; }
:root[data-theme="dark"] .chip-btn[aria-pressed="true"] span { color: #0B5A41; }

.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.post-card {
  display: flex; flex-direction: column; overflow: hidden;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--card);
  transition: transform .3s var(--ease), box-shadow .3s, border-color .3s;
}
.post-card[hidden] { display: none; }
.post-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--line-2); }
.post-card-img { overflow: hidden; background: var(--bg-3); }
.post-card-img img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .8s var(--ease); }
.post-card:hover .post-card-img img { transform: scale(1.04); }
.post-card-body { display: flex; flex-direction: column; gap: 10px; flex: 1; padding: 22px 22px 24px; }
.post-card h3 { margin: 0; font-size: 18px; line-height: 1.35; letter-spacing: -.01em; }
.post-card p { margin: 0 0 8px; color: var(--muted); font-size: 14.5px; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.post-card .byline { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); }

/* ---------- Artículo ---------- */
.read-progress { position: fixed; inset: 0 0 auto; z-index: 120; height: 3px; pointer-events: none; }
.read-progress span { display: block; height: 100%; background: var(--green); transform: scaleX(0); transform-origin: left; }
.post-cover { position: relative; margin-top: calc(var(--overlap) * -1); }
.post-cover img { width: 100%; height: clamp(220px, 44vw, 560px); object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow-lg); background: var(--bg-3); }
.post-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(40px, 6vw, 96px); align-items: start; padding-top: clamp(40px, 5vw, 64px); padding-bottom: clamp(64px, 8vw, 104px); }

.prose { max-width: 720px; font-size: 17.5px; line-height: 1.75; }
.prose > :first-child { margin-top: 0; }
.prose p { margin: 0 0 1.15em; }
.prose .post-lede { margin-bottom: 1.6em; padding-left: 20px; border-left: 3px solid var(--green); font-size: clamp(19px, 1.7vw, 21px); line-height: 1.55; font-weight: 500; }
.prose h2 { margin: 2.1em 0 .7em; font: 600 clamp(23px, 2.2vw, 29px)/1.25 var(--sans); letter-spacing: -.02em; scroll-margin-top: 96px; text-wrap: balance; }
.prose h3 { margin: 1.8em 0 .55em; font-size: 20px; line-height: 1.35; letter-spacing: -.01em; }
.prose h4 { margin: 1.5em 0 .4em; font-size: 17.5px; line-height: 1.4; letter-spacing: -.005em; }
.prose ul, .prose ol { margin: 0 0 1.2em; padding-left: 1.25em; }
.prose li { margin: .35em 0; padding-left: .2em; }
.prose li::marker { color: var(--green); }
.prose a { color: var(--green-ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.prose strong { font-weight: 600; }
.prose figure.post-img { margin: 2em 0; }
.prose figure.post-img img { width: 100%; height: auto; border-radius: var(--radius); border: 1px solid var(--line); }
.callout { margin: 1.8em 0; padding: 18px 22px; border-left: 3px solid var(--green); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; background: var(--green-soft); }
.callout strong { display: block; margin-bottom: 6px; }
.callout p { margin: 0; }
.stat-bar { display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 6px 16px; margin: 0 0 18px; font-size: 15px; line-height: 1.4; }
.stat-bar span { color: var(--muted); }
.stat-bar b { color: var(--green-ink); font: 600 15px/1 var(--mono); }
.stat-bar::after { content: ""; grid-column: 1 / -1; height: 6px; border-radius: 3px; background: linear-gradient(90deg, var(--green) var(--v), var(--bg-3) var(--v)); }
:not(.stat-bar) + .stat-bar { margin-top: 1.6em; }
.stat-bar + :not(.stat-bar) { margin-top: 1.8em; }
.faq { margin: .6em 0; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--card); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 18px; font-weight: 600; font-size: 16px; line-height: 1.4; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; color: var(--green-ink); font: 500 20px/1 var(--mono); }
.faq[open] summary::after { content: "–"; }
.faq > p { margin: 0; padding: 0 18px 16px; color: var(--muted); font-size: 16px; }

.post-foot { margin-top: 3em; padding-top: 2em; border-top: 1px solid var(--line); }
.post-foot .chips { margin: 0 0 20px; }
.author-card { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card-2); line-height: 1.4; }
.author-card img, .author-card .avatar { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; }
.author-card strong { display: block; font-size: 16px; }
.author-card span { color: var(--muted); font-size: 14px; }
.author-card .text-link { margin: 0 0 0 auto; text-decoration: none; }

.post-aside { position: sticky; top: 100px; display: grid; gap: 24px; max-height: calc(100vh - 124px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; padding-bottom: 4px; }
.post-aside .mono { color: var(--faint); text-transform: uppercase; letter-spacing: .08em; font-size: 11.5px; }
.toc { padding-left: 18px; border-left: 1px solid var(--line); }
.toc ol { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 2px; }
.toc a { position: relative; display: block; padding: 6px 0; color: var(--muted); font-size: 14px; line-height: 1.4; transition: color .2s; }
.toc a:hover { color: var(--text); }
.toc a.active { color: var(--text); font-weight: 500; }
.toc a.active::before { content: ""; position: absolute; left: -19px; top: 4px; bottom: 4px; width: 2px; background: var(--green); }
.aside-cta { display: grid; justify-items: start; gap: 10px; padding: 22px; border-radius: var(--radius); background: var(--navy); color: #E6EDF3; border: 1px solid var(--navy); }
:root[data-theme="dark"] .aside-cta { background: var(--card-2); border-color: var(--line-2); }
.post-aside .aside-cta .mono { color: #01C38D; }
.aside-cta strong { font-size: 17px; line-height: 1.3; }
.aside-cta p { margin: 0; color: #B5C3D0; font-size: 14px; line-height: 1.5; }
.aside-cta .btn { margin-top: 4px; }
.share { display: flex; flex-wrap: wrap; gap: 8px; }
.share .mono { width: 100%; }
.share a, .share button { padding: 7px 12px; border: 1px solid var(--line-2); border-radius: 6px; background: var(--card); font-size: 13px; font-weight: 500; transition: border-color .2s; }
.share a:hover, .share button:hover { border-color: var(--text); }

.related-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px 24px; margin-bottom: 28px; }
.related-head .text-link { margin: 0; }

/* ---------- Franja de llamada a la acción ---------- */
.cta-band-wrap { padding: clamp(56px, 7vw, 96px) 0; }
.section.alt + .cta-band-wrap { padding-top: clamp(56px, 7vw, 96px); }
.cta-band {
  position: relative; overflow: hidden; isolation: isolate;
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 24px 48px;
  padding: clamp(28px, 4vw, 56px); border-radius: 16px; color: #E6EDF3;
  background: radial-gradient(700px 360px at 100% 0%, rgba(1, 195, 141, .2), transparent 60%), linear-gradient(135deg, var(--navy-900), var(--navy));
}
.cta-band h2 { margin: 0 0 10px; color: #fff; font: 600 clamp(26px, 2.8vw, 36px)/1.15 var(--sans); letter-spacing: -.025em; text-wrap: balance; }
.cta-band p { margin: 0; max-width: 56ch; color: #B5C3D0; }
.cta-band-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.cta-band .btn-ghost { background: transparent; color: #fff; border-color: rgba(205, 222, 235, .3); }
.cta-band .btn-ghost:hover { border-color: #fff; }

/* ---------- Equipo ---------- */
.team-hero-inner { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: clamp(32px, 5vw, 72px); align-items: end; }
.team-hero .page-title { max-width: 14ch; }
.code-card {
  margin: 0; padding: 22px 24px; overflow-x: auto;
  border: 1px solid rgba(205, 222, 235, .14); border-radius: var(--radius); background: rgba(4, 14, 24, .5);
  color: #CFDAE4; font: 400 13.5px/1.9 var(--mono); box-shadow: 0 24px 48px -24px rgba(0, 0, 0, .6);
}
.code-card .c-dim { color: #4F6A82; }
.code-card .c-key { color: #01C38D; }
.code-card .c-fn { color: #9CC9FF; }
.code-card .c-str { color: #F2C97D; }
.team-photos { position: relative; margin-top: calc(var(--overlap) * -1); }
.photo-grid { display: grid; grid-template-columns: 1.5fr .85fr 1fr; gap: 16px; height: clamp(260px, 32vw, 440px); }
.photo-grid figure { margin: 0; overflow: hidden; border-radius: var(--radius); background: var(--bg-3); box-shadow: var(--shadow-lg); }
.photo-grid img { width: 100%; height: 100%; object-fit: cover; }
.ph-b img { object-position: 50% 40%; }

.leader-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.leader { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); transition: box-shadow .3s, border-color .3s; }
.leader:hover { box-shadow: var(--shadow); border-color: var(--line-2); }
.leader-photo { overflow: hidden; aspect-ratio: 4 / 4.4; background: var(--bg-3); }
.leader-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.leader:hover .leader-photo img { transform: scale(1.03); }
.leader-body { display: grid; justify-items: start; align-content: start; gap: 8px; flex: 1; padding: 24px; }
.leader-num { color: var(--faint); }
.leader h3 { margin: 2px 0 0; font-size: 22px; line-height: 1.2; }
.leader-title { color: var(--green-ink); font-size: 14px; font-weight: 600; }
.leader p { margin: 4px 0 0; color: var(--muted); }
.leader .chips { margin-top: 4px; }
.leader .text-link { margin-top: 8px; }

.pillar-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.pillar { display: grid; align-content: start; gap: 12px; padding: clamp(24px, 3vw, 36px); background: var(--card); }
.pillar .mono { color: var(--green-ink); font-weight: 600; }
.pillar h3 { margin: 0; font-size: 22px; line-height: 1.25; }
.pillar p { margin: 0; color: var(--muted); }

/* ---------- Contadores ---------- */
.page-title .hl { color: #01C38D; }
.cap-grid.cap-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.plan-tags { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.plan-tags .tag { padding: 10px 16px; font-size: 14.5px; color: var(--text); }
.plan-tags .tag-accent { border-color: transparent; background: var(--green-soft); color: var(--green-ink); }

/* ---------- Navegación en subpáginas ---------- */
.mobile-menu a.active { color: var(--green-ink); }

/* ---------- Revelados ---------- */
.js-reveal [data-reveal] { opacity: 0; transform: translateY(20px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js-reveal [data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .featured-card { grid-template-columns: 1fr; }
  .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .post-layout { grid-template-columns: minmax(0, 1fr); }
  .prose { max-width: none; }
  .post-aside { position: static; max-height: none; overflow: visible; grid-template-columns: 1fr 1fr; align-items: start; }
  .toc { display: none; }
  .cta-band { grid-template-columns: 1fr; }
  .team-hero-inner { grid-template-columns: 1fr; align-items: start; }
  .code-card { max-width: 520px; }
  .leader-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .post-grid, .leader-grid, .pillar-grid, .cap-grid.cap-grid-2 { grid-template-columns: 1fr; }
  .post-aside { grid-template-columns: 1fr; }
  .prose { font-size: 17px; }
  .author-card .text-link { margin-left: 0; }
  .photo-grid { grid-template-columns: 1fr 1fr; height: auto; }
  .photo-grid .ph-a { grid-column: 1 / -1; aspect-ratio: 4 / 3; }
  .photo-grid .ph-b, .photo-grid .ph-c { aspect-ratio: 3 / 4; }
  .code-card { font-size: 12.5px; padding: 18px; }
  .team-hero .hero-proof { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- Encabezado: editor de código en vivo (Web, Apps y ERP) ---------- */
.hero-split { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(32px, 4.5vw, 72px); align-items: center; }
.hero-code {
  --hc-bg: rgba(9, 20, 32, .86); --hc-line: rgba(205, 222, 235, .14); --hc-ink: #CFDAE4; --hc-dim: #6F8496;
  position: relative; height: 390px; font: 400 12.5px/1.66 var(--mono); color: var(--hc-ink);
  animation: hc-in .9s var(--ease) both .25s;
}
.hero-code::before { content: ""; position: absolute; inset: 10% 6% 4% 14%; z-index: -1; border-radius: 50%; background: radial-gradient(closest-side, rgba(1, 195, 141, .18), transparent); filter: blur(40px); pointer-events: none; }
@keyframes hc-in { from { opacity: 0; transform: translateY(16px); } }
.hc-win { position: absolute; display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--hc-line); border-radius: var(--radius); background: var(--hc-bg); box-shadow: 0 30px 60px -24px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255, 255, 255, .05); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.hc-bar { display: flex; align-items: center; gap: 6px; flex: none; height: 34px; padding: 0 12px; border-bottom: 1px solid var(--hc-line); background: rgba(255, 255, 255, .025); }
.hc-bar > i { width: 9px; height: 9px; border-radius: 50%; background: rgba(205, 222, 235, .2); }
.hc-bar > i:first-child { background: #01C38D; }
.hc-tab, .hc-url { margin-left: 10px; font-size: 11.5px; color: #93A6B8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hc-tab { padding: 3px 10px; border: 1px solid var(--hc-line); border-bottom-color: transparent; border-radius: 6px 6px 0 0; margin-bottom: -9px; color: #E6EDF3; background: var(--hc-bg); }
.hc-url { display: inline-flex; align-items: center; gap: 7px; flex: 1; max-width: 260px; margin-inline: auto; padding: 3px 12px; border-radius: 999px; background: rgba(255, 255, 255, .05); }
.hc-url b { flex: none; width: 7px; height: 8px; border: 1.5px solid #01C38D; border-radius: 2px; }

/* Editor */
.hc-editor { left: 0; top: 14px; width: 58%; z-index: 2; }
.hc-pre { flex: 1; margin: 0; padding: 12px 8px 12px 0; overflow: hidden; counter-reset: hc; white-space: pre; }
.hc-code { display: block; font: inherit; }
.hc-line { display: block; min-height: 1.66em; padding-left: 44px; position: relative; counter-increment: hc; }
.hc-line::before { content: counter(hc); position: absolute; left: 0; width: 30px; text-align: right; color: #4A5F72; }
.hc-line.is-cur { background: rgba(1, 195, 141, .07); }
.hc-line.is-cur::before { color: #93A6B8; }
.hero-code.is-done .hc-line.is-cur { background: none; }
.hero-code.is-clearing .hc-code { opacity: 0; transition: opacity .5s var(--ease); }
.hc-caret { display: inline-block; width: 2px; height: 1.15em; margin-left: 1px; vertical-align: -.2em; background: #01C38D; animation: hc-blink 1s steps(1) infinite; }
@keyframes hc-blink { 50% { opacity: 0; } }
.hc-k { color: #C792EA; } .hc-s { color: #01C38D; } .hc-t { color: #7FB8E6; } .hc-a { color: #F2C46D; }
.hc-n { color: #F78C6C; } .hc-f { color: #E6EDF3; } .hc-c { color: #6F8496; font-style: italic; }
.hc-status { display: flex; align-items: center; gap: 8px; flex: none; height: 26px; padding: 0 12px; border-top: 1px solid var(--hc-line); font-size: 11px; color: var(--hc-dim); }
.hc-dot { width: 7px; height: 7px; border-radius: 50%; background: #F2C46D; box-shadow: 0 0 0 3px rgba(242, 196, 109, .15); transition: background .3s, box-shadow .3s; }
.hero-code.is-done .hc-dot { background: #01C38D; box-shadow: 0 0 0 3px rgba(1, 195, 141, .18); }
.hero-code.is-done .hc-status-text { color: #B5C3D0; }

/* Vista previa: cada pieza entra cuando su línea termina */
.hc-browser { top: 54px; right: 0; width: 45%; height: 322px; }
.hc-browser .hc-bar { padding-left: 26px; }
.hc-browser .hc-page { padding-left: 28px; }
.hc-page { position: relative; flex: 1; display: flex; flex-direction: column; gap: 12px; padding: 16px 18px; font-family: var(--sans); background: linear-gradient(180deg, rgba(255, 255, 255, .03), transparent 60%); }
[data-at] { opacity: 0; transform: translateY(8px); transition: opacity .45s var(--ease), transform .55s var(--ease); }
[data-at].on { opacity: 1; transform: none; }

/* Web */
.hp-nav { display: flex; align-items: center; gap: 8px; padding-bottom: 10px; border-bottom: 1px solid var(--hc-line); font-size: 11.5px; }
.hp-logo { width: 16px; height: 16px; border-radius: 4px; background: linear-gradient(135deg, #01C38D, #0A7E61); }
.hp-brand { font-weight: 600; color: #E6EDF3; }
.hp-links { display: flex; gap: 12px; margin-left: auto; color: #93A6B8; }
.hp-links span:first-child { color: #01C38D; }
.hp-hero strong { display: block; font: 600 21px/1.15 var(--sans); letter-spacing: -.02em; color: #fff; }
.hp-sub { display: block; width: 62%; height: 6px; margin-top: 9px; border-radius: 3px; background: rgba(205, 222, 235, .16); }
.hp-stats { display: flex; gap: 8px; font-size: 11.5px; color: #93A6B8; }
.hp-stats span { padding: 4px 10px; border: 1px solid var(--hc-line); border-radius: 999px; }
.hp-stats b { color: #fff; font-weight: 600; font-variant-numeric: tabular-nums; }
.hp-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.hp-cards > span { display: flex; flex-direction: column; gap: 5px; padding: 8px; border: 1px solid var(--hc-line); border-radius: 8px; background: rgba(255, 255, 255, .03); }
.hp-cards i { height: 26px; border-radius: 5px; background: linear-gradient(135deg, rgba(1, 195, 141, .35), rgba(36, 92, 140, .45)); }
.hp-cards em { height: 5px; border-radius: 3px; background: rgba(205, 222, 235, .2); }
.hp-cards em:last-child { width: 60%; background: rgba(205, 222, 235, .12); }
.hp-cards.on > span { animation: hc-pop .5s var(--ease) both; }
.hp-cards.on > span:nth-child(2) { animation-delay: .08s; } .hp-cards.on > span:nth-child(3) { animation-delay: .16s; }
@keyframes hc-pop { from { opacity: 0; transform: translateY(6px) scale(.97); } }
.hp-btn { align-self: flex-start; padding: 6px 14px; border-radius: 999px; background: #01C38D; color: #06261C; font: 600 12px/1.2 var(--sans); }

/* Apps: teléfono en lugar de navegador */
.hc-apps .hc-editor { top: 40px; width: 60%; }
.hc-phone { position: absolute; top: -6px; right: 2%; width: 214px; height: 400px; padding: 10px; border: 1px solid rgba(205, 222, 235, .22); border-radius: 34px; background: linear-gradient(160deg, #1A2E42, #0B1724); box-shadow: 0 30px 60px -24px rgba(0, 0, 0, .6), inset 0 0 0 3px rgba(0, 0, 0, .35); }
.hc-notch { position: absolute; top: 16px; left: 50%; z-index: 1; width: 64px; height: 18px; margin-left: -32px; border-radius: 999px; background: #050C14; }
.hc-screen { display: flex; flex-direction: column; gap: 10px; height: 100%; padding: 12px 12px 10px; overflow: hidden; border-radius: 25px; background: #0E1C2B; font-family: var(--sans); }
.ap-status { display: flex; justify-content: space-between; align-items: center; height: 20px; padding: 0 8px; font: 600 11px/1 var(--sans); color: #E6EDF3; }
.ap-sig { display: flex; align-items: flex-end; gap: 2px; height: 9px; }
.ap-sig i { width: 3px; border-radius: 1px; background: #E6EDF3; }
.ap-sig i:nth-child(1) { height: 4px; } .ap-sig i:nth-child(2) { height: 6px; } .ap-sig i:nth-child(3) { height: 9px; }
.ap-head { display: flex; align-items: center; justify-content: space-between; margin-top: 6px; }
.ap-head strong { font: 600 19px/1.1 var(--sans); color: #fff; letter-spacing: -.02em; }
.ap-avatar { width: 26px; height: 26px; border-radius: 50%; background: linear-gradient(135deg, #01C38D, #245C8C); }
.ap-card { display: flex; flex-direction: column; gap: 9px; padding: 11px; border: 1px solid var(--hc-line); border-radius: 12px; background: rgba(255, 255, 255, .04); }
.ap-card > div { display: flex; align-items: center; justify-content: space-between; }
.ap-card b { font: 600 13px/1 var(--sans); color: #E6EDF3; font-variant-numeric: tabular-nums; }
.ap-chip { padding: 3px 8px; border-radius: 999px; font: 500 10.5px/1.2 var(--sans); }
.ap-chip.go { background: rgba(242, 196, 109, .14); color: #F2C46D; }
.ap-chip.ok { background: rgba(1, 195, 141, .14); color: #01C38D; }
.ap-track { display: block; height: 4px; border-radius: 2px; background: rgba(205, 222, 235, .12); overflow: hidden; }
.ap-track i { display: block; height: 100%; border-radius: inherit; background: #01C38D; transform-origin: left; }
.ap-card.on .ap-track i { animation: hc-grow 1s var(--ease) both .2s; }
@keyframes hc-grow { from { transform: scaleX(0); } }
.ap-btn { margin-top: 2px; padding: 10px; border-radius: 12px; background: #01C38D; color: #06261C; text-align: center; font: 600 13px/1.2 var(--sans); }
.ap-tabs { display: flex; justify-content: space-around; margin-top: auto; padding: 10px 6px 4px; border-top: 1px solid var(--hc-line); }
.ap-tabs i { width: 18px; height: 18px; border-radius: 6px; border: 1.5px solid #4A5F72; }
.ap-tabs i.on { border-color: #01C38D; background: rgba(1, 195, 141, .18); }

@media (max-width: 1180px) { .hero-code { font-size: 10.5px; } }
@media (max-width: 1024px) {
  .hero-split { grid-template-columns: 1fr; }
  .hero-code { width: 100%; max-width: 620px; }
}
@media (max-width: 1024px) and (min-width: 641px) { .hero-code { font-size: 12px; } }
@media (max-width: 640px) {
  .hero-code { height: auto; display: flex; flex-direction: column; font-size: 10.5px; }
  .hc-win, .hc-phone { position: relative; inset: auto; }
  .hc-editor, .hc-apps .hc-editor { order: 1; width: calc(100% - 18px); top: auto; }
  .hc-browser { order: 2; width: calc(100% - 18px); height: 290px; margin: 12px 0 0 18px; }
  .hc-browser .hc-bar { padding-left: 12px; }
  .hc-browser .hc-page { padding-left: 18px; }
  .hc-phone { order: 2; align-self: center; width: 200px; height: 360px; margin: 14px 0 0; right: auto; top: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-code, .hp-cards.on > span, .ap-card.on .ap-track i { animation: none; }
  [data-at] { transition: none; }
}
