/* DevHouse — landing (versión light) */
:root {
  --accent: #C5F45A;
  --on-accent: #0A0B0A;
  --bg: #0A0B0A; --navbg: rgba(10,11,10,.86); --surface: #111311; --surface2: #0E100E;
  --line: #1F221F; --line2: #2E322E; --text: #EDEEE9; --muted: #A3A79F; --faint: #7E827A;
  --chip: #1C1F1C; --warn: #E8A35A; --accent-text: #C5F45A; --scan: rgba(197,244,90,.06);
  --shadow: 0 40px 80px rgba(0,0,0,.45);
  --mono: 'Geist Mono', ui-monospace, monospace;
  --serif: 'Instrument Serif', Georgia, serif;
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: #F6F6F1; --navbg: rgba(246,246,241,.88); --surface: #FFFFFF; --surface2: #EFEFE8;
  --line: #E2E3DB; --line2: #CDD0C4; --text: #121411; --muted: #4F534B; --faint: #666A61;
  --chip: #ECEDE6; --warn: #A55A12; --accent-text: #4A7300; --scan: rgba(74,115,0,.06);
  --shadow: 0 30px 60px rgba(20,22,18,.10);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
html, body { overflow-x: clip; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: 'Geist', system-ui, sans-serif; font-size: 16px; line-height: 1.5; transition: background .25s, color .25s; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; }
a { color: inherit; }
button, input, textarea { font: inherit; }
:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 3px; border-radius: 6px; }

.sec { max-width: 1200px; margin: 0 auto; padding: 104px 24px 0; }
.label { font-family: var(--mono); font-size: 13px; color: var(--accent-text); }
.acc { color: var(--accent-text); }
em.s { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -.01em; }
.h2 { margin: 0; font-size: clamp(30px, 4.2vw, 52px); line-height: 1.06; letter-spacing: -.03em; font-weight: 600; }
.lead { margin: 0; color: var(--muted); font-size: 17px; }
.head { display: flex; flex-direction: column; gap: 14px; margin-bottom: 32px; max-width: 760px; }
.head-c { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px; }
.head-c .h2 { max-width: 820px; }

/* Botones */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 14px 22px; border-radius: 12px; font-size: 16px; font-weight: 600; text-decoration: none; cursor: pointer; border: 1px solid transparent; white-space: nowrap; }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line2); font-weight: 500; }
.btn:hover { filter: brightness(1.05); }
.btn:disabled { opacity: .6; cursor: progress; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 20; background: var(--navbg); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nav-in { max-width: 1200px; margin: 0 auto; padding: 12px 20px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--mono); font-size: 17px; font-weight: 500; }
.brand-mark { width: 30px; height: 30px; border-radius: 8px; background: var(--accent); color: var(--on-accent); display: grid; place-items: center; font-size: 14px; font-weight: 700; }
.navlinks { display: flex; gap: 28px; font-size: 14px; }
.navlinks a { color: var(--muted); text-decoration: none; }
.navlinks a:hover { color: var(--text); }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.nav-actions .btn { min-height: 44px; padding: 10px 16px; font-size: 14px; }
.icon-btn { width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--line2); background: transparent; color: var(--text); display: grid; place-items: center; cursor: pointer; padding: 0; }
.icon-moon { display: none; }
:root[data-theme="light"] .icon-sun { display: none; }
:root[data-theme="light"] .icon-moon { display: block; }

/* Hero */
.hero { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; padding-top: 72px; }
.hero-copy { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.pill { display: inline-flex; align-self: flex-start; align-items: center; gap: 10px; border: 1px solid var(--line2); border-radius: 999px; padding: 6px 14px; font-family: var(--mono); font-size: 12px; color: var(--muted); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.h1 { margin: 0; font-size: clamp(40px, 5.6vw, 72px); line-height: 1.02; letter-spacing: -.035em; font-weight: 600; }
.hero-lead { margin: 0; font-size: 18px; line-height: 1.55; color: var(--muted); max-width: 520px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }
.checks { display: flex; flex-wrap: wrap; gap: 8px 18px; font-family: var(--mono); font-size: 12px; color: var(--faint); }

/* Mockup animado */
.mock { position: relative; min-width: 0; }
.win { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); }
.win-bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--surface2); }
.win-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line2); flex: none; }
.win-url { margin-left: 10px; font-family: var(--mono); font-size: 12px; color: var(--faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.live-tag { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 11px; color: var(--accent-text); white-space: nowrap; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); animation: dh-pulse 1.6s ease-in-out infinite; }
.cols-head { padding: 16px 16px 0; display: flex; justify-content: space-between; font-family: var(--mono); font-size: 11px; color: var(--faint); letter-spacing: .06em; }
.tick-wrap { position: relative; height: 264px; overflow: hidden; margin-top: 8px; -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 14%, #000 86%, transparent 100%); mask-image: linear-gradient(to bottom, transparent 0, #000 14%, #000 86%, transparent 100%); }
.scan { position: absolute; left: 10px; right: 10px; top: 104px; height: 56px; border: 1px solid var(--accent); border-radius: 12px; background: var(--scan); }
.ticker { position: relative; animation: dh-tick 26s linear infinite; }
.row { height: 56px; padding: 0 22px; display: flex; align-items: center; gap: 12px; }
.ini { width: 34px; height: 34px; flex: none; border-radius: 9px; background: var(--chip); display: grid; place-items: center; font-family: var(--mono); font-size: 11px; color: var(--muted); }
.row-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.row-name { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-sub { font-family: var(--mono); font-size: 11px; color: var(--faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chip { font-family: var(--mono); font-size: 10.5px; padding: 3px 7px; border-radius: 6px; white-space: nowrap; }
.chip.vendido { background: var(--accent); color: var(--on-accent); }
.chip.reponer { border: 1px solid var(--warn); color: var(--warn); }
.chip.stock { background: var(--chip); color: var(--muted); }
.price { font-family: var(--mono); font-size: 13px; white-space: nowrap; }
.win-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border-top: 1px solid var(--line); background: var(--surface2); }
.foot-label { display: block; font-family: var(--mono); font-size: 11px; color: var(--faint); letter-spacing: .06em; }
.foot-num { display: block; font-size: 22px; font-weight: 600; letter-spacing: -.02em; }
.foot-up { font-family: var(--mono); font-size: 12px; color: var(--accent-text); white-space: nowrap; }
.float-chip { position: absolute; left: -16px; bottom: -46px; z-index: 2; background: var(--surface2); border: 1px solid var(--line2); border-radius: 12px; padding: 10px 14px; font-family: var(--mono); font-size: 12px; color: var(--muted); display: flex; flex-direction: column; gap: 4px; box-shadow: var(--shadow); }
@keyframes dh-tick { from { transform: translateY(0); } to { transform: translateY(-50%); } }
@keyframes dh-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }

/* Números */
.stats-sec { padding-top: 72px; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.stat { border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; display: flex; flex-direction: column; gap: 2px; }
.stat b { font-size: clamp(30px, 3.4vw, 42px); font-weight: 600; letter-spacing: -.03em; }
.stat b small { font-size: .5em; font-weight: 500; color: var(--muted); }
.stat span { font-size: 14px; color: var(--muted); }
.stat.hl { border-color: var(--accent); }
.stat.hl b, .stat.hl b small { color: var(--accent-text); }

/* Módulos */
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.mod { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.mod-ico { width: 40px; height: 40px; border-radius: 11px; background: var(--chip); color: var(--accent-text); display: grid; place-items: center; }
.mod h3 { margin: 0; font-size: 17px; font-weight: 600; line-height: 1.25; }
.mod p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.45; }

/* Abanico */
.fan { position: relative; width: 100%; aspect-ratio: 3.1 / 1; margin: 40px 0 28px; }
.fc { position: absolute; left: 50%; width: 34%; display: block; text-decoration: none; border: 1px solid var(--line2); border-radius: 12px; overflow: hidden; background: var(--surface2); box-shadow: var(--shadow); transform-origin: 50% 160%; transition: transform .3s ease; }
.fc-c { width: 38%; border-color: var(--accent); }
.fc .bar { display: flex; align-items: center; gap: 5px; padding: 6px 9px; border-bottom: 1px solid var(--line); }
.fc .bar i { width: 6px; height: 6px; border-radius: 50%; background: var(--line2); }
.fc .bar span { margin-left: 5px; font-family: var(--mono); font-size: 10px; color: var(--faint); white-space: nowrap; overflow: hidden; }
.fc img { display: block; width: 100%; height: auto; }
.f1 { top: 14%; z-index: 1; transform: translateX(-142%) rotate(-11deg); }
.f2 { top: 6%; z-index: 2; transform: translateX(-96%) rotate(-5.5deg); }
.f3 { top: 0; z-index: 3; transform: translateX(-50%); }
.f4 { top: 6%; z-index: 2; transform: translateX(-4%) rotate(5.5deg); }
.f5 { top: 14%; z-index: 1; transform: translateX(42%) rotate(11deg); }
@media (hover: hover) {
  .f1:hover { transform: translateX(-142%) rotate(-11deg) translateY(-10px); z-index: 4; }
  .f2:hover { transform: translateX(-96%) rotate(-5.5deg) translateY(-10px); z-index: 4; }
  .f4:hover { transform: translateX(-4%) rotate(5.5deg) translateY(-10px); z-index: 4; }
  .f5:hover { transform: translateX(42%) rotate(11deg) translateY(-10px); z-index: 4; }
}

/* Casos */
.tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 16px; }
.tab { min-height: 44px; padding: 10px 18px; border-radius: 999px; cursor: pointer; font-size: 15px; font-weight: 600; background: transparent; color: var(--text); border: 1px solid var(--line2); }
.tab[aria-selected="true"] { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.case-box { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: clamp(22px, 4vw, 44px); }
.panel { display: flex; flex-direction: column; gap: 24px; }
.panel[hidden] { display: none; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 48px; }
.case-head { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.case-rubro { font-family: var(--mono); font-size: 12px; color: var(--faint); }
.case-title { margin: 0; font-size: clamp(24px, 2.6vw, 32px); line-height: 1.12; letter-spacing: -.02em; font-weight: 600; }
.case-body { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.case-body > p { margin: 0; color: var(--muted); font-size: 16px; }
.quote { margin: 0; border-left: 2px solid var(--accent); padding: 2px 0 2px 16px; display: flex; flex-direction: column; gap: 6px; }
.quote p { margin: 0; font-family: var(--serif); font-size: 20px; line-height: 1.3; }
.quote footer { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.kpi { border-top: 1px solid var(--line2); padding-top: 12px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.kpi b { font-size: clamp(22px, 3vw, 34px); font-weight: 600; letter-spacing: -.03em; color: var(--accent-text); }
.kpi span { font-size: 13px; color: var(--muted); line-height: 1.35; }

/* Por qué */
.rail { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.why { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.why.hl { border-color: var(--accent); }
.why-tag { font-family: var(--mono); font-size: 13px; color: var(--accent-text); }
.why h3 { margin: 0; font-size: 21px; font-weight: 600; }
.term { background: var(--surface2); border-radius: 12px; padding: 14px 16px; font-family: var(--mono); font-size: 12.5px; line-height: 1.9; color: var(--muted); }
.why ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; font-size: 14px; color: var(--muted); }
.why li strong { color: var(--text); font-weight: 500; }
.swipe { display: none; font-family: var(--mono); font-size: 12px; color: var(--faint); }

/* Cómo trabajamos */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.step { border-top: 1px solid var(--line2); padding: 16px 0 18px; display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 10px; align-items: start; }
.step-n { font-family: var(--mono); font-size: 13px; color: var(--accent-text); padding-top: 2px; }
.step-b { display: flex; flex-direction: column; gap: 4px; }
.step h3 { margin: 0; font-size: 18px; font-weight: 600; }
.step p { margin: 0; color: var(--muted); font-size: 14px; }
.step-meta { font-family: var(--mono); font-size: 11.5px; color: var(--faint); }
.price-box { margin-top: 28px; background: var(--surface); border: 1px solid var(--accent); border-radius: 20px; padding: clamp(22px, 3.5vw, 36px); display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; }
.price-copy { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.price-copy h3 { margin: 0; font-size: clamp(22px, 2.4vw, 28px); font-weight: 600; letter-spacing: -.02em; }
.price-copy p { margin: 0; color: var(--muted); font-size: 15px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.chips span { font-size: 13px; background: var(--chip); border-radius: 999px; padding: 7px 12px; }

/* FAQ */
.faq-list { border-top: 1px solid var(--line2); }
.faq-list details { border-bottom: 1px solid var(--line2); }
.faq-list summary { list-style: none; cursor: pointer; min-height: 56px; padding: 16px 0; display: flex; justify-content: space-between; align-items: center; gap: 16px; font-size: 17px; font-weight: 500; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: '+'; font-family: var(--mono); font-size: 20px; color: var(--accent-text); }
.faq-list details[open] summary::after { content: '−'; }
.faq-list p { margin: 0; padding: 0 32px 18px 0; color: var(--muted); font-size: 15px; }

/* Contacto */
.contact-sec { padding-bottom: 72px; }
.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; background: var(--accent); color: var(--on-accent); border-radius: 26px; padding: clamp(24px, 5vw, 56px); }
.contact-copy { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.contact-copy .h2 { font-size: clamp(32px, 4.4vw, 56px); line-height: 1.03; letter-spacing: -.035em; }
.contact-copy > p { margin: 0; font-size: 17px; max-width: 440px; }
.contact-copy .mono { font-family: var(--mono); font-size: 13px; }
.contact-info { display: flex; flex-direction: column; gap: 8px; font-size: 15px; margin-top: 4px; }
.contact-info a { color: var(--on-accent); font-weight: 500; }
.contact-info a.strong { font-weight: 600; }
.contact-info span { font-family: var(--mono); font-size: 12px; }
.form { min-width: 0; background: var(--bg); color: var(--text); border-radius: 18px; padding: 22px; display: flex; flex-direction: column; gap: 12px; }
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 13px; color: var(--muted); }
.field input, .field textarea { width: 100%; background: var(--surface); border: 1px solid var(--line2); border-radius: 10px; padding: 13px; color: var(--text); font-size: 15px; }
.field textarea { resize: vertical; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.cf-turnstile { min-height: 65px; }
.form-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.form-actions .btn { flex: 1 1 160px; min-height: 50px; }
.form-status { margin: 0; font-size: 14px; min-height: 1.5em; }
.form-status.ok { color: var(--accent-text); }
.form-status.err { color: var(--warn); }

/* Footer */
.footer { border-top: 1px solid var(--line); }
.footer-in { max-width: 1200px; margin: 0 auto; padding: 24px 20px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-family: var(--mono); font-size: 12px; color: var(--faint); }
.footer a { color: var(--faint); }
.ft-brand { color: var(--text); }

/* WhatsApp flotante (celular) */
.fab { display: none; position: fixed; right: 16px; bottom: 16px; z-index: 30; width: 56px; height: 56px; border-radius: 50%; background: var(--accent); color: var(--on-accent); align-items: center; justify-content: center; box-shadow: 0 10px 30px rgba(0,0,0,.35); }

/* Responsive */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 40px; }
  .split, .contact { grid-template-columns: 1fr; gap: 28px; }
  .grid3 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) { .navlinks { display: none; } }
@media (max-width: 720px) {
  .sec { padding: 64px 20px 0; }
  .hero { padding-top: 48px; }
  .stats-sec { padding-top: 56px; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .mod { padding: 16px; }
  .rail { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; margin: 0 -20px; padding: 0 20px 6px; scrollbar-width: none; }
  .rail::-webkit-scrollbar { display: none; }
  .rail > * { flex: 0 0 84%; scroll-snap-align: start; }
  .swipe { display: inline; }
  .steps { grid-template-columns: 1fr; gap: 0; }
  .fan { aspect-ratio: 1.9 / 1; }
  .fc { width: 50%; }
  .fc-c { width: 62%; }
  .fc-out { display: none; }
  .float-chip { position: static; margin-top: 12px; flex-direction: row; flex-wrap: wrap; gap: 4px 14px; box-shadow: none; }
  .fab { display: flex; }
  .contact-sec { padding-bottom: 88px; }
}
@media (max-width: 520px) {
  .ini { display: none; }
  .row { padding: 0 14px; gap: 10px; }
  .row-name { font-size: 13.5px; }
  .chip { font-size: 10px; padding: 2px 6px; }
  .price { font-size: 12px; }
  .nav-actions .btn { padding: 10px 12px; }
  .kpi span { font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ticker, .live-dot { animation: none; }
  * { transition: none !important; }
}
.form-privacy { margin: 0; font-size: 12px; color: var(--faint); line-height: 1.45; }

/* 404 */
.nf { min-height: calc(100vh - 140px); display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 18px; max-width: 760px; margin: 0 auto; padding: 64px 24px; }
.nf-code { font-family: var(--mono); font-size: 13px; color: var(--accent-text); }
.nf p { margin: 0; color: var(--muted); font-size: 17px; }
