@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&display=swap");

/* Lok'Tar — dark metal, mobile-first, glass modals */

@font-face {
  font-family: "LifeCraft";
  src:
    url("/assets/fonts/LifeCraft_Font.woff2?v=2.0") format("woff2"),
    url("/assets/fonts/LifeCraft_Font.ttf?v=2.0") format("truetype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

:root {
  --header-height: 80px;
  --z-index-header: 3000;
  --z-index-carousel-btns: 2000;
  --z-index-mobile-bottom-bar: 5000;
  --z-index-modal-backdrop: 9000;
  --z-index-modal-content: 10000;
  --z-index-modal-stacked: 10001;
  --font-display: "LifeCraft", serif;
  /* Mismo criterio que .nav-btn.nav-link: un solo peso, lectura clara (sin “negrita” sintética) */
  --font-display-weight: normal;
  --font-body: "Inter", "Segoe UI", sans-serif;
  --font-lifecraft: var(--font-display);
  --font-head: var(--font-body);
  --bg-deep: #0a0a0c;
  --glass: rgba(18, 18, 24, 0.55);
  --glass-teaser: rgba(12, 12, 18, 0.42);
  --glass-border: rgba(255, 255, 255, 0.1);
  --accent: #c41e3a;
  --accent-dim: #8b1538;
  --text: #e8e6e3;
  --muted: #9a9590;
  --gold-glow: rgba(212, 175, 55, 0.4);
  --bordo-glow: rgba(128, 0, 32, 0.6);
  /* Carrusel tienda: valores por defecto; ≥1024px se ajustan en media queries */
  --items-per-view: 3;
  --carousel-gap: 1.25rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  width: 100%;
}

body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  width: 100%;
  max-width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text);
  background-color: var(--bg-deep);
  line-height: 1.5;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  min-height: 100vh;
  z-index: -2;
  background-color: #121218;
  background-image: linear-gradient(160deg, rgba(10, 10, 12, 0.92) 0%, rgba(18, 12, 16, 0.88) 100%),
    url("/assets/images/bg-mobile.webp");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

@media (min-width: 768px) {
  body::before {
    background-image: linear-gradient(160deg, rgba(10, 10, 12, 0.9) 0%, rgba(18, 12, 16, 0.85) 100%),
      url("/assets/images/bg-desktop.webp");
  }
}

a {
  color: #f0c0c8;
  text-decoration: none;
}
a:hover {
  color: #fff;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-index-header);
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  backdrop-filter: blur(12px);
  background: rgba(8, 8, 12, 0.72);
  border-bottom: 1px solid var(--glass-border);
}

.nav-inner {
  width: 100%;
  max-width: min(1100px, 100%);
  margin-inline: auto;
  padding: 0.35rem clamp(0.75rem, 3vw, 1.25rem);
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.brand {
  color: var(--text);
  flex-shrink: 0;
  text-decoration: none;
}

.nav-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem;
  justify-content: flex-end;
  align-items: center;
}

.nav-btn {
  border: none;
  background: transparent;
  color: inherit;
  padding: 0;
  margin: 0;
  border-radius: 4px;
  cursor: pointer;
  transition: opacity 0.2s, background 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  line-height: 1.2;
}

.nav-btn:hover,
.nav-btn:focus-visible {
  background: rgba(196, 30, 58, 0.12);
  outline: none;
}

main.shell {
  width: 100%;
  max-width: min(1100px, 100%);
  margin-inline: auto;
  margin-block: 0;
  margin-top: 0;
  padding: 0 clamp(0.75rem, 3vw, 1.25rem) 2.5rem;
  box-sizing: border-box;
}

/*
 * Hero: logo centrado, padding compacto; resplandor dorado/bordó vía pseudoelementos (solo opacity animada).
 */
@keyframes softLoopGlow {
  0%,
  100% {
    opacity: 0.1;
  }
  30% {
    opacity: 0.8;
  }
  60% {
    opacity: 0.6;
  }
  85% {
    opacity: 0.9;
  }
}

.hero.hero--fullwidth {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 1.5rem 0 4rem 0;
  box-sizing: border-box;
  line-height: 0;
}

.hero-logo-container {
  position: relative;
  z-index: 1;
  width: 90%;
  max-width: 500px;
  margin: 0 auto;
  isolation: isolate;
}

.hero-logo-container::before,
.hero-logo-container::after {
  content: "";
  position: absolute;
  inset: -25%;
  z-index: -1;
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
  backface-visibility: hidden;
  transform: translateZ(0);
  will-change: opacity;
}

.hero-logo-container::before {
  background: radial-gradient(ellipse 75% 75% at 50% 45%, var(--gold-glow) 0%, transparent 68%);
  filter: blur(30px);
  animation: softLoopGlow 8s ease-in-out infinite;
}

.hero-logo-container::after {
  background: radial-gradient(ellipse 80% 80% at 50% 55%, var(--bordo-glow) 0%, transparent 70%);
  filter: blur(30px);
  animation: softLoopGlow 12s ease-in-out infinite;
  animation-delay: -4s;
}

@media (max-width: 1023px) {
  .hero-logo-container::before,
  .hero-logo-container::after {
    filter: blur(20px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-logo-container::before,
  .hero-logo-container::after {
    animation: none;
    opacity: 0.12;
  }
}

.hero-logo-wrap.hero-logo,
.hero.hero--fullwidth .hero-logo {
  width: 100%;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
}

.hero-logo-wrap {
  position: relative;
  z-index: 1;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  box-sizing: border-box;
  line-height: 0;
}

.hero-logo-picture {
  display: contents;
}

.teaser-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: minmax(0, 1fr);
  width: 100%;
  max-width: 100%;
  margin-top: 0;
  box-sizing: border-box;
}

/* Solo Novedades + Eventos: dos columnas en pantallas anchas */
.teaser-grid--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 560px) {
  .teaser-grid--two {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Header: tres enlaces (Tienda, Enlaces, Lore) repartidos con aire */
.nav-actions--compact {
  gap: 0.35rem 1rem;
  justify-content: flex-end;
}

@media (min-width: 480px) {
  .nav-actions--compact {
    gap: 0.35rem 1.25rem;
  }
}

/* Tarjetas Novedades / Eventos: clic en todo el bloque + feedback táctil */
button.teaser-card.teaser-card--modal-trigger {
  cursor: pointer;
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.07s ease;
  -webkit-tap-highlight-color: transparent;
}

button.teaser-card.teaser-card--modal-trigger:hover,
button.teaser-card.teaser-card--modal-trigger:focus-visible {
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: rgba(255, 255, 255, 0.22) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  outline: none;
}

button.teaser-card.teaser-card--modal-trigger:active {
  transform: scale(0.98);
}

.teaser-card .card-title .card-title__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 100%;
  gap: 0.35rem;
}

.teaser-card .card-title .card-title__chevron {
  flex-shrink: 0;
  opacity: 0.65;
  font-weight: 300;
  font-size: 1.2em;
  line-height: 1;
  color: #fde08d;
}

a.teaser-card--link,
button.teaser-card--link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.teaser-card {
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: var(--glass-teaser);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  align-items: stretch;
  justify-content: flex-start;
  gap: 0.5rem;
  padding: 0.85rem 1rem;
  min-height: 0;
}

.teaser-card__body,
.card-body {
  display: block;
  min-width: 0;
  width: 100%;
  flex: 0 0 auto;
}

.teaser-card__excerpt {
  margin: 0;
}

.teaser-card .card-title {
  font-family: var(--font-display) !important;
  font-weight: var(--font-display-weight) !important;
  font-style: normal !important;
  font-synthesis: none;
  color: #fde08d !important;
  font-size: 1.65rem !important;
  margin: 0 !important;
  line-height: 1.15;
  width: 100%;
  max-width: 100%;
  flex: 0 0 auto;
  display: block;
  order: 0;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.teaser-card .card-body,
.teaser-card .teaser-card__body {
  order: 1;
  flex: 0 0 auto;
}

.teaser-card .card-body p,
.teaser-card .card-body .teaser-card__excerpt {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif !important;
  color: #e0e0e0 !important;
  font-size: 1rem !important;
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  white-space: normal;
  text-transform: none !important;
}

.modal-root {
  position: fixed;
  inset: 0;
  z-index: var(--z-index-modal-content);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal-root.open {
  display: flex;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  z-index: var(--z-index-modal-backdrop);
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(10px);
}

.modal-panel {
  position: relative;
  z-index: var(--z-index-modal-content);
  width: min(100%, 640px);
  max-height: 90vh;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid var(--glass-border);
  background: rgba(14, 14, 20, 0.82);
  backdrop-filter: blur(14px);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
}

.modal-header {
  position: sticky;
  top: 0;
  z-index: 20;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.85rem 1rem;
  background-color: #000;
  border-bottom: 1px solid var(--glass-border);
}

.modal-header .modal-title {
  margin: 0;
  font-size: 1.05rem;
  flex: 1 1 auto;
  min-width: 0;
  line-height: 1.25;
  text-align: left;
  font-family: var(--font-display) !important;
  font-weight: var(--font-display-weight);
  font-style: normal;
  font-synthesis: none;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #fde08d;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.modal-header__extra {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  max-width: min(52%, 14rem);
}

.modal-header__extra:empty {
  display: none;
  width: 0;
  max-width: 0;
  padding: 0;
  margin: 0;
  overflow: hidden;
}

.modal-header__extra .shop-help-link {
  font-size: 0.78rem;
  padding: 0.35rem 0.55rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.modal-body {
  flex: 1 1 auto;
  flex-grow: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 1rem 1.35rem 1.25rem;
  -webkit-overflow-scrolling: touch;
  text-align: left;
}

.modal-close {
  flex-shrink: 0;
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.15rem 0.35rem;
  margin: 0;
  align-self: center;
  font-family: var(--font-display) !important;
  font-weight: var(--font-display-weight);
  font-style: normal;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.modal-close:hover {
  color: #fde08d;
}

/* Modal secundario (p. ej. guía sobre la tienda) */
.modal-root--stacked {
  z-index: var(--z-index-modal-stacked);
}

.shop-help-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.85rem;
  border-radius: 8px;
  border: 1px solid rgba(196, 30, 58, 0.45);
  background: rgba(196, 30, 58, 0.12);
  color: #f0c0c8;
  font-size: 0.92rem;
  font-family: inherit;
  cursor: pointer;
  text-decoration: none;
}

.shop-help-link:hover {
  background: rgba(196, 30, 58, 0.22);
  color: #fff;
}

.news-modal__date-block {
  margin-bottom: 1.75rem;
}

.news-modal__date-heading {
  font-size: 1rem;
  color: #caa;
  letter-spacing: 0.04em;
  border-bottom: 1px solid #333;
  padding-bottom: 0.35rem;
  margin: 0 0 0.75rem;
  font-family: var(--font-body);
  font-weight: 600;
}

.news-modal__item {
  margin-bottom: 1.25rem;
  color: #d4d0cb;
  line-height: 1.55;
}

.news-modal__item:last-child {
  margin-bottom: 0;
}

.guia-compras__list {
  margin: 0;
  padding-left: 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.guia-compras__list li {
  margin: 0;
}

button.teaser-card {
  appearance: none;
  width: 100%;
  text-align: left;
  font: inherit;
  color: inherit;
  cursor: pointer;
}

.prose {
  color: inherit;
}
.prose h3 {
  font-size: 1rem;
}
.prose a {
  color: #ffb4c0;
}

.links-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.links-list a,
.links-list__anchor {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.03);
}

/* Iconos del modal: WebP/SVG con alfa; sin máscara ni fondo forzado (transparente). */
.links-list__icon {
  display: block;
  height: 22px;
  width: auto;
  max-height: 22px;
  flex-shrink: 0;
  object-fit: contain;
  background: transparent;
}

.links-list__label {
  min-width: 0;
  word-break: break-word;
}

.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;
}

/* Tienda */
.shop-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 520px) {
  .shop-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.shop-card {
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
}

/* Enfoque desde carrusel / ?focus_product= (modal tienda) */
.modal-body .shop-card.highlight-focus {
  box-shadow: inset 0 0 0 2px #d4af37, 0 0 18px rgba(212, 175, 55, 0.45);
  transition: box-shadow 0.5s ease;
}

.shop-card img.thumb {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  background: #1a1a22;
}

.shop-card .body {
  padding: 0.75rem;
}

.shop-card .price {
  color: #f5a3b5;
  font-weight: 600;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.5rem;
}

.btn {
  border: 1px solid var(--accent-dim);
  background: linear-gradient(180deg, var(--accent), var(--accent-dim));
  color: #fff;
  padding: 0.4rem 0.75rem;
  border-radius: 8px;
  font-size: 0.8rem;
  cursor: pointer;
}

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

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

.cart-bar {
  margin-top: 1rem;
  padding: 0.75rem;
  border-radius: 10px;
  border: 1px solid var(--glass-border);
  background: rgba(0, 0, 0, 0.25);
}

.checkout-form label {
  display: block;
  font-size: 0.8rem;
  margin-top: 0.5rem;
  color: var(--muted);
}

.checkout-form input {
  width: 100%;
  margin-top: 0.2rem;
  padding: 0.45rem 0.5rem;
  border-radius: 8px;
  border: 1px solid var(--glass-border);
  background: rgba(0, 0, 0, 0.35);
  color: var(--text);
}

.checkout-msg {
  margin-top: 0.75rem;
  font-size: 0.9rem;
}

footer.site-footer {
  text-align: center;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: 2rem clamp(0.75rem, 3vw, 1.25rem);
  color: var(--muted);
  font-size: 0.8rem;
}

footer.site-footer .legal-link {
  color: var(--muted);
  opacity: 0.7;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.15s ease, opacity 0.15s ease, border-color 0.15s ease;
}

footer.site-footer .legal-link:hover {
  color: var(--text);
  opacity: 1;
  border-bottom-color: rgba(196, 30, 58, 0.45);
}

/* Cabecera: solo escritorio / TV (≥1024px); en móvil/tablet la navegación es la barra inferior */
@media (max-width: 1023px) {
  header.site-header,
  .site-header {
    display: none !important;
  }
}

/* Cabecera fija solo en escritorio (compensación vía body + --header-height; modales por encima vía .modal-root z-index).
   El panel /admin no tiene cabecera pública: sin padding-top extra. */
@media (min-width: 1024px) {
  body:not(.admin-app) {
    padding-top: var(--header-height);
  }

  header.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    min-height: var(--header-height);
    display: flex;
    align-items: center;
    z-index: var(--z-index-header);
    background: rgba(10, 10, 10, 0.9);
    border-bottom: 1px solid #222;
    box-sizing: border-box;
  }

  header.site-header .nav-inner {
    width: 100%;
    align-items: center;
    padding-block: 0.25rem;
    padding-inline: clamp(0.75rem, 3vw, 1.25rem);
  }
}

@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  @media (min-width: 1024px) {
    header.site-header {
      backdrop-filter: blur(8px);
      -webkit-backdrop-filter: blur(8px);
    }
  }
}

/* Barra inferior móvil: 4 ítems (inicio, tienda, lore, enlaces) */
@media (max-width: 1023px) {
  html.home {
    height: 100%;
    overflow: hidden;
  }

  body.home-page {
    display: flex;
    flex-direction: column;
    min-height: 100dvh;
    height: 100dvh;
    max-height: 100dvh;
    overflow: hidden;
    padding: 1rem 1rem calc(4.5rem + env(safe-area-inset-bottom, 0px)) 1rem;
    margin: 0;
    box-sizing: border-box;
  }

  body.home-page .home-mobile-stack {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    justify-content: space-between;
    gap: 0;
    margin: 0;
  }

  body.home-page .hero.hero--fullwidth {
    flex: 0 0 auto;
    margin: 0;
    padding: 0.5rem 0 0.75rem 0;
    padding-bottom: 0.75rem !important;
  }

  body.home-page main.shell {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    margin: 0;
    margin-top: 0;
    margin-bottom: 0;
    padding: 0 clamp(0.75rem, 3vw, 1.25rem);
    overflow: hidden;
  }

  body.home-page .novedades-eventos-container {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    gap: 0.75rem;
    margin: 0;
    margin-top: -0.35rem;
    margin-bottom: 0;
    min-height: 0;
  }

  body.home-page .novedades-eventos-container .teaser-card.card-mobile {
    margin-top: 0;
    margin-bottom: 0;
  }

  body.home-page .card-mobile {
    padding: 0.8rem;
    font-size: 0.9rem;
  }

  body.home-page .card-mobile .card-title {
    margin: 0 0 0.35rem 0;
  }

  body.home-page .card-mobile .teaser-card__body,
  body.home-page .card-mobile .card-body {
    margin: 0;
  }

  body.home-page .card-mobile .teaser-card__excerpt,
  body.home-page .card-mobile .card-body p,
  body.home-page .card-mobile p {
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-clamp: 5;
  }

  body.home-page .hero-logo-container {
    min-height: auto;
  }

  body.home-page .hero-logo-container .hero-logo-main,
  body.home-page .hero-logo-wrap.hero-logo .hero-logo-main,
  body.home-page .hero.hero--fullwidth .hero-logo-main {
    max-height: 25vh !important;
    width: auto !important;
    max-width: 100% !important;
    object-fit: contain !important;
  }

  body.home-page footer.site-footer.footer-mini {
    flex-shrink: 0;
    margin-top: auto;
    margin-bottom: 0;
    padding: 0 clamp(0.75rem, 3vw, 1.25rem) 0.5rem;
    padding-top: 0 !important;
    width: 100%;
    max-width: 100%;
    font-size: 0.7rem;
    line-height: 1.35;
  }

  body.home-page footer.site-footer.footer-mini .legal-link {
    font-size: inherit;
  }
}

/* Flujo público pedido/pago: ancho de lectura */
main.shell.shell--order-status {
  max-width: 42rem;
}

main.shell.shell--order-payment {
  max-width: 40rem;
}

main.shell.shell--order-auth {
  max-width: 28rem;
}

/* Flujo público (pedido/pago): scroll vertical en todos los viewports */
html.public-flow {
  min-height: 100vh;
  min-height: 100dvh;
  height: auto;
  max-height: none;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

body.public-flow-page {
  min-height: 100vh;
  min-height: 100dvh;
  height: auto;
  max-height: none;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

/*
 * Pedido / pago / auth públicos: no usar el layout «home» (100dvh + overflow hidden).
 * En móvil refuerzo padding y main.shell.
 */
@media (max-width: 1023px) {
  html.public-flow {
    height: auto;
    max-height: none;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  body.public-flow-page {
    display: block;
    min-height: 100dvh;
    height: auto;
    max-height: none;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 1rem 1rem calc(1.25rem + env(safe-area-inset-bottom, 0px)) 1rem;
    margin: 0;
    box-sizing: border-box;
  }

  body.public-flow-page main.shell {
    flex: none;
    min-height: 0;
    display: block;
    overflow: visible;
    margin-inline: auto;
    margin-block: 0;
  }

  body.public-flow-page main.shell.shell--order-status,
  body.public-flow-page main.shell.shell--order-payment,
  body.public-flow-page main.shell.shell--order-auth {
    padding-bottom: max(2.75rem, calc(1rem + env(safe-area-inset-bottom, 0px)));
  }
}

@media (min-width: 1024px) {
  .home-mobile-stack {
    display: block;
    min-height: 0;
  }

  footer.site-footer.footer-mini {
    margin-top: 0;
    padding: 2rem clamp(0.75rem, 3vw, 1.25rem);
    font-size: 0.8rem;
  }
}

#mobile-bottom-bar.bottom-nav-icons {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: var(--z-index-mobile-bottom-bar);
  box-sizing: border-box;
  padding: 0.45rem 0.25rem calc(0.45rem + env(safe-area-inset-bottom, 0px));
  margin: 0;
  background: rgba(8, 8, 12, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--glass-border);
}

@media (max-width: 1023px) {
  #mobile-bottom-bar.bottom-nav-icons {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
  }
}

/* Coherencia con runa blanca (icon-loktar.svg): gris inactivo, blanco hover/activo */
.bottom-nav-icons .nav-item {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 25%;
  max-width: 25%;
  flex: 0 0 25%;
  padding: 0.35rem 0.15rem;
  box-sizing: border-box;
  color: #888888;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  transition: opacity 0.15s ease, color 0.15s ease;
}

.bottom-nav-icons .nav-item:hover,
.bottom-nav-icons .nav-item.is-active {
  color: #ffffff;
}

.bottom-nav-icons .nav-item:focus-visible {
  color: #ffffff;
  outline: 2px solid rgba(196, 30, 58, 0.45);
  outline-offset: 2px;
  border-radius: 8px;
}

.bottom-nav-icons .nav-item:focus-visible .rune-icon {
  opacity: 1;
}

.bottom-nav-icons .nav-item:active {
  opacity: 0.88;
}

.bottom-nav-icons .nav-item svg {
  width: 26px;
  height: 26px;
  display: block;
}

.bottom-nav-icons .nav-item .rune-icon {
  width: 28px;
  height: auto;
  max-height: 32px;
  display: block;
  object-fit: contain;
  opacity: 0.55;
  transition: opacity 0.15s ease;
}

.bottom-nav-icons .nav-item:hover .rune-icon,
.bottom-nav-icons .nav-item.is-active .rune-icon {
  opacity: 1;
}

@media (min-width: 1024px) {
  #mobile-bottom-bar.bottom-nav-icons {
    display: none !important;
  }
}

/* Admin — previsualización icono de enlace */
.admin-link-preview-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0.35rem 0 0.75rem;
  padding: 0.5rem 0.65rem;
  border-radius: 8px;
  border: 1px solid #333;
  background: #141418;
}

.admin-link-icon-preview {
  height: 36px;
  width: auto;
  max-width: 48px;
  object-fit: contain;
  flex-shrink: 0;
  background: transparent;
}

.admin-link-icon-hint {
  font-size: 0.78rem;
  color: #888;
  line-height: 1.35;
}

/* === Overrides estructura visual (prioridad máxima) === */
.navbar-brand {
  display: flex !important;
  align-items: center !important;
  line-height: 0 !important;
}

.navbar-brand .header-runa,
.site-header .header-runa {
  height: 42px !important;
  width: auto !important;
  flex-shrink: 0 !important;
  display: block !important;
  object-fit: contain !important;
  margin: 0 !important;
  padding: 0 !important;
}

button.nav-btn.nav-link,
.nav-btn.nav-link {
  font-family: var(--font-display) !important;
  font-size: 1.05rem !important;
  font-weight: var(--font-display-weight) !important;
  font-style: normal !important;
  font-synthesis: none;
  color: #fde08d !important;
  padding: 4px 12px !important;
  border: none !important;
  box-shadow: none !important;
  background: transparent !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Enlaces de navegación genéricos (cabecera, menús); cuerpo sigue en sans-serif */
.nav-link,
.menu-item,
#main-menu a {
  font-family: var(--font-display);
  font-weight: var(--font-display-weight);
  font-style: normal;
  font-synthesis: none;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/*
 * Logo hero: encaja dentro del contenedor (max 500px) sin forzar escala agresiva.
 */
.hero-logo.hero-logo-main,
.hero-logo-main {
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  max-height: none !important;
  margin: 0 auto !important;
  display: block !important;
  object-fit: contain !important;
  object-position: center center !important;
  padding: 0 !important;
  flex: 0 0 auto;
}

.links-list__icon {
  height: 22px !important;
  width: auto !important;
  max-height: 22px !important;
  flex-shrink: 0 !important;
  object-fit: contain !important;
  background: transparent !important;
}

.links-list__anchor {
  flex-direction: row !important;
  justify-content: flex-start !important;
}

/* === Identidad visual: LifeCraft solo en sitio público (no en /admin) === */
body:not(.admin-app) h1,
body:not(.admin-app) h2,
body:not(.admin-app) h3,
body:not(.admin-app) h4 {
  font-family: var(--font-display) !important;
  font-weight: var(--font-display-weight) !important;
  font-style: normal !important;
  font-synthesis: none;
  color: #fde08d !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body:not(.admin-app) .card-title,
body:not(.admin-app) .store-item-name,
body:not(.admin-app) .novedades-eventos-container h3 {
  font-family: var(--font-display);
  font-weight: var(--font-display-weight);
  font-style: normal;
  font-synthesis: none;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body) !important;
  font-size: 16px !important;
  color: #e0e0e0 !important;
}

p,
.description,
.prose {
  font-family: var(--font-body) !important;
  font-size: 16px !important;
  color: #e0e0e0 !important;
  text-transform: none !important;
}

.links-list__label {
  font-family: var(--font-body) !important;
  font-size: 16px !important;
  color: #e0e0e0 !important;
}

/* Bloqueo layout tarjetas: columna estricta (título arriba, texto abajo) */
.teaser-card {
  display: flex !important;
  flex-direction: column !important;
  flex-wrap: nowrap !important;
  align-items: stretch !important;
  justify-content: flex-start !important;
  gap: 0.5rem !important;
  background: var(--glass-teaser) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  backdrop-filter: blur(14px) !important;
  -webkit-backdrop-filter: blur(14px) !important;
}

.teaser-card > .card-title,
.teaser-card > h3.card-title {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  flex: 0 0 auto !important;
  float: none !important;
  order: 0 !important;
}

.teaser-card > .teaser-card__body,
.teaser-card > .card-body {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  flex: 0 0 auto !important;
  float: none !important;
  order: 1 !important;
}

.teaser-card > .teaser-card__body p,
.teaser-card > .card-body p {
  display: block !important;
  width: 100% !important;
}

/* ——— Panel admin: navegación por bloques ——— */
.admin-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 0.65rem 1rem;
  margin: 1rem 0;
  padding: 0.75rem 0.85rem;
  background: #1a1a22;
  border-radius: 8px;
  border: 1px solid #333;
  box-sizing: border-box;
}

.admin-nav__home-wrap {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.admin-nav__home {
  color: #fde08d !important;
  font-weight: 600;
  text-decoration: none;
  padding: 0.35rem 0.5rem;
  border-radius: 6px;
  border: 1px solid rgba(253, 224, 141, 0.35);
  background: rgba(253, 224, 141, 0.06);
}

.admin-nav__home:hover {
  background: rgba(253, 224, 141, 0.12);
}

.admin-nav__group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.45rem 0.65rem;
  border-radius: 6px;
  border: 1px solid #2e2e38;
  background: rgba(0, 0, 0, 0.22);
  min-width: 0;
}

.admin-nav__label {
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #7a7880;
  font-weight: 700;
}

.admin-nav__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.75rem;
  align-items: center;
}

.admin-nav__links a {
  color: #e8e6e3;
  text-decoration: none;
  font-size: 0.9rem;
}

.admin-nav__links a:hover {
  color: #fff;
  text-decoration: underline;
}

.admin-nav__logout {
  margin-left: auto;
  align-self: center;
  flex-shrink: 0;
}

.admin-nav__logout-btn {
  background: #444;
  border: 1px solid #666;
  color: #fff;
  border-radius: 6px;
  padding: 0.3rem 0.65rem;
  cursor: pointer;
  font-size: 0.85rem;
}

.admin-nav__logout-btn:hover {
  background: #555;
}

@media (max-width: 640px) {
  .admin-nav {
    flex-direction: column;
    align-items: stretch;
  }

  .admin-nav__logout {
    margin-left: 0;
    width: 100%;
    order: 100;
    margin-top: 0.35rem;
    padding-top: 0.65rem;
    border-top: 1px solid #2e2e38;
    text-align: center;
  }

  .admin-nav__logout-btn {
    width: 100%;
    padding: 0.65rem 1rem;
    font-size: 0.95rem;
    font-weight: 600;
    border-width: 2px;
  }
}

/* Quill (contenido CMS) — tema oscuro */
.admin-content-page .ql-toolbar.ql-snow {
  border-color: #444;
  border-radius: 8px 8px 0 0;
  background: #1e1e26;
}

.admin-content-page .ql-container.ql-snow {
  border-color: #444;
  border-radius: 0 0 8px 8px;
  background: #121218;
  font-size: 1rem;
}

.admin-content-page .ql-editor {
  min-height: 220px;
  color: #e8e6e3;
}

.admin-content-page .ql-editor.ql-blank::before {
  color: #666;
}

.admin-content-page .ql-snow .ql-stroke {
  stroke: #bbb;
}

.admin-content-page .ql-snow .ql-fill {
  fill: #bbb;
}

.admin-content-page .ql-snow .ql-picker {
  color: #ccc;
}

.admin-content-page .ql-snow .ql-picker-options {
  background: #1e1e26;
  border-color: #444;
}

/* Modal eventos (lista estructurada) */
.events-modal__heading {
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #c4bfb8;
  margin: 1rem 0 0.5rem;
}

.events-modal__heading:first-child {
  margin-top: 0;
}

.events-modal__list {
  list-style: none;
  padding: 0;
  margin: 0 0 0.75rem;
}

.events-modal__list .event-row {
  padding: 0.35rem 0;
  border-bottom: 1px solid #2a2a30;
  font-size: 0.92rem;
}

.events-modal__list .event-row--past,
.event-row--past .event-row__link,
.event-row--past .event-row__text {
  text-decoration: line-through;
  opacity: 0.6;
}

.events-modal__list .event-row__link {
  color: #e8c8d0;
}

/* —— Carrusel tienda (home): laptop → 4K, solo ≥1024px —— */
.desktop-tv-only {
  display: none !important;
}

@media (min-width: 1024px) {
  :root {
    --items-per-view: 3;
    --carousel-gap: 1.5rem;
  }

  .desktop-tv-only {
    display: block !important;
  }
}

@media (min-width: 1440px) {
  :root {
    --items-per-view: 4;
  }
}

@media (min-width: 1920px) {
  :root {
    --items-per-view: 5;
  }
}

@media (min-width: 2560px) {
  :root {
    --items-per-view: 6;
  }
}

.store-carousel-section {
  margin-top: clamp(1.25rem, 3vw, 2.75rem);
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.store-carousel-section .carousel-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.25rem;
  margin-bottom: clamp(0.75rem, 2vw, 1.35rem);
}

.store-carousel-section .carousel-header h2 {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.1vw, 2rem);
  font-weight: var(--font-display-weight);
  font-style: normal;
  font-synthesis: none;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text);
  margin: 0;
  line-height: 1.2;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.carousel-controls {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.carousel-nav-btn {
  position: relative;
  z-index: var(--z-index-carousel-btns);
  pointer-events: all;
  cursor: pointer;
  appearance: none;
  min-width: clamp(2.5rem, 4vw, 3.25rem);
  min-height: clamp(2.5rem, 4vw, 3.25rem);
  padding: 0;
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  line-height: 1;
  color: var(--text);
  background: var(--glass-teaser);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  cursor: pointer;
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    transform 0.08s ease;
}

.carousel-nav-btn:hover,
.carousel-nav-btn:focus-visible {
  background: rgba(196, 30, 58, 0.15);
  border-color: rgba(196, 30, 58, 0.45);
  outline: none;
}

.carousel-nav-btn:active {
  transform: scale(0.96);
}

.store-carousel-section .carousel-container {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: var(--carousel-gap);
  width: 100%;
  max-width: 100%;
  overflow-x: scroll;
  overflow-y: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 0.15rem 0.1rem 0.65rem;
  box-sizing: border-box;
  will-change: scroll-position;
}

.store-carousel-section .carousel-container:hover {
  cursor: grab;
}

.store-carousel-section .carousel-container:active {
  cursor: grabbing;
}

.store-carousel-section .carousel-container::-webkit-scrollbar {
  display: none;
}

.store-carousel-section .carousel-container:focus-visible {
  outline: 2px solid rgba(196, 30, 58, 0.55);
  outline-offset: 4px;
}

.store-carousel-section .carousel-item.store-card {
  flex: 0 0 calc((100% / var(--items-per-view)) - var(--carousel-gap));
  min-width: 0;
  display: flex;
  flex-direction: column;
  contain: content;
  background: var(--glass-teaser);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.store-carousel-section .carousel-item.store-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
}

.store-carousel-section .store-card__img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  background: #141418;
}

.store-carousel-section .store-card .card-content {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  padding: clamp(0.65rem, 1.4vw, 1rem) clamp(0.75rem, 1.5vw, 1.1rem) clamp(0.85rem, 1.6vw, 1.15rem);
  gap: 0.35rem;
}

.store-carousel-section .store-card .card-content h3 {
  font-family: var(--font-display);
  font-size: clamp(1rem, 1.35vw, 1.25rem);
  font-weight: var(--font-display-weight);
  font-style: normal;
  font-synthesis: none;
  margin: 0;
  line-height: 1.25;
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.store-carousel-section .store-card .desc {
  font-size: clamp(0.82rem, 1.05vw, 0.95rem);
  color: var(--muted);
  margin: 0;
  line-height: 1.45;
  flex: 1 1 auto;
}

.store-carousel-section .store-card__footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 0.75rem;
  margin-top: 0.35rem;
}

.store-carousel-section .store-card .price {
  font-size: clamp(0.95rem, 1.25vw, 1.15rem);
  font-weight: 600;
  color: #f0e8dc;
  letter-spacing: 0.02em;
}

.store-carousel-section .store-card .btn-buy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 0.85rem;
  font-size: clamp(0.8rem, 1vw, 0.92rem);
  font-weight: 600;
  text-decoration: none;
  color: #fff;
  background: linear-gradient(165deg, var(--accent) 0%, var(--accent-dim) 100%);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition:
    filter 0.2s ease,
    transform 0.08s ease;
}

.store-carousel-section .store-card .btn-buy:hover,
.store-carousel-section .store-card .btn-buy:focus-visible {
  filter: brightness(1.08);
  outline: none;
}

.store-carousel-section .store-card .btn-buy:active {
  transform: scale(0.98);
}

/* Home: enlace único en cards del carrusel (mismo aspecto que botón en desktop) */
.store-carousel-section.store-carousel-section--home .store-card__link {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  text-decoration: none;
  color: inherit;
}

.store-carousel-section.store-carousel-section--home .store-card__link:focus-visible {
  outline: 2px solid rgba(196, 30, 58, 0.65);
  outline-offset: 2px;
  border-radius: 12px;
}

/* Home escritorio: dos columnas (Novedades | Eventos); el DOM ya va Hero → teasers → tienda */
@media (min-width: 769px) {
  body.home-page .home-teaser-block {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    align-items: stretch;
  }

  body.home-page .home-teaser-block .home-teaser-section {
    min-width: 0;
  }

  body.home-page .home-teaser-block .teaser-grid {
    width: 100%;
    margin: 0;
  }
}

/* —— Home móvil (≤768px): solo reglas con body.home-page —— */
@media (max-width: 768px) {
  body.home-page {
    padding: 0 0.35rem calc(4.2rem + env(safe-area-inset-bottom, 0px)) 0.35rem;
  }

  body.home-page .home-mobile-stack {
    justify-content: flex-start;
    gap: 0;
  }

  body.home-page .hero.hero--fullwidth {
    padding: 0.5rem 0 0 !important;
    margin: 0;
  }

  body.home-page .hero-logo-container {
    transform: scale(0.7);
    transform-origin: center top;
    margin-top: 0;
    margin-bottom: -2.5rem !important;
  }

  body.home-page .hero-logo-container .hero-logo-main,
  body.home-page .hero-logo-wrap.hero-logo .hero-logo-main,
  body.home-page .hero.hero--fullwidth .hero-logo-main {
    max-height: min(38vh, 220px) !important;
    width: auto !important;
    max-width: 100% !important;
  }

  body.home-page main.shell.home-main-shell {
    padding: 0 0.15rem 0;
    gap: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    min-height: 0;
  }

  body.home-page .store-carousel-section.store-carousel-section--home {
    --items-per-view: 1.8;
    --carousel-gap: 0.25rem;
    margin-top: 0;
    margin-bottom: 0;
    padding-top: 0;
    flex-shrink: 0;
  }

  body.home-page .store-carousel-section.store-carousel-section--home .carousel-header {
    margin-bottom: 0.3rem;
    min-height: 0;
  }

  body.home-page .store-carousel-section.store-carousel-section--home .carousel-heading-prefix {
    display: none;
  }

  body.home-page .store-carousel-section.store-carousel-section--home .carousel-header h2 {
    font-size: 1.55rem !important;
    letter-spacing: 0.06em !important;
    line-height: 1.22 !important;
    margin: 0 !important;
  }

  body.home-page .store-carousel-section.store-carousel-section--home .carousel-controls {
    display: none;
  }

  body.home-page .store-carousel-section.store-carousel-section--home .carousel-container {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0 0 0.15rem;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }

  body.home-page .store-carousel-section.store-carousel-section--home .carousel-item.store-card {
    scroll-snap-align: start;
    border-radius: 7px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
    min-width: 0;
  }

  body.home-page .store-carousel-section.store-carousel-section--home .carousel-item.store-card:hover {
    transform: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
  }

  body.home-page .store-carousel-section.store-carousel-section--home .store-card__img {
    aspect-ratio: 1 / 1;
    width: 100%;
    max-height: 80px !important;
    height: auto;
    min-height: 0;
    object-fit: cover;
    flex-shrink: 0;
  }

  body.home-page .store-carousel-section.store-carousel-section--home .store-card .card-content {
    padding: 0.25rem 0.35rem 0.18rem;
    gap: 0.1rem;
    flex: 1 1 auto;
    min-height: 0;
  }

  body.home-page .store-carousel-section.store-carousel-section--home .store-card .card-content h3 {
    font-size: 1rem !important;
    line-height: 1.2 !important;
    margin: 0 !important;
    min-width: 0;
    word-break: break-word;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  body.home-page .store-carousel-section.store-carousel-section--home .store-card .desc {
    display: none !important;
  }

  body.home-page .store-carousel-section.store-carousel-section--home .store-card__footer {
    margin-top: 0.08rem;
    gap: 0;
    justify-content: center;
  }

  body.home-page .store-carousel-section.store-carousel-section--home .store-card .price {
    font-size: 1.15rem !important;
    font-weight: 700;
    text-align: center;
    width: 100%;
    min-width: 0;
    line-height: 1.15;
  }

  body.home-page .store-carousel-section.store-carousel-section--home .store-card .btn-buy,
  body.home-page .store-carousel-section.store-carousel-section--home .store-card__cta {
    display: none !important;
  }

  body.home-page .home-teaser-block {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin-top: 0.8rem;
    margin-bottom: 0;
    flex-shrink: 0;
  }

  body.home-page .home-teaser-block .home-teaser-section {
    min-width: 0;
    margin-top: 0;
  }

  body.home-page .home-teaser-block .teaser-card.card-mobile {
    display: flex;
    flex-direction: column;
    height: 145px;
    min-height: 145px;
    max-height: 145px;
    overflow: hidden;
    box-sizing: border-box;
    align-items: stretch;
  }

  body.home-page .home-teaser-block .teaser-card.card-mobile .teaser-card__body,
  body.home-page .home-teaser-block .teaser-card.card-mobile .card-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
  }

  body.home-page .home-teaser-block .teaser-card.card-mobile .teaser-card__excerpt {
    overflow: hidden;
  }

  body.home-page .home-teaser-block .teaser-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 0 !important;
    width: 100%;
    margin: 0 !important;
  }

  body.home-page .novedades-eventos-container {
    margin-top: 0 !important;
    gap: 0.35rem !important;
    flex-grow: 0 !important;
  }

  body.home-page .card-mobile {
    padding: 0.35rem 0.4rem !important;
    font-size: 1.05rem !important;
    line-height: 1.35 !important;
  }

  body.home-page .card-mobile .card-title {
    font-size: 1.55rem !important;
    margin: 0 0 0.38rem 0 !important;
    line-height: 1.2 !important;
    letter-spacing: 0.06em !important;
  }

  body.home-page .card-mobile .teaser-card__body,
  body.home-page .card-mobile .card-body {
    margin: 0 !important;
  }

  body.home-page .home-teaser-block .card-mobile .teaser-card__excerpt,
  body.home-page .home-teaser-block .card-mobile .card-body p,
  body.home-page .home-teaser-block .card-mobile p {
    -webkit-line-clamp: 3 !important;
    line-clamp: 3 !important;
    font-size: 1.05rem !important;
    line-height: 1.35 !important;
  }

  body.home-page footer.site-footer.footer-mini {
    margin-top: 0.15rem;
    padding: 0.1rem 0.15rem 0.2rem !important;
    font-size: 0.55rem !important;
    line-height: 1.15 !important;
    flex-shrink: 0;
  }
}

/* === Panel /admin: solo tipografía de sistema/Inter (LifeCraft no aplica aquí) === */
body.admin-app {
  --font-admin-stack: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-family: var(--font-admin-stack), "Inter", var(--font-body), sans-serif !important;
}

body.admin-app h1,
body.admin-app h2,
body.admin-app h3,
body.admin-app h4,
body.admin-app .card-title,
body.admin-app .store-item-name,
body.admin-app .novedades-eventos-container h3 {
  font-family: var(--font-admin-stack), "Inter", sans-serif !important;
  text-transform: none !important;
  letter-spacing: normal !important;
  color: var(--text) !important;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.admin-app .admin-nav,
body.admin-app .admin-nav__label,
body.admin-app .admin-nav__links,
body.admin-app .admin-nav__home,
body.admin-app .admin-nav__logout-btn,
body.admin-app .btn,
body.admin-app button,
body.admin-app input,
body.admin-app select,
body.admin-app textarea {
  font-family: var(--font-admin-stack), "Inter", sans-serif !important;
}

/* Transiciones de estado (order_detail): botonera semántica */
body.admin-app .btn.btn-success {
  background: linear-gradient(180deg, #2d6a45, #1e4a32);
  border-color: #3d8058;
  color: #f0fff4;
}
body.admin-app .btn.btn-success:hover {
  filter: brightness(1.06);
}
body.admin-app .btn.btn-danger {
  background: linear-gradient(180deg, #8a2a2a, #5a1818);
  border-color: #a83838;
  color: #fff;
}
body.admin-app .btn.btn-danger:hover {
  filter: brightness(1.06);
}
body.admin-app .btn.btn-warning {
  background: linear-gradient(180deg, #6a5a1e, #4a3d14);
  border-color: #8a7a2a;
  color: #fff8e0;
}
body.admin-app .btn.btn-warning:hover {
  filter: brightness(1.06);
}
body.admin-app .btn.btn-primary {
  background: linear-gradient(180deg, #2a4a7a, #1a2d52);
  border-color: #3a5a8a;
  color: #e8f0ff;
}
body.admin-app .btn.btn-primary:hover {
  filter: brightness(1.06);
}
body.admin-app .btn.btn-sm {
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
}

body.admin-app .admin-nav__label {
  letter-spacing: 0.08em;
}

body.admin-app .admin-nav__home {
  text-transform: none !important;
  letter-spacing: normal !important;
}

/* Manual de ayuda (help.php): Inter/sans-serif, cards, responsive */
body.admin-app .help-manual-page,
body.admin-app .help-manual-page * {
  font-family: var(--font-admin-stack), "Inter", sans-serif !important;
}

.help-manual-page {
  padding-top: 0.75rem;
}

.help-manual-page__header {
  margin-bottom: 0.25rem;
}

.help-manual-page__title {
  font-size: clamp(1.2rem, 2.8vw, 1.5rem);
  font-weight: 600;
  margin: 0 0 0.25rem;
  color: var(--text);
  line-height: 1.2;
}

.help-manual-page__meta {
  margin: 0 0 1rem;
  font-size: 0.875rem;
  color: #9a9590;
  line-height: 1.4;
}

.help-manual {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  width: 100%;
  max-width: min(56rem, 100%);
  margin-top: 0.35rem;
  padding-bottom: 2rem;
  line-height: 1.55;
  font-size: 0.95rem;
  color: #d4d0ca;
}

.help-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  padding: 0.65rem 0 0.85rem;
  margin: 0 0 0.25rem;
  border-bottom: 1px solid #2a2a32;
}

.help-toc__link {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.8rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: #e8e6e3;
  text-decoration: none;
  border: 1px solid #3a3a46;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.help-toc__link:hover,
.help-toc__link:focus-visible {
  border-color: rgba(204, 170, 170, 0.65);
  background: rgba(253, 224, 141, 0.08);
  color: #fff;
  outline: none;
}

.help-card {
  background: #141418;
  border: 1px solid #333;
  border-radius: 12px;
  padding: 1.1rem clamp(0.85rem, 2.5vw, 1.25rem) 1.2rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
}

.help-card--edicion {
  border-left: 3px solid #6b8cae;
}

.help-card--merch {
  border-left: 3px solid #8b7a9e;
}

.help-card--pos {
  border-left: 3px solid #c97a5c;
}

.help-card--admin {
  border-left: 3px solid #7a9e7a;
}

.help-card--support {
  border-left: 3px solid #9e8b6b;
}

.help-card--store {
  border-left: 3px solid #888;
}

.help-card__title {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem 0.75rem;
  font-size: clamp(1rem, 2.2vw, 1.15rem);
  font-weight: 600;
  margin: 0 0 1rem;
  color: #f0ede8;
  line-height: 1.3;
}

.help-card__badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.55rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #1a1a1e;
  background: linear-gradient(135deg, #e8d4a8 0%, #c9a86c 100%);
  border-radius: 6px;
}

.help-card__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 640px) {
  .help-card__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem 1.15rem;
  }
}

.help-block {
  padding: 0.75rem 0.85rem;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid #2e2e36;
  border-radius: 10px;
}

.help-block__name {
  margin: 0 0 0.5rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: #fff;
}

.help-block__steps {
  margin: 0;
  padding-left: 1.2rem;
}

.help-block__steps li {
  margin-bottom: 0.45rem;
}

.help-block__steps li:last-child {
  margin-bottom: 0;
}

.help-block__steps li::marker {
  font-weight: 600;
  color: #caa;
}

.help-card__steps {
  margin: 0;
  padding-left: 1.35rem;
}

.help-card__steps li {
  margin-bottom: 0.65rem;
}

.help-card__steps li:last-child {
  margin-bottom: 0;
}

.help-card__steps--numbered {
  counter-reset: help-step;
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.help-card__steps--numbered li {
  counter-increment: help-step;
  position: relative;
  padding-left: 2.6rem;
  margin-bottom: 0.9rem;
  min-height: 1.5rem;
}

.help-card__steps--numbered li:last-child {
  margin-bottom: 0;
}

.help-card__steps--numbered li::before {
  content: counter(help-step);
  position: absolute;
  left: 0;
  top: 0.05rem;
  width: 1.65rem;
  height: 1.65rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 700;
  color: #1a1a1e;
  background: linear-gradient(145deg, #e8d4a8, #b8955c);
  border: 2px solid #2a2a32;
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
  flex-shrink: 0;
}

.help-card__lead {
  margin: 0;
  color: #c8c4bf;
  line-height: 1.55;
}

.help-card__lead--support {
  margin: 0 0 1rem;
  font-size: 0.92rem;
}

.help-manual__footer {
  margin: 0.5rem 0 0;
  padding-top: 1.15rem;
  border-top: 1px solid #2a2a32;
  font-size: 0.9rem;
}

.help-manual__back {
  color: #fde08d;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.help-manual__back:hover {
  color: #fff;
}

section[id^="help-"] {
  scroll-margin-top: 1rem;
}

/* Nav: enlaces Ayuda / Soporte */
.admin-nav__group--assist .admin-nav__links {
  align-items: center;
}

.admin-nav__assist-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.admin-nav__assist-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0;
  margin: 0;
  border: none;
  background: transparent;
  color: #f0c0c8;
  font: inherit;
  font-size: 0.9rem;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 0.12em;
}

.admin-nav__assist-btn:hover {
  color: #fff;
}

.admin-nav__assist-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1;
  background: rgba(253, 224, 141, 0.12);
  border: 1px solid rgba(253, 224, 141, 0.35);
  color: #fde08d;
}

.admin-nav__assist-ico--alert {
  background: rgba(196, 30, 58, 0.2);
  border-color: rgba(196, 30, 58, 0.45);
  color: #f0a8b0;
}

/* Icono (?) del enlace Ayuda: círculo, contraste con ! de Soporte */
.admin-nav__assist-ico--help {
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  font-size: 0.72rem;
  font-weight: 800;
  background: rgba(120, 160, 200, 0.22);
  border: 1px solid rgba(140, 180, 220, 0.55);
  color: #b8d4f0;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.2) inset;
}

/* Modal reporte de error */
.admin-support-modal {
  position: fixed;
  inset: 0;
  z-index: 20000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.admin-support-modal[hidden] {
  display: none !important;
}

.admin-support-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(6px);
}

.admin-support-modal__panel {
  position: relative;
  z-index: 1;
  width: min(100%, 420px);
  max-height: 90vh;
  overflow: auto;
  padding: 1.15rem 1.25rem;
  background: #1a1a22;
  border: 1px solid #444;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.55);
}

.admin-support-modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.admin-support-modal__title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
}

.admin-support-modal__x {
  border: none;
  background: transparent;
  color: #888;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.15rem;
}

.admin-support-modal__x:hover {
  color: #fff;
}

.admin-support-modal__label {
  display: block;
  margin-bottom: 0.85rem;
  font-size: 0.88rem;
  color: #b8b5b0;
}

.admin-support-modal__select,
.admin-support-modal__textarea {
  width: 100%;
  margin-top: 0.35rem;
  padding: 0.45rem 0.65rem;
  background: #111;
  border: 1px solid #444;
  border-radius: 8px;
  color: #eee;
  font-size: 0.9rem;
  box-sizing: border-box;
}

.admin-support-modal__textarea {
  resize: vertical;
  min-height: 120px;
}

.admin-support-modal__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: flex-end;
  margin-top: 1rem;
}
