:root, .site-footer, .chat-panel, .chat-teaser, .chat-launcher, .window, .float, .proj-visual {
  /* Tema oscuro: grafito y cobre. Es también el de las zonas que siempre son oscuras (pie, asistente
     y «pantallas» de ejemplo). */
  --bg: #0e0f11;
  --bg-2: #131417;
  --card: #17191c;
  --card-2: #1c1f23;
  --field: #121316;
  --ink: #ecedee;
  --muted: #a3a7ae;
  --accent: #e08a4b;
  --accent-2: #f5b83d;
  --on-accent: #1f0f04;
  --ok: #4ade80;
  --a: 224, 138, 75;
  --a2: 245, 184, 61;
  --n: 160, 165, 175;
  --w: 255, 255, 255;
  --line: rgba(var(--n), .18);
  --grad: linear-gradient(100deg, #e08a4b 0%, #f5b83d 100%);
  --shadow: 0 20px 60px rgba(0, 0, 0, .45);
  --glow: 0 0 0 1px rgba(var(--a), .4), 0 12px 40px rgba(var(--a), .16);
  color: var(--ink);
}
:root {
  --screen: #121316;
  --screen-2: #17191c;
  --screen-3: #23262b;
  --radius: 18px;
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  color-scheme: dark;
}
html[data-theme="light"] {
  --bg: #f7f5f2;
  --bg-2: #efebe5;
  --card: #ffffff;
  --card-2: #ffffff;
  --field: #ffffff;
  --ink: #1a1b1e;
  --muted: #5a5d63;
  --accent: #a64b16;
  --accent-2: #8a5a00;
  --on-accent: #fff4ec;
  --ok: #15803d;
  --a: 166, 75, 22;
  --a2: 154, 103, 0;
  --n: 60, 50, 40;
  --w: 0, 0, 0;
  --line: rgba(var(--n), .2);
  --grad: linear-gradient(100deg, #a64b16 0%, #ad5117 100%);
  --shadow: 0 16px 40px rgba(60, 40, 20, .14);
  --glow: 0 0 0 1px rgba(var(--a), .45), 0 12px 32px rgba(var(--a), .14);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.65 "Inter", "Segoe UI", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img, svg, canvas { max-width: 100%; }
a { color: var(--accent); }
h1, h2, h3 { font-family: "Space Grotesk", "Inter", sans-serif; line-height: 1.12; letter-spacing: -.025em; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: clamp(2.3rem, 5.6vw, 4.1rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.18rem; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
::selection { background: rgba(var(--a), .35); }

.container { width: min(1180px, 100% - 40px); margin-inline: auto; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; z-index: 100; background: #fff; color: #000; padding: 8px 12px; border-radius: 8px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.grad { background: var(--grad-text, var(--grad)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.mono { font-family: var(--mono); }

/* Botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 24px; border-radius: 12px; border: 1px solid transparent;
  font: inherit; font-weight: 700; text-decoration: none; cursor: pointer;
  transition: transform .15s, box-shadow .2s, border-color .15s, background .15s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary, .btn-accent { background: var(--grad); color: var(--on-accent); box-shadow: 0 10px 30px rgba(var(--a), .3); }
.btn-primary:hover, .btn-accent:hover { box-shadow: 0 14px 40px rgba(var(--a), .45); }
.btn-ghost, .btn-light { border-color: var(--line); color: var(--ink); background: rgba(var(--w), .04); }
.btn-ghost:hover, .btn-light:hover { border-color: var(--accent); }
.btn-wa { background: #1faa59; color: #fff; }
.btn-wa:hover { background: #178a47; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* Cabecera */
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 70px; }
.logo { display: inline-flex; align-items: center; flex-shrink: 0; text-decoration: none; }
.logo-text { display: flex; align-items: center; gap: 12px; color: var(--ink); }
.logo-text { gap: 11px; font-family: "Montserrat", "Inter", sans-serif; }
.logo-text .mark { display: block; width: auto; height: 46px; }
.logo-text .words { display: flex; flex-direction: column; line-height: 1.05; }
.logo-text .words b { font-weight: 800; font-size: 1.42rem; letter-spacing: -.01em; color: var(--logo, var(--accent)); white-space: nowrap; }
.logo-text .words b i { font-style: normal; font-weight: 400; }
.logo-text .words small { margin-top: 3px; font-weight: 500; font-size: .6rem; letter-spacing: .15em; white-space: nowrap; color: var(--muted); }
/* El emblema azul oscuro para fondo claro y el azul claro para fondo oscuro */
.mark.on-dark, html[data-theme="light"] .site-header .mark.on-dark { display: none; }
html:not([data-theme="light"]) .site-header .mark.on-dark, .site-footer .mark.on-dark { display: block; }
html:not([data-theme="light"]) .site-header .mark.on-light { display: none; }
.logo-big { gap: 16px; margin-bottom: 6px; }
.logo-big .mark { height: 78px; }
.logo-big .words b { font-size: 2.1rem; line-height: 1; }
.logo-big .words small { margin-top: 8px; font-size: .68rem; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { white-space: nowrap; }
.nav a:not(.btn) { padding: 8px 12px; border-radius: 8px; color: var(--muted); text-decoration: none; font-weight: 600; font-size: .92rem; transition: color .15s, background .15s; }
.nav a:not(.btn):hover, .nav a[aria-current="page"] { color: var(--ink); background: rgba(var(--w), .07); }
.nav .btn { padding: 10px 18px; margin-left: 8px; font-size: .92rem; }
.nav-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; border-radius: 2px; }

/* Secciones */
.section { position: relative; padding: clamp(64px, 9vw, 112px) 0; }
.section-alt { background: var(--bg-2); border-block: 1px solid var(--line); }
.section-dark { background: radial-gradient(700px 380px at 12% 0%, rgba(var(--a), .2), transparent 70%), radial-gradient(600px 360px at 95% 100%, rgba(var(--a2), .18), transparent 70%), var(--bg-2); border-block: 1px solid var(--line); }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font: 500 .78rem var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
.eyebrow::before { content: ""; width: 22px; height: 1px; background: var(--accent); }
.lead { font-size: 1.14rem; color: var(--muted); max-width: 660px; }
.section-head { max-width: 760px; margin-bottom: 44px; }
.center { text-align: center; margin-inline: auto; }
.center .lead { margin-inline: auto; }

.grid-2, .grid-3, .grid-4 { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 5vw, 64px); align-items: center; }

.card { position: relative; background: linear-gradient(180deg, var(--card-2), var(--card)); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; transition: transform .2s, border-color .2s, box-shadow .2s; }
.card:hover { transform: translateY(-4px); border-color: rgba(var(--a), .55); box-shadow: var(--glow); }
.card p:last-child, .card ul:last-child { margin-bottom: 0; }
.card p { color: var(--muted); }
.icon { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 13px; background: rgba(var(--a), .1); border: 1px solid rgba(var(--a), .3); color: var(--accent); font: 700 .95rem var(--mono); margin-bottom: 18px; }
.icon svg { width: 24px; height: 24px; }
.price { font: 700 1.5rem "Space Grotesk", sans-serif; letter-spacing: -.03em; color: var(--ink); margin: 14px 0 0; }
.price small { font: 500 .8rem "Inter", sans-serif; color: var(--muted); letter-spacing: 0; }
.badge { display: inline-block; font: 500 .7rem var(--mono); letter-spacing: .04em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; background: rgba(var(--a2), .16); color: var(--accent-2); border: 1px solid rgba(var(--a2), .4); }

.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.checklist li { position: relative; padding-left: 32px; color: var(--muted); }
.checklist li::before { content: ""; position: absolute; left: 0; top: .28em; width: 20px; height: 20px; border-radius: 6px; background: rgba(74, 222, 128, .14) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.300l2.600 2.600L13 6.500' fill='none' stroke='%234ade80' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain; }

.checklist.cols { grid-template-columns: repeat(2, 1fr); gap: 12px 28px; }
.tab-panel { margin-top: 22px; animation: chat-in .3s ease; }
.tab-panel[hidden] { display: none; }
.tab-panel h3 { font-size: 1.3rem; margin-bottom: 18px; }
.compare th.me, .compare td.me { background: rgba(var(--a), .07); border-left: 1px solid rgba(var(--a), .35); }
.compare th.me { color: var(--accent); font-weight: 700; }
.compare td.me b { color: var(--ink); white-space: normal; }
.compare td { min-width: 170px; }
.tags { display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 0; list-style: none; }
.tags li { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 8px 14px; font: 500 .84rem var(--mono); color: var(--ink); }

/* Portada */
.hero { position: relative; overflow: hidden; padding: clamp(56px, 8vw, 104px) 0 clamp(48px, 6vw, 80px); border-bottom: 1px solid var(--line); }
.hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(760px 440px at 82% 8%, rgba(var(--a), .26), transparent 68%), radial-gradient(620px 420px at 6% 96%, rgba(var(--a2), .2), transparent 70%); pointer-events: none; }
.hero::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(var(--n), .07) 1px, transparent 1px), linear-gradient(90deg, rgba(var(--n), .07) 1px, transparent 1px); background-size: 46px 46px; -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000 20%, transparent 75%); mask-image: radial-gradient(ellipse at 50% 30%, #000 20%, transparent 75%); pointer-events: none; }
.hero canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .75; pointer-events: none; }
.hero .container { position: relative; z-index: 1; }
.pill { display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px 7px 10px; border-radius: 999px; border: 1px solid var(--line); background: rgba(var(--w), .04); font: 500 .8rem var(--mono); color: var(--muted); margin-bottom: 22px; }
.pill i { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px rgba(74, 222, 128, .2); animation: pulse 2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(74, 222, 128, 0); } }
.hero h1 em { font-style: normal; background: var(--grad-text, var(--grad)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.typed { display: block; font-size: .6em; line-height: 1.25; letter-spacing: -.02em; min-height: 2.5em; margin-top: .35em; color: var(--accent); }
.typed::after { content: "▍"; margin-left: 2px; animation: blink 1s steps(1) infinite; color: var(--accent); }
@keyframes blink { 50% { opacity: 0; } }

/* Ventana de la portada: la IA construyendo una web */
.window { position: relative; border-radius: 18px; border: 1px solid rgba(var(--n), .25); background: rgba(18, 19, 22, .94); box-shadow: var(--shadow), 0 0 80px rgba(var(--a), .18); overflow: hidden; }
.window-bar { display: flex; align-items: center; gap: 7px; padding: 12px 14px; border-bottom: 1px solid var(--line); background: rgba(var(--w), .03); }
.window-bar i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.window-bar i:nth-child(2) { background: #febc2e; }
.window-bar i:nth-child(3) { background: #28c840; }
.window-bar span { margin-left: 10px; font: 500 .74rem var(--mono); color: var(--muted); }
.window-body { padding: 18px; display: grid; gap: 14px; }
.prompt { font: 500 .84rem/1.6 var(--mono); color: var(--ink); padding: 12px 14px; border-radius: 12px; background: rgba(var(--a), .07); border: 1px solid rgba(var(--a), .25); }
.prompt b { color: var(--accent); font-weight: 500; }
.live .prompt { min-height: 5.200em; }
.live .prompt span::after { content: "▍"; color: var(--accent); animation: blink 1s steps(1) infinite; }
.live .log li, .live .preview > * { animation: none; opacity: 0; transform: translateY(6px); transition: opacity .35s ease, transform .35s ease; }
.live .log li.on, .live .preview > .on { opacity: 1; transform: none; }
.live .log { min-height: 7.600em; }
.live .preview { opacity: 0; transition: opacity .35s ease; }
.live .preview.on { opacity: 1; }
.live.fade .window-body > *, .m-chat.fade > *, .m-audit.fade > * { opacity: 0; transition: opacity .4s ease; }
.log { font: 500 .78rem/1.9 var(--mono); color: var(--muted); margin: 0; padding: 0; list-style: none; }
.log li { opacity: 0; animation: appear .4s ease forwards; }
.log li::before { content: "✓ "; color: var(--ok); }
.log li:nth-child(1) { animation-delay: .6s; } .log li:nth-child(2) { animation-delay: 1.3s; } .log li:nth-child(3) { animation-delay: 2s; } .log li:nth-child(4) { animation-delay: 2.7s; }
@keyframes appear { from { opacity: 0; transform: translateX(-6px); } to { opacity: 1; transform: none; } }
.preview { border-radius: 12px; border: 1px solid var(--line); background: #f5f7fb; padding: 12px; display: grid; gap: 8px; }
.preview > * { border-radius: 6px; opacity: 0; animation: build .5s ease forwards; }
.preview .p-nav { height: 10px; width: 100%; background: #1a1b1e; animation-delay: 3.2s; }
.preview .p-hero { height: 58px; background: var(--grad); animation-delay: 3.6s; }
.preview .p-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; background: none; animation-delay: 4s; }
.preview .p-row span { height: 34px; border-radius: 6px; background: #dfe6f1; }
.preview .p-cta { height: 14px; width: 42%; background: #1faa59; animation-delay: 4.4s; }
@keyframes build { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }
.float { position: absolute; z-index: 2; display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 14px; border: 1px solid rgba(var(--n), .28); background: rgba(23, 25, 28, .95); box-shadow: var(--shadow); font-size: .82rem; font-weight: 600; animation: bob 5s ease-in-out infinite; }
button.float { font-family: inherit; text-align: left; color: var(--ink); cursor: pointer; transition: border-color .15s, box-shadow .15s; }
button.float:hover { border-color: var(--accent); box-shadow: var(--shadow), 0 0 0 3px rgba(var(--a), .25); }
button.float b { color: var(--accent); font-weight: 600; }
.float small { display: block; font-weight: 500; color: var(--muted); font-size: .72rem; }
.float.a { right: -14px; top: -24px; }
.float .dot { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--grad); color: var(--on-accent); font: 700 .8rem var(--mono); }
@keyframes bob { 50% { transform: translateY(-9px); } }
.hero-visual { position: relative; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 60px; }
.stats div { padding: 20px; border: 1px solid var(--line); border-radius: 16px; background: var(--card); backdrop-filter: blur(6px); }
.stats b { display: block; font: 700 1.6rem "Space Grotesk", sans-serif; letter-spacing: -.03em; background: var(--grad-text, var(--grad)); -webkit-background-clip: text; background-clip: text; color: transparent; line-height: 1.15; }
.stats span { font-size: .88rem; color: var(--muted); }

/* Cinta de tecnologías */
.ticker { overflow: hidden; border-bottom: 1px solid var(--line); background: var(--bg-2); padding: 16px 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.ticker ul { display: flex; gap: 44px; width: max-content; margin: 0; padding: 0; list-style: none; animation: slide 38s linear infinite; }
.ticker li { font: 500 .86rem var(--mono); color: var(--muted); white-space: nowrap; }
.ticker li::before { content: "◆ "; color: var(--accent-2); }
@keyframes slide { to { transform: translateX(-50%); } }

/* Proyectos con IA */
.proj { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.proj .card { padding: 0; overflow: hidden; display: grid; grid-template-rows: auto 1fr; }
.proj-visual { position: relative; height: 210px; padding: 20px; background: radial-gradient(420px 220px at 80% 0%, rgba(var(--a), .22), transparent 70%), var(--screen); border-bottom: 1px solid var(--line); overflow: hidden; }
.proj-body { padding: 24px 26px 28px; }
.proj-body h3 { font-size: 1.3rem; }
/* mini asistente */
.m-chat { display: grid; gap: 9px; max-width: 320px; }
.m-chat span { padding: 9px 13px; border-radius: 14px; font-size: .8rem; line-height: 1.4; width: fit-content; max-width: 88%; }
.m-chat .u { justify-self: end; background: var(--grad); color: var(--on-accent); font-weight: 600; border-bottom-right-radius: 4px; }
.m-chat .b { background: var(--screen-3); color: var(--ink); border-bottom-left-radius: 4px; }
.m-chat .t { display: flex; gap: 4px; padding: 12px 14px; }
.m-chat .t i { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); animation: chat-blink 1.1s infinite; }
.m-chat .t i:nth-child(2) { animation-delay: .18s; } .m-chat .t i:nth-child(3) { animation-delay: .36s; }
/* mini auditoría */
.m-audit { display: grid; grid-template-columns: 110px 1fr; gap: 18px; align-items: center; height: 100%; }
.ring { position: relative; width: 110px; height: 110px; border-radius: 50%; background: conic-gradient(var(--ring, #f87171) calc(var(--p, 30) * 1%), rgba(var(--n), .15) 0); display: grid; place-items: center; }
.ring::before { content: ""; position: absolute; inset: 9px; border-radius: 50%; background: var(--screen); }
.ring b { position: relative; font: 700 1.7rem "Space Grotesk", sans-serif; }
.ring b small { font-size: .7rem; color: var(--muted); font-weight: 500; }
.m-audit ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 7px; font: 500 .74rem var(--mono); color: var(--muted); }
.m-audit li::before { content: "✕ "; color: #f87171; }
.m-audit.live li { opacity: 0; transform: translateX(-6px); transition: opacity .3s ease, transform .3s ease; }
.m-audit.live li.on { opacity: 1; transform: none; }
.m-chat.live { align-content: start; min-height: 170px; }
.m-chat.live span { animation: chat-in .25s ease; }
/* mini código */
.m-code { font: 500 .76rem/1.75 var(--mono); color: #9aa0a8; margin: 0; white-space: pre; overflow: hidden; }
.m-code .k { color: var(--accent-2); } .m-code .s { color: #86efac; } .m-code .f { color: var(--accent); } .m-code .c { color: #6b7078; }
/* mini calendario */
.m-cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; height: 100%; align-content: center; }
.m-cal i { aspect-ratio: 1.25; border-radius: 6px; background: #23262b; }
.m-cal i.x { background: rgba(var(--a), .5); } .m-cal i.y { background: rgba(var(--a2), .55); } .m-cal i.z { background: rgba(74, 222, 128, .45); }

/* Hero de páginas interiores */
.page-hero { position: relative; overflow: hidden; padding: clamp(52px, 7vw, 88px) 0; border-bottom: 1px solid var(--line); background: radial-gradient(700px 360px at 85% 0%, rgba(var(--a), .26), transparent 70%), radial-gradient(520px 320px at 0% 100%, rgba(var(--a2), .18), transparent 70%), var(--bg); }
.page-hero h1 { font-size: clamp(2rem, 4.4vw, 3.1rem); max-width: 860px; }
.page-hero p { color: var(--muted); font-size: 1.1rem; max-width: 700px; margin: 0; }

.steps { counter-reset: paso; display: grid; gap: 16px; }
.step { counter-increment: paso; display: grid; grid-template-columns: 52px 1fr; gap: 18px; align-items: start; padding: 20px; border: 1px solid var(--line); border-radius: 16px; background: var(--card); transition: border-color .2s; }
.step:hover { border-color: rgba(var(--a), .5); }
.step::before { content: "0" counter(paso); display: grid; place-items: center; width: 52px; height: 52px; border-radius: 13px; background: rgba(var(--a), .1); border: 1px solid rgba(var(--a), .3); color: var(--accent); font: 700 1rem var(--mono); }
.step h3 { margin-bottom: 4px; }
.step p { margin: 0; color: var(--muted); }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
table { width: 100%; border-collapse: collapse; font-size: .95rem; }
th, td { text-align: left; padding: 15px 20px; border-bottom: 1px solid var(--line); }
th { font: 500 .74rem var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); background: rgba(var(--w), .03); }
td { color: var(--muted); }
td b { color: var(--ink); }
td:last-child b { color: var(--accent); white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: rgba(var(--a), .06); }

.timeline { display: grid; gap: 18px; border-left: 1px solid var(--line); padding-left: 28px; margin-left: 8px; }
.timeline article { position: relative; padding: 20px 22px; border: 1px solid var(--line); border-radius: 16px; background: var(--card); }
.timeline article::before { content: ""; position: absolute; left: -35px; top: 26px; width: 13px; height: 13px; border-radius: 50%; background: var(--grad); box-shadow: 0 0 0 4px var(--bg), 0 0 16px rgba(var(--a), .7); }
.timeline h3 span { display: block; font: 500 .76rem var(--mono); color: var(--accent); letter-spacing: .04em; margin-bottom: 6px; }
.timeline p { color: var(--muted); margin-bottom: .5em; }
.timeline ul { margin: 0; padding-left: 20px; color: var(--muted); }

/* Formulario */
.form { display: grid; gap: 16px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label { display: grid; gap: 6px; font-weight: 600; font-size: .9rem; }
.form input, .form select, .form textarea { font: inherit; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--field); color: var(--ink); width: 100%; }
.form input::placeholder, .form textarea::placeholder { color: var(--muted); }
.form input:focus, .form select:focus, .form textarea:focus { outline: 3px solid rgba(var(--a), .25); border-color: var(--accent); }
.form textarea { min-height: 120px; resize: vertical; }
.form .hp { position: absolute; left: -9999px; }
.form small { color: var(--muted); font-weight: 500; }

.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.contact-list li { padding: 18px 20px; border: 1px solid var(--line); border-radius: 16px; background: var(--card); color: var(--muted); }
.contact-list small { display: block; font: 500 .74rem var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-bottom: 4px; }
.contact-list a, .contact-list span { font-weight: 700; font-size: 1.05rem; text-decoration: none; color: var(--ink); }
.contact-list a:hover { color: var(--accent); }

.cta-band { text-align: center; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; inset: 0; background: radial-gradient(620px 300px at 50% 100%, rgba(var(--a), .28), transparent 70%); pointer-events: none; }
.cta-band .container { position: relative; }
.cta-band h1, .cta-band h2 { max-width: 760px; margin-inline: auto; }
.cta-band p { max-width: 560px; margin-inline: auto; }
.cta-band .btn-row { justify-content: center; }
.prose { max-width: 760px; }
.prose h2 { font-size: 1.3rem; margin-top: 1.6em; }
.prose p { color: var(--muted); }

/* Pie */
.site-footer { background: #08090a; color: var(--muted); padding: 64px 0 0; font-size: .93rem; border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 36px; }
.site-footer h2 { font: 500 .74rem var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink); margin-bottom: 14px; }
.site-footer a:not(.logo), .site-footer .footer-grid > div > span { display: block; color: var(--muted); text-decoration: none; padding: 4px 0; }
.site-footer a:not(.logo):hover { color: var(--accent); }
.site-footer p { margin-top: 16px; max-width: 320px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin-top: 44px; padding: 20px 0; border-top: 1px solid var(--line); font-size: .85rem; }

/* Aparición al hacer scroll */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* Calculadora */
.quiz { display: grid; grid-template-columns: 1.1fr .9fr; gap: 28px; align-items: start; }
.quiz-q { margin-bottom: 24px; }
.quiz-q h3 { font-size: 1.02rem; margin-bottom: 12px; }
.options { display: flex; flex-wrap: wrap; gap: 8px; }
.options button, .slot { font: inherit; font-weight: 600; font-size: .92rem; padding: 10px 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); color: var(--ink); cursor: pointer; transition: border-color .15s, background .15s, box-shadow .15s; }
.options button:hover, .slot:hover { border-color: var(--accent); }
.options button[aria-pressed="true"], .slot[aria-pressed="true"] { background: var(--grad); border-color: transparent; color: var(--on-accent); box-shadow: 0 8px 24px rgba(var(--a), .35); }
.quiz-result { background: linear-gradient(180deg, var(--card-2), var(--card)); border: 1px solid rgba(var(--a), .5); border-radius: var(--radius); padding: 26px; box-shadow: var(--glow); }
.quiz-result p { color: var(--muted); font-size: .95rem; }
.quiz-result .price { font-size: 2.6rem; margin: 0 0 12px; background: var(--grad-text, var(--grad)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.quiz-empty { border: 1px dashed rgba(var(--n), .35); border-radius: var(--radius); padding: 44px 28px; color: var(--muted); text-align: center; font: 500 .88rem var(--mono); }

/* Preguntas frecuentes */
.faq { display: grid; gap: 10px; max-width: 860px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 0 22px; transition: border-color .2s; }
.faq details[open] { border-color: rgba(var(--a), .45); }
.faq summary { cursor: pointer; font-weight: 600; padding: 18px 0; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font: 500 1.3rem var(--mono); line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); padding-bottom: 18px; margin: 0; }

/* Agenda */
.agenda h3 { font-size: 1rem; margin: 18px 0 10px; }
.agenda .slots { display: flex; flex-wrap: wrap; gap: 8px; }
.slot.day { border-radius: 14px; padding: 8px 12px; min-width: 62px; display: grid; justify-items: center; line-height: 1.15; }
.slot.day b { font-size: 1.25rem; }
.slot.day small { font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; opacity: .75; }
.agenda-done { text-align: center; padding: 10px 0; }
.agenda-done .check { display: grid; place-items: center; width: 56px; height: 56px; margin: 0 auto 14px; border-radius: 50%; background: rgba(74, 222, 128, .15); color: var(--ok); font-size: 1.6rem; font-weight: 800; }
.card.agenda:hover, .card.flat:hover { transform: none; }

/* Asistente */
.chat-launcher { position: fixed; right: 20px; bottom: 20px; z-index: 70; display: inline-flex; align-items: center; gap: 10px; padding: 0 22px 0 18px; height: 58px; border: 0; border-radius: 999px; cursor: pointer; background: var(--grad); color: var(--on-accent); font: inherit; font-weight: 700; box-shadow: 0 10px 34px rgba(var(--a), .4); animation: chat-pop .5s ease 1.2s both; }
.chat-launcher:hover { box-shadow: 0 12px 44px rgba(var(--a2), .55); }
.chat-launcher.hidden { display: none; }
@keyframes chat-pop { from { transform: translateY(30px); opacity: 0; } to { transform: none; opacity: 1; } }
.chat-teaser { position: fixed; right: 20px; bottom: 92px; z-index: 69; width: 270px; padding: 14px 34px 14px 16px; cursor: pointer; background: var(--card-2); border: 1px solid rgba(var(--a), .4); border-radius: 16px 16px 4px 16px; box-shadow: var(--shadow); font-size: .9rem; line-height: 1.4; animation: chat-in .35s ease; }
.chat-teaser[hidden] { display: none; }
.chat-teaser b { display: block; color: var(--accent); margin-bottom: 2px; }
.chat-teaser span { color: var(--muted); }
.chat-teaser-close { position: absolute; top: 6px; right: 8px; border: 0; background: none; font-size: 1.2rem; line-height: 1; color: var(--muted); cursor: pointer; padding: 4px; }
.chat-panel { position: fixed; right: 20px; bottom: 20px; z-index: 80; width: min(400px, calc(100vw - 24px)); height: min(640px, calc(100dvh - 40px)); display: flex; flex-direction: column; overflow: hidden; background: var(--screen); border: 1px solid rgba(var(--n), .28); border-radius: 22px; box-shadow: 0 24px 80px rgba(0, 0, 0, .7), 0 0 60px rgba(var(--a), .18); animation: chat-in .25s ease; }
.chat-panel[hidden] { display: none; }
.chat-open .chat-teaser { display: none; }
.chat-header { display: flex; align-items: center; gap: 12px; padding: 14px 14px 14px 16px; background: linear-gradient(100deg, rgba(var(--a), .18), rgba(var(--a2), .18)), var(--screen-2); color: var(--ink); border-bottom: 1px solid var(--line); }
.chat-title { flex: 1; min-width: 0; line-height: 1.25; }
.chat-title b { display: block; font-size: 1rem; }
.chat-title small { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: .78rem; }
.chat-dot { width: 8px; height: 8px; border-radius: 50%; background: #fbbf24; flex-shrink: 0; }
.chat-dot.on { background: var(--ok); }
.chat-avatar { display: grid; place-items: center; flex-shrink: 0; width: 40px; height: 40px; border-radius: 12px; background: var(--grad); color: var(--on-accent); font: 700 .8rem var(--mono); letter-spacing: -.05em; }
.chat-avatar { background: var(--screen) url(../img/logo-simbolo-oscuro.png) center/72% no-repeat; color: transparent; border: 1px solid rgba(var(--n), .28); }
.chat-avatar.small { width: 28px; height: 28px; border-radius: 9px; font-size: .58rem; align-self: flex-end; }
.chat-icon { display: grid; place-items: center; width: 34px; height: 34px; border: 0; border-radius: 10px; background: rgba(var(--w), .08); color: var(--ink); font-size: 1.25rem; line-height: 1; cursor: pointer; }
.chat-icon:hover { background: rgba(var(--w), .18); }
.chat-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 16px; background: var(--screen-2); border-bottom: 1px solid var(--line); font-size: .8rem; color: var(--muted); }
.chat-bar.on { color: var(--ok); font-weight: 600; }
.chat-bar a { flex-shrink: 0; padding: 6px 14px; border-radius: 999px; background: #1faa59; color: #fff; font-weight: 700; text-decoration: none; }
.chat-log { flex: 1; overflow-y: auto; padding: 18px 14px 8px; display: flex; flex-direction: column; gap: 12px; overscroll-behavior: contain; scrollbar-color: #33363b transparent; }
.chat-row { display: flex; gap: 8px; max-width: 100%; animation: chat-in .25s ease; }
.chat-row.user { justify-content: flex-end; }
@keyframes chat-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.chat-msg { max-width: 82%; padding: 11px 14px; border-radius: 18px; font-size: .94rem; line-height: 1.5; overflow-wrap: anywhere; }
.chat-row.bot .chat-msg { background: var(--screen-3); color: var(--ink); border-bottom-left-radius: 5px; }
.chat-row.user .chat-msg { background: var(--grad); color: var(--on-accent); font-weight: 600; border-bottom-right-radius: 5px; }
.chat-msg a:not(.chat-link) { color: var(--accent); font-weight: 700; }
.chat-link { display: inline-block; margin: 8px 0 4px; padding: 9px 16px; border-radius: 999px; background: #1faa59; color: #fff; font-weight: 700; text-decoration: none; }
.chat-link:hover { background: #178a47; }
.chat-typing { display: flex; gap: 5px; align-items: center; padding: 15px 16px; }
.chat-typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: chat-blink 1.1s infinite; }
.chat-typing i:nth-child(2) { animation-delay: .18s; }
.chat-typing i:nth-child(3) { animation-delay: .36s; }
@keyframes chat-blink { 0%, 70%, 100% { opacity: .3; transform: none; } 35% { opacity: 1; transform: translateY(-3px); } }
.chat-chips { display: flex; gap: 6px; padding: 6px 14px 10px; overflow-x: auto; scrollbar-width: none; }
.chat-chips::-webkit-scrollbar { display: none; }
.chat-chips:empty { display: none; }
.chat-chip { flex-shrink: 0; font: inherit; font-size: .84rem; font-weight: 600; padding: 7px 13px; border-radius: 999px; border: 1px solid rgba(var(--a), .4); background: rgba(var(--a), .08); color: var(--accent); cursor: pointer; white-space: nowrap; }
.chat-chip:hover { background: var(--grad); border-color: transparent; color: var(--on-accent); }
.chat-form { display: flex; gap: 8px; padding: 10px 12px; background: var(--screen-2); border-top: 1px solid var(--line); }
.chat-form input { flex: 1; min-width: 0; font: inherit; font-size: 16px; padding: 11px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--screen); color: var(--ink); }
.chat-form input:focus { outline: 2px solid rgba(var(--a), .3); border-color: var(--accent); }
.chat-form button { display: grid; place-items: center; flex-shrink: 0; width: 46px; height: 46px; border: 0; border-radius: 50%; background: var(--grad); color: var(--on-accent); cursor: pointer; }
.chat-note a { color: var(--accent); }
.prose ul { color: var(--muted); padding-left: 20px; }
.prose li { margin-bottom: .4em; }
.prose li b { color: var(--ink); }
.chat-note { margin: 0; padding: 0 14px 10px; background: var(--screen-2); text-align: center; font-size: .7rem; color: var(--muted); }

@media (max-width: 1260px) {
  .nav-toggle { display: block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 2px; padding: 14px 20px 22px; background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .nav.open { display: flex; }
  .nav a:not(.btn) { padding: 12px; font-size: 1rem; color: var(--ink); }
  .nav .btn { margin: 10px 0 0; }
}
@media (max-width: 900px) {
  .grid-3, .grid-4, .footer-grid { grid-template-columns: 1fr 1fr; }
  .split, .quiz, .proj { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .float.a { right: 6px; }
}
@media (max-width: 620px) {
  .grid-2, .grid-3, .grid-4, .footer-grid, .form .row, .checklist.cols { grid-template-columns: 1fr; }
  .btn-row .btn { width: 100%; }
  .chat-launcher span { display: none; }
  .chat-launcher { padding: 0; width: 58px; justify-content: center; }
  .chat-teaser { right: 12px; bottom: 90px; }
  .chat-panel { inset: 0; width: 100%; height: 100dvh; border-radius: 0; border: 0; }
  .chat-open { overflow: hidden; }
  .m-audit { grid-template-columns: 90px 1fr; gap: 12px; }
  .ring { width: 90px; height: 90px; }
  .step { grid-template-columns: 44px 1fr; gap: 14px; padding: 16px; }
  .step::before { width: 44px; height: 44px; }
}
@media (max-width: 420px) { .site-header .logo-text .words small { display: none; } .site-header .logo-text .words b { font-size: 1.2rem; } .site-header .logo-text .mark { height: 40px; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .ticker ul { animation: none; }
}

/* Botón para elegir tema: el del sistema, claro u oscuro */
.theme-toggle { display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 12px; margin-left: 6px; border-radius: 10px; border: 1px solid var(--line); background: rgba(var(--w), .04); color: var(--muted); font: 500 .78rem var(--mono); cursor: pointer; transition: color .15s, border-color .15s; }
.theme-toggle:hover { color: var(--ink); border-color: var(--accent); }
.theme-toggle { flex-shrink: 0; white-space: nowrap; }
.theme-toggle svg { flex: none; width: 16px; height: 16px; }
.theme-toggle svg[hidden] { display: none; }
html { transition: background-color .25s; }

/* Modo claro: el verde de las marcas y los resplandores, más discretos sobre papel */
html[data-theme="light"] .hero canvas { opacity: .55; }
html[data-theme="light"] .checklist li::before { background-color: rgba(21, 128, 61, .12); filter: brightness(.55); }
html[data-theme="light"] .pill i { box-shadow: 0 0 0 4px rgba(21, 128, 61, .18); }
html[data-theme="light"] .btn-primary, html[data-theme="light"] .btn-accent { box-shadow: 0 8px 22px rgba(var(--a), .28); }
html[data-theme="light"] .site-header .btn-accent { box-shadow: none; }
html[data-theme="light"] .card:hover { box-shadow: var(--shadow); }
html[data-theme="light"] .faq details, html[data-theme="light"] .step, html[data-theme="light"] .contact-list li, html[data-theme="light"] .timeline article { box-shadow: 0 1px 2px rgba(60, 40, 20, .06); }
@media (max-width: 1260px) { .theme-toggle { margin: 10px 0 0; justify-content: center; height: 44px; } }
/* En escritorio el botón de tema es solo el icono; el nombre del tema va en el menú del móvil */
@media (min-width: 1261px) {
  .theme-toggle { width: 38px; padding: 0; justify-content: center; }
  .theme-toggle [data-theme-label] { display: none; }
}

/* Paletas alternativas. La de por defecto (cobre y grafito) es la del principio de la hoja.
   Cada una tiene su tema oscuro, que también visten las zonas siempre oscuras, y su tema claro. */
html[data-palette="placa"], html[data-palette="placa"] .site-footer, html[data-palette="placa"] .chat-panel, html[data-palette="placa"] .chat-teaser, html[data-palette="placa"] .chat-launcher, html[data-palette="placa"] .window, html[data-palette="placa"] .float, html[data-palette="placa"] .proj-visual { --bg: #06140f; --bg-2: #0a1c15; --card: #0c2219; --card-2: #102a20; --field: #081a13; --ink: #e8f3ec; --muted: #9db5a8; --accent: #e3b341; --accent-2: #2fbf71; --on-accent: #221800; --a: 227, 179, 65; --a2: 47, 191, 113; --n: 150, 185, 165; --w: 255, 255, 255; --grad: linear-gradient(100deg, #e3b341 0%, #f0cf6e 100%); }
html[data-palette="placa"] { --screen: #081a13; --screen-2: #0c2219; --screen-3: #16382a; }
html[data-palette="placa"][data-theme="light"] { --bg: #f3f7f3; --bg-2: #e8efe9; --card: #ffffff; --card-2: #ffffff; --field: #ffffff; --ink: #10231a; --muted: #4c6055; --accent: #0b6b42; --accent-2: #8a6a00; --on-accent: #eaf7ef; --a: 11, 107, 66; --a2: 138, 106, 0; --n: 30, 60, 45; --w: 0, 0, 0; --grad: linear-gradient(100deg, #0b6b42 0%, #0d7347 100%); }
html[data-palette="tension"], html[data-palette="tension"] .site-footer, html[data-palette="tension"] .chat-panel, html[data-palette="tension"] .chat-teaser, html[data-palette="tension"] .chat-launcher, html[data-palette="tension"] .window, html[data-palette="tension"] .float, html[data-palette="tension"] .proj-visual { --bg: #0b0b0c; --bg-2: #111113; --card: #151517; --card-2: #1a1a1d; --field: #101012; --ink: #f5f5f4; --muted: #a1a1a6; --accent: #ffd60a; --accent-2: #ffe866; --on-accent: #1c1700; --a: 255, 214, 10; --a2: 255, 232, 102; --n: 165, 165, 170; --w: 255, 255, 255; --grad: linear-gradient(100deg, #ffd60a 0%, #ffe45c 100%); }
html[data-palette="tension"] { --screen: #101012; --screen-2: #151517; --screen-3: #232326; }
html[data-palette="tension"][data-theme="light"] { --bg: #fafaf7; --bg-2: #f0f0ea; --card: #ffffff; --card-2: #ffffff; --field: #ffffff; --ink: #111112; --muted: #55555a; --accent: #6b5900; --accent-2: #6b5900; --on-accent: #ffd60a; --a: 107, 89, 0; --a2: 107, 89, 0; --n: 40, 40, 35; --w: 0, 0, 0; --grad: linear-gradient(100deg, #111112 0%, #2a2a2d 100%); }
html[data-palette="neon"], html[data-palette="neon"] .site-footer, html[data-palette="neon"] .chat-panel, html[data-palette="neon"] .chat-teaser, html[data-palette="neon"] .chat-launcher, html[data-palette="neon"] .window, html[data-palette="neon"] .float, html[data-palette="neon"] .proj-visual { --bg: #060a13; --bg-2: #0a101d; --card: #0e1626; --card-2: #131d32; --field: #0a1220; --ink: #eaf0fb; --muted: #97a6c0; --accent: #22d3ee; --accent-2: #a855f7; --on-accent: #04101f; --a: 34, 211, 238; --a2: 168, 85, 247; --n: 148, 170, 210; --w: 255, 255, 255; --grad: linear-gradient(100deg, #22d3ee 0%, #4f8cff 50%, #a855f7 100%); }
html[data-palette="neon"] { --screen: #0a1220; --screen-2: #0e1626; --screen-3: #18243b; }
html[data-palette="neon"][data-theme="light"] { --bg: #f5f7fb; --bg-2: #eaeef6; --card: #ffffff; --card-2: #ffffff; --field: #ffffff; --ink: #0f172a; --muted: #51607a; --accent: #0e7490; --accent-2: #7c3aed; --on-accent: #ffffff; --a: 14, 116, 144; --a2: 124, 58, 237; --n: 40, 55, 90; --w: 0, 0, 0; --grad: linear-gradient(100deg, #0e7490 0%, #4f46e5 100%); }
html[data-palette="mono"], html[data-palette="mono"] .site-footer, html[data-palette="mono"] .chat-panel, html[data-palette="mono"] .chat-teaser, html[data-palette="mono"] .chat-launcher, html[data-palette="mono"] .window, html[data-palette="mono"] .float, html[data-palette="mono"] .proj-visual { --bg: #0c0c0d; --bg-2: #111112; --card: #161617; --card-2: #1b1b1d; --field: #101011; --ink: #f4f4f5; --muted: #a1a1aa; --accent: #f4f4f5; --accent-2: #a1a1aa; --on-accent: #0c0c0d; --a: 244, 244, 245; --a2: 161, 161, 170; --n: 160, 160, 170; --w: 255, 255, 255; --grad: linear-gradient(100deg, #f4f4f5 0%, #d4d4d8 100%); }
html[data-palette="mono"] { --screen: #101011; --screen-2: #161617; --screen-3: #242426; }
html[data-palette="mono"][data-theme="light"] { --bg: #ffffff; --bg-2: #f6f6f7; --card: #ffffff; --card-2: #ffffff; --field: #ffffff; --ink: #0c0c0d; --muted: #55555c; --accent: #0c0c0d; --accent-2: #55555c; --on-accent: #ffffff; --a: 12, 12, 13; --a2: 85, 85, 92; --n: 20, 20, 25; --w: 0, 0, 0; --grad: linear-gradient(100deg, #0c0c0d 0%, #2a2a2e 100%); }
html[data-palette="tension"][data-theme="light"] .hero h1 em, html[data-palette="tension"][data-theme="light"] .grad { background: #ffd60a; -webkit-background-clip: border-box; background-clip: border-box; color: #1c1700; padding: 0 .12em; border-radius: .12em; }
html[data-palette="mono"] .btn-primary, html[data-palette="mono"] .btn-accent, html[data-palette="mono"] .chat-launcher { box-shadow: none; }

/* Paleta de la marca Arrancaweb: el azul del logotipo para titulares y enlaces, y el naranja de su flecha
   para los botones de acción. Es la de por defecto (SITE.PALETA). */
html[data-palette="arranca"], html[data-palette="arranca"] .site-footer, html[data-palette="arranca"] .chat-panel, html[data-palette="arranca"] .chat-teaser, html[data-palette="arranca"] .chat-launcher, html[data-palette="arranca"] .window, html[data-palette="arranca"] .float, html[data-palette="arranca"] .proj-visual { --bg: #0c0f15; --bg-2: #10141c; --card: #141925; --card-2: #19202e; --field: #10141c; --ink: #edf0f5; --muted: #a3a9b6; --accent: #5b8dff; --accent-2: #ff8a3d; --on-accent: #2a0f00; --a: 91, 141, 255; --a2: 255, 122, 46; --n: 150, 165, 195; --w: 255, 255, 255; --grad: linear-gradient(100deg, #ff7a2e 0%, #ff9a52 100%); --grad-text: linear-gradient(100deg, #5b8dff 0%, #8fb1ff 100%); }
html[data-palette="arranca"] { --screen: #10141c; --screen-2: #151a24; --screen-3: #222a38; }
html[data-palette="arranca"][data-theme="light"] { --bg: #f6f8fc; --bg-2: #edf1f8; --card: #ffffff; --card-2: #ffffff; --field: #ffffff; --ink: #10151f; --muted: #515a6b; --accent: #1a5fe6; --accent-2: #b8440a; --on-accent: #2a0f00; --a: 26, 95, 230; --a2: 255, 112, 26; --n: 40, 55, 90; --w: 0, 0, 0; --grad: linear-gradient(100deg, #ff7a2e 0%, #ff9a52 100%); --grad-text: linear-gradient(100deg, #1a5fe6 0%, #3d7bf0 100%); }
html[data-palette="arranca"] .btn-primary, html[data-palette="arranca"] .btn-accent { box-shadow: 0 10px 28px rgba(255, 122, 46, .32); }
html[data-palette="arranca"] .chat-launcher { box-shadow: 0 10px 34px rgba(255, 122, 46, .4); }

/* Selector de paleta: solo en la versión de presentación, para decidir con cuál quedarse */
.palette-picker { position: fixed; left: 12px; bottom: 12px; z-index: 65; display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 14px; background: rgba(18, 19, 22, .94); border: 1px solid rgba(255, 255, 255, .16); box-shadow: 0 10px 30px rgba(0, 0, 0, .35); color: #ecedee; font: 500 .74rem var(--mono); }
.palette-picker span { min-width: 9.500em; }
.palette-picker button { width: 24px; height: 24px; padding: 0; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .25); cursor: pointer; transition: transform .15s; }
.palette-picker button:hover { transform: scale(1.15); }
.palette-picker button[aria-pressed="true"] { border-color: #fff; box-shadow: 0 0 0 2px rgba(255, 255, 255, .35); }
@media (max-width: 620px) { .palette-picker span { display: none; } }
@media print { .palette-picker { display: none; } }
