/* =====================================================================
   Home: estilos por sección, en el orden de index.php
   ===================================================================== */

/* ---------------------------------------------------------------- hero */
.hero { position: relative; overflow: hidden; padding: clamp(56px, 9vw, 112px) 0 clamp(64px, 9vw, 120px); isolation: isolate; }
.hero-pixels { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; opacity: .9; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background: radial-gradient(ellipse 60% 70% at 25% 45%, rgba(11, 11, 11, .92), rgba(11, 11, 11, .55) 60%, transparent), linear-gradient(180deg, transparent 70%, var(--dark-bg)); }
.hero-grid { display: grid; gap: 48px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 10px; border: 1px solid #2c2c2c; border-radius: 999px; background: rgba(255, 255, 255, .03); font-size: .85rem; color: var(--dark-muted); margin-bottom: 24px; }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 2px; background: var(--brand); box-shadow: 0 0 12px var(--brand); }
.hero h1 { color: #fff; max-width: 14ch; }
.hero .hl { color: var(--brand); }
.hero .lead { font-size: clamp(1.05rem, 1.8vw, 1.22rem); color: #c9c9c4; max-width: 560px; margin: 8px 0 32px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 32px; }
.hero-ctas .btn-ghost { color: #fff; border-color: #3a3a3a; }
.hero-ctas .btn-ghost:hover { border-color: #fff; }
.hero-points { display: grid; gap: 10px; color: var(--dark-muted); font-size: .95rem; }
.hero-points li { display: flex; align-items: center; gap: 10px; }
.hero-points .ic { color: var(--brand); }

/* Chat simulado */
.chat-demo { position: relative; width: 100%; max-width: 440px; margin: 0 auto; border-radius: 24px; background: rgba(23, 23, 23, .92); border: 1px solid #2c2c2c; box-shadow: var(--shadow-lg), 0 0 0 1px rgba(241, 213, 12, .05); overflow: hidden; backdrop-filter: blur(8px); }
.chat-head { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid #262626; background: #121212; }
.chat-head b { display: block; font-size: .95rem; color: #fff; }
.chat-avatar { width: 40px; height: 40px; border-radius: 12px; }
.chat-status { display: flex; align-items: center; gap: 6px; font-size: .78rem; color: var(--dark-muted); }
.chat-status i { width: 7px; height: 7px; border-radius: 50%; background: #22c55e; }
.chat-badge { margin-left: auto; font-family: var(--mono); font-size: .68rem; text-transform: uppercase; letter-spacing: .08em; padding: 4px 8px; border-radius: 6px; border: 1px solid #333; color: var(--dark-muted); }
.chat-body { display: flex; flex-direction: column; gap: 10px; height: 380px; padding: 18px 16px; overflow: hidden; justify-content: flex-end; }
.msg { max-width: 86%; padding: 10px 14px; border-radius: 16px; font-size: .9rem; line-height: 1.45; animation: pop .3s cubic-bezier(.2, .8, .2, 1) both; }
.msg.static { animation: none; }
.msg.user { align-self: flex-end; background: var(--brand); color: var(--on-brand); border-bottom-right-radius: 4px; }
.msg.bot { align-self: flex-start; background: #232323; color: #ececea; border-bottom-left-radius: 4px; }
.msg.tool { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 8px; background: transparent; border: 1px dashed #3a3a3a; color: var(--dark-muted); font-family: var(--mono); font-size: .74rem; }
.msg.tool::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--brand); }
.msg.tool.ok::before { background: #22c55e; }
.msg .prod { display: flex; justify-content: space-between; gap: 12px; margin-top: 6px; padding: 8px 10px; border-radius: 10px; background: #1a1a1a; font-size: .84rem; }
.msg .prod b { color: #fff; font-weight: 600; }
.msg .prod span { color: var(--brand); white-space: nowrap; }
.typing { align-self: flex-start; display: inline-flex; gap: 4px; padding: 12px 14px; border-radius: 16px; background: #232323; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: #888; animation: blink 1s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; }
.typing i:nth-child(3) { animation-delay: .3s; }
.chat-foot { padding: 10px 16px; border-top: 1px solid #262626; font-family: var(--mono); font-size: .72rem; color: #777; }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.98); } }
@keyframes blink { 50% { opacity: .3; } }

@media (min-width: 980px) {
    .hero-grid { grid-template-columns: 1.15fr .85fr; gap: 56px; }
    .chat-demo { margin: 0 0 0 auto; }
}

/* ---------------------------------------------------------------- confianza */
.trust { padding: 56px 0 64px; background: var(--bg); border-bottom: 1px solid var(--line); }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px 20px; margin: 0 0 48px; }
.stat { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 4px; }
.stat dt { color: var(--muted); font-size: .92rem; }
.stat dd { margin: 0; font-family: var(--display); font-weight: 700; font-size: clamp(2.2rem, 5vw, 3.2rem); line-height: 1; letter-spacing: -.03em; }
.stat dd .todo { font-size: .7em; }
.sectors { display: grid; gap: 14px; }
.sectors-label { font-size: .85rem; color: var(--muted); }
@media (min-width: 820px) {
    .stats { grid-template-columns: repeat(4, 1fr); }
    .stat + .stat { border-left: 1px solid var(--line); padding-left: 28px; }
    .sectors { grid-template-columns: auto 1fr; align-items: center; gap: 24px; }
}

/* ---------------------------------------------------------------- servicios (bento) */
.services { background: var(--bg-alt); }
.line + .line { margin-top: 72px; }
.line-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 18px; margin-bottom: 22px; }
.line-head h3 { font-size: clamp(1.3rem, 2.4vw, 1.7rem); margin: 0; }
.line-tag { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; font-size: .82rem; font-weight: 600; }
.tag-ia { background: var(--brand); color: var(--on-brand); }
.tag-sw { background: var(--text); color: var(--bg); }
.bento { display: grid; gap: 14px; grid-template-columns: 1fr; }
.bento-card { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 26px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); transition: transform .3s ease, border-color .3s ease; }
.bento-card:hover { border-color: color-mix(in srgb, var(--brand) 60%, var(--line)); }
.bento-card h4 { margin: 6px 0 0; }
.bento-card p { margin: 0; color: var(--muted); font-size: .95rem; }
.bento-card .tags { margin-top: auto; padding-top: 8px; }
.bento-icon { width: 48px; height: 48px; }
.bento-card.big { background: var(--ink); color: #f3f3f0; border-color: #222; --muted: #b0b0aa; --surface-2: #1f1f1f; }

.bento-card.big h4 { font-size: 1.5rem; }
.bento-card.big p { font-size: 1.02rem; }
.more { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; font-weight: 600; font-size: .9rem; color: #f1d50c; text-decoration: none; }
.more:hover { text-decoration: underline; }
@media (min-width: 680px) { .bento { grid-template-columns: repeat(2, 1fr); } .bento-card.big { grid-column: span 2; } }
@media (min-width: 1000px) {
    .bento { grid-template-columns: repeat(4, 1fr); }
    .bento-card.big { grid-column: span 2; grid-row: span 2; padding: 34px; justify-content: flex-end; min-height: 340px; }
    /* 1 grande + 4 pequeñas llenan 2 filas: la sexta ocupa la fila entera en horizontal */
}

/* ---------------------------------------------------------------- departamentos */
.depts { position: relative; overflow: hidden; }
.depts::before { content: ""; position: absolute; width: 560px; height: 560px; right: -160px; top: -200px; border-radius: 50%; background: radial-gradient(circle, rgba(241, 213, 12, .14), transparent 65%); pointer-events: none; }
.tab-list { display: flex; gap: 6px; overflow-x: auto; padding: 4px; margin: 0 0 28px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); width: max-content; max-width: 100%; scrollbar-width: none; }
.tab-list::-webkit-scrollbar { display: none; }
.tab-list [role="tab"] { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 999px; border: 0; background: transparent; color: var(--muted); font-weight: 600; font-size: .93rem; cursor: pointer; white-space: nowrap; transition: background .2s, color .2s; }
.tab-list [role="tab"]:hover { color: var(--text); }
.tab-list [aria-selected="true"] { background: var(--brand); color: var(--on-brand); }
.tab-panel { display: grid; gap: 14px; }
.tab-panel:not([hidden]) .usecase { animation: pop .4s cubic-bezier(.2, .8, .2, 1) both; }
.tab-panel .usecase:nth-child(2) { animation-delay: .06s; }
.tab-panel .usecase:nth-child(3) { animation-delay: .12s; }
.usecase { padding: 26px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.usecase-n { display: block; font-family: var(--mono); font-size: .8rem; color: var(--brand); margin-bottom: 18px; }
.usecase h3 { font-size: 1.15rem; }
.usecase p { color: var(--muted); margin: 0; font-size: .95rem; }
@media (min-width: 820px) { .tab-panel { grid-template-columns: repeat(3, 1fr); } }

/* ---------------------------------------------------------------- casos */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: -16px 0 28px; }
.filter { padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--muted); font-weight: 600; font-size: .88rem; cursor: pointer; transition: all .2s; }
.filter:hover { color: var(--text); border-color: var(--muted); }
.filter.is-on { background: var(--text); color: var(--bg); border-color: var(--text); }
.case-grid { display: grid; gap: 16px; }
.case { display: flex; flex-direction: column; gap: 14px; padding: 26px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.case[hidden] { display: none; }
.case-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.case-type { font-family: var(--mono); font-size: .72rem; font-weight: 500; text-transform: uppercase; letter-spacing: .08em; padding: 4px 9px; border-radius: 6px; }
.case-type.ia { background: var(--brand); color: var(--on-brand); }
.case-type.sw { background: var(--text); color: var(--bg); }
.case-sector { font-size: .82rem; color: var(--muted); }
.case h3 { margin: 0; font-size: 1.2rem; }
.case dl { margin: 0; display: grid; gap: 4px; font-size: .92rem; }
.case dt { font-family: var(--mono); font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: var(--accent-text); margin-top: 6px; }
.case dd { margin: 0; color: var(--muted); }
.case-result { display: flex; align-items: center; gap: 10px; margin: auto 0 0; padding: 10px 12px; border-radius: 12px; background: var(--brand-soft); font-weight: 600; font-size: .93rem; line-height: 1.35; }
.case-res-ic { width: 32px; height: 32px; border-radius: 9px; }
.case-res-ic .ic { width: 18px; height: 18px; }
@media (min-width: 700px) { .case-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1060px) { .case-grid { grid-template-columns: repeat(3, 1fr); } }

/* ---------------------------------------------------------------- por qué */
.why { background: var(--bg-alt); }
.why-grid { display: grid; gap: 40px; }
.why-head .btn { margin-top: 8px; }
.why-list { display: grid; gap: 14px; }
.why-list li { display: flex; gap: 16px; padding: 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.why-list h3 { font-size: 1.08rem; margin-bottom: 4px; }
.why-list p { margin: 0; color: var(--muted); font-size: .93rem; }
.why-icon { width: 46px; height: 46px; }
@media (min-width: 720px) { .why-list { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1060px) {
    .why-grid { grid-template-columns: .9fr 1.3fr; gap: 64px; align-items: start; }
    .why-head { position: sticky; top: calc(var(--header-h) + 32px); }
}

/* ---------------------------------------------------------------- método */
.steps { display: grid; gap: 16px; counter-reset: s; }
.step { position: relative; padding: 28px 26px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); }
.step-n { width: 48px; height: 48px; color: var(--brand); font-family: var(--display); font-weight: 700; font-size: 1.2rem; margin-bottom: 20px; }
.step h3 { margin-bottom: 4px; }
.step-time { display: inline-block; font-family: var(--mono); font-size: .75rem; color: var(--accent-text); margin-bottom: 12px; }
.step p { margin: 0; color: var(--muted); font-size: .94rem; }
@media (min-width: 700px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1060px) {
    .steps { grid-template-columns: repeat(4, 1fr); }
    .step:not(:last-child)::after { content: ""; position: absolute; top: 50px; right: -17px; width: 18px; height: 2px; background: var(--brand); }
}

/* ---------------------------------------------------------------- tecnologías */
.tech { padding: 40px 0 56px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.tech-label { text-align: center; font-size: .85rem; color: var(--muted); margin-bottom: 20px; }
.tech .marquee-track { gap: 48px; }
.tech-item { font-family: var(--display); font-weight: 600; font-size: clamp(1.1rem, 2vw, 1.4rem); color: var(--muted); white-space: nowrap; letter-spacing: -.01em; }

/* ---------------------------------------------------------------- FAQ */
.faq-grid { display: grid; gap: 32px; }
.faq-list { display: grid; gap: 10px; }
.faq-item { border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--surface); transition: border-color .2s; }
.faq-item[open] { border-color: color-mix(in srgb, var(--brand) 60%, var(--line)); }
.faq-item summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 20px; font-weight: 600; cursor: pointer; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .ic { transition: transform .25s; flex: none; color: var(--muted); }
.faq-item[open] summary .ic { transform: rotate(180deg); }
.faq-item p { padding: 0 20px 20px; margin: 0; color: var(--muted); }
@media (min-width: 1000px) { .faq-grid { grid-template-columns: .8fr 1.2fr; gap: 64px; } }

/* ---------------------------------------------------------------- contacto (formulario por pasos) */
.contact { position: relative; overflow: hidden; }
.contact::before { content: ""; position: absolute; inset: auto -10% -40% auto; width: 700px; height: 700px; border-radius: 50%; background: radial-gradient(circle, rgba(241, 213, 12, .12), transparent 65%); pointer-events: none; }
.contact-grid { position: relative; display: grid; gap: 40px; }
.contact-copy h2 { color: #fff; }
.contact-direct { display: grid; gap: 12px; margin-top: 28px; }
.contact-direct li { display: flex; align-items: center; gap: 12px; color: var(--dark-muted); }
.contact-direct .ic { color: var(--brand); }
.contact-direct a { text-decoration: none; }
.contact-direct a:hover { color: #fff; }
@media (min-width: 1000px) { .contact-grid { grid-template-columns: .85fr 1.15fr; gap: 64px; align-items: start; } }

.wizard { padding: clamp(20px, 4vw, 36px); border-radius: 24px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-lg); }
.wizard-progress { height: 4px; border-radius: 4px; background: var(--surface-2); overflow: hidden; }
.wizard-progress span { display: block; height: 100%; width: 25%; background: var(--brand); transition: width .35s ease; }
.wizard-count { font-family: var(--mono); font-size: .75rem; color: var(--muted); margin: 12px 0 18px; }
.wstep { border: 0; margin: 0; padding: 0; min-width: 0; }
.wstep legend { font-family: var(--display); font-size: clamp(1.25rem, 2.5vw, 1.55rem); font-weight: 700; letter-spacing: -.015em; margin-bottom: 18px; padding: 0; }
.wstep legend small { display: block; font-family: var(--font); font-size: .85rem; font-weight: 400; color: var(--muted); letter-spacing: 0; margin-top: 4px; }
.opt-grid { display: grid; gap: 10px; }
@media (min-width: 560px) { .opt-grid { grid-template-columns: repeat(2, 1fr); } }
.opt-card { position: relative; display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 12px; padding: 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface-2); cursor: pointer; transition: border-color .2s, background .2s; }
.opt-card input, .opt-chip input { position: absolute; opacity: 0; pointer-events: none; }
.opt-icon { grid-row: span 2; width: 40px; height: 40px; border-radius: 11px; }
.opt-card b { font-size: .97rem; }
.opt-card small { color: var(--muted); font-size: .83rem; }
.opt-card:hover { border-color: var(--muted); }
.opt-card:has(input:checked) { border-color: var(--brand); background: rgba(241, 213, 12, .08); }
.opt-card:has(input:focus-visible), .opt-chip:has(input:focus-visible) { outline: 2px solid var(--brand); outline-offset: 2px; }
.chip-grid { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.opt-chip { position: relative; cursor: pointer; }
.opt-chip span { display: inline-flex; min-height: 40px; align-items: center; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface-2); font-size: .9rem; transition: all .2s; }
.opt-chip:hover span { border-color: var(--muted); }
.opt-chip input:checked + span { background: var(--brand); border-color: var(--brand); color: var(--on-brand); font-weight: 600; }
.opt-label { font-weight: 600; font-size: .9rem; margin: 0 0 10px; }
.field-grid { display: grid; gap: 14px; margin-bottom: 16px; }
@media (min-width: 560px) { .field-grid { grid-template-columns: repeat(2, 1fr); } }
.field { display: grid; gap: 6px; font-size: .88rem; font-weight: 500; }
.field small { font-weight: 400; color: var(--muted); }
.field input, .field textarea { width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface-2); font-size: 1rem; transition: border-color .2s; }
.field textarea { resize: vertical; min-height: 90px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--brand); }
.field input[aria-invalid="true"] { border-color: var(--err); }
.check { display: flex; align-items: flex-start; gap: 10px; font-size: .88rem; color: var(--muted); cursor: pointer; }
.check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--brand); flex: none; }
.check a { color: var(--brand); }
.field .field-error, .field-error { display: block; min-height: 1em; color: #f87171; font-size: .82rem; font-weight: 500; margin: 6px 0 0; }
.field-error:empty { display: none; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.wizard-nav { display: flex; justify-content: space-between; gap: 10px; margin-top: 24px; }
.wizard-nav [data-next], .wizard-nav [data-submit] { margin-left: auto; }
.form-msg { margin: 14px 0 0; font-size: .9rem; color: #f87171; }
.form-msg:empty { display: none; }
.recaptcha-note { font-size: .72rem; color: var(--muted); margin: 14px 0 0; }
.recaptcha-note a { color: inherit; }
.grecaptcha-badge { visibility: hidden; }
.wizard-done { text-align: center; padding: 32px 0 12px; outline: none; }
.done-icon { display: inline-grid; width: 64px; height: 64px; border-radius: 50%; margin-bottom: 16px; }
.wizard.is-done .wizard-progress, .wizard.is-done .wizard-count, .wizard.is-done .wizard-nav { display: none; }

/* ---------------------------------------------------------------- demos de producto (sections/demos.php) */
.demos { position: relative; overflow: hidden; }
.demos::before { content: ""; position: absolute; width: 640px; height: 640px; left: -220px; bottom: -260px; border-radius: 50%; background: radial-gradient(circle, rgba(241, 213, 12, .1), transparent 65%); pointer-events: none; }
.demo-grid { position: relative; display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr); }
.demo-tabs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter); }
.demo-tabs::-webkit-scrollbar { display: none; }
.demo-tab { position: relative; display: flex; align-items: center; gap: 12px; flex: none; padding: 12px 14px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); color: var(--text); text-align: left; cursor: pointer; overflow: hidden; transition: border-color .2s, background .2s; }
.demo-tab:hover { border-color: #3a3a3a; }
.demo-tab[aria-selected="true"] { border-color: rgba(241, 213, 12, .55); background: #1b1a12; }
.demo-tab-ic { width: 40px; height: 40px; border-radius: 12px; }
.demo-tab-ic .ic { width: 20px; height: 20px; }
.demo-tab-txt b { display: block; font-size: .95rem; white-space: nowrap; }
.demo-tab-txt small { display: none; color: var(--muted); font-size: .84rem; line-height: 1.45; margin-top: 2px; }
.demo-tab-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: transparent; }
.demo-tab-bar i { display: block; height: 100%; width: 0; background: var(--brand); transition: width .25s linear; }
.demo-grid.is-paused .demo-tab-bar i { width: 0 !important; }
@media (min-width: 1000px) {
    .demo-grid { grid-template-columns: 320px minmax(0, 1fr); gap: 28px; align-items: start; }
    .demo-tabs { flex-direction: column; margin: 0; padding: 0; overflow: visible; }
    .demo-tab { padding: 16px 18px; align-items: flex-start; }
    .demo-tab-txt b { white-space: normal; }
    .demo-tab-txt small { display: block; }
}

.demo-panel, .demo-stage, .demo-tabs { min-width: 0; }
.demo-caption { margin: 14px 2px 0; font-family: var(--mono); font-size: .74rem; color: var(--muted); }
.win { border-radius: 18px; border: 1px solid #2a2a2a; background: #121212; box-shadow: var(--shadow-lg); overflow: hidden; }
.win-bar { display: flex; align-items: center; gap: 6px; padding: 11px 14px; border-bottom: 1px solid #222; background: #0e0e0e; font-family: var(--mono); font-size: .72rem; color: #777; }
.win-bar > i { width: 9px; height: 9px; border-radius: 50%; background: #2c2c2c; }
.win-bar > span { margin-left: 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.win-body { padding: 18px; height: 430px; overflow: hidden; position: relative; }
@media (max-width: 600px) { .win-body { height: 470px; padding: 14px; } }
@keyframes fadeup { from { opacity: 0; transform: translateY(8px); } }
.pop-in { animation: fadeup .35s cubic-bezier(.2, .8, .2, 1) both; }

/* buscador */
.sx-box { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 12px; background: #1b1b1b; border: 1px solid #2e2e2e; color: #fff; font-size: 1rem; }
.sx-box .ic { color: var(--brand); }
.sx-q { white-space: nowrap; overflow: hidden; }
.caret { width: 2px; height: 18px; background: var(--brand); animation: blink 1s steps(1) infinite; }
.sx-ms { margin-left: auto; white-space: nowrap; font-family: var(--mono); font-size: .72rem; color: #22c55e; }
.sx-fix { min-height: 22px; margin: 10px 2px 6px; font-size: .84rem; color: var(--brand); }
.sx-facets { display: flex; flex-wrap: wrap; gap: 6px; min-height: 28px; margin-bottom: 12px; }
.sx-facets span { padding: 4px 10px; border-radius: 999px; background: #1e1e1e; border: 1px solid #2c2c2c; font-size: .75rem; color: #bbb; }
.sx-facets span b { color: #fff; font-weight: 600; margin-left: 4px; }
.sx-results { display: grid; gap: 8px; }
.sx-item { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; background: #191919; border: 1px solid #262626; }
.sx-thumb { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; flex: none; color: #111; font-weight: 700; font-family: var(--display); }
.sx-item b { display: block; font-size: .9rem; color: #f2f2f2; font-weight: 600; }
.sx-item small { font-size: .74rem; color: #8a8a8a; font-family: var(--mono); }
.sx-item .price { margin-left: auto; color: var(--brand); font-weight: 600; font-size: .9rem; white-space: nowrap; }
.sx-reco { margin-top: 12px; }
.sx-reco .sx-item { border-style: dashed; border-color: rgba(241, 213, 12, .35); }
.sx-reco-lbl { display: block; font-size: .72rem; font-family: var(--mono); color: var(--brand); margin-bottom: 6px; }

/* RAG */
.rg-q { min-height: 44px; margin-left: auto; max-width: 85%; width: fit-content; padding: 10px 14px; border-radius: 16px 16px 4px 16px; background: var(--brand); color: #111; font-size: .92rem; }
.rg-q:empty { visibility: hidden; }
.rg-steps { display: grid; gap: 6px; margin: 14px 0 12px; counter-reset: rg; }
.rg-steps li { display: flex; align-items: center; gap: 10px; font-size: .82rem; color: #666; transition: color .3s; }
.rg-steps li::before { counter-increment: rg; content: counter(rg); display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; border: 1px solid #333; font-family: var(--mono); font-size: .68rem; transition: all .3s; }
.rg-steps li.on { color: #ddd; }
.rg-steps li.on::before { background: var(--brand); border-color: var(--brand); color: #111; }
.rg-steps li b { font-weight: 600; }
.rg-chunks { display: grid; gap: 6px; min-height: 100px; }
.rg-chunk { display: grid; grid-template-columns: 1fr 90px; gap: 4px 12px; align-items: center; padding: 8px 10px; border-radius: 10px; background: #181818; border: 1px solid #252525; font-size: .78rem; color: #bbb; }
.rg-chunk b { color: #eee; font-weight: 600; }
.rg-chunk .bar { height: 6px; border-radius: 6px; background: #262626; overflow: hidden; }
.rg-chunk .bar i { display: block; height: 100%; width: 0; background: var(--brand); transition: width .8s cubic-bezier(.2, .8, .2, 1); }
.rg-chunk.low .bar i { background: #555; }
.rg-chunk.low { opacity: .55; }
.rg-a { margin-top: 12px; padding: 12px 14px; border-radius: 16px 16px 16px 4px; background: #202020; color: #ececea; font-size: .9rem; line-height: 1.5; min-height: 20px; }
.rg-a:empty { display: none; }
.rg-a sup { color: var(--brand); font-weight: 700; margin-left: 1px; }
.rg-a.miss { background: transparent; border: 1px dashed #3a3a3a; color: #bbb; }
.rg-src { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.rg-src span { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 8px; background: #191919; border: 1px solid #2a2a2a; font-size: .74rem; color: #aaa; }
.rg-src span b { color: var(--brand); }

/* analítica */
.live { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-style: normal; color: #9a9a9a; }
.live i { width: 7px; height: 7px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 0 rgba(34, 197, 94, .6); animation: ping 1.6s infinite; }
.live b { color: #fff; }
@keyframes ping { 70% { box-shadow: 0 0 0 7px rgba(34, 197, 94, 0); } 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); } }
.an-kpis { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
@media (min-width: 640px) { .an-kpis { grid-template-columns: repeat(4, 1fr); } }
.an-kpi { padding: 10px 12px; border-radius: 12px; background: #181818; border: 1px solid #252525; }
.an-kpi small, .an-card > small { display: block; font-size: .7rem; color: #8a8a8a; font-family: var(--mono); margin-bottom: 4px; }
.an-kpi b { font-family: var(--display); font-size: 1.35rem; color: #fff; letter-spacing: -.02em; }
.an-kpi .up { display: block; font-size: .7rem; color: #22c55e; }
.an-row { display: grid; gap: 8px; margin-top: 8px; }
@media (min-width: 640px) { .an-row { grid-template-columns: 1.4fr 1fr; } }
.an-card { padding: 10px 12px; border-radius: 12px; background: #181818; border: 1px solid #252525; }
.an-chart svg { width: 100%; height: 110px; display: block; }
.an-grid { stroke: #262626; stroke-width: 1; fill: none; }
.an-line { fill: none; stroke: var(--brand); stroke-width: 2; vector-effect: non-scaling-stroke; }
.an-line2 { fill: none; stroke: #8a8a8a; stroke-width: 1.5; stroke-dasharray: 4 3; vector-effect: non-scaling-stroke; }
.an-area { fill: rgba(241, 213, 12, .12); stroke: none; }
.an-funnel ul { display: grid; gap: 6px; }
.an-funnel li { display: grid; grid-template-columns: 74px 1fr 44px; align-items: center; gap: 8px; font-size: .74rem; color: #aaa; }
.an-funnel li .bar { height: 10px; border-radius: 4px; background: #232323; overflow: hidden; }
.an-funnel li .bar i { display: block; height: 100%; width: 0; border-radius: 4px; background: linear-gradient(90deg, #f1d50c, #f59e0b); transition: width 1s cubic-bezier(.2, .8, .2, 1); }
.an-funnel li em { font-style: normal; text-align: right; color: #ddd; font-family: var(--mono); }
.an-top { margin-top: 8px; }
.an-top ul { display: flex; flex-wrap: wrap; gap: 6px; }
.an-top li { padding: 4px 10px; border-radius: 999px; background: #1f1f1f; font-size: .76rem; color: #ccc; }
.an-top li b { color: var(--brand); margin-left: 6px; font-family: var(--mono); font-weight: 500; }
@media (max-width: 639px) { .an-top { display: none; } }

/* workflow */
.wf { display: grid; gap: 12px; grid-template-rows: 1fr auto; grid-template-columns: minmax(0, 1fr); }
.wf-canvas { overflow-x: auto; overflow-y: hidden; scrollbar-width: none; min-width: 0; }
.wf-canvas::-webkit-scrollbar { display: none; }
.wf-svg { display: block; width: 100%; min-width: 460px; height: auto; max-height: 300px; }
.wf-edges path { fill: none; stroke: #3a3a3a; stroke-width: 2; stroke-dasharray: 400; stroke-dashoffset: 400; transition: stroke-dashoffset .7s ease, stroke .3s; }
.wf-edges path.drawn { stroke-dashoffset: 0; }
.wf-edges path.hot { stroke: var(--brand); }
.wf-node { opacity: 0; transition: opacity .4s ease; }
.wf-node.shown { opacity: 1; }
.wf-node rect, .wf-node path { fill: #1b1b1b; stroke: #3a3a3a; stroke-width: 1.5; transition: fill .3s, stroke .3s; }
.wf-node text { fill: #eee; font: 600 12px var(--font); text-anchor: middle; }
.wf-node text.sub { fill: #8a8a8a; font-weight: 400; font-size: 10.5px; }
.wf-node.cond path { fill: #1f1d10; stroke: rgba(241, 213, 12, .6); }
.wf-node.cond text { font-size: 10.5px; }
.wf-node.end rect { fill: #10241a; stroke: #22c55e; }
.wf-node.end text { font-size: 9.5px; fill: #22c55e; }
.wf-node.active rect, .wf-node.active path { stroke: var(--brand); fill: #2a2610; }
.wf-node.done rect, .wf-node.done path { stroke: #22c55e; }
.wf-lbl { fill: #777; font: 500 11px var(--mono); opacity: 0; transition: opacity .4s; }
.wf-lbl.shown { opacity: 1; }
.wf-token { fill: var(--brand); filter: drop-shadow(0 0 6px rgba(241, 213, 12, .9)); }
.wf-side { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 8px; position: relative; }
.wf-side > div { padding: 10px 12px; border-radius: 12px; background: #181818; border: 1px solid #252525; font-size: .82rem; color: #ddd; min-width: 0; }
.wf-side small { display: block; font-family: var(--mono); font-size: .68rem; color: #8a8a8a; margin-bottom: 3px; }
.wf-side code { font-family: var(--mono); font-size: .76rem; color: #ddd; }
.wf-side code b { color: var(--brand); }
.wf-side .wf-toast { position: absolute; right: 0; top: -54px; padding: 8px 12px; border-color: rgba(34, 197, 94, .5); background: #10241a; color: #b7f5cd; font-size: .78rem; opacity: 0; transform: translateY(6px); transition: all .35s; pointer-events: none; }
.wf-side .wf-toast.shown { opacity: 1; transform: none; }

/* =====================================================================
   Móvil: menos scroll y lectura más rápida
   ===================================================================== */
.case-dots { display: none; }
.sm-only { display: none; }
.mobile-cta { display: none; }

@media (max-width: 679px) {
    .section { padding: 64px 0; }
    .section-head { margin-bottom: 28px; }
    .hero { padding: 40px 0 56px; }
    .hero .lead { margin-bottom: 24px; }
    .hero-ctas .btn { flex: 1 1 100%; }
    .chat-body { height: 320px; }
    .trust { padding: 40px 0 44px; }
    .stats { margin-bottom: 32px; gap: 22px 16px; }

    /* servicios: filas compactas (icono + texto) */
    .line + .line { margin-top: 48px; }
    .bento { gap: 10px; }
    .bento-card { display: grid; grid-template-columns: 44px 1fr; column-gap: 14px; row-gap: 4px; align-items: start; padding: 16px; }
    .bento-card .bento-icon { grid-row: span 3; width: 44px; height: 44px; border-radius: 12px; }
    .bento-card h4, .bento-card.big h4 { margin: 0; font-size: 1.02rem; }
    .bento-card p, .bento-card.big p { font-size: .9rem; }
    .bento-card .tags { display: none; }
    .bento-card .more { grid-column: 2; margin-top: 4px; }

    /* casos: carrusel deslizable con la siguiente tarjeta asomando */
    .filters { margin-top: -8px; flex-wrap: nowrap; }
    .sm-only { display: inline; }
    .lg-only { display: none; }
    .case .tags { display: none; }
    .case h3 { font-size: 1.1rem; }
    .tab-list { -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); }
    .filter { min-height: 40px; }
    .case-grid { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 var(--gutter);
        margin: 0 calc(var(--gutter) * -1); padding: 4px var(--gutter) 12px; scrollbar-width: none; }
    .case-grid::-webkit-scrollbar { display: none; }
    .case { flex: 0 0 86%; scroll-snap-align: start; padding: 20px; }
    .case-dots { display: flex; justify-content: center; gap: 6px; margin-top: 8px; }
    .case-dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 8px; background: var(--line); transition: width .25s, background .25s; cursor: pointer; }
    .case-dots button[aria-current="true"] { width: 22px; background: var(--brand); }
    /* área táctil cómoda sin agrandar el punto */
    .case-dots button { position: relative; }
    .case-dots button::after { content: ""; position: absolute; inset: -12px -6px; }

    /* departamentos y por qué */
    .usecase { padding: 20px; }
    .usecase-n { margin-bottom: 10px; }
    .why-list { gap: 10px; }
    .why-list li { padding: 16px; gap: 14px; }

    /* método: filas compactas */
    .steps { gap: 10px; }
    .step { display: grid; grid-template-columns: 44px 1fr; column-gap: 14px; padding: 16px; }
    .step-n { grid-row: span 3; width: 44px; height: 44px; margin: 0; }
    .step h3 { font-size: 1.05rem; margin: 0; }
    .step-time { margin-bottom: 6px; }

    .faq-grid { gap: 0; }
    .faq-item summary { padding: 16px; min-height: 52px; }
    /* contacto: el formulario antes (teléfono y email siguen en el pie) */
    .contact-grid { gap: 24px; }
    .contact-direct { display: none; }
    /* pie: las dos listas de servicios en paralelo */
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px 20px; }
    .footer-brand, .footer-grid > div:last-child { grid-column: 1 / -1; }
    .site-footer h3 { font-size: .74rem; }
    .site-footer ul li { font-size: .9rem; }
    .faq-item p { padding: 0 16px 16px; }

    /* formulario: que cada paso quepa entero en pantalla (~560 px) */
    .wizard { padding: 16px 14px; border-radius: 20px; }
    .wizard-count { margin: 8px 0 10px; }
    .wstep legend { font-size: 1.2rem; margin-bottom: 12px; }
    .opt-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
    .opt-card { grid-template-columns: 1fr; grid-template-rows: auto; row-gap: 6px; padding: 12px; }
    .opt-icon { grid-row: auto; width: 34px; height: 34px; border-radius: 10px; }
    .opt-icon .ic { width: 18px; height: 18px; }
    .opt-card b { font-size: .9rem; line-height: 1.25; }
    .opt-card small { font-size: .76rem; line-height: 1.35; }
    .chip-grid { gap: 6px; margin-bottom: 12px; }
    .opt-label { margin-bottom: 8px; }
    .field textarea { min-height: 52px; }
    .opt-chip span { min-height: 36px; padding: 5px 11px; font-size: .84rem; }
    .wstep legend small { margin-top: 2px; }
    .field-grid { grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px; }
    .field-wide { grid-column: 1 / -1; }
    .field input, .field textarea { padding: 11px 12px; }
    .wizard-nav { margin-top: 16px; }
    .wizard-nav .btn { min-height: 48px; }
    .recaptcha-note { font-size: .66rem; margin-top: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

}

/* barra fija de contacto: en móvil y tablet (donde la cabecera no muestra el CTA) */
@media (max-width: 939px) {
    .mobile-cta { position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 55; display: flex; min-height: 52px; max-width: 520px; margin: 0 auto;
        box-shadow: 0 10px 30px rgba(0, 0, 0, .35); transform: translateY(160%); transition: transform .3s ease; }
    .mobile-cta.shown { transform: none; }
    .site-footer { padding-bottom: 96px; }
    .cookie-note { bottom: calc(76px + env(safe-area-inset-bottom)); }
}
/* Tarjetas oscuras de servicios: el acento debe ser el amarillo (el ocre de fondo claro no contrasta) */
.bento-card.big { --accent-text: var(--brand); --surface-2: #1f1f1f; border-color: #222; }
.case-badge { display: inline-block; margin-right: 6px; padding: 2px 8px; border-radius: 999px; border: 1px dashed var(--accent-text); color: var(--accent-text); font-family: var(--mono); font-size: .66rem; text-transform: uppercase; letter-spacing: .06em; vertical-align: middle; }

/* ---------------------------------------------------------------- demo: agente de voz */
.win-body.vx { display: grid; grid-template-columns: 1.1fr .9fr; gap: 14px; }
.vx-call, .vx-screen { min-width: 0; display: flex; flex-direction: column; }
.vx-head { display: flex; align-items: center; gap: 12px; }
.vx-orb { position: relative; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: #1f1f1f; color: #fff; flex: none; transition: background .3s, color .3s; }
.vx-orb .ic { width: 20px; height: 20px; }
.vx-orb::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid transparent; }
.vx-orb[data-state="speak"] { background: var(--brand); color: #111; --ic-accent: #111; }
.vx-orb[data-state="speak"]::after { border-color: rgba(241, 213, 12, .6); animation: vxring 1.2s ease-out infinite; }
.vx-orb[data-state="listen"] { background: #16351f; color: #4ade80; }
.vx-orb[data-state="listen"]::after { border-color: rgba(74, 222, 128, .55); animation: vxring 1.4s ease-out infinite; }
.vx-orb[data-state="think"]::after { border-color: rgba(255, 255, 255, .25); border-top-color: var(--brand); animation: vxspin .9s linear infinite; }
@keyframes vxring { from { transform: scale(.92); opacity: 1; } to { transform: scale(1.35); opacity: 0; } }
@keyframes vxspin { to { transform: rotate(360deg); } }
.vx-who { min-width: 0; }
.vx-who b { display: block; color: #fff; font-size: .95rem; }
.vx-who span { font-size: .78rem; color: var(--dark-muted); }
.vx-time { margin-left: auto; font-family: var(--mono); font-size: .8rem; color: #9a9a9a; }
.vx-wave { display: flex; align-items: center; gap: 3px; height: 54px; margin: 12px 0 8px; padding: 0 2px; }
.vx-wave i { flex: 1; height: 4px; border-radius: 3px; background: #333; transition: background .3s; }
.vx-wave[data-state="speak"] i { background: var(--brand); animation: vxbar .9s ease-in-out infinite; animation-delay: calc(var(--i) * -53ms); }
.vx-wave[data-state="listen"] i { background: #4ade80; animation: vxbar 1.1s ease-in-out infinite; animation-delay: calc(var(--i) * -71ms); }
.vx-wave[data-state="think"] i { background: #555; animation: vxbar 1.6s ease-in-out infinite; animation-delay: calc(var(--i) * -40ms); opacity: .7; }
@keyframes vxbar { 0%, 100% { height: 4px; } 50% { height: var(--h, 24px); } }
.vx-log { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; overflow: hidden; min-height: 0; }
.vx-log .msg { max-width: 92%; font-size: .84rem; padding: 8px 12px; }
.vx-screen { padding: 12px; border-radius: 14px; background: #171717; border: 1px solid #262626; gap: 10px; }
.vx-scr-title { font-family: var(--mono); font-size: .7rem; color: var(--brand); text-transform: uppercase; letter-spacing: .06em; }
.vx-card { display: grid; gap: 6px; font-size: .82rem; }
.vx-empty { margin: 0; color: #777; font-size: .8rem; }
.vx-row { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; border-bottom: 1px solid #242424; color: #9a9a9a; }
.vx-row b { color: #eee; font-weight: 600; text-align: right; }
.vx-lines { width: 100%; border-collapse: collapse; }
.vx-lines td { padding: 6px 0; border-bottom: 1px solid #242424; color: #ddd; vertical-align: top; }
.vx-lines td:last-child { text-align: right; white-space: nowrap; color: #fff; }
.vx-lines small { display: block; color: #8a8a8a; font-size: .72rem; }
.vx-tot { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; padding-top: 4px; color: #9a9a9a; font-size: .74rem; }
.vx-tot b { color: var(--brand); font-size: 1.05rem; font-family: var(--display); }
.vx-ok, .vx-sms { padding: 8px 10px; border-radius: 10px; background: #10241a; border: 1px solid rgba(34, 197, 94, .45); color: #b7f5cd; font-size: .8rem; }
.vx-choice { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.vx-choice:empty { display: none; }
.vx-choice small { width: 100%; color: #9a9a9a; font-size: .74rem; }
.vx-choice button { padding: 7px 10px; border-radius: 10px; border: 1px solid #333; background: #1d1d1d; color: #ddd; font-size: .78rem; cursor: default; transition: all .25s; }
.vx-choice button.is-on { background: var(--brand); border-color: var(--brand); color: #111; font-weight: 600; }
.vx-key:empty { display: none; }
.vx-pad { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 10px; border-radius: 10px; border: 1px dashed rgba(241, 213, 12, .5); color: #eee; font-size: .8rem; }
.vx-pad kbd { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; background: #222; border: 1px solid #3a3a3a; color: #fff; font: 600 1rem var(--mono); box-shadow: 0 3px 0 #000; transition: all .15s; }
.vx-pad kbd.pressed { background: var(--brand); color: #111; transform: translateY(2px); box-shadow: 0 1px 0 #000; }
@media (max-width: 699px) {
    .win-body.vx { grid-template-columns: 1fr; grid-template-rows: auto auto; height: auto; min-height: 560px; }
    .vx-log { height: 190px; flex: none; }
    .vx-screen { min-height: 190px; }
}

@media (prefers-reduced-motion: reduce) {
    .vx-wave i { animation: none !important; height: 12px; }
}

/* franja mantenimiento y seguridad (servicios): acompaña a IA y software */
.care-band { display: grid; gap: 18px 32px; margin-top: 28px; padding: 22px 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.care-head { display: flex; gap: 16px; align-items: flex-start; }
.care-head .ic-tile { width: 48px; height: 48px; }
.care-head h3 { margin: 0 0 4px; font-size: 1.2rem; }
.care-head p { margin: 0 0 6px; color: var(--muted); font-size: .95rem; }
.care-list { display: grid; gap: 10px 20px; align-content: center; }
.care-list li { display: flex; align-items: center; gap: 10px; font-size: .93rem; font-weight: 500; }
.care-list .ic { color: var(--accent-text); }
.care-band .more { color: var(--accent-text); }   /* .more es amarillo fijo (tarjetas oscuras); aquí el fondo es claro */
@media (min-width: 900px) {
    .care-band { grid-template-columns: 1fr 1.2fr; align-items: center; }
    .care-list { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 679px) {
    .care-band { padding: 16px; margin-top: 16px; gap: 14px; }
    .care-head .ic-tile { width: 44px; height: 44px; border-radius: 12px; }
    .care-head h3 { font-size: 1.05rem; }
    .care-list li { font-size: .88rem; }
}
