/* ==========================================================================
   NOVA Store — Mockup gráfico (sin funcionamiento real)
   Hoja de estilos compartida para todas las pantallas.
   ========================================================================== */

:root {
  --bg: #ffffff;
  --bg-soft: #f6f7fb;
  --surface: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --border: #e6e8ef;
  --border-strong: #d5d9e2;
  --primary: #4f46e5;
  --primary-dark: #4338ca;
  --primary-soft: #eef2ff;
  --accent: #f59e0b;
  --danger: #ef4444;
  --success: #10b981;

  --radius: 16px;
  --radius-sm: 11px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06), 0 1px 3px rgba(15, 23, 42, .08);
  --shadow: 0 10px 30px rgba(15, 23, 42, .08);
  --shadow-lg: 0 24px 60px rgba(15, 23, 42, .14);

  --container: 1200px;
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; }
ul { margin: 0; padding: 0; list-style: none; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.muted { color: var(--muted); }
.eyebrow {
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: 12px;
  font-weight: 700;
  color: var(--primary);
}

/* ----------------------------- Botones ---------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  padding: 12px 22px;
  font-weight: 600;
  font-size: 15px;
  line-height: 1;
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease, color .15s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 8px 20px rgba(79, 70, 229, .28); }
.btn-primary:hover { background: var(--primary-dark); }
.btn-outline { background: transparent; border-color: var(--border-strong); color: var(--text); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.btn-ghost { background: var(--primary-soft); color: var(--primary-dark); }
.btn-dark { background: var(--text); color: #fff; }
.btn-block { width: 100%; }
.btn-sm { padding: 9px 16px; font-size: 14px; }
.btn-lg { padding: 15px 30px; font-size: 16px; }

/* ------------------------------ Topbar ---------------------------------- */
.topbar {
  background: var(--text);
  color: #cbd5e1;
  font-size: 13px;
}
.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 40px;
  gap: 16px;
}
.topbar__links { display: flex; gap: 20px; }
.topbar__links a:hover { color: #fff; }

/* ------------------------------ Header ---------------------------------- */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .9);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.header__inner {
  display: flex;
  align-items: center;
  gap: 22px;
  min-height: 72px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -.02em;
}
.brand__mark {
  width: 32px; height: 32px;
  display: grid; place-items: center;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), #7c3aed);
  color: #fff;
  font-size: 17px;
}
.nav { display: flex; gap: 24px; margin-left: 8px; }
.nav a { font-size: 15px; font-weight: 500; color: #334155; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:hover { color: var(--primary); border-color: var(--primary); }
.nav a.is-active { color: var(--primary); border-color: var(--primary); }

.search {
  position: relative;
  flex: 1;
  max-width: 360px;
  margin-left: auto;
}
.search input {
  width: 100%;
  border: 1px solid var(--border);
  background: var(--bg-soft);
  border-radius: var(--radius-pill);
  padding: 11px 16px 11px 42px;
  font-size: 14px;
  outline: none;
  transition: border-color .15s ease, background .15s ease;
}
.search input:focus { border-color: var(--primary); background: #fff; }
.search__icon {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  width: 18px; height: 18px; color: var(--muted); display: grid; place-items: center;
}
.header__actions { display: flex; align-items: center; gap: 8px; }
.icon-btn {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border: none; background: transparent; border-radius: 12px;
  color: #334155; position: relative;
  transition: background .15s ease, color .15s ease;
}
.icon-btn:hover { background: var(--bg-soft); color: var(--primary); }
.icon-btn svg { width: 20px; height: 20px; }
.cart-btn__count {
  position: absolute; top: 4px; right: 3px;
  min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: var(--radius-pill);
  background: var(--primary); color: #fff;
  font-size: 11px; font-weight: 700;
  display: grid; place-items: center;
  border: 2px solid #fff;
}
.header__menu { display: none; }

/* ------------------------------- Hero ----------------------------------- */
.hero { padding: 56px 0 24px; }
.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 28px;
  align-items: stretch;
}
.hero__panel {
  background:
    radial-gradient(900px 400px at 15% 10%, rgba(124, 58, 237, .22), transparent 55%),
    radial-gradient(700px 400px at 90% 90%, rgba(79, 70, 229, .18), transparent 55%),
    linear-gradient(160deg, #111827, #1e1b4b 70%);
  color: #fff;
  border-radius: 26px;
  padding: 52px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.hero__panel h1 {
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.05;
  letter-spacing: -.03em;
  margin: 14px 0 16px;
}
.hero__panel p { color: #c7d2fe; max-width: 42ch; font-size: 16px; }
.hero__cta { display: flex; gap: 14px; margin-top: 28px; flex-wrap: wrap; }
.hero__stats { display: flex; gap: 34px; margin-top: 38px; }
.hero__stat strong { display: block; font-size: 22px; }
.hero__stat span { font-size: 13px; color: #a5b4fc; }

.hero__side { display: grid; grid-template-rows: 1fr 1fr; gap: 28px; }
.promo-card {
  position: relative;
  border-radius: 22px;
  padding: 30px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 180px;
  color: #fff;
  box-shadow: var(--shadow);
}
.promo-card--a { background: linear-gradient(135deg, #f59e0b, #ea580c); }
.promo-card--b { background: linear-gradient(135deg, #0ea5e9, #4f46e5); }
.promo-card h3 { margin: 8px 0 6px; font-size: 24px; letter-spacing: -.02em; }
.promo-card p { margin: 0; opacity: .9; font-size: 14px; max-width: 30ch; }
.promo-card .btn { align-self: flex-start; margin-top: 18px; }
.promo-card__emoji {
  position: absolute; right: -6px; bottom: -14px;
  font-size: 110px; opacity: .22; transform: rotate(-8deg);
}

/* ------------------------------ Secciones ------------------------------- */
.section { padding: 48px 0; }
.section--soft { background: var(--bg-soft); }
.section__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}
.section__head h2 {
  font-size: clamp(22px, 3vw, 30px);
  letter-spacing: -.02em;
  margin: 6px 0 0;
}
.link-arrow { color: var(--primary); font-weight: 600; font-size: 15px; }
.link-arrow:hover { text-decoration: underline; }

/* ---------------------------- Categorías -------------------------------- */
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.cat-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
}
.cat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.cat-card img { width: 100%; height: 100%; object-fit: cover; }
.cat-card__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(15, 23, 42, .78), rgba(15, 23, 42, .05) 60%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
  color: #fff;
}
.cat-card__overlay h3 { margin: 0; font-size: 18px; }
.cat-card__overlay span { font-size: 13px; opacity: .85; }

/* ---------------------------- Product grid ------------------------------ */
.grid-products { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.grid-products--3 { grid-template-columns: repeat(3, 1fr); }

.product-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.product-card__media {
  position: relative;
  aspect-ratio: 1 / 1;
  background: linear-gradient(135deg, #eef2ff, #f8fafc);
  overflow: hidden;
}
.product-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.product-card:hover .product-card__media img { transform: scale(1.05); }
.product-card__body { padding: 18px; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.product-card__cat { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; font-weight: 600; }
.product-card__title { margin: 0; font-size: 16px; font-weight: 600; line-height: 1.35; }
.product-card__title a:hover { color: var(--primary); }
.product-card__foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 6px; }

.badge {
  position: absolute; top: 14px; left: 14px;
  padding: 5px 11px; border-radius: var(--radius-pill);
  font-size: 12px; font-weight: 700; color: #fff;
}
.badge--sale { background: var(--danger); }
.badge--new { background: var(--success); }
.badge--fav { background: #fff; color: var(--primary); left: auto; right: 14px; box-shadow: var(--shadow-sm); }

.price { display: flex; align-items: baseline; gap: 8px; }
.price__now { font-weight: 800; font-size: 18px; }
.price__old { color: var(--muted); text-decoration: line-through; font-size: 14px; }

.rating { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--accent); }
.rating span { color: var(--muted); }

/* ------------------------------ Benesses -------------------------------- */
.benefits { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.benefit {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 22px; border-radius: var(--radius); background: var(--surface);
  border: 1px solid var(--border);
}
.benefit__icon {
  width: 44px; height: 44px; flex: none; border-radius: 12px;
  display: grid; place-items: center; font-size: 20px;
  background: var(--primary-soft); color: var(--primary);
}
.benefit h4 { margin: 0 0 3px; font-size: 15px; }
.benefit p { margin: 0; font-size: 13px; color: var(--muted); }

/* ------------------------------ Newsletter ------------------------------ */
.newsletter {
  border-radius: 24px;
  background: linear-gradient(135deg, #111827, #312e81);
  color: #fff;
  padding: 46px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 30px;
  align-items: center;
}
.newsletter h2 { margin: 8px 0 10px; font-size: 28px; letter-spacing: -.02em; }
.newsletter p { margin: 0; color: #c7d2fe; }
.newsletter__form { display: flex; gap: 10px; background: #fff; border-radius: var(--radius-pill); padding: 6px; }
.newsletter__form input { flex: 1; border: none; outline: none; padding: 12px 18px; border-radius: var(--radius-pill); font-size: 15px; }

/* ------------------------------ Footer ---------------------------------- */
.footer { background: #0b1120; color: #94a3b8; padding: 60px 0 24px; margin-top: 60px; }
.footer__grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 34px; }
.footer .brand { color: #fff; margin-bottom: 14px; }
.footer__about { font-size: 14px; max-width: 34ch; }
.footer h4 { color: #fff; font-size: 14px; text-transform: uppercase; letter-spacing: .1em; margin: 0 0 16px; }
.footer li { margin-bottom: 10px; font-size: 14px; }
.footer a:hover { color: #fff; }
.footer__social { display: flex; gap: 10px; margin-top: 18px; }
.footer__social a {
  width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center;
  background: #1e293b; color: #cbd5e1;
}
.footer__social a:hover { background: var(--primary); color: #fff; }
.footer__bottom {
  border-top: 1px solid #1e293b; margin-top: 42px; padding-top: 22px;
  display: flex; justify-content: space-between; gap: 16px; font-size: 13px; flex-wrap: wrap;
}

/* ----------------------------- Breadcrumb ------------------------------- */
.breadcrumb { display: flex; gap: 8px; font-size: 14px; color: var(--muted); padding: 26px 0 0; }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb span { color: var(--text); font-weight: 600; }

.page-head { padding: 20px 0 8px; }
.page-head h1 { font-size: clamp(26px, 3.4vw, 36px); letter-spacing: -.03em; margin: 6px 0 8px; }

/* --------------------------- Catálogo (layout) -------------------------- */
.catalog { display: grid; grid-template-columns: 260px 1fr; gap: 32px; padding: 28px 0 60px; align-items: start; }
.filters {
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px; background: var(--surface); position: sticky; top: 96px;
}
.filters h3 { margin: 0 0 16px; font-size: 16px; }
.filter-group { border-top: 1px solid var(--border); padding: 18px 0; }
.filter-group:first-of-type { border-top: none; padding-top: 0; }
.filter-group h4 { margin: 0 0 12px; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.filter-option { display: flex; align-items: center; gap: 10px; font-size: 14px; padding: 5px 0; color: #334155; }
.filter-option input { accent-color: var(--primary); width: 16px; height: 16px; }
.filter-option .count { margin-left: auto; color: var(--muted); font-size: 13px; }

.toolbar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; margin-bottom: 22px;
}
.toolbar__count { font-size: 14px; color: var(--muted); }
.select {
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 10px 14px; font-size: 14px; background: #fff; outline: none;
}
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.chip {
  border: 1px solid var(--border); background: #fff; border-radius: var(--radius-pill);
  padding: 6px 14px; font-size: 13px; color: #334155;
}
.chip.is-active { background: var(--primary); border-color: var(--primary); color: #fff; }

.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 40px; }
.pagination a {
  min-width: 42px; height: 42px; padding: 0 12px; border-radius: 12px;
  display: grid; place-items: center; border: 1px solid var(--border);
  font-size: 14px; font-weight: 600; color: #334155; background: #fff;
}
.pagination a:hover { border-color: var(--primary); color: var(--primary); }
.pagination a.is-active { background: var(--primary); border-color: var(--primary); color: #fff; }

/* --------------------------- Product detail ----------------------------- */
.pdp { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; padding: 32px 0 20px; align-items: start; }
.gallery__main {
  border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
  aspect-ratio: 1 / 1; background: linear-gradient(135deg, #eef2ff, #f8fafc);
}
.gallery__main img { width: 100%; height: 100%; object-fit: cover; }
.gallery__thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 14px; }
.gallery__thumb {
  border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden;
  aspect-ratio: 1 / 1; background: #f8fafc;
}
.gallery__thumb.is-active { border-color: var(--primary); box-shadow: 0 0 0 2px var(--primary-soft); }
.gallery__thumb img { width: 100%; height: 100%; object-fit: cover; }

.pdp__info h1 { font-size: clamp(26px, 3vw, 34px); letter-spacing: -.02em; margin: 12px 0 10px; line-height: 1.15; }
.pdp__price { display: flex; align-items: baseline; gap: 12px; margin: 18px 0; }
.pdp__price .price__now { font-size: 32px; }
.pdp__desc { color: #475569; margin: 0 0 24px; }
.spec-list { display: grid; gap: 10px; margin: 0 0 26px; }
.spec-list li { display: flex; gap: 10px; font-size: 14px; color: #334155; }
.spec-list li::before { content: "✓"; color: var(--success); font-weight: 700; }

.qty { display: inline-flex; align-items: center; border: 1px solid var(--border); border-radius: var(--radius-pill); overflow: hidden; }
.qty button { width: 44px; height: 46px; border: none; background: #fff; font-size: 18px; color: #334155; }
.qty button:hover { background: var(--bg-soft); }
.qty span { width: 44px; text-align: center; font-weight: 600; }
.pdp__actions { display: flex; gap: 14px; margin: 22px 0; flex-wrap: wrap; }
.pdp__actions .btn-primary { flex: 1; min-width: 200px; }
.pdp__meta { display: flex; gap: 22px; flex-wrap: wrap; font-size: 13px; color: var(--muted); border-top: 1px solid var(--border); padding-top: 20px; }

.tabs { border-top: 1px solid var(--border); margin-top: 20px; padding-top: 30px; }
.tabs__nav { display: flex; gap: 26px; border-bottom: 1px solid var(--border); }
.tabs__nav a,
.tabs__nav button { padding: 0 0 14px; font-weight: 600; color: var(--muted); border-bottom: 2px solid transparent; background: none; border-top: 0; border-left: 0; border-right: 0; cursor: pointer; font-size: inherit; font-family: inherit; }
.tabs__nav a.is-active,
.tabs__nav button.is-active { color: var(--primary); border-color: var(--primary); }
.tabs__body { padding: 24px 0; color: #475569; max-width: 780px; }
.specs { margin: 0; padding-left: 20px; }
.specs li { margin-bottom: 6px; }
/* Descripción rica (HTML de TinyMCE): respeta el formato del editor sin romper el layout. */
.pdp__desc--rich { line-height: 1.6; color: #475569; }
.pdp__desc--rich img { max-width: 100%; height: auto; border-radius: 8px; }
.pdp__desc--rich h1, .pdp__desc--rich h2, .pdp__desc--rich h3 { margin: 16px 0 8px; color: var(--text); }
.pdp__desc--rich ul, .pdp__desc--rich ol { padding-left: 22px; margin: 10px 0; }
.pdp__desc--rich p { margin: 10px 0; }
.pdp__desc--rich a { color: var(--primary); text-decoration: underline; }
.pdp__desc--rich table { border-collapse: collapse; max-width: 100%; }
.pdp__desc--rich td, .pdp__desc--rich th { border: 1px solid var(--border); padding: 6px 10px; }

/* ------------------------------- Cart ----------------------------------- */
.cart { display: grid; grid-template-columns: 1fr 380px; gap: 32px; padding: 28px 0 60px; align-items: start; }
.cart__list { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: #fff; }
.cart-item { display: grid; grid-template-columns: 96px 1fr auto; gap: 18px; padding: 20px; border-bottom: 1px solid var(--border); align-items: center; }
.cart-item:last-child { border-bottom: none; }
.cart-item__media { width: 96px; height: 96px; border-radius: var(--radius-sm); overflow: hidden; background: #f8fafc; }
.cart-item__media img { width: 100%; height: 100%; object-fit: cover; }
.cart-item__title { font-weight: 600; font-size: 16px; }
.cart-item__meta { font-size: 13px; color: var(--muted); margin: 4px 0 10px; }
.cart-item__right { text-align: right; display: grid; gap: 10px; justify-items: end; }
.cart-item__remove { color: var(--muted); font-size: 13px; }
.cart-item__remove:hover { color: var(--danger); }
.qty-sm { display: inline-flex; align-items: center; border: 1px solid var(--border); border-radius: var(--radius-pill); overflow: hidden; }
.qty-sm button { width: 32px; height: 34px; border: none; background: #fff; color: #334155; }
.qty-sm span { width: 32px; text-align: center; font-size: 14px; font-weight: 600; }

.summary { border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; background: #fff; position: sticky; top: 96px; }
.summary h3 { margin: 0 0 18px; font-size: 18px; }
.summary__row { display: flex; justify-content: space-between; font-size: 14px; color: #475569; padding: 8px 0; }
.summary__row--total { border-top: 1px solid var(--border); margin-top: 12px; padding-top: 16px; font-size: 18px; font-weight: 800; color: var(--text); }
.summary .btn { margin-top: 16px; }
.coupon { display: flex; gap: 8px; margin: 18px 0; }
.coupon input { flex: 1; border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 11px 14px; outline: none; font-size: 14px; }
.secure { display: flex; align-items: center; gap: 8px; justify-content: center; font-size: 12px; color: var(--muted); margin-top: 14px; }

.link-row { display: flex; justify-content: space-between; border-top: 1px solid var(--border); padding: 14px 20px; font-size: 14px; }
.link-row a { color: var(--primary); font-weight: 600; }

/* ------------------------------- Toast / nota ---------------------------- */
.mock-note {
  background: #fffbeb; border: 1px dashed #fcd34d; color: #92400e;
  border-radius: var(--radius-sm); padding: 12px 16px; font-size: 13px;
  display: flex; gap: 10px; align-items: center; margin: 18px auto 0; max-width: var(--container);
}

/* ------------------------------ Responsive ------------------------------ */
@media (max-width: 1080px) {
  .grid-products { grid-template-columns: repeat(3, 1fr); }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .benefits { grid-template-columns: repeat(2, 1fr); }
  .catalog { grid-template-columns: 220px 1fr; }
  .cart { grid-template-columns: 1fr 320px; }
}

@media (max-width: 900px) {
  .nav { display: none; }
  .header__menu { display: grid; }
  .hero__grid { grid-template-columns: 1fr; }
  .hero__side { grid-template-rows: none; grid-template-columns: 1fr 1fr; }
  .pdp { grid-template-columns: 1fr; gap: 30px; }
  .catalog { grid-template-columns: 1fr; }
  .filters { position: static; }
  .cart { grid-template-columns: 1fr; }
  .summary { position: static; }
  .newsletter { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .container { padding: 0 18px; }
  .topbar__links { display: none; }
  .search { display: none; }
  .grid-products, .grid-products--3 { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .hero__side { grid-template-columns: 1fr; }
  .hero__panel { padding: 36px 26px; }
  .newsletter { padding: 30px 22px; }
  .newsletter__form { flex-direction: column; background: transparent; padding: 0; gap: 12px; }
  .newsletter__form input { border: 1px solid var(--border); }
  .footer__grid { grid-template-columns: 1fr; }
  .cart-item { grid-template-columns: 72px 1fr; }
  .cart-item__right { grid-column: 2; justify-items: start; text-align: left; }
}

/* ==========================================================================
   NOVA Store — Utilidades propias de la aplicación (Blazor)
   (equivalentes a las del proyecto Next; misma estética)
   ========================================================================== */

/* Formularios */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field label { font-size: 13px; font-weight: 600; color: #334155; }
.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  font-size: 15px;
  font-family: inherit;
  background: #fff;
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-soft);
}
.field textarea { resize: vertical; min-height: 84px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.form-grid .full { grid-column: 1 / -1; }

/* Botones deshabilitados */
.btn[disabled],
.btn:disabled { opacity: .55; cursor: not-allowed; box-shadow: none; }

/* Enlaces de filtro (catálogo) */
.filter-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 10px;
  border-radius: 9px;
  font-size: 14px;
  color: #334155;
  width: 100%;
  background: transparent;
  border: none;
  text-align: left;
}
.filter-link:hover { background: var(--bg-soft); color: var(--primary); }
.filter-link.is-active { background: var(--primary-soft); color: var(--primary-dark); font-weight: 600; }
.filter-link .count { color: var(--muted); font-size: 13px; }

/* Avisos */
.alert {
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 14px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.alert--error { background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; }
.alert--success { background: #ecfdf5; border: 1px solid #a7f3d0; color: #065f46; }
.alert--info { background: #eff6ff; border: 1px solid #bfdbfe; color: #1e40af; }

/* Estado vacío */
.empty {
  text-align: center;
  padding: 70px 24px;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius);
  background: #fff;
}
.empty__icon { font-size: 44px; margin-bottom: 12px; }
.empty h3 { margin: 0 0 8px; }
.empty p { color: var(--muted); margin: 0 0 20px; }

/* Estados de pedido */
.status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 600;
}
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.status--pendiente { background: #fef3c7; color: #92400e; }
.status--confirmado { background: #dbeafe; color: #1e40af; }
.status--preparando { background: #ede9fe; color: #5b21b6; }
.status--enviado { background: #cffafe; color: #155e75; }
.status--entregado { background: #dcfce7; color: #166534; }
.status--cancelado { background: #fee2e2; color: #991b1b; }

/* Confirmación de pedido */
.order-card { border: 1px solid var(--border); border-radius: var(--radius); background: #fff; overflow: hidden; }
.order-card__head {
  padding: 24px;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.order-card__body { padding: 8px 24px; }
.order-line { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.order-line:last-child { border-bottom: none; }
.order-line__name { font-weight: 600; }
.order-line__meta { color: var(--muted); font-size: 13px; }
.order-totals { padding: 16px 24px 24px; border-top: 1px solid var(--border); }

/* Spinner de carga */
.loader { display: grid; place-items: center; padding: 80px 0; }
.spinner {
  width: 40px; height: 40px; border-radius: 50%;
  border: 4px solid var(--primary-soft); border-top-color: var(--primary);
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Utilidades */
.mt-0 { margin-top: 0 !important; }
.center { text-align: center; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.hero__panel .btn-outline:hover { color: #fff; border-color: #fff; }

/* Menú móvil */
.mobile-nav { border-top: 1px solid var(--border); background: #fff; }
.mobile-nav a {
  display: block;
  padding: 14px 24px;
  border-bottom: 1px solid var(--border);
  font-weight: 500;
  color: #334155;
}
.mobile-nav a:hover { background: var(--bg-soft); color: var(--primary); }

@media (max-width: 640px) {
  .form-grid { grid-template-columns: 1fr; }
}
