/* =========================================================
   Kit de demos de Bit&Fix
   Cada demo define sus colores y tipografías con variables en :root
   ========================================================= */
:root {
  --bg: #ffffff; --surface: #ffffff; --soft: #f5f5f5; --ink: #1a1a1a; --muted: #666; --line: #e6e6e6;
  --brand: #222; --brand-ink: #fff; --accent: #e11d48; --accent-ink: #fff;
  --hero-bg: #111; --hero-ink: #fff; --hero-muted: #ccc;
  --dark: #111; --dark-ink: #fff; --dark-muted: #bbb;
  --tile: #f2f2f2; --tile-ink: #333;
  --radius: 14px; --btn-radius: 999px;
  --head: "Poppins", system-ui, sans-serif; --body: "Poppins", system-ui, sans-serif;
  --head-weight: 800; --head-style: normal; --head-case: none; --head-spacing: -.02em;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body { margin: 0; font-family: var(--body); color: var(--ink); background: var(--bg); line-height: 1.6; -webkit-font-smoothing: antialiased; }
h1, h2, h3 { font-family: var(--head); font-weight: var(--head-weight); font-style: var(--head-style); text-transform: var(--head-case); letter-spacing: var(--head-spacing); line-height: 1.06; margin: 0 0 .5em; }
h1 { font-size: clamp(2.5rem, 6.5vw, 4.4rem); }
h2 { font-size: clamp(1.9rem, 4.5vw, 2.9rem); }
h3 { font-size: 1.12rem; letter-spacing: 0; text-transform: none; font-style: normal; }
p { margin: 0 0 1em; }
a { color: inherit; }
img, svg { display: block; max-width: 100%; }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.muted { color: var(--muted); }
.center { text-align: center; }
.eyebrow { display: inline-block; font: 700 .76rem/1 var(--body); letter-spacing: .2em; text-transform: uppercase; color: var(--accent); margin-bottom: .9rem; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

/* botones */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; padding: .9rem 1.5rem; border-radius: var(--btn-radius); font: 700 .95rem/1 var(--body); text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: transform .2s, filter .2s, background .2s, color .2s; }
.btn:hover { transform: translateY(-2px); filter: brightness(1.06); }
.btn--brand { background: var(--brand); color: var(--brand-ink); }
.btn--accent { background: var(--accent); color: var(--accent-ink); }
.btn--line { border-color: currentColor; background: transparent; }
.btn--sm { padding: .6rem 1rem; font-size: .85rem; }
.btn--block { width: 100%; }

/* encabezado */
.k-top { position: sticky; top: 0; z-index: 50; background: var(--top-bg, rgba(255, 255, 255, .95)); color: var(--top-ink, var(--ink)); backdrop-filter: blur(8px); border-bottom: 1px solid var(--top-line, var(--line)); }
.k-top__in { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.k-logo { display: flex; align-items: center; gap: .6rem; text-decoration: none; font: var(--head-weight) 1.3rem/1 var(--head); font-style: var(--head-style); }
.k-logo svg { width: 36px; height: 36px; flex-shrink: 0; }
.k-logo small { display: block; font: 500 .62rem/1 var(--body); letter-spacing: .22em; text-transform: uppercase; opacity: .7; margin-top: 4px; font-style: normal; }
.d-nav { display: flex; align-items: center; gap: 1.5rem; }
.d-nav a:not(.btn) { text-decoration: none; font-size: .92rem; font-weight: 500; opacity: .85; white-space: nowrap; }
.d-nav a:not(.btn):hover { opacity: 1; color: var(--accent); }
.d-menu-btn { display: none; background: none; border: 0; padding: 10px; cursor: pointer; color: inherit; }
.d-menu-btn span { display: block; width: 24px; height: 2px; background: currentColor; margin: 5px 0; }

/* hero */
.k-hero { position: relative; overflow: hidden; background: var(--hero-bg); color: var(--hero-ink); }
.k-hero__in { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr .9fr; gap: 2rem; align-items: center; padding: 5rem 0; }
.k-hero__lead { font-size: 1.1rem; color: var(--hero-muted); max-width: 34rem; }
.k-hero__cta { display: flex; flex-wrap: wrap; gap: .8rem; margin: 1.8rem 0 1.4rem; }
.k-hero__notes { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; font-size: .9rem; color: var(--hero-muted); }
.k-hero__notes li::before { content: "✓ "; color: var(--accent); font-weight: 700; }
.k-hero__art > svg { width: 100%; height: auto; max-height: 380px; }

/* franja */
.k-strip { background: var(--brand); color: var(--brand-ink); }
.k-strip__in { display: flex; flex-wrap: wrap; justify-content: space-around; gap: .5rem 1.5rem; padding: .95rem 0; font-weight: 700; font-size: .95rem; }
.k-strip span::before { content: "✦ "; color: var(--accent); }

/* secciones */
.k-sec { padding: 5rem 0; }
.k-sec--soft { background: var(--soft); }
.k-sec--dark { background: var(--dark); color: var(--dark-ink); }
.k-sec--dark .muted { color: var(--dark-muted); }
.k-head { max-width: 40rem; margin: 0 auto 2.4rem; text-align: center; }

/* catálogo */
.k-filters { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin-bottom: 1.8rem; }
.k-filters button { font: 600 .9rem var(--body); padding: .55rem 1.1rem; border-radius: var(--btn-radius); border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; }
.k-filters button.on { background: var(--brand); color: var(--brand-ink); border-color: var(--brand); }
.k-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.1rem; }
.k-prod { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s; }
.k-prod:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(0, 0, 0, .08); }
.k-prod__art { aspect-ratio: 4 / 3; display: grid; place-items: center; background: var(--tile); color: var(--tile-ink); position: relative; }
.k-prod__art svg { width: 46%; height: auto; }
.k-prod__tag { position: absolute; top: .6rem; left: .6rem; background: var(--accent); color: var(--accent-ink); font-size: .72rem; font-weight: 700; padding: .25rem .55rem; border-radius: 6px; }
.k-prod__body { padding: 1rem 1rem 1.1rem; display: flex; flex-direction: column; flex: 1; }
.k-prod__body h3 { margin-bottom: .2rem; }
.k-prod__body p { color: var(--muted); font-size: .86rem; margin-bottom: .8rem; flex: 1; }
.k-prod__row { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.k-price { font: var(--head-weight) 1.15rem/1 var(--head); }
.k-add { width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--brand); color: var(--brand-ink); font: 700 1.4rem/1 var(--body); cursor: pointer; flex-shrink: 0; transition: transform .15s; }
.k-add:active { transform: scale(.9); }
.k-add.added { background: var(--accent); color: var(--accent-ink); }
.k-sizes { display: flex; gap: .3rem; margin-bottom: .7rem; flex-wrap: wrap; }
.k-sizes button { min-width: 34px; padding: .3rem .4rem; border: 1.5px solid var(--line); background: var(--surface); border-radius: 6px; font: 600 .78rem var(--body); cursor: pointer; color: var(--ink); }
.k-sizes button.on { border-color: var(--brand); background: var(--brand); color: var(--brand-ink); }

/* servicios con precio */
.k-svc { list-style: none; padding: 0; margin: 0 auto; max-width: 820px; }
.k-svc li { display: flex; align-items: center; gap: 1rem; padding: 1.1rem 0; border-bottom: 1px dashed var(--line); }
.k-svc .ico { width: 48px; height: 48px; border-radius: 12px; background: var(--tile); color: var(--tile-ink); display: grid; place-items: center; flex-shrink: 0; }
.k-svc .ico svg { width: 28px; height: 28px; }
.k-svc div { flex: 1; }
.k-svc h3 { margin: 0; }
.k-svc p { margin: 0; color: var(--muted); font-size: .9rem; }
.k-svc b { font: var(--head-weight) 1.1rem var(--head); white-space: nowrap; }

/* tarjetas de beneficios */
.k-feats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
.k-feat { padding: 1.6rem; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.k-sec--dark .k-feat { background: rgba(255, 255, 255, .05); border-color: rgba(255, 255, 255, .12); }
.k-feat .ico { width: 50px; height: 50px; border-radius: 12px; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; margin-bottom: 1rem; }
.k-feat .ico svg { width: 28px; height: 28px; }
.k-feat p { margin: 0; color: var(--muted); }
.k-sec--dark .k-feat p { color: var(--dark-muted); }

/* pasos */
.k-steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; counter-reset: k; }
.k-steps li { counter-increment: k; padding: 1.5rem 1.3rem; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.k-sec--dark .k-steps li { background: rgba(255, 255, 255, .05); border-color: rgba(255, 255, 255, .12); }
.k-steps li::before { content: counter(k); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font: 800 1.1rem var(--head); margin-bottom: .9rem; }
.k-steps b { display: block; margin-bottom: .2rem; }
.k-steps span { color: var(--muted); font-size: .92rem; }
.k-sec--dark .k-steps span { color: var(--dark-muted); }

/* formulario */
.k-split { display: grid; grid-template-columns: .9fr 1.1fr; gap: 3rem; align-items: start; }
.k-form { background: var(--surface); color: var(--ink); border-radius: var(--radius); padding: 2rem; box-shadow: 0 24px 60px rgba(0, 0, 0, .12); border: 1px solid var(--line); }
.k-form label { display: block; font-weight: 600; font-size: .9rem; margin: 1rem 0 .4rem; }
.k-form label:first-child { margin-top: 0; }
.k-form input, .k-form select, .k-form textarea { width: 100%; padding: .8rem .9rem; border: 1.5px solid var(--line); border-radius: 10px; font: 400 1rem var(--body); background: var(--bg); color: var(--ink); }
.k-form input:focus, .k-form select:focus, .k-form textarea:focus { outline: none; border-color: var(--accent); }
.k-form .btn { margin-top: 1.4rem; }
.k-bullets { list-style: none; padding: 0; margin: 1.2rem 0 0; }
.k-bullets li { padding: .4rem 0 .4rem 1.7rem; position: relative; }
.k-bullets li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 800; }

/* cotizador */
.k-quote { margin-top: 1.2rem; padding: 1rem 1.2rem; border-radius: 12px; background: var(--soft); display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.k-quote b { font: var(--head-weight) 1.6rem/1 var(--head); color: var(--accent); }
.k-quote small { color: var(--muted); display: block; }

/* tabla */
.k-table { width: 100%; max-width: 760px; margin: 0 auto; border-collapse: collapse; background: var(--surface); border-radius: var(--radius); overflow: hidden; }
.k-table th, .k-table td { padding: .8rem 1rem; text-align: center; border-bottom: 1px solid var(--line); }
.k-table th { background: var(--brand); color: var(--brand-ink); font-weight: 700; }
.k-table td:first-child { font-weight: 700; }

/* ubicación */
.k-info { display: grid; grid-template-columns: 1fr 1.2fr; gap: 3rem; align-items: center; }
.k-hours { width: 100%; border-collapse: collapse; margin: 1rem 0 0; }
.k-hours td { padding: .7rem 0; border-bottom: 1px solid var(--line); }
.k-hours td:last-child { text-align: right; font-weight: 700; }
.k-map { border-radius: var(--radius); overflow: hidden; min-height: 320px; background: var(--soft); }
.k-map iframe { width: 100%; height: 340px; border: 0; display: block; }

/* pie */
.k-foot { background: var(--foot-bg, var(--dark)); color: var(--foot-ink, var(--dark-muted)); padding: 2rem 0 6rem; font-size: .9rem; }
.k-foot__in { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }
.k-foot a { color: var(--accent); }

/* WhatsApp flotante */
.wa { position: fixed; right: 18px; bottom: 18px; z-index: 60; width: 60px; height: 60px; border-radius: 50%; background: #16a34a; display: grid; place-items: center; box-shadow: 0 10px 25px rgba(0, 0, 0, .3); }
.wa svg { width: 32px; height: 32px; }
body.has-cart .wa { bottom: 92px; }

/* carrito */
.k-cart { position: fixed; left: 50%; bottom: 16px; transform: translate(-50%, 140%); z-index: 70; width: min(560px, calc(100% - 24px)); display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .7rem .8rem .7rem 1.2rem; border-radius: 999px; background: var(--brand); color: var(--brand-ink); box-shadow: 0 16px 40px rgba(0, 0, 0, .3); transition: transform .3s, visibility .3s; visibility: hidden; }
.k-cart.show { transform: translate(-50%, 0); visibility: visible; }
.k-cart b { font-size: 1.05rem; }
.k-cart .btn { background: var(--accent); color: var(--accent-ink); }
.k-panel { position: fixed; inset: 0; z-index: 250; display: none; align-items: flex-end; justify-content: center; background: rgba(0, 0, 0, .55); }
.k-panel.open { display: flex; }
.k-panel__box { width: min(520px, 100%); max-height: 88vh; overflow: auto; background: var(--surface); color: var(--ink); border-radius: 22px 22px 0 0; padding: 1.5rem; }
.k-panel__box h3 { font-size: 1.3rem; display: flex; justify-content: space-between; align-items: center; }
.k-panel__box h3 button { background: none; border: 0; font-size: 1.6rem; cursor: pointer; color: var(--muted); }
.k-lines { list-style: none; padding: 0; margin: 0 0 1rem; }
.k-lines li { display: flex; align-items: center; gap: .6rem; padding: .7rem 0; border-bottom: 1px solid var(--line); }
.k-lines span { flex: 1; font-size: .95rem; }
.k-lines small { display: block; color: var(--muted); }
.k-qty { display: flex; align-items: center; gap: .3rem; }
.k-qty button { width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid var(--line); background: var(--surface); cursor: pointer; font-weight: 700; color: var(--ink); }
.k-total { display: flex; justify-content: space-between; font-weight: 800; font-size: 1.15rem; margin: .4rem 0 1rem; }
.k-panel label { display: block; font-weight: 600; font-size: .88rem; margin: .7rem 0 .35rem; }
.k-panel input, .k-panel select { width: 100%; padding: .75rem .85rem; border: 1.5px solid var(--line); border-radius: 10px; font: 400 1rem var(--body); background: var(--bg); color: var(--ink); }
.k-panel .btn { margin-top: 1.1rem; }

@media (max-width: 960px) {
  .k-grid { grid-template-columns: repeat(3, 1fr); }
  .k-steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .d-menu-btn { display: block; }
  .d-nav { position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--top-solid, #fff); padding: .5rem 16px 1.2rem; display: none; box-shadow: 0 20px 30px rgba(0, 0, 0, .15); }
  .d-nav.open { display: flex; }
  .d-nav a:not(.btn) { padding: .9rem 0; border-bottom: 1px solid var(--top-line, var(--line)); }
  .d-nav .btn { margin-top: 1rem; }
  .k-hero__in, .k-split, .k-info { grid-template-columns: 1fr; }
  .k-hero__in { padding: 3.5rem 0 4rem; }
  .k-hero__art { max-width: 420px; margin: 0 auto; }
  .k-feats { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .k-grid { grid-template-columns: repeat(2, 1fr); gap: .7rem; }
  .k-prod__body { padding: .8rem; }
  .k-prod__body p { display: none; }
  .k-steps { grid-template-columns: 1fr; }
  .k-sec { padding: 4rem 0; }
  .k-hero__cta .btn { flex: 1 1 100%; }
  .k-table th, .k-table td { padding: .6rem .4rem; font-size: .85rem; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .k-cart { transition: none; } }

/* equipo */
.k-team { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.k-member { text-align: center; padding: 2rem 1.4rem; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.k-avatar { width: 92px; height: 92px; margin: 0 auto 1rem; border-radius: 50%; display: grid; place-items: center; background: var(--brand); color: var(--accent); font: var(--head-weight) 2.3rem/1 var(--head); box-shadow: 0 0 0 4px var(--surface), 0 0 0 6px var(--accent); }
.k-role { color: var(--accent); font-weight: 600; font-size: .9rem; margin-bottom: .6rem; }
.k-member p:last-child { color: var(--muted); font-size: .93rem; margin: 0; }

/* preguntas frecuentes */
.k-faq { border-bottom: 1px solid var(--line); }
.k-faq summary { cursor: pointer; list-style: none; padding: 1.15rem 2.2rem 1.15rem 0; font-weight: 600; position: relative; }
.k-faq summary::-webkit-details-marker { display: none; }
.k-faq summary::after { content: "+"; position: absolute; right: .3rem; top: .85rem; font-size: 1.5rem; color: var(--accent); transition: transform .2s; }
.k-faq[open] summary::after { transform: rotate(45deg); }
.k-faq p { color: var(--muted); margin: 0 0 1.2rem; }
@media (max-width: 860px) { .k-team { grid-template-columns: 1fr; } }
