:root {
  --bg: #0a1018;
  --surface: #101a28;
  --surface-2: #16222f;
  --border: #24333f;
  --text: #eef4fb;
  --muted: #9db0c6;
  --ember: #2563eb;
  --ember-dark: #1d4ed8;
  --ember-soft: rgba(37, 99, 235, 0.14);
  --success: #22c55e;
  --danger: #ef4444;
  --whatsapp: #25d366;
  --whatsapp-dark: #128c7e;
  --whatsapp-deep: #075e54;
  --radius: 14px;
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.55;
}

a {
  color: var(--ember);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

code {
  font-family: Consolas, "Courier New", monospace;
  background: var(--surface-2);
  padding: 0.1rem 0.35rem;
  border-radius: 6px;
}

h1,
h2,
h3 {
  line-height: 1.2;
  margin: 0 0 0.5rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(10, 16, 24, 0.88);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.site-header__inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0.7rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.brand:hover {
  text-decoration: none;
}

.brand__mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: linear-gradient(140deg, var(--ember), var(--ember-dark));
  color: #ffffff;
  font-weight: 800;
}

img.brand__mark {
  display: block;
  background: transparent;
  object-fit: contain;
}

/* Logo del negocio: marco claro para que resalte sobre el header oscuro. */
.brand__logo {
  display: inline-block;
  padding: 6px 8px;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
  line-height: 0;
}

.brand__logo img {
  display: block;
  height: 54px;
  width: auto;
  max-width: 240px;
  object-fit: contain;
}

/* Logo claro (trazo blanco): recuadro oscuro para que se vea. */
.brand__logo--oscuro {
  background: #0b1220;
  box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.25), 0 6px 16px rgba(0, 0, 0, 0.25);
}

@media (max-width: 600px) {
  .brand__logo {
    padding: 5px 7px;
  }

  .brand__logo img {
    height: 42px;
    max-width: 180px;
  }
}

/* Escritorio: mas ancho util, logo y carrito bien alineados. */
@media (min-width: 601px) {
  html {
    scroll-padding-top: 96px;
  }

  .site-header__inner {
    padding: 0.8rem 1.6rem;
  }

  .brand {
    gap: 0.8rem;
  }

  .brand__text {
    font-size: 1.1rem;
  }

  .brand__logo img {
    height: 60px;
    max-width: 260px;
  }

  .items {
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  }

  .layout .cart {
    top: 96px;
  }
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  font-size: 0.95rem;
}

.site-nav a {
  color: var(--muted);
}

.site-nav a:hover {
  color: var(--text);
  text-decoration: none;
}

.site-nav__phone {
  color: var(--text) !important;
  font-weight: 600;
}

.hero {
  background:
    radial-gradient(900px 400px at 15% 0%, rgba(37, 99, 235, 0.22), transparent 60%),
    radial-gradient(700px 380px at 85% 20%, rgba(194, 65, 12, 0.18), transparent 65%);
  border-bottom: 1px solid var(--border);
}

.hero__content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 3.5rem 1.25rem 3rem;
}

.hero__kicker {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.75rem;
  color: var(--ember);
  margin: 0 0 0.6rem;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  margin-bottom: 0.7rem;
}

.hero__lead {
  max-width: 620px;
  color: var(--muted);
  font-size: 1.05rem;
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.6rem;
  color: var(--muted);
  font-size: 0.92rem;
  margin: 1rem 0 1.6rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 0.6rem 1.05rem;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.08s ease, background 0.15s ease, border-color 0.15s ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn--primary {
  background: linear-gradient(140deg, var(--ember), var(--ember-dark));
  color: #ffffff;
}

.btn--primary:hover {
  filter: brightness(1.07);
  text-decoration: none;
}

.btn--primary:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  filter: none;
}

.btn--block {
  width: 100%;
}

.btn__icon {
  width: 1.15em;
  height: 1.15em;
  flex: none;
  fill: currentColor;
}

.btn--whatsapp {
  background: linear-gradient(140deg, var(--whatsapp), var(--whatsapp-dark));
  border-color: var(--whatsapp-deep);
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(37, 211, 102, 0.28);
}

.btn--whatsapp:hover {
  background: linear-gradient(140deg, var(--whatsapp-dark), var(--whatsapp-deep));
  filter: none;
  text-decoration: none;
  box-shadow: 0 12px 28px rgba(37, 211, 102, 0.38);
}

.btn--whatsapp:active {
  transform: translateY(1px);
}

.hero__actions .btn--whatsapp {
  font-size: 1.02rem;
  padding: 0.7rem 1.25rem;
}

.btn--sm {
  padding: 0.35rem 0.7rem;
  font-size: 0.85rem;
}

.btn--ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}

.btn--ghost:hover {
  border-color: var(--ember);
  color: var(--ember);
  text-decoration: none;
}

.btn--google {
  background: #ffffff;
  border-color: #dadce0;
  color: #3c4043;
  font-weight: 500;
}

.btn--google:hover {
  background: #f8f9fa;
  border-color: #dadce0;
  color: #202124;
  text-decoration: none;
}

.btn--danger {
  background: rgba(239, 68, 68, 0.14);
  border-color: rgba(239, 68, 68, 0.4);
  color: #fca5a5;
}

.btn--add {
  background: var(--ember-soft);
  border-color: rgba(37, 99, 235, 0.35);
  color: var(--ember);
  white-space: nowrap;
}

.btn--add:hover {
  background: rgba(37, 99, 235, 0.22);
}

.layout {
  max-width: 1400px;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 4rem;
  display: grid;
  grid-template-columns: minmax(0, 2.4fr) minmax(340px, 1fr);
  gap: 2rem;
  align-items: start;
}

.category {
  margin-bottom: 2.4rem;
}

.category__cover {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 1;
  max-height: 190px;
  object-fit: contain;
  background: var(--surface-2);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  margin-bottom: 0.9rem;
}

.category__header {
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.6rem;
  margin-bottom: 1rem;
}

.category__header h2 {
  font-size: 1.35rem;
  position: relative;
  padding-left: 0.8rem;
}

.category__header h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.12em;
  bottom: 0.12em;
  width: 4px;
  border-radius: 4px;
  background: linear-gradient(var(--ember), var(--ember-dark));
}

.category__header p {
  color: var(--muted);
  margin: 0;
  font-size: 0.92rem;
}

.items {
  display: grid;
  gap: 0.75rem;
}

.item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.95rem 1.1rem;
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.item:hover {
  border-color: rgba(37, 99, 235, 0.45);
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.25);
}

.item__thumb {
  flex: 0 0 auto;
  width: 72px;
  height: 72px;
  border-radius: 12px;
  border: 1px solid var(--border);
  object-fit: cover;
}

.item__info {
  flex: 1;
}

.item__info h3 {
  font-size: 1.02rem;
  margin-bottom: 0.15rem;
}

.item__info p {
  color: var(--muted);
  font-size: 0.88rem;
  margin: 0 0 0.35rem;
}

.item__price {
  color: var(--ember);
  font-weight: 700;
}

.cart {
  position: sticky;
  top: 84px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.2rem;
  box-shadow: var(--shadow);
}

.cart__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.9rem;
}

.cart__count {
  background: var(--ember-soft);
  color: var(--ember);
  border-radius: 999px;
  padding: 0.15rem 0.6rem;
  font-size: 0.85rem;
  font-weight: 700;
}

.cart__items {
  display: grid;
  gap: 0.6rem;
  max-height: 300px;
  overflow-y: auto;
  margin-bottom: 1rem;
}

.cart__empty {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0;
}

.cart-line {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--surface-2);
  border-radius: 10px;
  padding: 0.55rem 0.7rem;
}

.cart-line__name {
  flex: 1;
  font-size: 0.9rem;
}

.cart-line__price {
  color: var(--muted);
  font-size: 0.82rem;
  display: block;
}

.qty {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.qty button {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  cursor: pointer;
  font-weight: 700;
}

.qty button:hover {
  border-color: var(--ember);
  color: var(--ember);
}

.qty span {
  min-width: 18px;
  text-align: center;
  font-size: 0.9rem;
}

.cart__totals {
  border-top: 1px solid var(--border);
  padding-top: 0.8rem;
  margin-bottom: 1rem;
}

.cart__totals .row {
  display: flex;
  justify-content: space-between;
  font-size: 0.92rem;
  color: var(--muted);
  padding: 0.15rem 0;
}

.cart__totals .row--total {
  color: var(--text);
  font-size: 1.08rem;
  padding-top: 0.45rem;
}

.cart__form {
  display: grid;
  gap: 0.7rem;
}

.cart__form label {
  display: grid;
  gap: 0.25rem;
  font-size: 0.85rem;
  color: var(--muted);
}

input,
select,
textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 9px;
  color: var(--text);
  padding: 0.55rem 0.65rem;
  font: inherit;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--ember);
}

.cart__errors {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #fca5a5;
  border-radius: 9px;
  padding: 0.6rem 0.75rem;
  font-size: 0.86rem;
}

.cart__errors ul {
  margin: 0;
  padding-left: 1.1rem;
}

.cart__note {
  color: var(--muted);
  font-size: 0.78rem;
  margin: 0;
  text-align: center;
}

.empty {
  color: var(--muted);
}

.confirm {
  max-width: 780px;
  margin: 0 auto;
  padding: 3rem 1.25rem 4rem;
}

.confirm__card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
}

.confirm__kicker {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.72rem;
  color: var(--ember);
  margin: 0 0 0.4rem;
}

.confirm__code {
  font-size: 1.05rem;
}

.confirm__status {
  color: var(--muted);
}

.confirm__meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.6rem 1.4rem;
  margin: 1.4rem 0;
}

.confirm__meta dt {
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.confirm__meta dd {
  margin: 0.1rem 0 0;
}

.confirm__table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.2rem;
  font-size: 0.93rem;
}

.confirm__table th,
.confirm__table td {
  text-align: left;
  padding: 0.5rem 0.4rem;
  border-bottom: 1px solid var(--border);
}

.confirm__table tfoot td {
  border-bottom: none;
  border-top: 1px solid var(--border);
  padding-top: 0.6rem;
}

.confirm__table .total td {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--ember);
}

.confirm__notes {
  color: var(--muted);
  font-size: 0.9rem;
}

.confirm__prod {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.confirm__thumb {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  border: 1px solid var(--border);
  object-fit: cover;
}

.confirm__card--error h1 {
  color: var(--danger);
}

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
}

.site-footer__inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem 1.25rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.2rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.site-footer__inner strong {
  color: var(--text);
}

.site-footer__inner p {
  margin: 0.2rem 0;
}

.site-footer__col h4 {
  margin: 0 0 0.5rem;
  color: var(--text);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.site-footer__marca {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.4rem;
}

.site-footer__marca strong {
  color: var(--text);
  font-size: 1.05rem;
}

.site-footer__tagline {
  color: var(--muted);
}

.site-footer__lista {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.35rem;
}

.site-footer__wa {
  display: inline-block;
  margin-top: 0.3rem;
  color: var(--whatsapp-dark, #128c7e);
  font-weight: 700;
}

.site-footer__pagos {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.3rem;
}

.site-footer__pago {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.2rem 0.6rem;
  font-size: 0.8rem;
  color: var(--muted);
}

.site-footer__mark {
  vertical-align: middle;
  margin-right: 0.35rem;
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.9rem;
}

.site-footer__legal {
  text-align: center;
  color: var(--muted);
  font-size: 0.8rem;
  padding: 0 1.25rem 1.5rem;
  margin: 0;
}

.site-footer__logo {
  height: 40px;
  width: auto;
  max-width: 130px;
  object-fit: contain;
  vertical-align: middle;
  border-radius: 8px;
  background: #ffffff;
  padding: 3px;
}

.site-footer__promo {
  display: inline-block;
  margin-top: 0.5rem;
  color: var(--muted);
}

.site-footer__promo a {
  color: var(--azul, #2563eb);
  font-weight: 600;
}

.flash {
  border-radius: 10px;
  padding: 0.7rem 0.9rem;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.flash-success {
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.4);
  color: #86efac;
}

.flash-error {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #fca5a5;
}

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

  .cart {
    position: static;
  }
}

/* --- Paginas de codigos QR --- */

.qr-page {
  max-width: 900px;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 4rem;
}

.qr-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
}

.qr-card__kicker {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.72rem;
  color: var(--ember);
  margin: 0 0 0.4rem;
}

.qr-card__head h1 {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
}

.qr-card__desc {
  color: var(--muted);
  max-width: 560px;
  margin: 0.4rem 0 0;
}

.qr-card__media {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin: 1.8rem 0;
}

.qr-card__code {
  background: #fff;
  border-radius: 16px;
  padding: 0.9rem;
  line-height: 0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.qr-card__code img {
  width: 280px;
  height: 280px;
}

.qr-card__image img {
  max-width: 320px;
  max-height: 320px;
  border-radius: 14px;
  border: 1px solid var(--border);
  object-fit: cover;
}

.qr-card__actions {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-bottom: 1.4rem;
}

.qr-card__meta {
  display: grid;
  gap: 0.7rem;
  border-top: 1px solid var(--border);
  padding-top: 1rem;
  margin: 0;
}

.qr-card__meta dt {
  color: var(--muted);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.qr-card__meta dd {
  margin: 0.15rem 0 0;
  word-break: break-all;
}

.qr-index {
  max-width: 1000px;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 4rem;
}

.qr-index__lead {
  color: var(--muted);
}

.qr-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.qr-tile {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 0.35rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem;
  color: var(--text);
}

.qr-tile:hover {
  border-color: var(--ember);
  text-decoration: none;
}

.qr-tile img {
  background: #fff;
  border-radius: 10px;
  padding: 0.4rem;
}

.qr-tile span {
  color: var(--muted);
  font-size: 0.84rem;
}

.cart__form .checkbox {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: var(--muted);
}

.cart__form .checkbox input {
  width: auto;
  margin: 0;
}

@media (max-width: 640px) {
  .qr-card {
    padding: 1.3rem;
  }

  .qr-card__code img {
    width: 220px;
    height: 220px;
  }

  .qr-card__image img {
    max-width: 100%;
  }
}

/* linea del carrito con opciones */
.cart-line__mods { display: block; font-size: .78rem; color: var(--ember); }

/* selector de opciones (modificadores) */
.chooser {
  position: fixed; inset: 0; z-index: 60; background: rgba(4, 8, 16, .72);
  display: flex; align-items: flex-end; justify-content: center; padding: 1rem;
}
.chooser[hidden] { display: none; }
.chooser__box {
  width: 100%; max-width: 460px; max-height: 88vh; overflow: auto;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  display: flex; flex-direction: column;
}
.chooser__head { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.1rem; border-bottom: 1px solid var(--border); }
.chooser__titulo { margin: 0; font-size: 1.1rem; }
.chooser__cerrar { background: none; border: 0; color: var(--muted); font-size: 1.2rem; cursor: pointer; }
.chooser__grupos { padding: .9rem 1.1rem; display: grid; gap: 1rem; }
.chooser__grupo { display: grid; gap: .35rem; }
.chooser__grupo-titulo { margin: 0; font-weight: 700; }
.chooser__req { color: var(--ember); font-size: .72rem; font-weight: 600; text-transform: uppercase; }
.chooser__ayuda { margin: 0; font-size: .82rem; color: var(--muted); }
.chooser__opcion { display: flex; align-items: center; gap: .55rem; padding: .5rem .6rem; border: 1px solid var(--border); border-radius: 10px; cursor: pointer; }
.chooser__opcion input { accent-color: var(--ember); }
.chooser__precio { margin-left: auto; color: var(--ember); font-style: normal; font-size: .85rem; }
.chooser__foot { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.1rem; border-top: 1px solid var(--border); }
.chooser__total { font-weight: 800; font-size: 1.1rem; }

@media (min-width: 640px) {
  .chooser { align-items: center; }
}

/* Seccion para instalar la app (PWA) en el menu publico. */
.app-install { padding: 1.1rem 1.25rem 0; }
.app-install[hidden] { display: none; }
.app-install__inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: linear-gradient(140deg, var(--ember-soft), transparent);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem 1.25rem;
}
.app-install__text h2 { font-size: 1.15rem; margin-bottom: 0.2rem; }
.app-install__text p { margin: 0.15rem 0; color: var(--muted); max-width: 46ch; }
.app-install__hint { color: var(--text) !important; }
.app-install__hint[hidden] { display: none; }
.app-install .btn { flex: 0 0 auto; }

/* Plantilla "Perfil": ficha del negocio + equipo (negocios de servicios). */
.tpl--perfil .site-header { position: static; }
.perfil {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2.2rem 1.25rem 0.5rem;
}
.perfil__card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.4rem;
  background: linear-gradient(140deg, var(--ember-soft), transparent 60%), var(--surface);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 6px);
  padding: 1.6rem;
}
.perfil__avatar {
  flex: 0 0 auto;
  width: 104px;
  height: 104px;
  border-radius: 50%;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: var(--surface-2);
  border: 2px solid var(--ember);
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--ember);
}
.perfil__avatar img { width: 100%; height: 100%; object-fit: contain; padding: 14px; }
.perfil__avatar--oscuro { background: #0b1220; }
.perfil__body { flex: 1 1 320px; min-width: 0; }
.perfil__kicker {
  margin: 0 0 0.25rem;
  color: var(--ember);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.78rem;
}
.perfil__body h1 { margin: 0 0 0.3rem; font-size: clamp(1.6rem, 4vw, 2.3rem); }
.perfil__lead { margin: 0 0 0.8rem; color: var(--muted); }
.perfil__datos { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; gap: 0.3rem; }
.perfil__datos li { display: flex; gap: 0.6rem; align-items: baseline; }
.perfil__datos strong {
  min-width: 84px;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.perfil__datos a { color: var(--text); }
.perfil__acciones { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.perfil__equipo { margin-top: 1.8rem; }
.perfil__equipo h2 { font-size: 1.15rem; }
.perfil__staff {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 0.8rem;
}
.perfil__persona {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.7rem 0.8rem;
}
.perfil__inicial {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 800;
  flex: 0 0 auto;
  overflow: hidden;
}
.perfil__foto { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.perfil__persona-info { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.perfil__persona-info strong { font-size: 0.95rem; }
.tpl--perfil .layout { max-width: 1100px; }

/* Plantilla "Catalogo": productos en tarjetas tipo tienda. */
.tpl--catalogo .items {
  grid-template-columns: repeat(auto-fill, minmax(185px, 1fr));
  gap: 0.9rem;
}
.tpl--catalogo .item {
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 0;
  padding: 0;
  overflow: hidden;
}
.tpl--catalogo .item__thumb {
  width: 100%;
  height: 150px;
  border: 0;
  border-bottom: 1px solid var(--border);
  border-radius: 0;
}
.tpl--catalogo .item__info {
  padding: 0.8rem 0.9rem 0.2rem;
}
.tpl--catalogo .item__info h3 {
  font-size: 0.98rem;
}
.tpl--catalogo .btn--add {
  display: block;
  width: calc(100% - 1.8rem);
  margin: 0.6rem 0.9rem 0.9rem;
  text-align: center;
}

/* Catalogo solo consulta (mayoreo B2B): se ve el catalogo sin carrito ni
   botones de compra; cada producto ofrece "Consultar". El catalogo ocupa todo
   el ancho al no haber columna de pedido. */
.modo-consulta .layout {
  grid-template-columns: minmax(0, 1fr);
  max-width: 1200px;
}
.btn--consultar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: 1px solid var(--ember);
  background: var(--ember-soft, rgba(0, 0, 0, 0.05));
  color: var(--ember);
  font-weight: 600;
  border-radius: var(--radius);
  padding: 0.5rem 1rem;
  cursor: pointer;
  text-decoration: none;
}
.btn--consultar:hover,
.btn--consultar:focus-visible {
  background: var(--ember);
  color: #fff;
}
.tpl--catalogo .btn--consultar {
  display: block;
  width: calc(100% - 1.8rem);
  margin: 0.6rem 0.9rem 0.9rem;
  text-align: center;
}

/* Tarjeta del asesor comercial (vendedor) en la pagina publica. */
.asesora {
  max-width: 1200px;
  margin: 18px auto 4px;
  padding: 0 1.25rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
}
.asesora__foto {
  flex: 0 0 auto;
  width: 108px;
  height: 108px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--surface-2);
  border: 3px solid var(--ember);
  display: flex;
  align-items: center;
  justify-content: center;
}
.asesora__foto img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}
.asesora__foto span {
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--ember);
}
.asesora__body {
  min-width: 0;
}
.asesora__kicker {
  margin: 0 0 2px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ember);
}
.asesora__nombre {
  margin: 0;
  font-size: 1.35rem;
}
.asesora__cargo {
  margin: 2px 0 0;
  font-weight: 600;
  color: var(--text-muted, #667085);
}
.asesora__lead {
  margin: 6px 0 10px;
  color: var(--text-muted, #475467);
}
.asesora__acciones {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
@media (max-width: 620px) {
  .asesora {
    flex-direction: column;
    text-align: center;
    gap: 0.75rem;
  }
  .asesora__acciones {
    justify-content: center;
  }
}

/* Plantilla "Citas": agenda y horarios mas prominentes. */
.tpl--citas .cart {
  border-color: rgba(37, 99, 235, 0.5);
}
.tpl--citas .cita-slots {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.7rem;
}
.tpl--citas .cita-slots .slot {
  padding: 10px 16px;
  font-size: 15px;
}
.item__dur {
  color: var(--muted);
  font-size: 0.8rem;
  margin-left: 0.5rem;
}
.tpl--citas .item__dur {
  color: var(--ember);
  font-weight: 600;
}

/* Compra minima por producto (mayoreo). */
.item__min {
  display: inline-block;
  color: var(--ember);
  font-size: 0.78rem;
  font-weight: 700;
  margin-left: 0.5rem;
  background: var(--ember-soft);
  border-radius: 999px;
  padding: 2px 8px;
}
.cart-line__min {
  display: block;
  font-size: 0.72rem;
  color: var(--ember);
  font-weight: 600;
}

/* Formulario de solicitud de visita comercial (mayoreo). */
.visita { max-width: 720px; margin: 20px auto 40px; padding: 0 16px; }
.visita__box {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface-2);
  padding: 18px;
}
.visita__form { display: grid; gap: 12px; }
.visita__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; }

/* Banner de promocion del negocio (Ajustes > banner). */
.promo-banner { padding: 0 1.25rem; margin: 1rem 0 0; }
.promo-banner__inner {
  display: block;
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--ember);
  text-decoration: none;
}
.promo-banner__img { display: block; width: 100%; max-height: 260px; object-fit: cover; }
.promo-banner__text { display: block; padding: 0.9rem 1.1rem; font-weight: 700; color: #fff; }
.promo-banner__img + .promo-banner__text {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
}

/* Modos de vista del catalogo (Ajustes > Vista del catalogo). Van despues de
   las reglas de plantilla para poder sobrescribirlas. */
.vista--cuadricula .items {
  grid-template-columns: repeat(auto-fill, minmax(185px, 1fr));
  gap: 0.9rem;
}
.vista--cuadricula .item {
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 0;
  padding: 0;
  overflow: hidden;
}
.vista--cuadricula .item__thumb {
  width: 100%;
  height: 150px;
  border: 0;
  border-bottom: 1px solid var(--border);
  border-radius: 0;
}
.vista--cuadricula .item__info { padding: 0.8rem 0.9rem 0.2rem; }
.vista--cuadricula .btn--add {
  display: block;
  width: calc(100% - 1.8rem);
  margin: 0.6rem 0.9rem 0.9rem;
  text-align: center;
}

.vista--instaview .items {
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 0.5rem;
}
.vista--instaview .item {
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  padding: 0;
  overflow: hidden;
  position: relative;
}
.vista--instaview .item__thumb {
  width: 100%;
  aspect-ratio: 1 / 1;
  height: auto;
  border: 0;
  border-radius: 0;
}
.vista--instaview .item__info {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0.55rem 0.6rem;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.78));
}
.vista--instaview .item__info h3 { color: #fff; font-size: 0.9rem; }
.vista--instaview .item__info p { display: none; }
.vista--instaview .item__price { color: #fff; font-weight: 700; }
.vista--instaview .item__dur { color: #fff; opacity: 0.9; }
.vista--instaview .btn--add { position: absolute; top: 0.5rem; right: 0.5rem; padding: 0.3rem 0.6rem; }

/* Venta a granel: cantidad decimal en el carrito y precio por unidad. */
.qty__input {
  width: 68px;
  padding: 0.3rem 0.4rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
}
.qty__unit { font-size: 0.78rem; color: var(--muted); margin-left: 0.25rem; }
.item__price small { font-weight: 600; color: var(--muted); font-size: 0.8rem; }

/* Opciones rapidas de granel en el carrito (1/4, 1/2, 1 kg...). */
.qty__rapidos { display: flex; flex-wrap: wrap; gap: 0.25rem; margin-top: 0.35rem; }
.qty__rapido {
  font-size: 0.72rem;
  line-height: 1;
  padding: 0.3rem 0.45rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface-2, var(--surface));
  color: var(--text);
  cursor: pointer;
}
.qty__rapido:hover { border-color: var(--brand, #16a34a); color: var(--brand, #16a34a); }

/* Selector de variantes en el catalogo publico. */
.item__variante { margin-top: 0.4rem; width: 100%; padding: 0.35rem 0.5rem; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); color: var(--text); }

/* --------------------------------------------------------------------------
   Fase 5 (docs/32): plantillas visuales del menu publico. Se activan con la
   clase .theme--<nombre> en <body> (ajuste "Plantilla visual del menu").
   -------------------------------------------------------------------------- */
.theme--elegante {
  --bg: #fffdf7; --surface: #ffffff; --surface-2: #faf6ec; --border: #e7dfcd;
  --text: #26201a; --muted: #8a7f6c; --ember: #a16207; --ember-dark: #854d0e;
  --ember-soft: rgba(161, 98, 7, 0.14); --radius: 6px;
}
.theme--elegante .hero { background: radial-gradient(circle at 20% 20%, rgba(161, 98, 7, 0.18), transparent 42%); }
.theme--moderno {
  --bg: #f8fafc; --surface: #ffffff; --surface-2: #f1f5f9; --border: #e2e8f0;
  --text: #0f172a; --muted: #64748b; --ember: #0ea5e9; --ember-dark: #0284c7;
  --ember-soft: rgba(14, 165, 233, 0.14); --radius: 18px;
}
.theme--moderno .hero { background: radial-gradient(circle at 80% 10%, rgba(14, 165, 233, 0.22), transparent 45%); }
.theme--oscuro {
  --bg: #0b0b0b; --surface: #161616; --surface-2: #202020; --border: #2e2e2e;
  --text: #f5f5f5; --muted: #a3a3a3; --ember: #f59e0b; --ember-dark: #d97706;
  --ember-soft: rgba(245, 158, 11, 0.16); --radius: 10px;
}
.theme--oscuro .hero { background: radial-gradient(circle at 30% 10%, rgba(245, 158, 11, 0.2), transparent 45%); }

/* --------------------------------------------------------------------------
   Plantillas para giros de citas / barbería / estética (docs/33). Cada una
   sobreescribe las variables de color y el radio, y añade algunos detalles.
   Se activan con la clase .theme--<nombre> en <body>.
   -------------------------------------------------------------------------- */

/* Barber Dark: barbería premium urbana (inspirado en Scalper Studio). */
.theme--barber {
  --bg: #0c0c0d; --surface: #151517; --surface-2: #1d1d20; --border: #2c2c31;
  --text: #f4f4f5; --muted: #a1a1aa; --ember: #c9a227; --ember-dark: #a17f10;
  --ember-soft: rgba(201, 162, 39, 0.16); --radius: 4px;
}
.theme--barber .hero { background: radial-gradient(circle at 25% 10%, rgba(201, 162, 39, 0.18), transparent 45%); }
.theme--barber h1, .theme--barber h2, .theme--barber .hero h1 { font-family: "Oswald", "Arial Narrow", sans-serif; text-transform: uppercase; letter-spacing: 0.05em; }
.theme--barber .sitio-galeria__item, .theme--barber .btn { border-radius: 3px; }
.theme--barber .cta-flotante { text-transform: uppercase; letter-spacing: 0.08em; color: #0c0c0d; }

/* Luxury Editorial: lujo, tipografía serif y aire (inspirado en Homme). */
.theme--luxury {
  --bg: #faf7f1; --surface: #ffffff; --surface-2: #f3ede2; --border: #e4dccb;
  --text: #1c1a17; --muted: #8b8271; --ember: #8c6b2f; --ember-dark: #6f5320;
  --ember-soft: rgba(140, 107, 47, 0.14); --radius: 2px;
}
.theme--luxury .hero { background: linear-gradient(180deg, var(--surface-2), var(--bg)); }
.theme--luxury h1, .theme--luxury h2, .theme--luxury .hero h1 { font-family: "Playfair Display", Georgia, "Times New Roman", serif; font-weight: 600; }
.theme--luxury .btn, .theme--luxury .cta-flotante { border-radius: 0; text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.8rem; }
.theme--luxury .sitio-testimonio { background: transparent; border: 0; border-left: 2px solid var(--ember); border-radius: 0; }

/* Beauty Soft: estética / salón (rosa suave, esquinas redondeadas). */
.theme--beauty {
  --bg: #fdf7f6; --surface: #ffffff; --surface-2: #fbeef0; --border: #f0dade;
  --text: #3a2b30; --muted: #9c8088; --ember: #d6688a; --ember-dark: #b74f70;
  --ember-soft: rgba(214, 104, 138, 0.14); --radius: 22px;
}
.theme--beauty .hero { background: radial-gradient(circle at 80% 20%, rgba(214, 104, 138, 0.16), transparent 50%); }
.theme--beauty .sitio-galeria__item { border-radius: 20px; }
.theme--beauty .btn, .theme--beauty .cta-flotante { border-radius: 999px; }

/* Friendly Yellow: barbería familiar (inspirado en Mr Yellow). */
.theme--amarillo {
  --bg: #fffef5; --surface: #ffffff; --surface-2: #fff8d6; --border: #f0e4a8;
  --text: #1f1b05; --muted: #8a7d3f; --ember: #f5c400; --ember-dark: #d9ab00;
  --ember-soft: rgba(245, 196, 0, 0.20); --radius: 16px;
}
.theme--amarillo .hero { background: radial-gradient(circle at 15% 15%, rgba(245, 196, 0, 0.35), transparent 45%); }
.theme--amarillo .btn--primary, .theme--amarillo .cta-flotante { color: #1f1b05; font-weight: 800; }

/* Citas Clean: consultorio / clínica (minimal, teal). */
.theme--clinica {
  --bg: #f6f9fb; --surface: #ffffff; --surface-2: #eef4f7; --border: #dde7ec;
  --text: #122630; --muted: #5f7883; --ember: #0f7c8c; --ember-dark: #0b626f;
  --ember-soft: rgba(15, 124, 140, 0.12); --radius: 12px;
}
.theme--clinica .hero { background: linear-gradient(180deg, #eaf4f7, #f6f9fb); }

/* Nails & Spa: uñas / spa (lila, serif y curvas). */
.theme--nails {
  --bg: #fbf6fb; --surface: #ffffff; --surface-2: #f6ecf7; --border: #ecdcef;
  --text: #33223a; --muted: #8a7391; --ember: #a855f7; --ember-dark: #8b3fd6;
  --ember-soft: rgba(168, 85, 247, 0.14); --radius: 24px;
}
.theme--nails .hero { background: radial-gradient(circle at 20% 20%, rgba(168, 85, 247, 0.16), transparent 50%); }
.theme--nails h1, .theme--nails h2, .theme--nails .hero h1 { font-family: "Playfair Display", Georgia, "Times New Roman", serif; }
.theme--nails .sitio-galeria__item { border-radius: 22px; }

/* --------------------------------------------------------------------------
   Plantillas para RESTAURANTES / comida (docs/38). Colores inspirados en
   menus y sitios de comida reales.
   -------------------------------------------------------------------------- */

/* Food Night: restaurante casual vibrante (oscuro + rojo/naranja). */
.theme--food {
  --bg: #12100f; --surface: #1c1917; --surface-2: #262220; --border: #332e2b;
  --text: #faf7f4; --muted: #b3a79e; --ember: #ff4d2e; --ember-dark: #e03a1d;
  --ember-soft: rgba(255, 77, 46, 0.16); --radius: 14px;
}
.theme--food .hero { background: radial-gradient(circle at 25% 10%, rgba(255, 77, 46, 0.22), transparent 48%); }
.theme--food h1, .theme--food h2 { text-transform: uppercase; letter-spacing: 0.02em; }

/* Brunch Café: cálido, artesanal (crema + marrón + serif). */
.theme--brunch {
  --bg: #fdf8f1; --surface: #ffffff; --surface-2: #f6ebdc; --border: #e8d9c5;
  --text: #3b2f24; --muted: #9a8672; --ember: #b5651d; --ember-dark: #94501a;
  --ember-soft: rgba(181, 101, 29, 0.14); --radius: 14px;
}
.theme--brunch .hero { background: linear-gradient(180deg, var(--surface-2), var(--bg)); }
.theme--brunch h1, .theme--brunch h2, .theme--brunch .hero h1 { font-family: "Playfair Display", Georgia, "Times New Roman", serif; }

/* Fresh Verde: comida saludable (blanco + verde, limpio). */
.theme--saludable {
  --bg: #f7fbf5; --surface: #ffffff; --surface-2: #eaf5e6; --border: #d6e8cf;
  --text: #1f2e1a; --muted: #5f7a54; --ember: #3f9142; --ember-dark: #2f7232;
  --ember-soft: rgba(63, 145, 66, 0.14); --radius: 18px;
}
.theme--saludable .hero { background: radial-gradient(circle at 80% 15%, rgba(63, 145, 66, 0.16), transparent 50%); }

/* Fine Dining: alta cocina (negro + dorado, serif, mucho aire). */
.theme--fina {
  --bg: #0e0d0b; --surface: #171512; --surface-2: #211e19; --border: #332e26;
  --text: #f3ecdf; --muted: #a99e8a; --ember: #c8a24a; --ember-dark: #a9863a;
  --ember-soft: rgba(200, 162, 74, 0.16); --radius: 2px;
}
.theme--fina .hero { background: radial-gradient(circle at 30% 10%, rgba(200, 162, 74, 0.16), transparent 48%); }
.theme--fina h1, .theme--fina h2, .theme--fina .hero h1 { font-family: "Playfair Display", Georgia, "Times New Roman", serif; font-weight: 500; letter-spacing: 0.02em; }
.theme--fina .btn { border-radius: 0; text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.8rem; }

/* Pizzería: italiano (crema + rojo). */
.theme--pizzeria {
  --bg: #fffaf2; --surface: #ffffff; --surface-2: #fdeee0; --border: #f0d9c2;
  --text: #33231a; --muted: #9c8371; --ember: #c0392b; --ember-dark: #9d2f23;
  --ember-soft: rgba(192, 57, 43, 0.14); --radius: 16px;
}
.theme--pizzeria .hero { background: radial-gradient(circle at 20% 15%, rgba(192, 57, 43, 0.16), transparent 48%); }
.theme--pizzeria h1, .theme--pizzeria h2 { text-transform: uppercase; letter-spacing: 0.02em; }

/* Sushi / Asiático: oscuro minimalista (negro + rojo). */
.theme--sushi {
  --bg: #0b0b0c; --surface: #151517; --surface-2: #1e1e21; --border: #2b2b2f;
  --text: #f5f5f4; --muted: #a1a1a6; --ember: #e0322f; --ember-dark: #b82623;
  --ember-soft: rgba(224, 50, 47, 0.16); --radius: 6px;
}
.theme--sushi .hero { background: radial-gradient(circle at 75% 10%, rgba(224, 50, 47, 0.18), transparent 48%); }

/* --------------------------------------------------------------------------
   Plantillas para SUPERMERCADO / ABARROTES (docs/39). Aplican tanto a la
   plantilla Súper como a Menú/Catálogo (colorean el encabezado, precios, etc.).
   -------------------------------------------------------------------------- */

/* Mercado Verde: supermercado fresco (blanco + verde intenso). */
.theme--mercado {
  --bg: #f4faf3; --surface: #ffffff; --surface-2: #e7f3e4; --border: #cfe6c9;
  --text: #14261a; --muted: #4f6b54; --ember: #12903f; --ember-dark: #0d7331;
  --ember-soft: rgba(18, 144, 63, 0.14); --radius: 12px;
}
.theme--mercado .hero { background: radial-gradient(circle at 15% 15%, rgba(18, 144, 63, 0.16), transparent 48%); }

/* Abarrotes Rojo: tienda de descuento (blanco + rojo). */
.theme--abarrotes {
  --bg: #fff8f5; --surface: #ffffff; --surface-2: #ffe9e2; --border: #f6d0c4;
  --text: #2a1410; --muted: #8a6157; --ember: #e03127; --ember-dark: #bb2419;
  --ember-soft: rgba(224, 49, 39, 0.14); --radius: 12px;
}
.theme--abarrotes .hero { background: radial-gradient(circle at 20% 15%, rgba(224, 49, 39, 0.16), transparent 48%); }
.theme--abarrotes h1, .theme--abarrotes h2 { text-transform: uppercase; letter-spacing: 0.02em; }

/* Orgánico: natural (crema + verde oliva). */
.theme--organic {
  --bg: #faf8ef; --surface: #ffffff; --surface-2: #eef0dc; --border: #dfe3c8;
  --text: #2a2c18; --muted: #6d7050; --ember: #6b8e23; --ember-dark: #55711b;
  --ember-soft: rgba(107, 142, 35, 0.14); --radius: 14px;
}
.theme--organic .hero { background: linear-gradient(180deg, var(--surface-2), var(--bg)); }

/* Festivo: promos / fiestas (blanco + azul). */
.theme--festivo {
  --bg: #f5f9ff; --surface: #ffffff; --surface-2: #e6f0ff; --border: #cfe0f7;
  --text: #101d33; --muted: #4f6480; --ember: #1f6feb; --ember-dark: #155bc0;
  --ember-soft: rgba(31, 111, 235, 0.14); --radius: 16px;
}
.theme--festivo .hero { background: radial-gradient(circle at 80% 15%, rgba(31, 111, 235, 0.16), transparent 50%); }

/* Súper Naranja: ofertas (blanco + naranja). */
.theme--naranja {
  --bg: #fffdf7; --surface: #ffffff; --surface-2: #fff1d9; --border: #f7ddb0;
  --text: #2b1c07; --muted: #8a7040; --ember: #f5871f; --ember-dark: #d16f10;
  --ember-soft: rgba(245, 135, 31, 0.16); --radius: 12px;
}
.theme--naranja .hero { background: radial-gradient(circle at 20% 15%, rgba(245, 135, 31, 0.20), transparent 48%); }

/* Gourmet: artesanal (beige + marrón, serif). */
.theme--gourmet {
  --bg: #faf6ee; --surface: #ffffff; --surface-2: #f1e8d8; --border: #e2d3ba;
  --text: #2b2118; --muted: #7c6a54; --ember: #8a5a2b; --ember-dark: #6f461f;
  --ember-soft: rgba(138, 90, 43, 0.14); --radius: 8px;
}
.theme--gourmet .hero { background: linear-gradient(180deg, var(--surface-2), var(--bg)); }
.theme--gourmet h1, .theme--gourmet h2 { font-family: "Playfair Display", Georgia, "Times New Roman", serif; }

/* Encabezado claro en los temas claros (texto oscuro legible). */
.theme--elegante .site-header, .theme--moderno .site-header, .theme--luxury .site-header,
.theme--beauty .site-header, .theme--amarillo .site-header, .theme--clinica .site-header,
.theme--nails .site-header, .theme--brunch .site-header, .theme--saludable .site-header,
.theme--pizzeria .site-header, .theme--mercado .site-header, .theme--abarrotes .site-header,
.theme--organic .site-header, .theme--festivo .site-header, .theme--naranja .site-header,
.theme--gourmet .site-header { background: rgba(255, 255, 255, 0.9); }

/* --------------------------------------------------------------------------
   Bloques opcionales de la pagina publica: Sobre nosotros, galeria,
   testimonios y CTA flotante "Agendar". Reutilizables por cualquier plantilla.
   -------------------------------------------------------------------------- */
.sitio-bloques { max-width: 1100px; margin: 2.5rem auto; padding: 0 1.25rem; display: grid; gap: 2.5rem; }
.sitio-bloque h2 { font-size: 1.5rem; margin-bottom: 0.75rem; }
.sitio-bloque--about p { color: var(--muted); max-width: 72ch; }
.sitio-galeria { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.sitio-galeria__item { display: block; aspect-ratio: 1 / 1; overflow: hidden; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface-2); }
.sitio-galeria__item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.3s ease; }
.sitio-galeria__item:hover img { transform: scale(1.05); }
.sitio-testimonios { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.sitio-testimonio { margin: 0; padding: 1.1rem 1.2rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.sitio-testimonio__stars { color: #f5b301; letter-spacing: 2px; font-size: 0.95rem; }
.sitio-testimonio p { margin: 0.5rem 0 0.6rem; }
.sitio-testimonio cite { color: var(--muted); font-style: normal; font-size: 0.9rem; }

/* Paquetes / combos. */
.sitio-paquetes { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; }
.sitio-paquete { padding: 1rem 1.15rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.sitio-paquete__head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.sitio-paquete__precio { color: var(--ember); font-style: normal; font-weight: 800; white-space: nowrap; }
.sitio-paquete p { margin: 0.4rem 0 0; color: var(--muted); font-size: 0.92rem; }

/* Equipo (profesionales con foto). */
.sitio-equipo { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 16px; }
.sitio-persona { margin: 0; text-align: center; }
.sitio-persona__foto { display: grid; place-items: center; width: 96px; height: 96px; margin: 0 auto 0.5rem; border-radius: 50%; overflow: hidden; color: #fff; font-weight: 800; font-size: 2rem; border: 2px solid var(--border); }
.sitio-persona__foto img { width: 100%; height: 100%; object-fit: cover; }
.sitio-persona figcaption strong { display: block; }
.sitio-persona figcaption small { font-size: 0.8rem; }

/* Sellos de prensa. */
.sitio-prensa { display: flex; flex-wrap: wrap; gap: 10px; }
.sitio-prensa__sello { padding: 0.5rem 1rem; border: 1px solid var(--border); border-radius: var(--radius); color: var(--muted); font-weight: 600; letter-spacing: 0.02em; background: var(--surface); }

/* CTA flotante (sobre todo en movil) para agendar o ver el menu. */
.cta-flotante { display: none; position: fixed; left: 50%; transform: translateX(-50%); bottom: 16px; z-index: 60; background: var(--ember); color: #fff; font-weight: 700; padding: 0.8rem 1.6rem; border-radius: 999px; box-shadow: var(--shadow); text-decoration: none; text-align: center; }
@media (max-width: 720px) { .cta-flotante { display: inline-block; } }


/* --------------------------------------------------------------------------
   Plantilla "Super": tienda tipo supermercado (Walmart / HEB). Se activa con
   la clase .tpl--super en <body> (Ajustes -> Plantilla = Súper). Buscador,
   departamentos, rejilla de productos con contador y carrito lateral tipo
   checkout. Reutiliza el mismo carrito/pedido (cart.js) que las demas.
   -------------------------------------------------------------------------- */
.tpl--super .hero { display: none; }
.tpl--super .promo-banner { display: none; }

/* Encabezado azul tipo supermercado: logo, buscador, cuenta y carrito. */
.super-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--ember);
  color: #fff;
  border-bottom: 1px solid rgba(0, 0, 0, 0.15);
}
.super-header__inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0.55rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.super-header__brand { display: inline-flex; align-items: center; color: #fff; flex: 0 0 auto; }
.super-header__brand:hover { text-decoration: none; }
.super-header__logo {
  background: #fff;
  border-radius: 12px;
  padding: 5px 7px;
  line-height: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}
.super-header__logo img { display: block; height: 46px; width: auto; max-width: 200px; object-fit: contain; }
.super-header__name { font-weight: 800; font-size: 1.15rem; color: #fff; }

.super-header__search {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: #fff;
  border-radius: 999px;
  padding: 0.55rem 1rem;
  min-width: 0;
  max-width: 640px;
}
.super-header__search-icon { width: 20px; height: 20px; color: #6b7280; flex: 0 0 auto; }
.super-header__search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #111827;
  font-size: 15px;
}
.super-header__actions { display: flex; align-items: center; gap: 0.9rem; flex: 0 0 auto; }
.super-header__cuenta { display: inline-flex; align-items: center; gap: 0.45rem; color: #fff; }
.super-header__cuenta:hover { text-decoration: none; }
.super-header__cuenta svg { width: 26px; height: 26px; }
.super-header__cuenta-txt { display: flex; flex-direction: column; line-height: 1.05; }
.super-header__cuenta-txt small { font-size: 0.72rem; opacity: 0.85; }
.super-header__cuenta-txt strong { font-size: 0.86rem; }
.super-header__cart {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff;
  border-radius: 999px;
  padding: 0.4rem 0.85rem;
  cursor: pointer;
  font-weight: 700;
}
.super-header__cart:hover { background: rgba(255, 255, 255, 0.3); }
.super-header__cart svg { width: 24px; height: 24px; }
.super-header__cart-info { display: flex; flex-direction: column; line-height: 1.05; align-items: flex-start; }
.super-header__cart-num { font-size: 0.95rem; }
.super-header__cart-total { font-size: 0.8rem; opacity: 0.95; }

/* Hero (banner del negocio o portada con el color de marca). */
.super-hero { margin: 1rem 0; }
.super-hero__media {
  position: relative;
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}
.super-hero__media:hover { text-decoration: none; }
.super-hero__img { display: block; width: 100%; max-height: 360px; object-fit: cover; }
.super-hero__overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.2rem 1.4rem;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.75));
}
.super-hero__overlay h1 { color: #fff; font-size: clamp(1.3rem, 3vw, 2rem); margin: 0 0 0.6rem; }
.super-hero__cta {
  display: inline-block;
  background: var(--ember);
  color: #fff;
  font-weight: 700;
  border-radius: 999px;
  padding: 0.55rem 1.15rem;
}
.super-hero--intro {
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--ember), var(--ember-dark));
  padding: 2.2rem 1.6rem;
}
.super-hero__kicker { color: rgba(255, 255, 255, 0.85); font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; font-size: 0.8rem; margin: 0; }
.super-hero__copy h1 { color: #fff; font-size: clamp(1.5rem, 4vw, 2.4rem); margin: 0.2rem 0 0.4rem; }
.super-hero__lead { color: rgba(255, 255, 255, 0.92); max-width: 540px; margin: 0 0 1.1rem; }
.super-hero__cta-btn { background: #fff; color: var(--ember-dark); }
.super-hero__cta-btn:hover { background: #fff; }

/* Departamentos circulares. */
.super-cats { display: flex; gap: 0.6rem; overflow-x: auto; padding: 0.4rem 0 1rem; scrollbar-width: thin; }
.super-cat {
  flex: 0 0 auto;
  width: 106px;
  background: transparent;
  border: 0;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  color: var(--text);
}
.super-cat__img {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  overflow: hidden;
  background: #fff;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
}
.super-cat__img img { width: 100%; height: 100%; object-fit: cover; }
.super-cat__ph { font-size: 1.6rem; font-weight: 800; color: var(--ember); }
.super-cat__name { font-size: 0.82rem; font-weight: 600; text-align: center; line-height: 1.15; }
.super-cat:hover .super-cat__img { border-color: var(--ember); }

/* Franja de promociones (enlaza a los primeros departamentos). */
.super-promos { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0.9rem; margin: 0.4rem 0 1.2rem; }
.super-promo {
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  cursor: pointer;
  text-align: left;
  min-height: 120px;
  display: flex;
  align-items: flex-end;
  padding: 0;
}
.super-promo__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.45; }
.super-promo--brand { background: linear-gradient(135deg, var(--ember), var(--ember-dark)); }
.super-promo__txt { position: relative; padding: 0.9rem 1rem; color: #fff; display: flex; flex-direction: column; gap: 0.15rem; }
.super-promo__txt strong { font-size: 1.05rem; }
.super-promo__txt em { font-style: normal; font-weight: 700; font-size: 0.85rem; opacity: 0.95; }
.super-promo:not(.super-promo--brand) .super-promo__txt { color: var(--text); }

/* Productos destacados (carrusel). */
.super-featured { margin: 0.5rem 0 1.2rem; }
.super-featured__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.7rem; }
.super-featured__head h2 { margin: 0; font-size: 1.25rem; }
.super-featured__more { font-weight: 700; }
.super-rail { display: flex; gap: 0.8rem; overflow-x: auto; padding-bottom: 0.6rem; scroll-snap-type: x proximity; }
.tpl--super .item--mini { flex: 0 0 auto; width: 210px; scroll-snap-align: start; }
.tpl--super .item--mini .item__figure { height: 150px; background: #fff; display: grid; place-items: center; }
.tpl--super .item--mini .item__thumb {
  width: 100%;
  height: 150px;
  object-fit: contain;
  border: 0;
  border-bottom: 1px solid var(--border);
  border-radius: 0;
}
.tpl--super .item--mini .item__info { padding: 0.6rem 0.7rem 0; }
.tpl--super .item--mini .item__ph { font-size: 2rem; font-weight: 800; color: var(--ember); opacity: 0.5; }.tpl--super .item--mini .item__info h3 { font-size: 0.92rem; }
.tpl--super .item--mini .item__actions { padding: 0.55rem 0.7rem 0.75rem; }

.tpl--super .super {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1.25rem 5rem;
  display: block;
}

.super__deptos {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding: 0.6rem 0 0.2rem;
  scrollbar-width: thin;
}
.super__depto {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  border-radius: 999px;
  padding: 0.45rem 0.95rem;
  white-space: nowrap;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9rem;
}
.super__depto.is-active { background: var(--ember); border-color: var(--ember); color: #fff; }

.super__empty { color: var(--muted); margin: 1.5rem 0; text-align: center; }

.tpl--super .menu { padding-top: 0.8rem; }
.tpl--super #catalogo,
.tpl--super #destacados { scroll-margin-top: 130px; }
.tpl--super.filtrando .super-hero,
.tpl--super.filtrando .super-cats,
.tpl--super.filtrando .super-promos,
.tpl--super.filtrando .super-featured { display: none; }
.tpl--super .category__cover { display: none; }
.tpl--super .category { margin-bottom: 1.6rem; }

.tpl--super .items {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(165px, 1fr));
  gap: 0.8rem;
}
.tpl--super .item {
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 0;
  padding: 0;
  overflow: hidden;
  background: var(--surface);
}
.tpl--super .item__thumb {
  width: 100%;
  height: 140px;
  border: 0;
  border-bottom: 1px solid var(--border);
  border-radius: 0;
}
.tpl--super .item__info { padding: 0.7rem 0.75rem 0; }
.tpl--super .item__info h3 { font-size: 0.95rem; }
.tpl--super .item__info p { font-size: 0.82rem; margin-bottom: 0.3rem; }
.tpl--super .item__actions { margin-top: auto; padding: 0.6rem 0.75rem 0.8rem; }
.tpl--super .btn--add { width: 100%; }

.tpl--super .step {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--ember);
  border-radius: 10px;
  overflow: hidden;
}
.tpl--super .step__btn {
  background: var(--ember);
  color: #fff;
  border: 0;
  width: 40px;
  height: 40px;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}
.tpl--super .step__btn:hover { background: var(--ember-dark); }
.tpl--super .step__qty { flex: 1; text-align: center; font-weight: 800; }

/* Carrito lateral (drawer) tipo checkout. */
.super__overlay { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.55); z-index: 55; }
.tpl--super .cart {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(420px, 92vw);
  margin: 0;
  border-radius: 0;
  border: 0;
  border-left: 1px solid var(--border);
  background: var(--bg);
  box-shadow: var(--shadow);
  overflow-y: auto;
  transform: translateX(105%);
  transition: transform 0.22s ease;
  z-index: 60;
}
.tpl--super .cart.is-open { transform: translateX(0); }
.tpl--super .cart__items { max-height: none; }
.cart__close {
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  margin-left: 0.5rem;
}
.tpl--super .cart__header h2 { margin: 0; }

/* El atributo [hidden] no basta cuando la clase define display; se fuerza. */
.category[hidden],
.tpl--super .item[hidden],
.tpl--super .step[hidden],
.tpl--super .item__actions .btn--add[hidden],
.super__overlay[hidden],
.super__empty[hidden] { display: none; }

/* Barra inferior fija en el movil con el total. */
@media (max-width: 720px) {
  .super-header__inner { flex-wrap: wrap; gap: 0.6rem; }
  .super-header__search { order: 3; flex-basis: 100%; max-width: none; }
  .super-header__cuenta-txt { display: none; }
  .tpl--super .super { padding: 0 0.85rem 6rem; }
  .tpl--super .items { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 0.6rem; }
  .tpl--super .item__thumb { height: 120px; }
  .super-cat { width: 84px; }
  .super-cat__img { width: 68px; height: 68px; }
  .tpl--super .item--mini { width: 165px; }
  .tpl--super .item--mini .item__figure,
  .tpl--super .item--mini .item__thumb { height: 120px; }
}

/* Landing de reservas: tarjetas de servicios (plantillas de citas / servicios). */
.servicios-landing { max-width: 1200px; margin: 2rem auto; padding: 0 1.25rem; }
.servicios-landing__head { text-align: center; margin-bottom: 1.4rem; }
.servicios-landing__kicker { color: var(--ember); font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.78rem; margin: 0 0 0.3rem; }
.servicios-landing__head h2 { margin: 0 0 0.4rem; font-size: clamp(1.4rem, 3vw, 2rem); }
.servicios-landing__head p { margin: 0; }
.servicios-landing__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1rem; }
.servicio-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.servicio-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.servicio-card__fig { height: 170px; background: var(--surface-2); display: grid; place-items: center; overflow: hidden; }
.servicio-card__img { width: 100%; height: 100%; object-fit: cover; }
.servicio-card__ph { font-size: 2.4rem; font-weight: 800; color: var(--ember); opacity: 0.5; }
.servicio-card__body { padding: 0.9rem 1rem 1.1rem; display: flex; flex-direction: column; gap: 0.35rem; flex: 1; }
.servicio-card__body h3 { margin: 0; font-size: 1.05rem; }
.servicio-card__body p { margin: 0; font-size: 0.86rem; color: var(--muted); }
.servicio-card__meta { display: flex; align-items: center; gap: 0.6rem; margin-top: auto; padding-top: 0.4rem; }
.servicio-card__precio { font-weight: 800; color: var(--ember); font-size: 1.1rem; }
.servicio-card__dur { font-size: 0.8rem; color: var(--muted); background: var(--surface-2); border: 1px solid var(--border); border-radius: 999px; padding: 0.15rem 0.55rem; }
.servicio-card__btn { margin-top: 0.5rem; width: 100%; }
@media (max-width: 640px) {
  .servicios-landing__grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 0.7rem; }
  .servicio-card__fig { height: 120px; }
}

/* Hero de reservas (citas): portada grande oscura tipo mockup de barberia. */
.citas-hero {
  position: relative;
  background-color: #0b0f16;
  background-image: var(--citas-hero-bg, none);
  background-size: cover;
  background-position: center;
  color: #fff;
  overflow: hidden;
}
.citas-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(6, 9, 14, 0.94) 0%, rgba(6, 9, 14, 0.78) 45%, rgba(6, 9, 14, 0.42) 100%);
}
.citas-hero__inner { position: relative; max-width: 1200px; margin: 0 auto; padding: 5rem 1.25rem 4.5rem; }
.citas-hero__kicker { color: var(--ember); font-weight: 800; text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.78rem; margin: 0 0 0.6rem; }
.citas-hero h1 { font-size: clamp(2rem, 6vw, 3.6rem); line-height: 1.04; margin: 0 0 0.7rem; color: #fff; }
.citas-hero__lead { color: rgba(255, 255, 255, 0.86); max-width: 580px; font-size: 1.05rem; margin: 0 0 1.3rem; }
.citas-hero__actions { display: flex; gap: 0.7rem; flex-wrap: wrap; margin-bottom: 1.1rem; }
.citas-hero__cta { background: var(--ember); }
.citas-hero__meta { display: flex; gap: 1.2rem; flex-wrap: wrap; color: rgba(255, 255, 255, 0.75); font-size: 0.9rem; }
.citas-hero__meta strong { color: rgba(255, 255, 255, 0.95); }
@media (max-width: 640px) {
  .citas-hero__inner { padding: 3rem 1rem 2.6rem; }
  .citas-hero__actions .btn { flex: 1 1 auto; justify-content: center; }
}


/* Selector de idioma del sitio publico (multilenguaje). */
.idioma-switch { display: inline-flex; gap: 0.25rem; align-items: center; margin: 0 0.4rem; }
.idioma-switch__btn {
  font-size: 0.72rem; line-height: 1; padding: 0.3rem 0.45rem; border-radius: 999px;
  border: 1px solid var(--border, rgba(0, 0, 0, 0.15)); color: inherit;
  text-decoration: none; opacity: 0.75;
}
.idioma-switch__btn.is-active { background: var(--ember, #16a34a); color: #fff; border-color: transparent; opacity: 1; }
