/* Nuvesoft — rediseño. CSS nativo, sin frameworks. Única dependencia externa: Google
   Fonts (Poppins), pedida explícitamente sobre las referencias de estilo del cliente. */

:root {
  --font-sans: 'Poppins', system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", Consolas, "Liberation Mono", monospace;

  --text-xs: 0.8125rem;
  --text-sm: 0.9375rem;
  --text-base: 1rem;
  --text-md: 1.125rem;
  --text-lg: 1.375rem;
  --text-xl: 1.75rem;
  --text-2xl: 2.25rem;
  --text-3xl: clamp(2rem, 1.6rem + 2vw, 3rem);

  --leading-tight: 1.2;
  --leading-snug: 1.4;
  --leading-normal: 1.6;

  --weight-regular: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-bold: 700;
  --weight-black: 800;

  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --space-9: 6rem;
  --space-10: 8rem;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 999px;

  --color-bg: #FFFFFF;
  --color-bg-alt: #F3F6FB;
  --color-ink: #1E2733;
  --color-ink-soft: #5B6B7C;
  --color-border: #E3E8EF;

  --color-brand: #175CD3;
  --color-brand-dark: #123F8F;
  --color-brand-tint: #EAF1FC;

  --color-success: #157F45;
  --color-success-tint: #E7F6EC;
  --color-danger: #C0362C;
  --color-danger-tint: #FBEBEA;

  --color-whatsapp: #25D366;
  --color-whatsapp-dark: #1DA851;

  --color-focus: var(--color-brand);

  --shadow-card: 0 1px 2px rgba(16, 24, 40, .04), 0 8px 24px rgba(16, 24, 40, .08);
  --shadow-float: 0 8px 24px rgba(16, 24, 40, .28);

  --max-width: 1180px;

  --duration-fast: 150ms;
  --duration-base: 250ms;
  --ease-standard: cubic-bezier(.2, .7, .2, 1);
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-ink);
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--color-brand); }
h1, h2, h3, h4 { font-weight: var(--weight-bold); line-height: var(--leading-tight); margin: 0 0 var(--space-3); color: var(--color-ink); }
p { margin: 0 0 var(--space-4); }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; cursor: pointer; }

:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 2px; }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 var(--space-5); }
.section { padding: var(--space-9) 0; }
.section-alt { background: var(--color-bg-alt); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto var(--space-7); }
.eyebrow { display: inline-block; color: var(--color-brand); font-weight: var(--weight-semibold); font-size: var(--text-sm); letter-spacing: .02em; text-transform: uppercase; margin-bottom: var(--space-2); }
.section-head p { color: var(--color-ink-soft); }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--color-brand); color: #fff; padding: var(--space-3) var(--space-5); border-radius: 0 0 var(--radius-sm) 0; z-index: 100; }
.skip-link:focus { left: 0; }

/* ---- Botones ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  font-weight: var(--weight-semibold); font-size: var(--text-base);
  padding: var(--space-3) var(--space-6); border-radius: var(--radius-full);
  border: 2px solid transparent; text-decoration: none; white-space: nowrap;
  transition: background-color var(--duration-fast) var(--ease-standard), border-color var(--duration-fast) var(--ease-standard), transform var(--duration-fast) var(--ease-standard);
}
.btn-primary { background: var(--color-brand); color: #fff; }
.btn-primary:hover { background: var(--color-brand-dark); }
.btn-secondary { background: #fff; color: var(--color-brand); border-color: var(--color-border); }
.btn-secondary:hover { border-color: var(--color-brand); background: var(--color-brand-tint); }
.btn-block { width: 100%; }
.btn:active { transform: translateY(1px); }

/* ---- Header ---- */
.site-header { position: sticky; top: 0; z-index: 40; background: rgba(255,255,255,.92); backdrop-filter: saturate(180%) blur(8px); border-bottom: 1px solid var(--color-border); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); height: 72px; }
.logo { font-weight: var(--weight-black); font-size: var(--text-lg); color: var(--color-ink); text-decoration: none; }
.logo span { color: var(--color-brand); }
.nav-desktop { display: none; }
.nav-desktop ul { display: flex; align-items: center; gap: var(--space-4); }
.nav-desktop a { white-space: nowrap; color: var(--color-ink); text-decoration: none; font-weight: var(--weight-medium); font-size: var(--text-sm); }
.nav-desktop a:hover { color: var(--color-brand); }
.header-cta { display: none; }
.header-actions { display: none; }
.header-login { white-space: nowrap; color: var(--color-ink-soft); text-decoration: none; font-weight: var(--weight-medium); font-size: var(--text-sm); }
.header-login:hover { color: var(--color-brand); }
.header-actions .btn { padding: var(--space-2) var(--space-4); font-size: var(--text-sm); white-space: nowrap; }
.nav-toggle { background: none; border: 1px solid var(--color-border); border-radius: var(--radius-sm); padding: var(--space-2) var(--space-3); }
.nav-mobile { display: none; border-top: 1px solid var(--color-border); background: #fff; }
.nav-mobile.is-open { display: block; }
.nav-mobile ul { padding: var(--space-4) var(--space-5); display: flex; flex-direction: column; gap: var(--space-4); }
.nav-mobile a { color: var(--color-ink); text-decoration: none; font-weight: var(--weight-medium); }

@media (min-width: 1280px) {
  .nav-desktop { display: block; }
  .header-actions { display: flex; align-items: center; gap: var(--space-3); }
  .header-cta { display: inline-flex; }
  .nav-toggle { display: none; }
}

/* ---- Hero ---- */
.hero { position: relative; overflow: hidden; padding: var(--space-8) 0 var(--space-9);
  background:
    radial-gradient(60% 70% at 15% 0%, color-mix(in srgb, var(--color-brand) 12%, transparent), transparent 70%),
    radial-gradient(50% 60% at 95% 10%, color-mix(in srgb, var(--color-success) 10%, transparent), transparent 70%),
    var(--color-bg-alt);
}
.hero::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image:
    linear-gradient(to right, color-mix(in srgb, var(--color-brand) 9%, transparent) 1px, transparent 1px),
    linear-gradient(to bottom, color-mix(in srgb, var(--color-brand) 9%, transparent) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(70% 60% at 50% 25%, #000, transparent 75%);
  -webkit-mask-image: radial-gradient(70% 60% at 50% 25%, #000, transparent 75%);
}
.hero > * { position: relative; }
.hero .container { display: grid; gap: var(--space-8); align-items: center; }
@media (min-width: 900px) { .hero .container { grid-template-columns: 1fr 1fr; } }
.hero h1 { font-size: var(--text-3xl); letter-spacing: -.01em; }
.hero .lead { font-size: var(--text-md); color: var(--color-ink-soft); max-width: 46ch; }
.hero-ctas { display: flex; gap: var(--space-3); flex-wrap: wrap; margin: var(--space-5) 0; }
.hero-trust { display: flex; align-items: center; gap: var(--space-2); color: var(--color-ink-soft); font-size: var(--text-sm); }
.hero-trust svg { flex-shrink: 0; color: var(--color-success); }

.device-mock { position: relative; }
.device-mock svg { width: 100%; height: auto; }

/* ---- Confianza / SUNAT ---- */
.trust-strip { padding: var(--space-6) 0; background: var(--color-brand-tint); }
.trust-strip .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: var(--space-6); text-align: center; }
.trust-item { display: flex; align-items: center; gap: var(--space-2); font-weight: var(--weight-semibold); color: var(--color-ink); font-size: var(--text-sm); }
.trust-item svg { color: var(--color-brand); flex-shrink: 0; }

/* ---- Beneficios ---- */
.benefits-grid { display: grid; gap: var(--space-6); grid-template-columns: 1fr; }
@media (min-width: 640px) { .benefits-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .benefits-grid { grid-template-columns: repeat(4, 1fr); } }
.benefit-card { background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: var(--space-6); }
.benefit-icon { width: 48px; height: 48px; border-radius: var(--radius-sm); background: var(--color-brand-tint); color: var(--color-brand); display: flex; align-items: center; justify-content: center; margin-bottom: var(--space-4); }
.benefit-card h3 { font-size: var(--text-md); }
.benefit-card p { color: var(--color-ink-soft); font-size: var(--text-sm); margin-bottom: 0; }

/* ---- Catálogo de equipos ---- */
.product-grid { display: grid; gap: var(--space-5); grid-template-columns: 1fr; }
@media (min-width: 640px) { .product-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .product-grid { grid-template-columns: repeat(4, 1fr); } }
.product-card { background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-card); display: flex; flex-direction: column; }
.product-media { aspect-ratio: 1; background: var(--color-bg-alt); display: flex; align-items: center; justify-content: center; color: var(--color-brand); position: relative; }
.product-body { padding: var(--space-5); display: flex; flex-direction: column; gap: var(--space-2); flex: 1; }
.product-body .category { font-size: var(--text-xs); color: var(--color-ink-soft); text-transform: uppercase; letter-spacing: .03em; }
.product-body h3 { font-size: var(--text-md); margin-bottom: 0; }
.product-body .desc { color: var(--color-ink-soft); font-size: var(--text-sm); flex: 1; margin-bottom: 0; }
.catalog-cta { text-align: center; margin-top: var(--space-7); }

/* ---- Catálogo completo (productos.html) ---- */
.filter-bar { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-2); margin-bottom: var(--space-7); }
.filter-btn { border: 1px solid var(--color-border); background: #fff; color: var(--color-ink-soft); border-radius: var(--radius-full); padding: var(--space-2) var(--space-5); font-size: var(--text-sm); font-weight: var(--weight-medium); }
.filter-btn[aria-pressed="true"] { background: var(--color-brand); border-color: var(--color-brand); color: #fff; font-weight: var(--weight-semibold); }
.product-grid-catalog { grid-template-columns: 1fr; }
@media (min-width: 640px) { .product-grid-catalog { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .product-grid-catalog { grid-template-columns: repeat(3, 1fr); } }
.product-media { overflow: hidden; }
.product-media img { width: 100%; height: 100%; object-fit: cover; }
.provisional-badge { position: absolute; top: var(--space-3); left: var(--space-3); background: rgba(30,39,51,.75); color: #fff; font-size: var(--text-xs); font-weight: var(--weight-semibold); padding: 2px var(--space-3); border-radius: var(--radius-full); }
.product-code { font-family: var(--font-mono); font-size: var(--text-xs); color: var(--color-ink-soft); margin-bottom: 0; }
.product-features { display: flex; flex-direction: column; gap: var(--space-1); margin: var(--space-2) 0; }
.product-features li { font-size: var(--text-sm); color: var(--color-ink-soft); padding-left: var(--space-4); position: relative; }
.product-features li::before { content: "•"; position: absolute; left: 0; color: var(--color-brand); }
.product-price { font-weight: var(--weight-bold); font-size: var(--text-md); margin: 0 0 var(--space-3); }
.btn-whatsapp { background: var(--color-whatsapp); color: #fff; }
.btn-whatsapp:hover { background: var(--color-whatsapp-dark); }
.catalog-empty { text-align: center; color: var(--color-ink-soft); margin-top: var(--space-7); }

/* ---- Precios ---- */
.period-switch { display: inline-flex; flex-wrap: wrap; justify-content: center; gap: var(--space-1); background: var(--color-bg-alt); border-radius: var(--radius-full); padding: var(--space-1); margin: 0 auto var(--space-2); }
.period-switch-wrap { display: flex; justify-content: center; margin-bottom: var(--space-3); }
.period-btn { position: relative; border: none; background: transparent; border-radius: var(--radius-full); padding: var(--space-2) var(--space-5); font-size: var(--text-sm); font-weight: var(--weight-medium); color: var(--color-ink-soft); }
.period-btn[aria-pressed="true"] { background: #fff; color: var(--color-brand); box-shadow: var(--shadow-card); font-weight: var(--weight-semibold); }
.period-badge { display: block; text-align: center; font-size: var(--text-xs); color: var(--color-ink-soft); margin-bottom: var(--space-7); }
.discount-tag { background: var(--color-success-tint); color: var(--color-success); font-weight: var(--weight-semibold); padding: 1px var(--space-2); border-radius: var(--radius-full); font-size: var(--text-xs); margin-left: var(--space-1); }

.plans-grid { display: grid; gap: var(--space-5); grid-template-columns: 1fr; }
@media (min-width: 700px) { .plans-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1200px) { .plans-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.plan-card { background: #fff; border: 2px solid var(--color-border); border-radius: var(--radius-lg); padding: var(--space-6); display: flex; flex-direction: column; box-shadow: var(--shadow-card); }
.plan-card.is-featured { border-color: var(--color-brand); position: relative; }
.plan-featured-tag { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); background: var(--color-brand); color: #fff; font-size: var(--text-xs); font-weight: var(--weight-semibold); padding: var(--space-1) var(--space-4); border-radius: var(--radius-full); white-space: nowrap; }
.plan-name { font-size: var(--text-md); margin-bottom: var(--space-1); }
.plan-desc { color: var(--color-ink-soft); font-size: var(--text-sm); margin-bottom: var(--space-5); }
.plan-price-row { display: flex; align-items: baseline; gap: var(--space-2); flex-wrap: wrap; margin-bottom: var(--space-1); }
.plan-price-before { text-decoration: line-through; color: var(--color-ink-soft); font-size: var(--text-sm); font-family: var(--font-mono); }
.plan-price { font-size: var(--text-2xl); font-weight: var(--weight-black); font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.plan-period { color: var(--color-ink-soft); font-size: var(--text-sm); margin-bottom: var(--space-5); }
.plan-features { display: flex; flex-direction: column; gap: var(--space-3); margin-bottom: var(--space-6); flex: 1; }
.plan-features li { display: flex; gap: var(--space-2); font-size: var(--text-sm); align-items: flex-start; }
.plan-features svg { color: var(--color-success); flex-shrink: 0; margin-top: 2px; }
.pricing-note { text-align: center; color: var(--color-ink-soft); font-size: var(--text-xs); margin-top: var(--space-6); }
.example-price-badge { display: inline-block; background: #FFF4E5; color: #93400C; font-size: var(--text-xs); font-weight: var(--weight-semibold); padding: var(--space-2) var(--space-4); border-radius: var(--radius-full); margin: 0 auto var(--space-6); }
.example-price-badge-wrap { text-align: center; }

/* ---- FAQ ---- */
.faq-list { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: var(--space-3); }
.faq-item { border: 1px solid var(--color-border); border-radius: var(--radius-md); background: #fff; }
.faq-item summary { cursor: pointer; padding: var(--space-5); font-weight: var(--weight-semibold); list-style: none; display: flex; justify-content: space-between; align-items: center; gap: var(--space-4); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .chevron { transition: transform var(--duration-base) var(--ease-standard); flex-shrink: 0; color: var(--color-ink-soft); }
.faq-item[open] summary .chevron { transform: rotate(180deg); }
.faq-item .faq-answer { padding: 0 var(--space-5) var(--space-5); color: var(--color-ink-soft); font-size: var(--text-sm); }

/* ---- CTA final + formulario ---- */
.cta-final { background: var(--color-brand-dark); color: #fff; }
.cta-final h2 { color: #fff; }
.cta-final .section-head p { color: rgba(255,255,255,.8); }
.form-card { background: #fff; border-radius: var(--radius-lg); padding: var(--space-7); box-shadow: var(--shadow-card); max-width: 640px; margin: 0 auto; color: var(--color-ink); }
.form-grid { display: grid; gap: var(--space-5); grid-template-columns: 1fr; }
@media (min-width: 640px) { .form-grid.cols-2 { grid-template-columns: 1fr 1fr; } }
.field label { display: block; font-size: var(--text-sm); font-weight: var(--weight-medium); margin-bottom: var(--space-2); }
.field .required { color: var(--color-danger); }
.field input, .field select, .field textarea {
  font: inherit; font-size: var(--text-base); width: 100%; padding: var(--space-3) var(--space-4);
  border: 1px solid var(--color-border); border-radius: var(--radius-sm); background: #fff; color: var(--color-ink);
}
.field textarea { resize: vertical; min-height: 96px; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--color-danger); }
.error-msg { color: var(--color-danger); font-size: var(--text-xs); margin-top: var(--space-2); display: none; }
.field.has-error .error-msg { display: block; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: var(--text-xs); color: var(--color-ink-soft); margin-top: var(--space-4); }
.form-success { display: none; background: var(--color-success-tint); color: var(--color-success); border-radius: var(--radius-md); padding: var(--space-5); font-weight: var(--weight-semibold); text-align: center; }
.form-success.is-visible { display: block; }
.form-card.is-submitted form { display: none; }

/* ---- Footer ---- */
.site-footer { background: var(--color-ink); color: rgba(255,255,255,.75); padding: var(--space-8) 0 var(--space-6); }
.footer-grid { display: grid; gap: var(--space-6); grid-template-columns: 1fr; margin-bottom: var(--space-7); }
@media (min-width: 700px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.footer-grid h4 { color: #fff; font-size: var(--text-sm); text-transform: uppercase; letter-spacing: .03em; margin-bottom: var(--space-4); }
.footer-grid ul { display: flex; flex-direction: column; gap: var(--space-3); }
.footer-grid a { color: rgba(255,255,255,.75); text-decoration: none; font-size: var(--text-sm); }
.footer-grid a:hover { color: #fff; }
.footer-brand p { color: rgba(255,255,255,.6); font-size: var(--text-sm); max-width: 40ch; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.15); padding-top: var(--space-5); font-size: var(--text-xs); color: rgba(255,255,255,.55); text-align: center; }
.pending-note { color: #FFB86B; }

/* ---- WhatsApp flotante ---- */
.whatsapp-float {
  position: fixed; right: var(--space-5); bottom: var(--space-5); z-index: 50;
  width: 56px; height: 56px; border-radius: 50%; background: var(--color-whatsapp); color: #fff;
  display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-float);
  text-decoration: none; transition: transform var(--duration-fast) var(--ease-standard), background-color var(--duration-fast) var(--ease-standard);
}
.whatsapp-float:hover { background: var(--color-whatsapp-dark); transform: scale(1.06); }

.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* Hover: la tarjeta se ilumina con el color de marca */
.plan-card, .product-card, .benefit-card, .pasos li { transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease; }
.plan-card:hover, .product-card:hover, .benefit-card:hover, .pasos li:hover {
  border-color: var(--color-brand);
  box-shadow: 0 0 0 1px var(--color-brand), 0 12px 32px -8px color-mix(in srgb, var(--color-brand) 45%, transparent);
  transform: translateY(-4px);
}
@media (prefers-reduced-motion: reduce) {
  .plan-card, .product-card, .benefit-card, .pasos li { transition: none; }
  .plan-card:hover, .product-card:hover, .benefit-card:hover { transform: none; }
}

/* El cursor no cambia a barra de texto sobre las tarjetas */
.plan-card, .product-card, .benefit-card,
.pasos li, .soporte-card, .func-block, .chip-row li { cursor: default; }
.plan-card a, .product-card a, .benefit-card a,
.plan-card button, .product-card button { cursor: pointer; }

/* Botones de descarga de la app */
.store-badges { display: flex; gap: var(--space-3); flex-wrap: wrap; margin-bottom: var(--space-5); }
.store-badge { display: inline-flex; align-items: center; gap: var(--space-3);
  padding: var(--space-2) var(--space-5) var(--space-2) var(--space-4);
  border: 1px solid var(--color-border); border-radius: var(--radius-full);
  background: var(--color-surface); color: var(--color-ink); text-decoration: none;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease; }
.store-badge:hover { border-color: var(--color-brand); transform: translateY(-2px);
  box-shadow: 0 0 0 1px var(--color-brand), 0 10px 24px -10px color-mix(in srgb, var(--color-brand) 55%, transparent); }
.store-badge span { display: flex; flex-direction: column; line-height: 1.15;
  font-weight: var(--weight-semibold); font-size: var(--text-sm); }
.store-badge small { font-weight: var(--weight-medium); font-size: var(--text-xs); color: var(--color-ink-soft); }

/* ---- Fondo del hero: variante B (oscuro) ---- */
.hero.hero-b { background:
    radial-gradient(70% 90% at 78% 12%, color-mix(in srgb, var(--color-brand) 55%, transparent), transparent 70%),
    radial-gradient(55% 75% at 8% 85%, color-mix(in srgb, var(--color-success) 35%, transparent), transparent 70%),
    linear-gradient(160deg, #0d1b3d 0%, #16295c 55%, #0b1430 100%); }
.hero.hero-b::before { opacity: .22;
  background-image:
    linear-gradient(to right, rgba(255,255,255,.35) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,.35) 1px, transparent 1px);
  mask-image: radial-gradient(75% 70% at 45% 35%, #000, transparent 78%);
  -webkit-mask-image: radial-gradient(75% 70% at 45% 35%, #000, transparent 78%); }
.hero.hero-b h1, .hero.hero-b .lead, .hero.hero-b .hero-trust { color: #fff; }
.hero.hero-b .lead { color: rgba(255,255,255,.82); }
.hero.hero-b .hero-trust { color: rgba(255,255,255,.82); }
.hero.hero-b .btn-secondary { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.hero.hero-b .btn-secondary:hover { background: rgba(255,255,255,.12); border-color: #fff; }
.hero.hero-b .store-badge { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.32); color: #fff; }
.hero.hero-b .store-badge small { color: rgba(255,255,255,.72); }
.hero.hero-b .store-badge:hover { background: rgba(255,255,255,.16); border-color: #fff; box-shadow: none; }

/* ---- Foto de fondo (cuando tengas una) ----
   1. Guarda la imagen en rediseno/img/hero.jpg
   2. En index-nuevo.html añade la clase: <section class="hero hero-foto" id="inicio">
   3. Si la foto es oscura, usa también hero-b para el texto en blanco.        */
.hero.hero-foto { background:
    linear-gradient(90deg, rgba(10,20,45,.92) 0%, rgba(10,20,45,.72) 45%, rgba(10,20,45,.35) 100%),
    url("img/hero.jpg") center/cover no-repeat, var(--color-bg-alt); }
.hero.hero-foto::before { display: none; }

/* Acceso destacado al catálogo (otra línea de negocio) */
.nav-desktop a.nav-catalogo, .nav-mobile a.nav-catalogo {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 8px 6px 12px; border-radius: var(--radius-full);
  color: #fff; background: linear-gradient(135deg, var(--color-brand), color-mix(in srgb, var(--color-brand) 55%, var(--color-success)));
  box-shadow: 0 6px 16px -8px color-mix(in srgb, var(--color-brand) 80%, transparent);
  position: relative; overflow: hidden; isolation: isolate;
  transition: transform .2s ease, box-shadow .2s ease;
}
.nav-desktop a.nav-catalogo:hover, .nav-mobile a.nav-catalogo:hover {
  color: #fff; transform: translateY(-1px);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-brand) 25%, transparent), 0 10px 22px -8px color-mix(in srgb, var(--color-brand) 90%, transparent);
}
.nav-catalogo::after { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.45) 50%, transparent 70%);
  transform: translateX(-120%); animation: catalogo-brillo 3.5s ease-in-out infinite 1s; }
@keyframes catalogo-brillo { 0%, 60% { transform: translateX(-120%); } 85%, 100% { transform: translateX(120%); } }
.nav-catalogo-badge { background: rgba(255,255,255,.22); color: #fff; font-size: 11px; font-weight: var(--weight-semibold);
  line-height: 1; padding: 3px 7px; border-radius: var(--radius-full); }
.nav-mobile a.nav-catalogo { align-self: flex-start; }
@media (prefers-reduced-motion: reduce) { .nav-catalogo::after { animation: none; } }

/* Menú móvil: los botones conservan sus colores */
.nav-mobile a.btn-primary, .nav-mobile a.btn-primary:hover { color: #fff; }
.nav-mobile a.btn-secondary { color: var(--color-brand); }

/* Que [hidden] gane siempre (el filtro del catálogo depende de esto) */
[hidden] { display: none !important; }

/* Logo NubeSof */
.logo { font-weight: 800; letter-spacing: -.02em; text-decoration: none; }
.logo .logo-a { color: #111D4A; }
.logo .logo-b { color: #0766F4; }
.logo-inverso .logo-a { color: #fff; }
.logo-inverso .logo-b { color: #6FA8FF; }

/* ======================================================================
   Catálogo estilo tienda: mega menú, mosaico, pestañas, catálogo y ficha
   ====================================================================== */

/* Tarjeta mini (mega menú y filas) */
.mini-card { display: flex; flex-direction: column; gap: var(--space-1); text-decoration: none; color: var(--color-ink); background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: var(--space-3); transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease; }
.mini-card:hover { border-color: var(--color-brand); box-shadow: 0 8px 24px rgba(23, 92, 211, .14); transform: translateY(-3px); }
.mini-card-media { aspect-ratio: 1; border-radius: var(--radius-sm); overflow: hidden; background: var(--color-bg-alt); }
.mini-card-media img { width: 100%; height: 100%; object-fit: cover; }
.mini-card-name { font-size: var(--text-sm); font-weight: var(--weight-semibold); line-height: var(--leading-snug); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-top: var(--space-2); }
.mini-card-code { font-family: var(--font-mono); font-size: 12px; color: var(--color-ink-soft); }

/* Mega menú */
.nav-desktop li.has-mega { height: 72px; display: flex; align-items: center; }
.mega { position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-top: 1px solid var(--color-border);
  box-shadow: 0 24px 48px rgba(16, 24, 40, .18); opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .2s ease, transform .2s ease, visibility 0s linear .2s; }
.has-mega:hover .mega, .has-mega:focus-within .mega { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.mega-inner { max-width: var(--max-width); margin: 0 auto; padding: var(--space-5) var(--space-5) var(--space-6); display: grid; grid-template-columns: 270px 1fr; gap: var(--space-6); align-items: start; }
.nav-desktop .mega-cats { display: flex; flex-direction: column; align-items: stretch; gap: 2px; border-right: 1px solid var(--color-border); padding-right: var(--space-4); }
.nav-desktop .mega-cats a { display: flex; justify-content: space-between; align-items: center; padding: var(--space-2) var(--space-3); border-radius: var(--radius-sm); font-weight: var(--weight-medium); }
.nav-desktop .mega-cats a.is-active { background: var(--color-brand-tint); color: var(--color-brand); }
.nav-desktop .mega-cats a.is-active::after { content: "\203A"; }
.mega-cats small { font-size: 11px; color: var(--color-ink-soft); background: var(--color-bg-alt); border-radius: var(--radius-full); padding: 0 var(--space-2); }
.mega-head { display: flex; align-items: baseline; gap: var(--space-4); margin-bottom: var(--space-4); }
.nav-desktop .mega-head a { color: var(--color-brand); font-weight: var(--weight-semibold); }
.mega-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--space-3); }
.nav-desktop .mega-grid .mini-card { white-space: normal; }
.mega-empty { color: var(--color-ink-soft); max-width: 480px; white-space: normal; }

/* Home: mosaico de categorías */
.bento { display: grid; gap: var(--space-4); grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); grid-auto-rows: 225px; }
.bento-tile { position: relative; display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: var(--space-3); min-height: 180px; padding: var(--space-4) var(--space-5) var(--space-5);
  background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-lg); overflow: hidden; text-decoration: none; color: var(--color-ink);
  transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease; }
.bento-tile:hover { border-color: var(--color-brand); box-shadow: 0 0 0 1px var(--color-brand), 0 12px 32px rgba(23, 92, 211, .16); transform: translateY(-4px); }
.bento-text { position: relative; z-index: 1; display: flex; flex-direction: column; }
.bento-text strong { font-size: var(--text-md); line-height: var(--leading-tight); }
.bento-text span { font-size: var(--text-xs); color: var(--color-brand); font-weight: var(--weight-semibold); margin-top: var(--space-1); }
.bento-media { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; color: var(--color-brand); overflow: hidden; transition: transform .35s var(--ease-standard); }
.bento-media img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.bento-media svg { width: 40px; height: 40px; }
.bento-tile:hover .bento-media { transform: scale(1.05); }

/* Home: destacados por pestañas */
.series { margin-top: var(--space-8); }
.series-tabs { display: flex; justify-content: center; gap: var(--space-5); border-bottom: 1px solid var(--color-border); margin-bottom: var(--space-5); overflow-x: auto; }
.series-tabs button { background: none; border: 0; border-bottom: 3px solid transparent; padding: var(--space-3) var(--space-1); font-weight: var(--weight-semibold); font-size: var(--text-sm); color: var(--color-ink-soft); white-space: nowrap; margin-bottom: -1px; }
.series-tabs button[aria-selected="true"] { color: var(--color-brand); border-bottom-color: var(--color-brand); }
.series-banner { display: grid; gap: var(--space-5); align-items: center; padding: var(--space-6); border-radius: var(--radius-lg); margin-bottom: var(--space-5);
  background: linear-gradient(120deg, #EAF1FC 0%, #F7FAFF 55%, #DCE8FB 100%); }
@media (min-width: 800px) { .series-banner { grid-template-columns: 1fr 1.2fr; padding: var(--space-7); } }
.series-banner h3 { font-size: var(--text-2xl); }
.series-banner p { color: var(--color-ink-soft); max-width: 420px; }
.series-banner-media { display: flex; justify-content: center; align-items: flex-end; }
.series-banner-media img { width: 32%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius-md); box-shadow: var(--shadow-card); border: 4px solid #fff; }
.series-banner-media img:nth-child(2) { width: 40%; margin: 0 -4% var(--space-4); position: relative; z-index: 1; }

/* Fila deslizable */
.rail { position: relative; }
.rail-track { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(180px, 1fr); gap: var(--space-4); overflow-x: auto; scroll-snap-type: x mandatory; padding: var(--space-2) var(--space-1) var(--space-4); scrollbar-width: thin; }
@media (min-width: 900px) { .rail-track { grid-auto-columns: calc((100% - 4 * var(--space-4)) / 5); } }
.rail-track > * { scroll-snap-align: start; }
.rail-btn { position: absolute; top: 38%; z-index: 2; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--color-border); background: rgba(255,255,255,.95); box-shadow: var(--shadow-card); font-size: 22px; line-height: 1; color: var(--color-ink); display: none; }
.rail-prev { left: -20px; } .rail-next { right: -20px; }
.rail-btn:hover { border-color: var(--color-brand); color: var(--color-brand); }
@media (min-width: 900px) { .rail-btn { display: block; } }

/* Página de catálogo */
.miga { display: flex; flex-wrap: wrap; gap: var(--space-2); font-size: var(--text-xs); color: var(--color-ink-soft); margin-bottom: var(--space-4); }
.miga a { color: var(--color-ink-soft); text-decoration: none; }
.miga a:hover { color: var(--color-brand); }
.cat-band { background: var(--color-bg-alt); padding: var(--space-6) 0 var(--space-7); border-bottom: 1px solid var(--color-border); }
.cat-band h1 { font-size: var(--text-3xl); margin-bottom: var(--space-3); }
.cat-band h1::after { content: ""; display: block; width: 48px; height: 4px; border-radius: 2px; background: var(--color-brand); margin-top: var(--space-3); }
.cat-band p { color: var(--color-ink-soft); max-width: 720px; margin: 0; }
.cat-body { padding: var(--space-7) 0 var(--space-9); }
.cat-layout { display: grid; gap: var(--space-6); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .cat-layout { grid-template-columns: 250px minmax(0, 1fr); align-items: start; } .cat-side-wrap { position: sticky; top: 96px; } .cat-side-wrap > summary { display: none; } }
.cat-side-wrap > summary { font-weight: var(--weight-semibold); padding: var(--space-3) var(--space-4); border: 1px solid var(--color-border); border-radius: var(--radius-md); cursor: pointer; }
.cat-side { background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: var(--space-5); margin-top: var(--space-3); }
@media (min-width: 900px) { .cat-side { margin-top: 0; } }
.side-title { font-size: var(--text-md); margin-bottom: var(--space-3); }
.side-cats a { text-transform: uppercase; letter-spacing: .02em; display: flex; justify-content: space-between; gap: var(--space-2); padding: var(--space-2) var(--space-3); margin: 0 calc(-1 * var(--space-3)); border-radius: var(--radius-sm); color: var(--color-ink); text-decoration: none; font-size: var(--text-sm); }
.side-cats a span { color: var(--color-ink-soft); font-size: var(--text-xs); letter-spacing: 0; }
.side-cats a:hover { background: var(--color-bg-alt); }
.side-cats a[aria-current] { background: var(--color-brand-tint); color: var(--color-brand); font-weight: var(--weight-semibold); }
.side-facet { border: 0; border-top: 1px solid var(--color-border); margin: var(--space-4) 0 0; padding: var(--space-4) 0 0; min-width: 0; }
.side-facet legend { font-weight: var(--weight-semibold); font-size: var(--text-sm); padding: 0; margin-bottom: var(--space-2); float: left; width: 100%; }
.side-facet label { display: flex; align-items: center; gap: var(--space-2); font-size: var(--text-sm); padding: var(--space-1) 0; cursor: pointer; clear: both; }
.side-facet label span { color: var(--color-ink-soft); font-size: var(--text-xs); }
.side-facet input { width: 16px; height: 16px; accent-color: var(--color-brand); }
.side-clear { margin-top: var(--space-4); background: none; border: 0; color: var(--color-brand); font-weight: var(--weight-semibold); font-size: var(--text-sm); padding: 0; text-decoration: underline; }
.cat-toolbar { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: var(--space-2); margin-bottom: var(--space-5); padding-bottom: var(--space-3); border-bottom: 1px solid var(--color-border); }
#catCount { font-weight: var(--weight-semibold); }
.cat-note { font-size: var(--text-xs); color: var(--color-ink-soft); }
.product-card .product-media { text-decoration: none; }
.product-card .product-media img { transition: transform .35s var(--ease-standard); }
.product-card:hover .product-media img { transform: scale(1.05); }
.product-body h3 a { color: inherit; text-decoration: none; }
.product-body h3 a:hover { color: var(--color-brand); }
.chips { display: flex; flex-wrap: wrap; gap: var(--space-1); margin: var(--space-1) 0 var(--space-2); flex: 1; align-content: flex-start; }
.chip { font-size: 11px; font-weight: var(--weight-medium); color: var(--color-brand); background: var(--color-brand-tint); border-radius: var(--radius-full); padding: 2px var(--space-2); }
.chip-lg { font-size: var(--text-xs); padding: var(--space-1) var(--space-3); border: 1px solid var(--color-brand); background: #fff; border-radius: var(--radius-sm); }
.product-actions { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-2); }
.product-actions .btn { padding: var(--space-2) var(--space-3); font-size: var(--text-sm); }

/* Ficha de producto */
.ficha-wrap { padding: var(--space-6) 0 var(--space-8); }
.ficha { display: grid; gap: var(--space-7); grid-template-columns: minmax(0, 1fr); }
.ficha-box .btn { white-space: normal; text-align: center; }
@media (min-width: 900px) { .ficha { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; } .ficha-lado, .ficha > .ficha-media { position: sticky; top: 96px; } }
.ficha-media { position: relative; background: var(--color-bg-alt); border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 1; }
.ficha-media img { width: 100%; height: 100%; object-fit: cover; }
.ficha-cat { display: inline-block; font-size: var(--text-xs); font-weight: var(--weight-semibold); text-transform: uppercase; letter-spacing: .03em; color: var(--color-brand); text-decoration: none; margin-bottom: var(--space-2); }
.ficha-info h1 { font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.25rem); margin-bottom: var(--space-2); }
.ficha-features { margin: var(--space-5) 0; padding-top: var(--space-5); border-top: 1px solid var(--color-border); display: flex; flex-direction: column; gap: var(--space-2); }
.ficha-features li { position: relative; padding-left: var(--space-5); color: var(--color-ink); }
.ficha-features li::before { content: "\2713"; position: absolute; left: 0; color: var(--color-brand); font-weight: var(--weight-bold); }
.spec { margin-bottom: var(--space-4); }
.spec-label { display: block; font-size: var(--text-xs); font-weight: var(--weight-semibold); color: var(--color-ink-soft); text-transform: uppercase; letter-spacing: .03em; margin-bottom: var(--space-2); }
.ficha-box { display: grid; gap: var(--space-3); margin-top: var(--space-5); padding: var(--space-5); background: var(--color-bg-alt); border-radius: var(--radius-md); }
.ficha-box strong { display: block; font-size: var(--text-lg); }
.ficha-box small { color: var(--color-ink-soft); }
.relacionados-wrap { padding: var(--space-8) 0; }
.relacionados-wrap h2 { margin-bottom: var(--space-5); }

/* ======================================================================
   Cabecera v3: Facturación electrónica ▾ · Equipos POS ▾ · Mi cuenta ▾
   ====================================================================== */
@media (min-width: 1200px) {
  .nav-desktop { display: block; }
  .header-actions { display: flex; align-items: center; gap: var(--space-4); }
  .header-cta { display: inline-flex; }
  .nav-toggle { display: none; }
}
.nav-desktop ul { gap: var(--space-4); }
.nav-desktop .chev { flex: none; transition: transform .2s ease; opacity: .7; }
.nav-desktop a:has(.chev) { display: inline-flex; align-items: center; gap: 4px; }
.has-dd:hover .chev, .has-dd:focus-within .chev,
.has-mega:hover .chev, .has-mega:focus-within .chev,
.cuenta:hover .chev, .cuenta:focus-within .chev { transform: rotate(180deg); }
.nav-desktop a.nav-catalogo .chev { opacity: 1; margin-left: -2px; }
.nav-desktop a.nav-catalogo { padding-right: 10px; }

/* Submenú pequeño (Facturación y Mi cuenta) */
.has-dd, .cuenta { position: relative; height: 72px; display: flex; align-items: center; }
.nav-desktop ul.dd, .dd {
  position: absolute; top: calc(100% - 8px); left: -12px; min-width: 280px; z-index: 50;
  display: flex; flex-direction: column; align-items: stretch; gap: 2px; padding: var(--space-2);
  background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-md);
  box-shadow: 0 20px 40px rgba(16, 24, 40, .14);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .2s ease, transform .2s ease, visibility 0s linear .2s;
}
.dd-right { left: auto; right: 0; min-width: 250px; }
.has-dd:hover .dd, .has-dd:focus-within .dd, .cuenta:hover .dd, .cuenta:focus-within .dd { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.dd a { display: flex; flex-direction: column; gap: 1px; padding: var(--space-2) var(--space-3); border-radius: var(--radius-sm); text-decoration: none; white-space: normal; }
.dd a strong { color: var(--color-ink); font-size: var(--text-sm); font-weight: var(--weight-semibold); }
.dd a span { color: var(--color-ink-soft); font-size: var(--text-xs); font-weight: var(--weight-regular); }
.dd a:hover { background: var(--color-brand-tint); }
.dd a:hover strong { color: var(--color-brand); }

/* Mi cuenta */
.cuenta-btn { display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; padding: var(--space-2) var(--space-1);
  color: var(--color-ink); font-weight: var(--weight-medium); font-size: var(--text-sm); white-space: nowrap; }
.cuenta-btn:hover, .cuenta:focus-within .cuenta-btn { color: var(--color-brand); }
.cuenta-btn .chev { opacity: .7; transition: transform .2s ease; }

/* Menú móvil */
.nav-mobile-label { font-size: var(--text-xs); font-weight: var(--weight-semibold); color: var(--color-ink-soft); text-transform: uppercase; letter-spacing: .04em; margin-bottom: calc(-1 * var(--space-2)); }

/* Botón WhatsApp: verde oscuro con ícono */
.btn-whatsapp {
  background: #0E7A5F; color: #fff; border-color: #0E7A5F;
  box-shadow: 0 6px 16px -8px rgba(14, 122, 95, .7);
  transition: background-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.btn-whatsapp::before {
  content: ""; width: 18px; height: 18px; flex: none; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12.04 2C6.58 2 2.13 6.45 2.13 11.91c0 1.75.46 3.39 1.26 4.81L2 22l5.42-1.36a9.9 9.9 0 0 0 4.62 1.14h.01c5.46 0 9.91-4.45 9.91-9.91C21.96 6.45 17.5 2 12.04 2zm5.86 14.05c-.25.7-1.25 1.28-1.98 1.44-.5.1-1.15.19-3.35-.72-2.81-1.16-4.63-4-4.77-4.19-.14-.19-1.15-1.53-1.15-2.92 0-1.39.72-2.07.98-2.35.25-.28.55-.35.73-.35h.53c.17 0 .4-.03.62.47.25.6.85 2.07.92 2.22.07.15.11.32.02.51-.09.19-.14.32-.28.49-.14.17-.29.38-.42.51-.14.14-.28.29-.12.57.16.28.72 1.19 1.55 1.93 1.06.94 1.96 1.24 2.24 1.38.28.14.44.12.61-.07.17-.19.71-.83.9-1.11.19-.28.38-.23.62-.14.25.09 1.57.74 1.84.88.27.14.45.21.51.32.07.12.07.65-.18 1.35z'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12.04 2C6.58 2 2.13 6.45 2.13 11.91c0 1.75.46 3.39 1.26 4.81L2 22l5.42-1.36a9.9 9.9 0 0 0 4.62 1.14h.01c5.46 0 9.91-4.45 9.91-9.91C21.96 6.45 17.5 2 12.04 2zm5.86 14.05c-.25.7-1.25 1.28-1.98 1.44-.5.1-1.15.19-3.35-.72-2.81-1.16-4.63-4-4.77-4.19-.14-.19-1.15-1.53-1.15-2.92 0-1.39.72-2.07.98-2.35.25-.28.55-.35.73-.35h.53c.17 0 .4-.03.62.47.25.6.85 2.07.92 2.22.07.15.11.32.02.51-.09.19-.14.32-.28.49-.14.17-.29.38-.42.51-.14.14-.28.29-.12.57.16.28.72 1.19 1.55 1.93 1.06.94 1.96 1.24 2.24 1.38.28.14.44.12.61-.07.17-.19.71-.83.9-1.11.19-.28.38-.23.62-.14.25.09 1.57.74 1.84.88.27.14.45.21.51.32.07.12.07.65-.18 1.35z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.btn-whatsapp:hover { background: #0A5F4A; border-color: #0A5F4A; color: #fff; transform: translateY(-1px); box-shadow: 0 10px 22px -8px rgba(10, 95, 74, .75); }
.product-actions .btn-whatsapp::before { width: 16px; height: 16px; }

/* Frase bajo el logo */
.site-header .logo { line-height: 1.05; }
.site-header .logo .logo-tag { display: block; font-size: 10.5px; font-weight: var(--weight-medium); letter-spacing: .005em; color: var(--color-ink-soft); margin-top: 1px; white-space: nowrap; }

/* Píldora de Facturación: azul noche, brillo desfasado del de Equipos */
.nav-desktop a.nav-factura, .nav-mobile a.nav-factura { background: linear-gradient(135deg, #111D4A, var(--color-brand)); }
.nav-factura::after { animation-delay: 2.75s; }
.nav-desktop .mega-cats a:hover { background: var(--color-bg-alt); color: var(--color-brand); }

/* Panel de Facturación */
.mega-feats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-3); }
.nav-desktop a.mega-feat { display: flex; flex-direction: column; gap: 4px; padding: var(--space-4); border: 1px solid var(--color-border); border-radius: var(--radius-md); white-space: normal; transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease; }
.nav-desktop a.mega-feat:hover { border-color: var(--color-brand); box-shadow: 0 8px 24px rgba(23, 92, 211, .14); transform: translateY(-3px); color: inherit; }
.mega-feat-icon { width: 40px; height: 40px; border-radius: var(--radius-sm); background: var(--color-brand-tint); color: var(--color-brand); display: flex; align-items: center; justify-content: center; margin-bottom: var(--space-2); }
.mega-feat strong { font-size: var(--text-sm); color: var(--color-ink); }
.mega-feat span:last-child { font-size: var(--text-xs); color: var(--color-ink-soft); font-weight: var(--weight-regular); }
.mega-strip { display: flex; justify-content: space-between; align-items: center; gap: var(--space-4); margin-top: var(--space-4); padding: var(--space-3) var(--space-4); background: var(--color-bg-alt); border-radius: var(--radius-md); font-size: var(--text-sm); color: var(--color-ink-soft); white-space: normal; }
.nav-desktop .mega-strip a.btn { color: #fff; padding: var(--space-2) var(--space-4); font-size: var(--text-sm); }

/* ======================================================================
   Logo del cliente y secciones de contenido (soluciones, implementación,
   soporte técnico y funciones del sistema)
   ====================================================================== */
.logo .logo-img { height: 38px; width: auto; } /* .logo gana a ".woocommerce img { height: auto }" */
@media (max-width: 480px) { .logo .logo-img { height: 32px; } }
.site-header .logo { display: inline-block; }

/* Funciones principales */
.func-block { margin-top: var(--space-7); padding: var(--space-6); background: var(--color-bg-alt); border-radius: var(--radius-lg); }
.func-block h3 { font-size: var(--text-md); text-align: center; }
.func-list { display: grid; grid-template-columns: 1fr; gap: var(--space-2) var(--space-5); margin: var(--space-4) 0 0; }
@media (min-width: 640px) { .func-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .func-list { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.func-list li { display: flex; align-items: center; gap: var(--space-2); font-size: var(--text-sm); }
.func-list svg { flex: none; color: var(--color-brand); }
.func-note { text-align: center; color: var(--color-ink-soft); font-size: var(--text-sm); margin: var(--space-5) 0 0; }

/* Tipos de negocio */
.chip-row { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-2); margin-bottom: var(--space-6); }
.chip-row li { background: var(--color-brand-tint); color: var(--color-brand); font-weight: var(--weight-medium); font-size: var(--text-sm); padding: var(--space-2) var(--space-4); border-radius: var(--radius-full); }

/* Pasos de implementación */
.pasos { display: grid; gap: var(--space-4); grid-template-columns: 1fr; counter-reset: paso; }
@media (min-width: 700px) { .pasos { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .pasos { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.pasos li { display: flex; gap: var(--space-3); align-items: flex-start; background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: var(--space-5); box-shadow: var(--shadow-card); }
.pasos strong { display: block; font-size: var(--text-sm); margin-bottom: 2px; }
.pasos span:last-child { font-size: var(--text-xs); color: var(--color-ink-soft); }
.paso-num { flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--color-brand); color: #fff; font-weight: var(--weight-bold); font-size: var(--text-sm); display: flex; align-items: center; justify-content: center; }

/* Soporte técnico */
.soporte-grid { display: grid; gap: var(--space-5); grid-template-columns: 1fr; }
@media (min-width: 640px) { .soporte-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .soporte-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.soporte-card { background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: var(--space-5); box-shadow: var(--shadow-card); transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease; }
.soporte-card:hover { border-color: var(--color-brand); box-shadow: 0 12px 32px rgba(23, 92, 211, .14); transform: translateY(-4px); }
.soporte-card h3 { font-size: var(--text-md); margin: var(--space-3) 0 var(--space-2); }
.soporte-card ul { display: flex; flex-direction: column; gap: var(--space-1); }
.soporte-card li { position: relative; padding-left: var(--space-4); font-size: var(--text-sm); color: var(--color-ink-soft); }
.soporte-card li::before { content: ""; position: absolute; left: 0; top: .6em; width: 6px; height: 6px; border-radius: 50%; background: var(--color-brand); }

/* Precio no disponible en ese periodo */
.plan-price-na { font-size: var(--text-md); color: var(--color-ink-soft); }

/* Logo del pie: el fondo es oscuro, va sobre una tarjeta clara */
.footer-brand .logo { display: inline-block; }
.footer-brand .logo-img { height: 58px; }

/* Nombres de categoría siempre en mayúsculas (pedido del cliente) */
.nav-desktop .mega-cats a,
.mega-head strong,
.bento-text strong,
.series-tabs button,
.series-banner h3 { text-transform: uppercase; letter-spacing: .02em; }
.nav-desktop .mega-cats a small,
.bento-text strong small { text-transform: none; letter-spacing: 0; }

/* Catálogo agrupado: encabezados de grupo en el menú, la home y la barra lateral */
.bento-grupo { font-size: var(--text-sm); font-weight: var(--weight-semibold); text-transform: uppercase; letter-spacing: .06em;
  color: var(--color-ink-soft); margin: var(--space-6) 0 var(--space-3); }
.bento-grupo:first-child { margin-top: 0; }
.grupo-head { font-size: var(--text-xs); font-weight: var(--weight-semibold); text-transform: uppercase; letter-spacing: .06em;
  color: var(--color-ink-soft); margin: var(--space-4) 0 var(--space-1); }
.grupo-head:first-child { margin-top: 0; }
.nav-desktop .mega-cats { max-height: 60vh; overflow-y: auto; }
.nav-desktop .mega-cats .grupo-head { padding: 0 var(--space-3); }

/* El logo no debe aplastarse: la cabecera es flex y el bloque se encogía al ancho del texto */
.site-header .logo { flex: 0 0 auto; }
.logo .logo-img { max-width: none; flex: none; }

/* ===================== Tienda: precios, carrito y "Finalizar compra" ===================== */
.product-precio { font-size: var(--text-lg); font-weight: var(--weight-bold); color: var(--color-ink); margin: auto 0 var(--space-3); }
.product-actions:has(.btn-icono) { grid-template-columns: 1fr auto; }
.btn-icono { display: inline-flex; align-items: center; justify-content: center; padding: var(--space-2) var(--space-3); }
.btn.is-ok { background: var(--color-success); border-color: var(--color-success); color: #fff; }
.mini-card-precio { font-size: var(--text-sm); font-weight: var(--weight-bold); color: var(--color-brand); }
.ficha-precio { font-size: var(--text-2xl) !important; color: var(--color-ink); }
.ficha-cant { display: flex; align-items: center; gap: var(--space-3); font-size: var(--text-sm); font-weight: var(--weight-medium); }
.ficha-cant input { width: 72px; padding: var(--space-2) var(--space-3); border: 1px solid var(--color-border); border-radius: var(--radius-sm); font: inherit; }
.ficha-box .btn svg { vertical-align: -3px; margin-right: var(--space-1); }
.ficha-wa { text-align: center; font-size: var(--text-sm); color: var(--color-ink-soft); }

/* Botón de la cabecera */
.carrito-btn { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; margin-left: auto; margin-right: var(--space-2);
  background: none; border: 1px solid var(--color-border); border-radius: var(--radius-full); color: var(--color-ink); cursor: pointer; transition: border-color var(--duration-fast), color var(--duration-fast); }
.carrito-btn:hover { border-color: var(--color-brand); color: var(--color-brand); }
.carrito-badge { position: absolute; top: -5px; right: -5px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: var(--radius-full);
  background: var(--color-danger); color: #fff; font-size: 11px; font-weight: var(--weight-bold); line-height: 19px; text-align: center; }
@media (min-width: 1200px) {
  .carrito-btn { order: 3; margin: 0; }
  /* Con el carrito la cabecera necesita 40 px más dentro del mismo ancho */
  .site-header .container { gap: var(--space-3); }
  .nav-desktop ul { gap: var(--space-3); }
  .header-actions { gap: var(--space-3) !important; }
  /* "Mi cuenta" queda como ícono junto al carrito; el texto lo siguen leyendo los lectores de pantalla */
  .cuenta-txt { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}

/* Panel lateral (dialog nativo: Esc, foco y fondo vienen del navegador) */
dialog.checkout { position: fixed; inset: 0 0 0 auto; width: min(440px, 100vw); max-width: 100vw; height: 100dvh; max-height: 100dvh; margin: 0; padding: 0;
  border: 0; background: #fff; color: var(--color-ink); box-shadow: -12px 0 40px rgba(16, 24, 40, .18); display: flex; flex-direction: column; }
dialog.checkout:not([open]) { display: none; }
dialog.checkout::backdrop { background: rgba(16, 24, 40, .45); }
dialog.checkout[open] { animation: entra-panel var(--duration-base) var(--ease-standard); }
@keyframes entra-panel { from { transform: translateX(40px); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { dialog.checkout[open] { animation: none; } }
.checkout-head { display: flex; align-items: center; justify-content: space-between; padding: var(--space-4) var(--space-5); border-bottom: 1px solid var(--color-border); }
.checkout-head h2 { font-size: var(--text-lg); margin: 0; }
.checkout-cerrar { width: 36px; height: 36px; border: 0; background: none; font-size: 28px; line-height: 1; color: var(--color-ink-soft); cursor: pointer; border-radius: var(--radius-sm); }
.checkout-cerrar:hover { background: var(--color-bg-alt); color: var(--color-ink); }
.checkout-body { flex: 1; overflow-y: auto; padding: var(--space-4) var(--space-5) var(--space-6); }
.checkout-body section { margin-bottom: var(--space-5); }
.checkout-body h3 { font-size: var(--text-sm); font-weight: var(--weight-semibold); margin: 0 0 var(--space-3); }
.checkout-body .field { margin-bottom: var(--space-3); }
.checkout-body .field label { font-size: var(--text-xs); margin-bottom: var(--space-1); }
.checkout-body .field input { padding: var(--space-2) var(--space-3); }
.field-ayuda { display: block; font-size: 12px; color: var(--color-ink-soft); margin-top: var(--space-1); }

.co-items { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-3); }
.co-item { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: var(--space-3); align-items: start; padding-bottom: var(--space-3); border-bottom: 1px solid var(--color-border); }
.co-item img { width: 64px; height: 64px; object-fit: cover; border-radius: var(--radius-sm); border: 1px solid var(--color-border); }
.co-item-info strong { display: block; font-size: var(--text-sm); line-height: var(--leading-snug); }
.co-item-info small { font-family: var(--font-mono); font-size: 12px; color: var(--color-ink-soft); }
.co-precio { font-weight: var(--weight-bold); font-size: var(--text-sm); white-space: nowrap; }
.co-cant { display: flex; align-items: center; gap: var(--space-2); margin-top: var(--space-2); }
.co-cant button { width: 28px; height: 28px; border: 1px solid var(--color-border); background: #fff; border-radius: var(--radius-sm); cursor: pointer; font-size: var(--text-base); line-height: 1; color: var(--color-ink); }
.co-cant button:hover { border-color: var(--color-brand); color: var(--color-brand); }
.co-cant span { min-width: 20px; text-align: center; font-weight: var(--weight-semibold); font-size: var(--text-sm); }
.co-cant .co-quitar { width: auto; border: 0; padding: 0 var(--space-2); font-size: var(--text-xs); color: var(--color-ink-soft); text-decoration: underline; }

.co-resumen { margin: 0; display: grid; gap: var(--space-2); font-size: var(--text-sm); }
.co-resumen div { display: flex; justify-content: space-between; gap: var(--space-3); }
.co-resumen dt { color: var(--color-ink-soft); }
.co-resumen dd { margin: 0; font-weight: var(--weight-medium); text-align: right; }
.co-total { padding-top: var(--space-2); border-top: 1px solid var(--color-border); font-size: var(--text-md); }
.co-total dt { color: var(--color-ink); font-weight: var(--weight-bold); }
.co-total dd { font-weight: var(--weight-bold); font-size: var(--text-lg); }
.co-total dd small { display: block; font-size: 12px; font-weight: var(--weight-regular); color: var(--color-ink-soft); }

.opciones { display: grid; gap: var(--space-2); }
.opcion { display: flex; align-items: center; gap: var(--space-3); padding: var(--space-3); border: 1px solid var(--color-border); border-radius: var(--radius-md); cursor: pointer; transition: border-color var(--duration-fast), background var(--duration-fast); }
.opcion:hover { border-color: #B9C6D8; }
.opcion:has(input:checked) { border-color: var(--color-brand); background: var(--color-brand-tint); }
.opcion input { order: 9; margin-left: auto; flex: none; width: 18px; height: 18px; accent-color: var(--color-brand); }
.opcion strong { display: block; font-size: var(--text-sm); }
.opcion small { display: block; font-size: 12px; color: var(--color-ink-soft); line-height: var(--leading-snug); }
.opcion > svg { flex: none; color: var(--color-brand); }
.pago-marca { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: var(--radius-sm); color: #fff; font-weight: var(--weight-black); font-size: var(--text-sm); }
.pago-yape { background: #6C2C91; }
.pago-plin { background: #00B4C5; }

.co-pagar { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2); padding: var(--space-3) var(--space-4); font-size: var(--text-base); }
.co-nota { margin: var(--space-3) 0 0; text-align: center; font-size: 12px; color: var(--color-ink-soft); }
.checkout-vacio, .checkout-ok { text-align: center; padding: var(--space-7) var(--space-4); }
.checkout-vacio p { color: var(--color-ink-soft); margin-bottom: var(--space-4); }
.checkout-ok-icono { display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: var(--radius-full); background: var(--color-success-tint); color: var(--color-success); font-size: 28px; font-weight: var(--weight-bold); margin-bottom: var(--space-4); }
.checkout-ok h3 { font-size: var(--text-lg); margin-bottom: var(--space-3); }
.checkout-ok p { color: var(--color-ink-soft); font-size: var(--text-sm); margin-bottom: var(--space-5); }

/* "Entra ahora a la demo" destacado */
.demo-destacado { display: inline-block; margin-top: var(--space-2); padding: .35em .9em; border-radius: var(--radius-full);
  background: #16A34A; color: #fff !important; font-weight: var(--weight-bold); text-decoration: none;
  box-shadow: 0 0 0 0 rgba(22,163,74,.55); animation: demo-pulso 1.8s ease-out infinite; transition: transform .2s; }
.demo-destacado:hover { transform: translateY(-2px) scale(1.03); animation-play-state: paused; }
@keyframes demo-pulso { 70% { box-shadow: 0 0 0 12px rgba(22,163,74,0); } 100% { box-shadow: 0 0 0 0 rgba(22,163,74,0); } }
@media (prefers-reduced-motion: reduce) { .demo-destacado { animation: none; } }

/* Categorías (título principal) y sus grupos (subtítulos) */
.side-title { font-size: var(--text-lg); font-weight: var(--weight-bold); padding-bottom: var(--space-2); border-bottom: 2px solid var(--color-brand); }
.grupo-head { font-size: var(--text-sm); font-weight: var(--weight-bold); color: var(--color-brand);
  border-left: 3px solid var(--color-brand); padding-left: var(--space-2); margin-top: var(--space-5); }
.bento-grupo { font-weight: var(--weight-bold); color: var(--color-brand); border-left: 3px solid var(--color-brand); padding-left: var(--space-2); }

/* Aviso "Agregado al carrito" */
.carrito-toast { position: fixed; right: 16px; top: 84px; z-index: 1000; width: 320px; max-width: calc(100vw - 32px);
  display: grid; gap: 2px; background: #fff; border: 1px solid var(--color-border); border-left: 4px solid #16A34A;
  border-radius: var(--radius-md); box-shadow: 0 10px 30px rgba(0,0,0,.15); padding: var(--space-3) var(--space-4);
  transform: translateY(-12px); opacity: 0; pointer-events: none; transition: .25s; }
.carrito-toast.is-visible { transform: none; opacity: 1; pointer-events: auto; }
.carrito-toast strong { color: #15803D; }
.carrito-toast span { font-size: var(--text-sm); color: var(--color-ink-soft); }
.carrito-toast button { justify-self: start; margin-top: var(--space-1); background: none; border: 0; padding: 0; color: var(--color-brand); font-weight: var(--weight-semibold); cursor: pointer; text-decoration: underline; }

/* Planes: enlace secundario bajo "Agregar al carrito" */
.plan-consulta { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: var(--space-2); padding: var(--space-2);
  border-radius: var(--radius-full); font-size: var(--text-xs); white-space: nowrap; font-weight: var(--weight-medium); color: var(--color-ink-soft); text-decoration: none; transition: .2s; }
.plan-consulta span { transition: transform .2s; }
.plan-consulta:hover { color: var(--color-brand); background: var(--color-brand-tint); }
.plan-consulta:hover span { transform: translateX(3px); }
.co-item img[src$="logo.png"] { object-fit: contain; background: #fff; padding: 4px; }

/* Carrusel del inicio */
.hero-carrusel { padding-bottom: var(--space-6); }
.hc-track { display: flex; transition: transform .6s cubic-bezier(.65,0,.35,1); }
.hc-slide { flex: 0 0 100%; min-width: 0; }
.hc-slide .container { min-height: 100%; }
@media (prefers-reduced-motion: reduce) { .hc-track { transition: none; } }
.hc-kicker { display: inline-block; font-size: var(--text-xs); font-weight: var(--weight-bold); text-transform: uppercase; letter-spacing: .08em;
  color: var(--color-brand); background: var(--color-brand-tint); padding: .3em .8em; border-radius: var(--radius-full); margin-bottom: var(--space-3); }
.hc-titulo { font-size: var(--text-3xl); letter-spacing: -.01em; }
.hc-lista { display: grid; gap: var(--space-2); margin: var(--space-4) 0 0; }
.hc-lista li { display: flex; gap: var(--space-2); align-items: center; color: var(--color-ink-soft); }
.hc-lista svg { color: var(--color-success); flex-shrink: 0; }
.hc-collage { display: grid; grid-template-columns: 1.3fr 1fr; grid-template-rows: 1fr 1fr; gap: var(--space-4); aspect-ratio: 4 / 3; }
.hc-foto { margin: 0; background: #fff; border-radius: var(--radius-lg, 16px); box-shadow: 0 12px 30px rgba(16,24,40,.12); overflow: hidden; }
.hc-foto img { width: 100%; height: 100%; object-fit: cover; }
.hc-foto-1 { grid-row: span 2; }
.hc-controles { display: flex; justify-content: center; align-items: center; gap: var(--space-4); margin-top: var(--space-6); }
.hc-btn { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--color-border);
  background: #fff; color: var(--color-ink); cursor: pointer; transition: .2s; }
.hc-btn:hover { background: var(--color-brand); border-color: var(--color-brand); color: #fff; }
.hc-puntos { display: flex; gap: var(--space-2); }
.hc-puntos button { width: 10px; height: 10px; padding: 0; border-radius: var(--radius-full); border: 0; background: var(--color-border); cursor: pointer; transition: .3s; }
.hc-puntos button[aria-current] { width: 28px; background: var(--color-brand); }
@media (max-width: 899px) { .hc-collage { max-width: 480px; } }

.hc-imagen { margin: 0; border-radius: 20px; overflow: hidden; box-shadow: 0 20px 45px rgba(16,24,40,.16); aspect-ratio: 4 / 3; }
.hc-imagen img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 899px) { .hc-imagen { max-width: 520px; } }

/* Carrusel: foto a la derecha que se funde con el azul de marca; texto en blanco a la izquierda */
.hero-carrusel { padding: 0; background: #0B1F44; }
.hero-carrusel::before { display: none; }
.hc-slide { position: relative; min-height: 600px; display: flex; align-items: center; padding: var(--space-8) 0; background: #0B1F44; overflow: hidden; }
.hc-slide::before { content: ""; position: absolute; top: 0; right: 0; bottom: 0; width: 64%; background: var(--hc-fondo) center / cover no-repeat; }
.hc-slide::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, #0B1F44 0%, #0B1F44 36%, rgba(11,31,68,.92) 44%, rgba(11,31,68,.6) 54%, rgba(11,31,68,.2) 66%, rgba(11,31,68,0) 78%),
    linear-gradient(0deg, rgba(11,31,68,.45) 0%, rgba(11,31,68,0) 30%); }
.hc-slide > .container { position: relative; z-index: 1; width: 100%; max-width: 1440px; padding-inline: clamp(16px, 5vw, 80px); grid-template-columns: 1fr !important; }
.hc-slide > .container > div:first-child { max-width: 580px; }
.hc-visual { display: none; }
.hero-carrusel h1, .hc-titulo { color: #fff; }
.hero-carrusel .lead, .hc-lista li, .hero-carrusel .hero-trust { color: rgba(255,255,255,.85); }
.hc-kicker { background: rgba(255,255,255,.12); color: #fff; }
.hero-carrusel .btn-secondary { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.hero-carrusel .btn-secondary:hover { background: rgba(255,255,255,.12); border-color: #fff; }
.hero-carrusel .store-badge { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.3); color: #fff; }
.hero-carrusel .store-badge small { color: rgba(255,255,255,.7); }
.hc-lista svg, .hero-carrusel .hero-trust svg { color: #4ADE80; }
.hc-controles { position: absolute; left: 0; right: 0; bottom: var(--space-5); margin: 0; z-index: 2; }
.hc-btn { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.3); color: #fff; }
.hc-puntos button { background: rgba(255,255,255,.35); }
.hc-puntos button[aria-current] { background: #fff; }
@media (max-width: 899px) {
  .hc-slide { min-height: 0; padding: var(--space-8) 0 calc(var(--space-8) + 40px); }
  .hc-slide::before { width: 100%; }
  .hc-slide::after { background: linear-gradient(180deg, rgba(11,31,68,.82), rgba(11,31,68,.94)); }
}

/* Precios por mayor, etiquetas y ficha técnica */
.precio-mayor { display: block; font-size: var(--text-xs); font-weight: var(--weight-medium); color: var(--color-success, #15803D); margin-top: 2px; }
.ficha-desc { color: var(--color-ink-soft); margin: var(--space-2) 0 var(--space-3); }
.ficha-tags { margin-bottom: var(--space-4); }
.ficha-tags a { text-decoration: none; }
.mayoreo { border: 1px dashed var(--color-border); border-radius: var(--radius-md); padding: var(--space-3) var(--space-4); display: grid; gap: var(--space-2); }
.mayoreo ul { display: grid; gap: 4px; }
.mayoreo li { display: flex; justify-content: space-between; font-size: var(--text-sm); }
.mayoreo li strong { color: var(--color-ink); }
.mayoreo small { font-size: var(--text-xs); color: var(--color-ink-soft); }
.ficha-galeria { display: flex; gap: var(--space-2); margin-top: var(--space-3); overflow-x: auto; }
.ficha-galeria button { flex: 0 0 64px; height: 64px; padding: 0; border: 1px solid var(--color-border); border-radius: var(--radius-md); background: var(--color-bg-alt); overflow: hidden; cursor: pointer; }
.ficha-galeria button:hover, .ficha-galeria button:focus-visible { border-color: var(--color-brand); }
.ficha-galeria img { width: 100%; height: 100%; object-fit: cover; }
.ficha-hoja { display: block; text-align: center; margin-top: var(--space-3); font-size: var(--text-sm); font-weight: var(--weight-semibold); }

/* La caja de filtros es fija al bajar: si es más alta que la pantalla, se desplaza por dentro (rueda o dedo) */
@media (min-width: 900px) {
  .cat-side-wrap { max-height: calc(100vh - 112px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; border-radius: var(--radius-md); }
}
.nav-desktop .mega-cats { overscroll-behavior: contain; scrollbar-width: thin; -webkit-overflow-scrolling: touch; }

/* Los 3 precios: unidad (destacado), mayor y cajón */
.precios-card { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin: auto 0 var(--space-3); }
.precios-card .tier-unidad { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; align-items: baseline; }
.precios-card:has(.tier:only-child) { grid-template-columns: 1fr; }
.tier { display: flex; flex-direction: column; padding: 6px 8px; border-radius: var(--radius-sm); background: var(--color-bg-alt); line-height: 1.2; min-width: 0; }
.tier small { font-size: 10px; text-transform: uppercase; letter-spacing: .04em; color: var(--color-ink-soft); }
.tier strong { font-size: var(--text-sm); color: var(--color-ink); white-space: nowrap; }
.tier-unidad { background: var(--color-brand-tint); }
.tier-unidad small { color: var(--color-brand); font-weight: var(--weight-semibold); }
.tier-unidad strong { font-size: var(--text-md); color: var(--color-brand); }
.precios-ficha { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-2); margin-top: var(--space-2); }
.precios-ficha .tier { padding: var(--space-3); }
.precios-ficha .tier strong { font-size: var(--text-md); }
.precios-ficha .tier-unidad strong { font-size: var(--text-xl); }
.precios-ficha:has(.tier:only-child) { grid-template-columns: 1fr; }
.precios-nota { display: block; margin-top: var(--space-2); font-size: var(--text-xs); color: var(--color-ink-soft); }

/* Buscador de equipos */
.buscador { position: relative; display: flex; align-items: center; }
.buscador input { width: 100%; font: inherit; padding: var(--space-3) var(--space-4); border: 1px solid var(--color-border); border-radius: var(--radius-full); background: #fff; }
.buscador input:focus { outline: none; border-color: var(--color-brand); box-shadow: 0 0 0 3px var(--color-brand-tint); }
.cat-buscar { margin-bottom: var(--space-4); }
.cat-buscar svg { position: absolute; left: 16px; color: var(--color-ink-soft); pointer-events: none; }
.cat-buscar input { padding-left: 44px; }
.mega-col { display: grid; gap: var(--space-3); align-content: start; }
.mega-buscar input { padding: var(--space-2) var(--space-4); font-size: var(--text-sm); }

/* Aviso de cookies (solo sale si hay píxel de Facebook configurado) */
.cookies { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 90; max-width: 720px; margin: 0 auto;
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; padding: 16px 20px;
  background: var(--color-bg); color: var(--color-ink); border: 1px solid var(--color-border); border-radius: var(--radius-md);
  box-shadow: 0 12px 32px rgba(30, 39, 51, .18); font-size: var(--text-sm); }
.cookies[hidden] { display: none; }
.cookies p { flex: 1 1 280px; margin: 0; }
.cookies a { color: var(--color-brand); }
.cookies div { display: flex; gap: 8px; }
