/* =====================================================================
   BLACKMOUTH STORE · ESTILOS
   Tokens principales: cambia los colores de la marca solo aquí.
   ===================================================================== */
:root {
  --bg: #121419;          /* carbón: fondo base */
  --surface: #181b22;     /* paneles y tarjetas */
  --surface-2: #1f232c;   /* hover / elementos elevados */
  --line: #2a2f3a;        /* bordes finos */
  --text: #eef0f4;        /* texto principal */
  --muted: #9aa2b1;       /* texto secundario */
  --accent: #5b6cff;      /* azul eléctrico: acciones y marca */
  --accent-hi: #7382ff;
  --accent-2: #36d1e0;    /* cian: solo en degradados puntuales */
  --paper: #f2f3f6;       /* banda clara (recursos) */
  --ink: #15171c;         /* texto sobre banda clara */
  --ink-muted: #5a6070;

  --font-display: "Unbounded", "Arial Black", system-ui, sans-serif;
  --font-body: "Figtree", "Segoe UI", system-ui, -apple-system, sans-serif;

  --r-lg: 22px;   /* secciones y paneles grandes */
  --r-md: 14px;   /* tarjetas */
  --r-sm: 10px;   /* campos y botones */
  --wrap: 1180px;
  --pad: clamp(20px, 4vw, 40px);
  --section: clamp(72px, 9vw, 120px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent-hi); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--accent); color: #fff; padding: 10px 16px; border-radius: var(--r-sm); z-index: 100; }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); }
.section { padding: var(--section) 0; }
.section--tight { padding: calc(var(--section) * .6) 0; }

/* ---------- Tipografía ---------- */
h1, h2, h3 { margin: 0; line-height: 1.12; letter-spacing: -0.01em; }
.display, h1 { font-family: var(--font-display); font-weight: 700; }
h1 { font-size: clamp(2rem, 4.6vw, 3.6rem); letter-spacing: -0.03em; }
h2 { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.6rem, 3vw, 2.35rem); letter-spacing: -0.02em; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: var(--muted); max-width: 58ch; }
.muted { color: var(--muted); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 40px; flex-wrap: wrap; }
.section-head p { color: var(--muted); max-width: 52ch; margin-top: 12px; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: var(--r-sm);
  font-weight: 600; font-size: .98rem; border: 1px solid transparent;
  transition: background-color .15s, border-color .15s, color .15s;
  white-space: nowrap;
}
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-hi); }
.btn--ghost { border-color: var(--line); color: var(--text); background: transparent; }
.btn--ghost:hover { border-color: var(--muted); background: var(--surface); }
.btn--light { background: var(--text); color: var(--ink); }
.btn--light:hover { background: #fff; }
.btn--sm { min-height: 40px; padding: 0 16px; font-size: .92rem; }
.btn--block { width: 100%; }
.link { color: var(--accent-hi); font-weight: 600; }
.link:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Marca ---------- */
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand__mark { width: 32px; height: 32px; flex: none; }
.brand__word { font-family: var(--font-display); font-weight: 700; font-size: .98rem; letter-spacing: .02em; line-height: 1; }
.brand__word span { display: block; font-family: var(--font-body); font-weight: 600; font-size: .62rem; letter-spacing: .34em; color: var(--muted); margin-top: 4px; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(18, 20, 25, .86); backdrop-filter: saturate(160%) blur(12px); -webkit-backdrop-filter: saturate(160%) blur(12px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.site-header.is-scrolled { border-bottom-color: var(--line); }
.site-header__row { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 20px; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { padding: 8px 12px; border-radius: 8px; font-size: .94rem; font-weight: 500; color: var(--muted); }
.nav a:hover { color: var(--text); }
.nav a[aria-current="page"] { color: var(--text); background: var(--surface); }
.header-cta { display: flex; align-items: center; gap: 10px; }
.menu-btn { display: none; width: 44px; height: 44px; border-radius: var(--r-sm); border: 1px solid var(--line); background: transparent; color: var(--text); align-items: center; justify-content: center; }
.menu-btn svg { width: 22px; height: 22px; }
.mobile-nav { display: none; }

@media (max-width: 1020px) {
  .nav, .header-cta .btn { display: none; }
  .menu-btn { display: inline-flex; }
  .mobile-nav { position: fixed; inset: 72px 0 0 0; background: var(--bg); padding: 24px var(--pad) 40px; display: flex; flex-direction: column; gap: 4px; overflow-y: auto; transform: translateX(100%); visibility: hidden; transition: transform .25s ease, visibility .25s; }
  .mobile-nav.is-open { transform: none; visibility: visible; }
  .mobile-nav a:not(.btn) { padding: 14px 4px; font-size: 1.2rem; font-weight: 600; border-bottom: 1px solid var(--line); }
  .mobile-nav .btn { margin-top: 24px; }
  body.nav-open { overflow: hidden; }
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(56px, 8vw, 104px) 0 clamp(64px, 9vw, 120px); }
.hero::before { /* retícula sutil: única textura de fondo del sitio */
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px; opacity: .35;
  mask-image: radial-gradient(ellipse 70% 60% at 70% 40%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 70% 40%, #000 20%, transparent 75%);
  pointer-events: none;
}
.hero__grid { position: relative; display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(40px, 6vw, 80px); align-items: center; }
.hero h1 { max-width: 14ch; }
.hero .lead { margin-top: 24px; }
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 36px; }
.hero__note { margin-top: 28px; display: flex; gap: 18px; flex-wrap: wrap; color: var(--muted); font-size: .9rem; }
.hero__note span { display: inline-flex; align-items: center; gap: 8px; }
.hero__note svg { width: 16px; height: 16px; color: var(--accent-hi); }

/* Consola de prompt: elemento visual del hero */
.console { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; box-shadow: 0 30px 80px -30px rgba(91, 108, 255, .35); }
.console::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; background: linear-gradient(140deg, rgba(91,108,255,.7), transparent 40%, transparent 70%, rgba(54,209,224,.5)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }
.console__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.console__title { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: .92rem; }
.console__title .brand__mark { width: 26px; height: 26px; }
.console__status { font-size: .8rem; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; }
.console__status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #3ddc97; }
.bubble { border-radius: 16px; padding: 14px 16px; font-size: .96rem; }
.bubble--user { background: var(--surface-2); border: 1px solid var(--line); margin-left: 12%; min-height: 52px; }
.bubble--user .caret { display: inline-block; width: 2px; height: 1.1em; background: var(--accent-hi); vertical-align: -3px; margin-left: 2px; animation: blink 1s steps(1) infinite; }
.bubble--ai { margin-top: 14px; margin-right: 8%; display: grid; gap: 10px; padding-left: 0; }
.bubble--ai .ai-label { display: flex; align-items: center; gap: 8px; font-size: .82rem; color: var(--muted); }
.bar { height: 10px; border-radius: 6px; background: linear-gradient(90deg, rgba(91,108,255,.55), rgba(54,209,224,.35)); transform-origin: left; transform: scaleX(0); transition: transform .5s ease; }
.bar:nth-child(2) { width: 92%; } .bar:nth-child(3) { width: 78%; } .bar:nth-child(4) { width: 58%; }
.console.is-answering .bar { transform: scaleX(1); }
.console.is-answering .bar:nth-child(3) { transition-delay: .15s; }
.console.is-answering .bar:nth-child(4) { transition-delay: .3s; }
.console__input { margin-top: 22px; display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 12px; padding: 10px 10px 10px 14px; color: var(--muted); font-size: .9rem; }
.console__input > span:first-child { flex: 1; }
.console__send { flex: none; }
.console__send { width: 34px; height: 34px; border-radius: 9px; background: var(--accent); display: grid; place-items: center; }
.console__send svg { width: 16px; height: 16px; color: #fff; }
.console__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); font-size: .84rem; color: var(--muted); background: transparent; }
@keyframes blink { 50% { opacity: 0; } }

/* ---------- Categorías (bento) ---------- */
.cats { display: grid; grid-template-columns: 1.55fr 1fr 1fr 1fr; grid-template-rows: auto auto; gap: 14px; }
.cat { position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 28px; min-height: 180px; padding: 22px; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line); transition: border-color .15s, background-color .15s; }
.cat:hover { border-color: #3b4252; background: var(--surface-2); }
.cat__icon { font-size: 1.7rem; line-height: 1; }
.cat h3 { font-size: 1.02rem; }
.cat p { color: var(--muted); font-size: .9rem; margin-top: 6px; line-height: 1.45; }
.cat--main { grid-row: span 2; padding: 32px; background: radial-gradient(120% 90% at 100% 0%, rgba(91,108,255,.35), transparent 55%), radial-gradient(90% 70% at 0% 100%, rgba(54,209,224,.14), transparent 60%), var(--surface); border-color: rgba(91,108,255,.45); }
.cat--main:hover { border-color: var(--accent); }
.cat--main .cat__icon { font-size: 2.6rem; }
.cat--main h3 { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.5rem, 2.4vw, 2rem); line-height: 1.1; }
.cat--main p { font-size: 1rem; max-width: 34ch; margin-top: 12px; }
.cat--main .tag { align-self: flex-start; }
.cat--more { background: transparent; border-style: dashed; justify-content: center; align-items: flex-start; }
.cat--more strong { font-size: 1rem; }
.tag { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px; font-size: .8rem; font-weight: 600; background: rgba(91,108,255,.16); color: #b9c1ff; }

@media (max-width: 900px) {
  .cats { grid-template-columns: 1fr 1fr; }
  .cat--main { grid-column: span 2; grid-row: auto; min-height: 240px; }
}

/* ---------- Tarjetas de producto ---------- */
.products { display: grid; grid-template-columns: repeat(auto-fill, minmax(255px, 1fr)); gap: 18px; }
.card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; transition: border-color .15s; }
.card:hover { border-color: #3b4252; }
.card__media { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--surface-2); }
.card__media img { width: 100%; height: 100%; object-fit: cover; }
.card__body { display: flex; flex-direction: column; gap: 10px; padding: 18px; flex: 1; }
.card__meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: .82rem; color: var(--muted); }
.card__title { font-size: 1.05rem; font-weight: 700; line-height: 1.3; }
.card__title a:hover { color: var(--accent-hi); }
.card__desc { color: var(--muted); font-size: .92rem; line-height: 1.5; }
.card__benefit { display: flex; gap: 8px; font-size: .9rem; font-weight: 500; }
.card__benefit svg { width: 18px; height: 18px; flex: none; color: var(--accent-hi); margin-top: 2px; }
.card__foot { margin-top: auto; padding-top: 12px; display: grid; gap: 12px; }
.price { display: flex; align-items: baseline; gap: 10px; }
.price__now { font-size: 1.35rem; font-weight: 800; letter-spacing: -.01em; }
.price__old { color: var(--muted); text-decoration: line-through; font-size: .95rem; }
.price__off { font-size: .78rem; font-weight: 700; color: #3ddc97; }
.card__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.card__actions .btn { flex: 1 1 auto; padding: 0 12px; font-size: .88rem; }

/* Portada automática cuando el producto no tiene imagen */
.cover { position: relative; width: 100%; height: 100%; display: flex; flex-direction: column; justify-content: space-between; padding: 18px; background: linear-gradient(160deg, #1d2130, #14161d); overflow: hidden; }
.cover::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px); background-size: 28px 28px; mask-image: linear-gradient(200deg, #000, transparent 70%); -webkit-mask-image: linear-gradient(200deg, #000, transparent 70%); }
.cover--ia { background: radial-gradient(90% 80% at 85% 10%, rgba(91,108,255,.55), transparent 60%), linear-gradient(160deg, #1b1f33, #121521); }
.cover__icon { position: relative; z-index: 1; font-size: 2.2rem; }
.cover__name { position: relative; z-index: 1; font-family: var(--font-display); font-weight: 600; font-size: 1.02rem; line-height: 1.2; max-width: 16ch; }
.cover__ph { position: absolute; z-index: 1; top: 16px; right: 16px; font-size: .72rem; color: var(--muted); border: 1px dashed #454c5c; padding: 3px 8px; border-radius: 999px; }
.cover--lg .cover__icon { font-size: 3.4rem; }
.cover--lg .cover__name { font-size: clamp(1.3rem, 2.4vw, 1.9rem); }
.cover--lg { padding: 32px; }

/* ---------- Sección IA ---------- */
.ai-block { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.ai-block .lead { margin-top: 18px; }
.ai-block .btn { margin-top: 32px; }
.benefits { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); border-left: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.benefit { padding: 28px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface); }
.benefit__icon { font-size: 1.6rem; }
.benefit h3 { margin-top: 16px; font-size: 1.02rem; }
.benefit p { margin-top: 6px; color: var(--muted); font-size: .92rem; line-height: 1.5; }

/* ---------- Producto principal ---------- */
.feature { position: relative; display: grid; grid-template-columns: 1fr 1fr; border-radius: var(--r-lg); overflow: hidden; background: var(--surface); border: 1px solid rgba(91,108,255,.4); }
.feature__media { min-height: 420px; }
.feature__media img { width: 100%; height: 100%; object-fit: cover; }
.feature__body { padding: clamp(28px, 4vw, 52px); display: flex; flex-direction: column; gap: 18px; }
.feature__body h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; }
.checks svg { width: 20px; height: 20px; flex: none; color: var(--accent-hi); margin-top: 3px; }
.feature .price__now { font-size: 2rem; }
.feature__cta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 6px; }
.feature__cta .btn--primary { min-width: 200px; }

/* ---------- Por qué ---------- */
.why { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.why__item { border-top: 2px solid var(--accent); padding-top: 22px; }
.why__item h3 { display: flex; gap: 10px; align-items: flex-start; }
.why__item h3 svg { width: 22px; height: 22px; color: var(--accent-hi); flex: none; margin-top: 1px; }
.why__item p { color: var(--muted); margin-top: 10px; font-size: .95rem; line-height: 1.55; }

/* ---------- Banda clara: recursos ---------- */
.light { background: var(--paper); color: var(--ink); }
.light .section-head p, .light .muted { color: var(--ink-muted); }
.light .btn--ghost { color: var(--ink); border-color: #cfd3dc; }
.light .btn--ghost:hover { background: #e6e8ee; }
.light .link { color: #3444d6; }
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid #d6d9e1; }
.post { display: flex; flex-direction: column; gap: 14px; padding: 28px 28px 32px 0; }
.post + .post { padding-left: 28px; border-left: 1px solid #d6d9e1; }
.post__meta { display: flex; gap: 14px; font-size: .84rem; color: var(--ink-muted); }
.post__meta strong { color: #3444d6; font-weight: 700; }
.post h3 { font-size: 1.22rem; line-height: 1.3; }
.post h3 a:hover { text-decoration: underline; text-underline-offset: 4px; }
.post p { color: var(--ink-muted); font-size: .95rem; }
.post .link { margin-top: auto; }

/* ---------- Newsletter ---------- */
.news { position: relative; overflow: hidden; border-radius: var(--r-lg); padding: clamp(32px, 5vw, 64px); background: radial-gradient(80% 120% at 100% 0%, rgba(91,108,255,.4), transparent 60%), var(--surface); border: 1px solid var(--line); display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.news p { color: var(--muted); margin-top: 14px; max-width: 44ch; }
.form-row { display: flex; gap: 10px; }
.input { width: 100%; min-height: 50px; padding: 0 16px; border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--bg); color: var(--text); font: inherit; font-size: 1rem; }
.input::placeholder { color: #6f7788; }
.input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(91,108,255,.25); }
textarea.input { min-height: 140px; padding: 14px 16px; resize: vertical; }
.form-note { font-size: .84rem; color: var(--muted); margin-top: 12px; }
.form-msg { margin-top: 12px; font-size: .92rem; font-weight: 500; }
.form-msg.is-ok { color: #3ddc97; } .form-msg.is-error { color: #ff8a8a; }

/* ---------- Sobre ---------- */
.about { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.about__text { display: grid; gap: 18px; font-size: 1.12rem; color: #cfd4de; }
.about__text p:first-child { font-size: clamp(1.25rem, 2vw, 1.5rem); color: var(--text); line-height: 1.45; }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 0; font-weight: 600; font-size: 1.05rem; cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .plus { width: 28px; height: 28px; flex: none; border-radius: 50%; border: 1px solid var(--line); position: relative; transition: transform .2s; }
.faq summary .plus::before, .faq summary .plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 11px; height: 1.5px; background: var(--text); transform: translate(-50%, -50%); }
.faq summary .plus::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq details[open] .plus { transform: rotate(45deg); border-color: var(--accent); }
.faq details p { padding: 0 48px 24px 0; color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 64px 0 32px; margin-top: 0; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.footer__grid p { color: var(--muted); margin-top: 16px; max-width: 32ch; font-size: .95rem; }
.footer__col h4 { margin: 0 0 14px; font-size: .9rem; color: var(--text); }
.footer__col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer__col a { color: var(--muted); font-size: .94rem; }
.footer__col a:hover { color: var(--text); }
.social { display: flex; gap: 8px; margin-top: 20px; }
.social a { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: var(--r-sm); color: var(--muted); }
.social a:hover { color: var(--text); border-color: var(--muted); }
.social svg { width: 18px; height: 18px; }
.footer__bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--muted); font-size: .86rem; }

/* WhatsApp flotante (discreto) */
.wa-float { position: fixed; right: 18px; bottom: 18px; z-index: 40; width: 54px; height: 54px; border-radius: 50%; background: #25d366; color: #0b2e17; display: grid; place-items: center; box-shadow: 0 10px 30px -8px rgba(0,0,0,.6); }
.wa-float svg { width: 28px; height: 28px; }

/* Aviso breve (enlace de compra pendiente, etc.) */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); opacity: 0; z-index: 60; background: var(--text); color: var(--ink); padding: 12px 18px; border-radius: 12px; font-size: .92rem; font-weight: 500; max-width: calc(100% - 40px); transition: opacity .2s, transform .2s; pointer-events: none; }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Páginas internas ---------- */
.page-head { padding: clamp(48px, 7vw, 88px) 0 clamp(32px, 4vw, 48px); border-bottom: 1px solid var(--line); }
.page-head .lead { margin-top: 16px; }
.crumbs { display: flex; gap: 8px; flex-wrap: wrap; font-size: .86rem; color: var(--muted); margin-bottom: 22px; }
.crumbs a:hover { color: var(--text); }
.crumbs span[aria-hidden] { opacity: .5; }

.toolbar { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-bottom: 28px; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.filter { padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--muted); font-size: .9rem; font-weight: 500; }
.filter:hover { color: var(--text); border-color: #3b4252; }
.filter[aria-pressed="true"] { background: var(--text); color: var(--ink); border-color: var(--text); }
.toolbar__right { display: flex; gap: 10px; }
.toolbar .input { min-height: 44px; max-width: 240px; font-size: .94rem; }
select.input { padding-right: 32px; }
.empty { padding: 56px 24px; text-align: center; border: 1px dashed var(--line); border-radius: var(--r-md); color: var(--muted); }
.count { color: var(--muted); font-size: .9rem; margin-bottom: 16px; }

/* Producto individual */
.pdp { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 64px); align-items: start; padding: 40px 0 72px; }
.pdp__media { border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 4 / 3.4; position: sticky; top: 96px; }
.pdp__media img { width: 100%; height: 100%; object-fit: cover; }
.pdp__info { display: flex; flex-direction: column; gap: 18px; }
.pdp__info h1 { font-size: clamp(1.8rem, 3.6vw, 2.8rem); max-width: none; }
.pdp .price__now { font-size: 2.2rem; }
.buybox { padding: 22px; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line); display: grid; gap: 14px; }
.buybox small { color: var(--muted); font-size: .84rem; display: flex; gap: 8px; align-items: center; }
.buybox small svg { width: 16px; height: 16px; }
.pdp-sections { display: grid; gap: 0; border-top: 1px solid var(--line); }
.pdp-row { display: grid; grid-template-columns: 280px 1fr; gap: 40px; padding: 48px 0; border-bottom: 1px solid var(--line); }
.pdp-row h2 { font-size: 1.35rem; }
.pdp-row .content { color: #cfd4de; }
.pdp-row .checks li { color: #cfd4de; }
.cta-band { margin: 72px 0; padding: clamp(28px, 4vw, 48px); border-radius: var(--r-lg); background: radial-gradient(80% 120% at 100% 0%, rgba(91,108,255,.4), transparent 60%), var(--surface); border: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.sticky-buy { display: none; }

/* Blog */
.article { max-width: 720px; margin: 0 auto; padding: 48px 0 80px; }
.article h1 { font-size: clamp(1.9rem, 4vw, 2.9rem); max-width: none; }
.article .post__meta { margin-top: 18px; color: var(--muted); }
.article .post__meta strong { color: var(--accent-hi); }
.prose { margin-top: 40px; font-size: 1.1rem; line-height: 1.75; color: #d6dae3; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: 1.5rem; margin-top: 2em; color: var(--text); }
.prose a { color: var(--accent-hi); text-decoration: underline; }
.prose ul { padding-left: 1.2em; }
.blog-list .posts { border-top-color: var(--line); }
.blog-list .post + .post { border-left-color: var(--line); }
.blog-list .post__meta, .blog-list .post p { color: var(--muted); }
.blog-list .post__meta strong { color: var(--accent-hi); }

/* Contacto */
.contact { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(32px, 6vw, 80px); padding-top: 56px; padding-bottom: 96px; }
.contact__cards { display: grid; gap: 14px; align-content: start; }
.contact__card { display: flex; gap: 16px; align-items: center; padding: 20px; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line); }
.contact__card:hover { border-color: #3b4252; }
.contact__card svg { width: 26px; height: 26px; color: var(--accent-hi); flex: none; }
.contact__card small { display: block; color: var(--muted); }
.form { display: grid; gap: 16px; }
.form label { display: grid; gap: 8px; font-weight: 600; font-size: .94rem; }

/* Contacto: opciones directas */
.contact-page { padding-top: 56px; padding-bottom: 96px; }
.contact-options { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.contact-option { display: flex; flex-direction: column; gap: 20px; padding: clamp(24px, 3vw, 36px); border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); transition: border-color .15s; }
.contact-option:hover { border-color: #3b4252; }
.contact-option--wa { border-color: rgba(37, 211, 102, .35); }
.contact-option--wa:hover { border-color: #25d366; }
.contact-option__icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--surface-2); color: var(--accent-hi); }
.contact-option--wa .contact-option__icon { background: rgba(37, 211, 102, .14); color: #25d366; }
.contact-option__icon svg { width: 26px; height: 26px; }
.contact-option__text { display: grid; gap: 4px; }
.contact-option__text strong { font-size: 1.25rem; }
.contact-option__text small { font-size: 1.05rem; color: var(--text); font-weight: 500; }
.contact-option .btn { align-self: flex-start; margin-top: auto; }
.contact-social { margin-top: 40px; }
@media (max-width: 640px) { .contact-options { grid-template-columns: 1fr; } .contact-option .btn { align-self: stretch; } }

/* Legal */
.legal { max-width: 760px; padding: 48px 0 96px; }
.legal .prose { margin-top: 0; }
.notice { padding: 16px 18px; border-radius: var(--r-md); border: 1px dashed #4b5366; color: var(--muted); font-size: .94rem; margin-bottom: 32px; }

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .hero__grid, .ai-block, .about, .news, .contact { grid-template-columns: 1fr; }
  .hero h1 { max-width: 16ch; }
  .why { grid-template-columns: 1fr 1fr; }
  .feature { grid-template-columns: 1fr; }
  .feature__media { min-height: 300px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .pdp { grid-template-columns: 1fr; }
  .pdp__media { position: static; }
  .pdp-row { grid-template-columns: 1fr; gap: 18px; }
  .posts { grid-template-columns: 1fr; }
  .post, .post + .post { padding: 26px 0; border-left: 0; border-bottom: 1px solid #d6d9e1; }
  .blog-list .post, .blog-list .post + .post { border-bottom-color: var(--line); }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .hero__actions .btn, .feature__cta .btn { flex: 1 1 100%; }
  .console { padding: 16px; }
  .bubble--user { margin-left: 0; }
  .benefits { grid-template-columns: 1fr; }
  .why { grid-template-columns: 1fr; gap: 28px; }
  .form-row { flex-direction: column; }
  .footer__grid { grid-template-columns: 1fr; }
  .toolbar__right { width: 100%; }
  .toolbar .input { max-width: none; }
  .cats { gap: 10px; }
  .cat { padding: 18px; min-height: 150px; }
  .faq details p { padding-right: 0; }
  .sticky-buy { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; gap: 12px; align-items: center; justify-content: space-between; padding: 12px var(--pad) calc(12px + env(safe-area-inset-bottom)); background: rgba(24,27,34,.96); border-top: 1px solid var(--line); }
  .has-sticky-buy .wa-float { bottom: 88px; }
  .has-sticky-buy .site-footer { padding-bottom: 96px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .bar { transform: scaleX(1); }
}
