/*
  Kipu Digital — estilo sobrio y profesional.
  Una sola familia (Hanken Grotesk), fondo claro, petróleo como color principal
  y el ocre solo como acento puntual.
*/
:root {
  --bg: #FFFFFF;
  --alt: #F5F7F9;
  --line: #E3E8EE;
  --ink: #141A2E;
  --muted: #566074;
  --petrol: #0B5D75;
  --petrol-dark: #08485B;
  --petrol-soft: #E6F0F3;
  --ocre: #D2962A;
  --night: #0E1426;
  --night-2: #182038;
  --night-line: rgba(255, 255, 255, .12);
  --on-dark: #F3F5F7;
  --on-dark-muted: #AEB8CB;
  --font: "Hanken Grotesk", "Segoe UI", system-ui, -apple-system, sans-serif;
  --r: 12px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.6 var(--font); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, h4, p, figure { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input { font: inherit; color: inherit; }
h1, h2, h3 { font-weight: 700; letter-spacing: -0.025em; line-height: 1.1; text-wrap: balance; }
h1 { font-size: clamp(2.375rem, 4.6vw, 3.75rem); line-height: 1.05; letter-spacing: -0.035em; }
h2 { font-size: clamp(1.875rem, 3vw, 2.625rem); }
h3 { font-size: 1.25rem; letter-spacing: -0.015em; line-height: 1.25; }
.lead { font-size: 1.1875rem; color: var(--muted); max-width: 56ch; }
.small { font-size: .875rem; color: var(--muted); }
:focus-visible { outline: 3px solid var(--ocre); outline-offset: 2px; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -80px; z-index: 90; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 8px; text-decoration: none; }
.skip:focus { top: 12px; }
.wrap { width: min(1200px, 100% - 2 * clamp(20px, 4vw, 40px)); margin-inline: auto; }

/* Botones */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 12px 22px; border-radius: 10px; border: 1px solid transparent; font: 600 1rem/1.2 var(--font); text-decoration: none; cursor: pointer; transition: background-color .2s, border-color .2s, color .2s, transform .15s var(--ease); }
.btn:active { transform: scale(.98); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn .arrow { transition: transform .2s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }
.btn-sm { min-height: 42px; padding: 9px 16px; font-size: .9375rem; }
.btn-main { background: var(--petrol); color: #fff; }
.btn-main:hover { background: var(--petrol-dark); }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.link { display: inline-flex; align-items: center; gap: 6px; color: var(--petrol); font-weight: 600; text-decoration: none; }
.link svg { width: 18px; height: 18px; transition: transform .2s var(--ease); }
.link:hover svg { transform: translateX(3px); }

/* Encabezado */
.top { position: sticky; top: 0; z-index: 60; background: rgba(255, 255, 255, .96); border-bottom: 1px solid var(--line); }
.top .bar { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.125rem; letter-spacing: -0.015em; text-decoration: none; margin-right: auto; }
.brand svg { width: 30px; height: 30px; flex: none; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav > a, .nav > button { display: inline-flex; align-items: center; gap: 4px; padding: 8px 12px; border: 0; border-radius: 8px; background: none; color: var(--muted); font-weight: 500; font-size: .9688rem; text-decoration: none; cursor: pointer; transition: color .2s, background-color .2s; }
.nav > a:hover, .nav > button:hover, .nav > a[aria-current="true"], .nav > button[aria-expanded="true"] { color: var(--ink); background: var(--alt); }
.nav > button svg { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.nav > button[aria-expanded="true"] svg { transform: rotate(180deg); }
.menu-btn { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 10px; background: #fff; cursor: pointer; }
.menu-btn svg { width: 22px; height: 22px; }
.mega { position: absolute; top: 68px; left: 0; right: 0; }
.mega[hidden] { display: none; }
.mega-in { width: min(760px, 100% - 32px); margin: 8px auto 0; display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 10px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 24px 48px -24px rgba(20, 26, 46, .28); }
html.js .mega:not([hidden]) .mega-in { animation: drop .2s var(--ease) both; }
@keyframes drop { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.mega a { display: flex; gap: 14px; padding: 14px; border-radius: 10px; text-decoration: none; transition: background-color .15s; }
.mega a:hover { background: var(--alt); }
.mega b { display: block; font-weight: 600; }
.mega small { display: block; color: var(--muted); font-size: .875rem; line-height: 1.45; margin-top: 2px; }
.ico { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: 10px; background: var(--petrol-soft); color: var(--petrol); }
.ico svg { width: 22px; height: 22px; }
@media (max-width: 1060px) {
  .nav, .top-cta { display: none; }
  .menu-btn { display: inline-flex; }
}

/* Menú móvil */
.sheet { position: fixed; inset: 0; z-index: 90; background: #fff; overflow-y: auto; padding-bottom: 32px; }
.sheet[hidden] { display: none; }
.sheet .bar { display: flex; align-items: center; justify-content: space-between; height: 68px; border-bottom: 1px solid var(--line); }
.sheet nav > ul > li > a, .sheet-label { display: block; padding: 14px 0; font-size: 1.25rem; font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--line); }
.sheet-label { color: var(--muted); font-size: .875rem; font-weight: 600; border: 0; padding-bottom: 4px; }
.sheet .sols { padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.sheet .sols a { display: block; padding: 9px 0 9px 14px; text-decoration: none; font-weight: 500; }
.sheet .btn { width: 100%; margin-top: 24px; }

/* Hero */
.hero { background: var(--night); color: var(--on-dark); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(32px, 5vw, 72px); align-items: center; padding-block: clamp(56px, 8vw, 104px); }
.hero h1 span { color: #7FC3D6; }
.hero .lead { color: var(--on-dark-muted); margin-top: 24px; }
.hero .ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero .btn-ghost { color: var(--on-dark); border-color: var(--night-line); }
.hero .btn-ghost:hover { border-color: var(--on-dark); }
.hero-points { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 32px; color: var(--on-dark-muted); font-size: .9375rem; }
.hero-points li { display: inline-flex; align-items: center; gap: 8px; }
.hero-points svg { width: 18px; height: 18px; color: #7FC3D6; }
.hero-demo { display: grid; gap: 12px; }
.seg { display: inline-flex; justify-self: start; padding: 4px; gap: 4px; background: var(--night-2); border-radius: 10px; }
.seg button { border: 0; background: none; color: var(--on-dark-muted); padding: 8px 14px; border-radius: 7px; font-size: .9063rem; font-weight: 600; cursor: pointer; transition: background-color .2s, color .2s; }
.seg button:hover { color: var(--on-dark); }
.seg button[aria-pressed="true"] { background: #fff; color: var(--ink); }
.demo-note { font-size: .8125rem; color: var(--on-dark-muted); }
@media (max-width: 960px) { .hero-grid { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .hero .ctas .btn { width: 100%; } }

/* Ventana de producto (demos) */
.window, .phone { background: #fff; color: var(--ink); border-radius: 14px; overflow: hidden; }
.window { box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .5); }
.win-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); font-size: .875rem; font-weight: 600; }
.who { display: flex; align-items: center; gap: 10px; }
.avatar { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--petrol); color: #fff; font-size: .75rem; font-weight: 700; flex: none; }
.win-body { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); }
.win-body .chat { height: 330px; border-right: 1px solid var(--line); }
.win-body .side { padding: 14px; display: grid; gap: 12px; align-content: start; background: var(--alt); }
@media (max-width: 560px) { .win-body { grid-template-columns: 1fr; } .win-body .chat { border-right: 0; border-bottom: 1px solid var(--line); height: 290px; } }
.tag { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 999px; font-size: .75rem; font-weight: 600; white-space: nowrap; background: var(--petrol-soft); color: var(--petrol-dark); }
.tag.dim { background: #EDF0F4; color: var(--muted); }
.tag.warm { background: #FBEFD8; color: #7A520F; }
.tag.ok { background: #E1F3E8; color: #1C5E36; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.chat { display: flex; flex-direction: column; gap: 8px; padding: 16px; overflow-y: auto; background: #fff; }
.msg { max-width: 86%; padding: 9px 13px; border-radius: 12px; font-size: .9063rem; line-height: 1.45; }
.msg.in { align-self: flex-start; background: #EEF1F5; border-bottom-left-radius: 4px; }
.msg.out { align-self: flex-end; background: var(--petrol); color: #fff; border-bottom-right-radius: 4px; }
.msg.sys { align-self: center; color: var(--muted); font-size: .8125rem; padding: 2px 6px; }
.msg.typing { display: inline-flex; gap: 4px; padding: 13px; }
.msg.typing i { width: 6px; height: 6px; border-radius: 50%; background: #98A2B3; animation: blink 1s infinite; }
.msg.typing i:nth-child(2) { animation-delay: .15s; } .msg.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 0%, 80%, 100% { opacity: .3; } 40% { opacity: 1; } }
html.js .msg.new { animation: pop .3s var(--ease) both; }
@keyframes pop { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.crm { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 14px; display: grid; gap: 10px; font-size: .875rem; }
.crm-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.crm dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; margin: 0; }
.crm dt { color: var(--muted); }
.crm dd { margin: 0; font-weight: 600; }
.crm dd.empty { color: #A7AFBD; font-weight: 400; }
html.js .crm dd.fill { animation: flash 1s var(--ease) both; }
@keyframes flash { 0% { background: #FBEFD8; } 100% { background: transparent; } }
.notice { display: flex; gap: 10px; align-items: flex-start; background: var(--ink); color: var(--on-dark); padding: 12px 14px; border-radius: 10px; font-size: .8438rem; line-height: 1.4; transition: opacity .3s var(--ease), transform .3s var(--ease); }
.notice svg { width: 18px; height: 18px; flex: none; color: var(--ocre); margin-top: 1px; }
.notice b { display: block; }
html.js .notice.off { opacity: 0; transform: translateY(6px); }

/* Secciones */
.section { padding-block: clamp(72px, 9vw, 112px); }
.section.alt { background: var(--alt); }
.section.dark { background: var(--night); color: var(--on-dark); }
.sec-head { display: grid; gap: 14px; max-width: 680px; margin-bottom: 48px; }
.sec-head p { color: var(--muted); font-size: 1.125rem; }

/* Soluciones */
.sol-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.sol-card { display: grid; gap: 14px; align-content: start; padding: 32px; border: 1px solid var(--line); border-radius: 16px; background: #fff; transition: border-color .2s, transform .2s var(--ease); }
.sol-card:hover { border-color: #C5CFDA; transform: translateY(-2px); }
.sol-card p { color: var(--muted); }
.sol-card .ico { margin-bottom: 6px; }
.sol-card .link { margin-top: 6px; }
.sol-card.featured { background: var(--petrol); color: #fff; border-color: var(--petrol); }
.sol-card.featured p, .sol-card.featured .checks li { color: rgba(255, 255, 255, .85); }
.sol-card.featured .ico { background: rgba(255, 255, 255, .14); color: #fff; }
.sol-card.featured .link { color: #fff; }
.sol-card.featured .checks li::before { background-color: rgba(255, 255, 255, .18); color: #fff; }
.checks { display: grid; gap: 8px; }
.checks li { position: relative; padding-left: 28px; color: var(--ink); font-size: .9688rem; }
.checks li::before { content: ""; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 50%; background: var(--petrol-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 12.5 4 4 8-8.5' fill='none' stroke='%230B5D75' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat; }
.sol-card.featured .checks li::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 12.5 4 4 8-8.5' fill='none' stroke='%23ffffff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.checks.two { grid-template-columns: 1fr 1fr; gap: 10px 24px; }
@media (max-width: 820px) { .sol-grid { grid-template-columns: 1fr; } .sol-card { padding: 24px; } }
@media (max-width: 560px) { .checks.two { grid-template-columns: 1fr; } }

/* Demostraciones */
.tabs { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; background: #fff; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 20px; }
.tabs [role="tab"] { border: 0; background: none; padding: 10px 16px; border-radius: 8px; font-weight: 600; font-size: .9375rem; color: var(--muted); cursor: pointer; transition: background-color .2s, color .2s; }
.tabs [role="tab"]:hover { color: var(--ink); }
.tabs [role="tab"][aria-selected="true"] { background: var(--ink); color: #fff; }
.demo-panel { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 20px; align-items: start; }
.demo-panel[hidden] { display: none; }
html.js .demo-panel:not([hidden]) { animation: fade .25s var(--ease) both; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.demo-text { display: grid; gap: 16px; padding: 28px; background: #fff; border: 1px solid var(--line); border-radius: 16px; }
.demo-text > p:not(.small) { color: var(--muted); }
.progress { display: grid; gap: 10px; }
.progress li { position: relative; padding-left: 28px; font-size: .9375rem; color: var(--muted); }
.progress li::before { content: ""; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--line); background: #fff; transition: background-color .25s, border-color .25s; }
.progress li.done { color: var(--ink); }
.progress li.done::before { border-color: var(--petrol); background: var(--petrol) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 12.5 4 4 8-8.5' fill='none' stroke='%23ffffff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat; }
.demo-work { display: grid; gap: 14px; padding: 20px; background: #fff; border: 1px solid var(--line); border-radius: 16px; }
.assistant { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 14px; align-items: start; }
.assistant .phone { border: 1px solid var(--line); display: grid; }
.assistant .chat { height: 360px; }
.assistant .side { display: grid; gap: 12px; }
.quick { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 14px 0; border-top: 1px solid var(--line); }
.quick[hidden] { display: none; }
.quick button { border: 1px solid var(--line); background: #fff; color: var(--petrol); padding: 6px 11px; border-radius: 999px; font-size: .8438rem; font-weight: 600; cursor: pointer; transition: background-color .15s, border-color .15s; }
.quick button:hover { background: var(--petrol-soft); border-color: var(--petrol-soft); }
.composer { display: flex; gap: 8px; padding: 12px 14px 14px; }
.composer input { flex: 1; min-width: 0; height: 44px; padding: 0 14px; border: 1px solid #CBD3DD; border-radius: 10px; font-size: 16px; }
.composer input:focus { outline: none; border-color: var(--petrol); box-shadow: 0 0 0 3px var(--petrol-soft); }
.composer button { height: 44px; padding: 0 16px; border: 0; border-radius: 10px; background: var(--petrol); color: #fff; font-weight: 600; cursor: pointer; }
.composer button:hover { background: var(--petrol-dark); }
.kanban { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.kcol { background: var(--alt); border-radius: 12px; padding: 12px; display: grid; gap: 8px; align-content: start; min-height: 260px; }
.kcol h4 { display: flex; justify-content: space-between; font-size: .8438rem; font-weight: 700; color: var(--muted); }
.kcard { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 11px 12px; display: grid; gap: 4px; font-size: .875rem; }
.kcard small { color: var(--muted); font-size: .8125rem; }
.kcard.focus { border-color: var(--petrol); box-shadow: 0 0 0 3px var(--petrol-soft); }
.kcard .tag { justify-self: start; margin-top: 4px; }
html.js .kcard.moved { animation: pop .35s var(--ease) both; }
.log { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; display: grid; gap: 6px; font-size: .875rem; max-height: 170px; overflow-y: auto; }
.log li { display: grid; grid-template-columns: 56px 1fr; gap: 10px; }
.log time { color: var(--muted); font-variant-numeric: tabular-nums; }
.controls { display: flex; flex-wrap: wrap; gap: 8px; }
.pipeline { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.step { display: grid; gap: 6px; align-content: start; padding: 14px; min-height: 190px; border: 1px solid var(--line); border-radius: 12px; font-size: .875rem; transition: background-color .25s, border-color .25s; }
.step > span:not(.tag) { color: var(--muted); }
.step .tag { justify-self: start; }
.step.run { background: #FFF8EA; border-color: #F0D9A8; }
.step.done { background: #F1F9F4; border-color: #BFE3CC; }
.step.wait { border-color: var(--petrol); box-shadow: 0 0 0 3px var(--petrol-soft); }
.step .actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.step .actions button { border: 0; border-radius: 8px; padding: 8px 11px; font-weight: 600; font-size: .8438rem; cursor: pointer; }
.step .actions .ok { background: var(--petrol); color: #fff; }
.step .actions .no { background: #EDF0F4; }
.step .actions button:disabled { opacity: .45; cursor: not-allowed; }
.doc { border: 1px solid var(--line); border-radius: 10px; padding: 14px; font-size: .875rem; display: grid; gap: 8px; }
.doc table { width: 100%; border-collapse: collapse; }
.doc th, .doc td { text-align: left; padding: 7px 4px; border-bottom: 1px solid var(--line); }
.doc th { color: var(--muted); font-weight: 600; }
@media (max-width: 960px) { .demo-panel { grid-template-columns: 1fr; } }
@media (max-width: 760px) { .assistant, .kanban { grid-template-columns: 1fr; } .kcol { min-height: 0; } .pipeline { grid-template-columns: 1fr 1fr; } }
@media (max-width: 460px) { .pipeline { grid-template-columns: 1fr; } .step { min-height: 0; } .tabs { display: flex; } .tabs [role="tab"] { flex: 1 1 100%; text-align: left; } }

/* Cómo trabajamos */
.stages { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 20px; }
.stages button { display: grid; gap: 6px; text-align: left; padding: 20px; border: 1px solid var(--line); border-radius: 14px; background: #fff; cursor: pointer; transition: border-color .2s, background-color .2s; }
.stages button:hover { border-color: #C5CFDA; }
.stages .n { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--alt); color: var(--muted); font-weight: 700; font-size: .9375rem; margin-bottom: 6px; transition: background-color .2s, color .2s; }
.stages b { font-size: 1.0625rem; }
.stages small { color: var(--muted); font-size: .875rem; line-height: 1.45; }
.stages button[aria-pressed="true"] { border-color: var(--petrol); background: var(--petrol-soft); }
.stages button[aria-pressed="true"] .n { background: var(--petrol); color: #fff; }
.stage-panel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: center; padding: 36px; border-radius: 16px; background: var(--alt); }
.stage-panel h3 { font-size: 1.5rem; margin-bottom: 10px; }
.stage-panel p { color: var(--muted); }
.stage-doc { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 20px; }
.stage-doc[hidden] { display: none; }
html.js .stage-doc:not([hidden]) { animation: fade .25s var(--ease) both; }
.stage-doc h4 { font-size: .9375rem; margin-bottom: 10px; }
.stage-doc ul { display: grid; gap: 8px; }
.stage-doc li { position: relative; padding-left: 26px; font-size: .9375rem; }
.stage-doc li::before { content: ""; position: absolute; left: 0; top: 5px; width: 16px; height: 16px; border-radius: 50%; background: var(--petrol-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 12.5 4 4 8-8.5' fill='none' stroke='%230B5D75' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 11px no-repeat; }
@media (max-width: 860px) { .stages { grid-template-columns: 1fr 1fr; } .stage-panel { grid-template-columns: 1fr; padding: 24px; gap: 20px; } }
@media (max-width: 420px) { .stages button { padding: 14px; } }

/* Casos de uso */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.filters button { border: 1px solid var(--line); background: #fff; padding: 8px 14px; border-radius: 999px; font-size: .875rem; font-weight: 600; color: var(--muted); cursor: pointer; transition: background-color .2s, color .2s, border-color .2s; }
.filters button:hover { color: var(--ink); border-color: #C5CFDA; }
.filters button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.case-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 20px; align-items: start; }
.case-list { display: grid; gap: 8px; }
.case-list button { text-align: left; padding: 16px 18px; border: 1px solid var(--line); border-radius: 12px; background: #fff; font-weight: 600; font-size: 1rem; color: var(--muted); cursor: pointer; transition: border-color .2s, color .2s; }
.case-list button:hover { color: var(--ink); }
.case-list button[aria-selected="true"] { color: var(--ink); border-color: var(--petrol); box-shadow: inset 3px 0 0 var(--petrol); }
.case-list button[hidden] { display: none; }
.case-detail { display: grid; gap: 20px; padding: 32px; background: #fff; border: 1px solid var(--line); border-radius: 16px; }
.case-detail[hidden] { display: none; }
html.js .case-detail:not([hidden]) { animation: fade .25s var(--ease) both; }
.case-info { display: grid; grid-template-columns: 170px 1fr; gap: 14px 20px; margin: 0; }
.case-info dt { font-weight: 600; font-size: .9375rem; }
.case-info dd { margin: 0; color: var(--muted); font-size: .9688rem; }
.case-detail .btn { justify-self: start; }
@media (max-width: 860px) { .case-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .case-info { grid-template-columns: 1fr; gap: 4px; } .case-info dd { margin-bottom: 10px; } .case-detail { padding: 22px; } }

/* Nosotros */
.about { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.about h2 { margin-bottom: 18px; }
.about .lead { margin-bottom: 16px; color: var(--ink); }
.about p { color: var(--muted); max-width: 62ch; }
.values { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 32px; }
.values li { display: grid; gap: 4px; padding: 18px; border-radius: 12px; background: var(--alt); }
.values span { color: var(--muted); font-size: .875rem; }
.about figure img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 16px; filter: grayscale(1); }
.about figcaption { margin-top: 10px; font-size: .8125rem; color: var(--muted); }
@media (max-width: 860px) { .about { grid-template-columns: 1fr; } .about figure { max-width: 420px; } .about figure img { aspect-ratio: 3 / 2; } }
@media (max-width: 560px) { .values { grid-template-columns: 1fr; } }

/* Diagnóstico */
.diag { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.diag-copy { display: grid; gap: 22px; position: sticky; top: 100px; }
.diag .lead { color: var(--on-dark-muted); }
.next { display: grid; gap: 14px; counter-reset: n; }
.next li { counter-increment: n; display: grid; grid-template-columns: 32px 1fr; column-gap: 14px; }
.next li::before { content: counter(n); grid-row: span 2; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--night-2); border: 1px solid var(--night-line); font-weight: 700; font-size: .875rem; }
.next span { color: var(--on-dark-muted); font-size: .9375rem; }
.direct-label { margin-top: 6px; font-size: .9375rem; color: var(--on-dark-muted); }
.direct { display: flex; flex-wrap: wrap; gap: 8px; }
.dark .btn-ghost { color: var(--on-dark); border-color: var(--night-line); }
.dark .btn-ghost:hover { border-color: var(--on-dark); }
.form-tile { background: #fff; color: var(--ink); border-radius: 16px; padding: clamp(10px, 2vw, 20px); }
.form-tile iframe { display: block; width: 100%; min-height: 860px; border: 0; background: #fff; }
.form-loading { display: flex; align-items: center; gap: 10px; padding: 10px 6px; font-size: .9375rem; color: var(--muted); }
.form-loading i { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--line); border-top-color: var(--petrol); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.form-tile.ready .form-loading { display: none; }
.form-alt { padding: 10px 6px 0; font-size: .875rem; color: var(--muted); }
@media (max-width: 960px) { .diag { grid-template-columns: 1fr; } .diag-copy { position: static; } .form-tile iframe { min-height: 920px; } }

/* Preguntas frecuentes */
.faq { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.faq > div:first-child { display: grid; gap: 12px; position: sticky; top: 100px; }
.faq > div:first-child p { color: var(--muted); }
.faq > div:first-child a { color: var(--petrol); font-weight: 600; }
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 0; font-weight: 600; font-size: 1.0625rem; cursor: pointer; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary:hover { color: var(--petrol); }
.faq-list summary svg { width: 20px; height: 20px; flex: none; color: var(--muted); transition: transform .2s var(--ease); }
.faq-list details[open] summary svg { transform: rotate(45deg); }
.faq-list details p { padding: 0 40px 22px 0; color: var(--muted); }
html.js .faq-list details[open] p { animation: fade .25s var(--ease) both; }
@media (max-width: 860px) { .faq { grid-template-columns: 1fr; } .faq > div:first-child { position: static; } }

/* Pie */
.foot { background: var(--night); color: var(--on-dark); padding-top: 64px; --logo-cord: #7FC3D6; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr)); gap: 40px; padding-bottom: 48px; }
.foot-brand { display: grid; gap: 16px; align-content: start; }
.foot-brand p { color: var(--on-dark-muted); max-width: 36ch; font-size: .9375rem; }
.foot h2 { font-size: .875rem; font-weight: 600; letter-spacing: 0; color: var(--on-dark); margin-bottom: 14px; }
.foot ul { display: grid; gap: 10px; }
.foot ul a { color: var(--on-dark-muted); text-decoration: none; font-size: .9375rem; }
.foot ul a:hover { color: #fff; }
.social { display: flex; gap: 8px; }
.social a { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; border: 1px solid var(--night-line); color: var(--on-dark); transition: border-color .2s; }
.social a:hover { border-color: var(--on-dark); }
.social svg { width: 18px; height: 18px; }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-block: 20px 28px; border-top: 1px solid var(--night-line); font-size: .8125rem; color: var(--on-dark-muted); }
.foot-bottom a { color: inherit; }
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-brand { grid-column: 1 / -1; } }

.wa-float { position: fixed; right: 18px; bottom: 18px; z-index: 50; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: #1F9E55; color: #fff; box-shadow: 0 12px 28px -10px rgba(10, 30, 20, .5); transition: transform .2s var(--ease); }
.wa-float:hover { transform: scale(1.05); }
.wa-float svg { width: 28px; height: 28px; }

/* Detalle de cada solución */
dialog.detail { width: min(920px, 100% - 24px); max-height: calc(100% - 48px); margin: auto; padding: 0; border: 0; border-radius: 18px; background: #fff; color: var(--ink); overflow-y: auto; overscroll-behavior: contain; box-shadow: 0 40px 80px -30px rgba(10, 14, 28, .5); }
dialog.detail::backdrop { background: rgba(14, 20, 38, .55); }
dialog.detail[open] { animation: pop .3s var(--ease) both; }
.d-bar { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 20px 14px 28px; background: #fff; border-bottom: 1px solid var(--line); }
.crumbs { font-size: .875rem; color: var(--muted); font-weight: 500; }
.d-close { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 10px; background: #fff; cursor: pointer; }
.d-close:hover { border-color: var(--ink); }
.d-close svg { width: 20px; height: 20px; }
.d-body { display: grid; gap: 18px; padding: 32px 28px 36px; }
.d-body h2 { font-size: clamp(1.75rem, 3vw, 2.25rem); }
.d-body h3 { margin-top: 18px; font-size: 1.125rem; }
.d-body > p:not(.lead):not(.small) { color: var(--muted); }
.d-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; counter-reset: s; }
.d-steps li { counter-increment: s; display: grid; gap: 4px; align-content: start; padding: 16px; border-radius: 12px; background: var(--alt); font-size: .875rem; color: var(--muted); }
.d-steps li::before { content: counter(s); width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--petrol); color: #fff; font-weight: 700; font-size: .8125rem; margin-bottom: 6px; }
.d-steps b { color: var(--ink); font-size: .9688rem; }
.d-cta { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; margin-top: 18px; padding: 22px 24px; border-radius: 14px; background: var(--petrol-soft); }
.d-cta p { font-weight: 600; font-size: 1.0625rem; }
.d-body .assistant .phone { border: 1px solid var(--line); }
.browser { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.browser .chrome { display: flex; align-items: center; gap: 8px; padding: 10px 14px; background: var(--alt); border-bottom: 1px solid var(--line); font-size: .8125rem; color: var(--muted); }
.browser .chrome i { width: 9px; height: 9px; border-radius: 50%; background: #CBD3DD; }
.browser .url { flex: 1; margin-left: 8px; background: #fff; border-radius: 6px; padding: 3px 10px; }
.site-nav { display: flex; justify-content: space-between; padding: 14px 20px; font-size: .8125rem; color: var(--muted); }
.site-nav b { color: var(--ink); }
.site-hero { display: grid; gap: 8px; padding: 32px 20px; background: var(--ink); color: #fff; }
.site-hero strong { font-size: 1.375rem; letter-spacing: -0.02em; max-width: 22ch; line-height: 1.15; }
.site-hero span { font-size: .875rem; color: var(--on-dark-muted); }
.site-hero em { font-style: normal; justify-self: start; margin-top: 6px; background: var(--petrol); padding: 8px 12px; border-radius: 8px; font-size: .8125rem; font-weight: 600; }
.site-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 14px 20px 18px; font-size: .8125rem; color: var(--muted); }
.site-row span { background: var(--alt); padding: 14px 10px; border-radius: 8px; }
.ads { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; max-width: 560px; }
.ad { aspect-ratio: 9 / 14; border-radius: 12px; padding: 14px; color: #fff; display: grid; align-content: space-between; }
.ad .sp { font-size: .75rem; opacity: .8; }
.ad b { font-size: 1.0625rem; line-height: 1.2; letter-spacing: -0.01em; }
.ad em { font-style: normal; justify-self: start; background: #fff; color: var(--ink); padding: 6px 10px; border-radius: 6px; font-size: .75rem; font-weight: 600; }
.brandboard { display: grid; grid-template-columns: 2fr 1fr; gap: 10px; }
.bb-logo { display: flex; align-items: center; justify-content: center; gap: 14px; min-height: 180px; border-radius: 12px; background: #2B1A12; color: #F3E3C7; font-size: 3rem; font-weight: 700; letter-spacing: -0.04em; }
.bb-logo .mark { width: 52px; height: 52px; border-radius: 50%; border: 5px solid currentColor; }
.bb-type { display: grid; align-content: space-between; padding: 16px; border-radius: 12px; background: #F3E3C7; color: #2B1A12; font-size: .8125rem; font-weight: 600; }
.bb-type strong { font-size: 3.5rem; line-height: 1; letter-spacing: -0.04em; }
.bb-colors { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.bb-colors span { padding: 28px 12px 12px; border-radius: 10px; color: #fff; font-size: .8125rem; font-weight: 600; }
@media (max-width: 700px) {
  dialog.detail { width: 100%; max-height: 100%; height: 100%; border-radius: 0; }
  .d-body { padding: 24px 20px 32px; }
  .d-steps { grid-template-columns: 1fr 1fr; }
  .ads { grid-template-columns: 1fr 1fr; } .ad:nth-child(3) { display: none; }
  .brandboard { grid-template-columns: 1fr; } .bb-colors { grid-template-columns: 1fr 1fr; }
}
body.locked { overflow: hidden; }

/* Aparición suave al hacer scroll */
html.js .rv { opacity: 0; transform: translateY(16px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
html.js .rv.in { opacity: 1; transform: none; }
html.js .sol-grid .rv:nth-child(2), html.js .sol-grid .rv:nth-child(4) { transition-delay: .08s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  html.js .rv { opacity: 1; transform: none; }
}
