/* Tokens alineados con https://ninjalab3d.com/ (Hostinger Horizons / shadcn) */
:root {
  --background: 0 0% 3.9%;
  --foreground: 0 0% 98%;
  --card: 0 0% 3.9%;
  --card-foreground: 0 0% 98%;
  --primary: 130 100% 50%;
  --primary-foreground: 0 0% 9%;
  --secondary: 0 0% 14.9%;
  --secondary-foreground: 0 0% 98%;
  --muted: 0 0% 14.9%;
  --muted-foreground: 0 0% 63.9%;
  --accent: 130 40% 20%;
  --accent-foreground: 0 0% 98%;
  --border: 0 0% 14.9%;
  --ring: 130 100% 50%;
  --header-background: 0 0% 3.9%;
  --header-foreground: 0 0% 98%;
  --menu-drawer-background: 0 0% 3.9%;
  --menu-bar-background: 0 0% 3.9%;
  --nav-link-muted: 0 0% 63.9%;
  --nav-link-hover: 0 0% 98%;
  --nav-accent: 130 100% 50%;
  --radius: 0.5rem;
}

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

html {
  scroll-behavior: smooth;
  /* Evita que el navegador “corrija” scrollTop al cambiar la altura del header sticky → bucles compacto/extendido */
  overflow-anchor: none;
}

body {
  margin: 0;
  min-height: 100vh;
  background-color: hsl(var(--background));
  color: hsl(var(--foreground));
  font-family: Inter, system-ui, -apple-system, Segoe UI, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Títulos de sección: verde neón + halo (marca Ninja Lab). Admin y sr-only excluidos. */
h2:not(.sr-only):not(.admin-h2):not(.admin-modal__title) {
  font-family: Inter, system-ui, -apple-system, Segoe UI, sans-serif;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.18;
  color: hsl(var(--primary));
  text-shadow:
    0 0 16px hsl(var(--primary) / 0.42),
    0 0 40px hsl(var(--primary) / 0.18),
    0 1px 2px hsl(0 0% 0% / 0.55);
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.imagen-logo {
  width: min(72%, 340px);
  max-width: 400px;
  height: auto;
  border-radius: 8px;
  display: block;
  margin: 0 auto 0.75rem;
}

.nav-desktop__auth {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin-left: 0.25rem;
}

.btn--nav {
  padding: 0.35rem 0.85rem;
  font-size: 0.8125rem;
}

.viewer-section {
  padding: clamp(1rem, 3vw, 1.75rem) 0 clamp(1.5rem, 4vw, 2.25rem);
}

.viewer-shell {
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid hsl(var(--border));
  box-shadow: 0 0 0 1px hsl(var(--primary) / 0.08), 0 12px 40px hsl(0 0% 0% / 0.45);
  background: hsl(0 0% 6%);
  position: relative;
}

/* Altura explícita: clientHeight 0 rompe WebGL + ResizeObserver ignoraba h < 2 */
.viewer-canvas {
  position: relative;
  width: 100%;
  min-height: min(52vh, 520px);
  height: min(52vh, 520px);
}

@media (max-width: 767px) {
  .viewer-canvas {
    min-height: 320px;
    height: 360px;
  }
}

.viewer-shell canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
}

/* Visor compacto solo en la portada */
.viewer-section--home .viewer-shell {
  max-width: min(100%, 400px);
  margin-left: auto;
  margin-right: auto;
}

.viewer-canvas--home {
  width: 100%;
  height: 220px;
  min-height: 200px;
  max-height: 260px;
}

@media (max-width: 767px) {
  /* Misma altura que antes; menos ancho para dejar márgenes y poder desplazar la página */
  .viewer-section--home .viewer-shell {
    max-width: min(292px, 74vw);
    width: 100%;
    margin-left: auto;
    margin-right: auto;
  }

  .viewer-canvas--home {
    height: 200px;
    min-height: 180px;
    max-height: 220px;
  }
}

.viewer-hint {
  margin: 0 0 0.75rem;
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  text-align: center;
}

.viewer-status {
  margin-top: 0.65rem;
  font-size: 0.8125rem;
  color: hsl(var(--muted-foreground));
  text-align: center;
  min-height: 1.25rem;
}

.viewer-status--error {
  color: hsl(0 84% 60%);
}

.viewer-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.viewer-toolbar label {
  cursor: pointer;
}

.catalog-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}

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

@media (min-width: 1024px) {
  .catalog-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.catalog-card {
  border-radius: 1rem;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-height: 9rem;
  transition: transform 0.2s, border-color 0.2s;
}

.catalog-card--link {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.catalog-card--link:visited {
  color: inherit;
}

.catalog-card--link:focus-visible {
  outline: 2px solid hsl(var(--primary));
  outline-offset: 3px;
}

.catalog-card:hover {
  transform: translateY(-3px);
  border-color: hsl(var(--primary) / 0.45);
}

.catalog-card h3 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.catalog-card p {
  margin: 0;
  flex: 1;
  font-size: 0.9rem;
  color: hsl(var(--muted-foreground));
}

.catalog-card__thumb {
  margin: 0.65rem auto 0.85rem;
  width: 100%;
  max-width: 12.5rem;
  border-radius: 0.65rem;
  overflow: hidden;
  border: 1px solid hsl(var(--border));
  background: hsl(0 0% 8%);
  aspect-ratio: 1;
}

.catalog-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.catalog-card .btn,
.catalog-card .catalog-card__cta {
  align-self: stretch;
  margin-top: auto;
  text-align: center;
  justify-content: center;
}

.catalog-card--link .catalog-card__cta {
  pointer-events: none;
}

.content-page {
  padding: clamp(1.5rem, 5vw, 2.5rem) 0 clamp(3rem, 8vw, 4rem);
}

.content-page h1 {
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  margin: 0 0 1rem;
}

.content-page .lead {
  color: hsl(var(--muted-foreground));
  max-width: min(52rem, 100%);
  margin: 0 0 2rem;
}

.material-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid hsl(var(--border));
  margin: 1.5rem 0;
}

.material-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.material-table th,
.material-table td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid hsl(var(--border));
}

.material-table th {
  background: hsl(var(--secondary));
  font-weight: 600;
}

.material-table tr:last-child td {
  border-bottom: none;
}

.quote-hero {
  padding: clamp(2.5rem, 7vw, 5rem) 0 clamp(1.5rem, 4vw, 2.5rem);
  background:
    radial-gradient(circle at 12% 12%, hsl(var(--primary) / 0.16), transparent 28rem),
    radial-gradient(circle at 88% 8%, hsl(188 95% 43% / 0.12), transparent 24rem);
}

.quote-hero__inner {
  display: grid;
  gap: 1.5rem;
  align-items: center;
}

@media (min-width: 900px) {
  .quote-hero__inner {
    grid-template-columns: minmax(0, 1.25fr) minmax(18rem, 0.75fr);
  }
}

.quote-hero h1 {
  max-width: 13ch;
  margin: 0 0 1rem;
  font-size: clamp(2.4rem, 7vw, 5rem);
  line-height: 1.05;
}

.quote-hero p {
  max-width: 48rem;
  margin: 0;
  color: hsl(var(--muted-foreground));
  font-size: 1.08rem;
}

.quote-hero__facts {
  display: grid;
  gap: 0.7rem;
  padding: 1rem;
  border-radius: 1.25rem;
}

.quote-hero__facts span {
  padding: 0.8rem 0.95rem;
  border: 1px solid hsl(var(--border));
  border-radius: 1rem;
  background: hsl(0 0% 100% / 0.035);
  color: hsl(var(--primary));
  font-weight: 800;
}

.quote-section {
  padding-top: 2rem;
}

.quote-layout {
  display: grid;
  gap: 1.25rem;
  align-items: start;
}

@media (min-width: 980px) {
  .quote-layout {
    grid-template-columns: minmax(0, 1.15fr) minmax(20rem, 0.85fr);
  }
}

.quote-form,
.quote-result {
  padding: clamp(1rem, 3vw, 1.5rem);
  border-radius: 1.25rem;
}

.quote-form__header h2,
.quote-form__header p {
  margin: 0;
}

.quote-form__header p,
.quote-note {
  color: hsl(var(--muted-foreground));
  font-size: 0.92rem;
}

.quote-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
  gap: 0.85rem;
  margin: 1.25rem 0;
}

.quote-field {
  display: grid;
  gap: 0.35rem;
  color: hsl(var(--muted-foreground));
  font-size: 0.82rem;
  font-weight: 800;
}

.quote-field input,
.quote-field select {
  min-height: 2.65rem;
  padding: 0.6rem 0.7rem;
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  font: inherit;
  color-scheme: dark;
}

.quote-upload {
  display: grid;
  gap: 0.25rem;
  margin-bottom: 1rem;
  padding: 1rem;
  border: 1px dashed hsl(var(--primary) / 0.42);
  border-radius: 1rem;
  background: hsl(var(--primary) / 0.07);
  cursor: pointer;
}

.quote-upload input {
  width: 100%;
}

.quote-upload span {
  color: hsl(var(--primary));
  font-weight: 800;
}

.quote-upload small {
  color: hsl(var(--muted-foreground));
}

.quote-preview {
  margin-bottom: 1rem;
  overflow: hidden;
  border: 1px solid hsl(var(--border));
  border-radius: 1rem;
  background: hsl(0 0% 8%);
}

.quote-preview img {
  width: 100%;
  max-height: 18rem;
  object-fit: contain;
}

.quote-result {
  position: sticky;
  top: 1rem;
  background:
    linear-gradient(145deg, hsl(var(--primary) / 0.12), transparent 45%),
    hsl(var(--background) / 0.8);
}

.quote-result__eyebrow {
  margin: 0 0 0.35rem;
  color: hsl(var(--primary));
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.quote-result h2 {
  margin: 0 0 1rem;
  font-size: clamp(2.2rem, 6vw, 4rem);
  line-height: 1;
}

.quote-result__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.65rem;
  margin-bottom: 1rem;
}

.quote-result__grid div {
  padding: 0.8rem;
  border: 1px solid hsl(var(--border));
  border-radius: 0.9rem;
  background: hsl(0 0% 100% / 0.035);
}

.quote-result__grid span {
  display: block;
  color: hsl(var(--muted-foreground));
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.quote-result__grid strong {
  color: hsl(var(--foreground));
  font-size: 1.1rem;
}

.quote-breakdown {
  display: grid;
  gap: 0.35rem;
  margin-bottom: 1rem;
  color: hsl(var(--muted-foreground));
  font-size: 0.92rem;
}

.quote-breakdown p {
  margin: 0;
}

/* Página Materiales (réplica del React: framer-motion ≈ CSS + IO) */
.materials-react-stack {
  display: flex;
  flex-direction: column;
  gap: 4rem;
}

.materials-react-hero {
  text-align: center;
  opacity: 0;
  transform: translateY(-20px);
}

.materials-react-hero.is-visible {
  animation: materialsHeroIn 0.5s ease-out forwards;
}

@keyframes materialsHeroIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.materials-react-hero h1 {
  font-size: clamp(2.25rem, 6vw, 3.75rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.1;
  margin: 0 0 1rem;
}

.materials-react-hero .lead {
  margin: 0 auto;
  max-width: min(58rem, 100%);
  font-size: 1.125rem;
  color: hsl(var(--muted-foreground));
  line-height: 1.6;
}

.materials-react-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

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

.material-io-card {
  padding: 2rem;
  border-radius: 1rem;
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: translateY(50px);
}

.material-io-card.is-visible {
  animation: materialsCardIn 0.8s cubic-bezier(0.34, 1.45, 0.64, 1) forwards;
}

@keyframes materialsCardIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.material-io-card__head {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}

.material-io-card__head svg {
  width: 2rem;
  height: 2rem;
  margin-right: 1rem;
  flex-shrink: 0;
  color: hsl(var(--primary));
}

.material-io-card h2 {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0;
  line-height: 1.25;
  text-align: left;
}

.material-io-card > p {
  flex: 1;
  margin: 0 0 1.5rem;
  color: hsl(var(--muted-foreground));
  font-size: 1rem;
  line-height: 1.6;
  text-align: left;
}

.material-io-card__cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  font-size: 0.875rem;
}

.material-io-card__cols h3 {
  font-weight: 600;
  margin: 0 0 0.5rem;
  font-size: 0.875rem;
}

.material-io-card__cols h3.material-io-card__pros {
  color: #4ade80;
}

.material-io-card__cols h3.material-io-card__cons {
  color: #f87171;
}

.material-io-card__cols ul {
  margin: 0;
  padding-left: 1.25rem;
  list-style-type: disc;
  list-style-position: inside;
  color: hsl(var(--muted-foreground));
}

.material-io-card__cols li + li {
  margin-top: 0.25rem;
}

@media (max-width: 480px) {
  .material-io-card__cols {
    grid-template-columns: 1fr;
  }
}

.auth-card {
  max-width: 420px;
  margin: 0 auto;
  padding: 2rem;
  border-radius: 1rem;
}

.auth-card h1 {
  margin: 0 0 0.5rem;
  font-size: 1.75rem;
}

.auth-card .sub {
  margin: 0 0 1.5rem;
  color: hsl(var(--muted-foreground));
  font-size: 0.9rem;
}

.form-field {
  margin-bottom: 1rem;
  text-align: left;
}

.form-field label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.form-field input {
  width: 100%;
  padding: 0.65rem 0.75rem;
  border-radius: var(--radius);
  border: 1px solid hsl(var(--border));
  background: hsl(var(--secondary));
  color: hsl(var(--foreground));
  font: inherit;
}

.form-field input:focus-visible {
  outline: 2px solid hsl(var(--ring));
  outline-offset: 1px;
}

.form-actions {
  margin-top: 1.25rem;
}

.form-actions .btn {
  width: 100%;
}

.alert {
  padding: 0.65rem 0.75rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
  margin-bottom: 1rem;
  text-align: left;
}

.alert--ok {
  background: hsl(var(--primary) / 0.12);
  border: 1px solid hsl(var(--primary) / 0.35);
  color: hsl(var(--foreground));
}

.alert--err {
  background: hsl(0 84% 60% / 0.12);
  border: 1px solid hsl(0 84% 60% / 0.35);
}

.timeline {
  margin: 2rem 0;
  padding-left: 1rem;
  border-left: 2px solid hsl(var(--primary) / 0.35);
  list-style: none;
}

.timeline li {
  margin-bottom: 1.25rem;
}

.timeline strong {
  color: hsl(var(--primary));
}

.glass-effect {
  background: rgba(20, 20, 20, 0.5);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.neon-text {
  text-shadow:
    0 0 5px hsl(var(--primary) / 0.9),
    0 0 10px hsl(var(--primary) / 0.6),
    0 0 20px hsl(var(--primary) / 0.35);
}

.neon-border {
  border-color: hsl(var(--primary));
  box-shadow:
    0 0 5px hsl(var(--primary) / 0.5),
    0 0 10px hsl(var(--primary) / 0.25) inset;
}

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

.container {
  width: 100%;
  max-width: 72rem;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

@media (min-width: 1024px) {
  .container {
    padding-left: 2rem;
    padding-right: 2rem;
    max-width: min(88rem, calc(100vw - 2.5rem));
  }
}

@media (min-width: 1440px) {
  .container {
    max-width: min(96rem, calc(100vw - 3rem));
    padding-left: clamp(2rem, 3vw, 3rem);
    padding-right: clamp(2rem, 3vw, 3rem);
  }
}

/* —— Header tipo The Barber Plug: logo | búsqueda | cuenta/carrito; menú inferior; compacta al scroll —— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  color: hsl(var(--header-foreground));
  background: hsl(var(--header-background) / 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid hsl(var(--border));
  transition:
    border-color 0.25s ease,
    box-shadow 0.36s cubic-bezier(0.22, 1, 0.36, 1),
    background 0.28s ease;
}

@media (min-width: 768px) {
  .site-header--compact {
    box-shadow: 0 10px 32px hsl(0 0% 0% / 0.14);
  }
}

.site-header__container {
  position: relative;
}

.site-header__shell {
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-rows: auto auto;
  align-items: center;
  column-gap: 0.55rem;
  row-gap: 0.5rem;
  padding-block: 0.42rem;
  box-sizing: border-box;
}

.site-header__shell > .nav-toggle {
  grid-column: 1;
  grid-row: 1;
}

.site-header__shell > .site-header__logo {
  grid-column: 2;
  grid-row: 1;
  justify-self: center;
  min-width: 0;
}

.site-header__shell > .site-header__tools {
  grid-column: 3;
  grid-row: 1;
}

.site-header__shell > .site-header__search {
  grid-column: 1 / -1;
  grid-row: 2;
}

.site-header__shell > .site-header__nav {
  display: none;
}

.site-header__logo .logo__img {
  display: block;
  height: 2.55rem;
  width: auto;
  max-width: min(260px, 58vw);
  object-fit: contain;
  transition:
    height 0.38s cubic-bezier(0.22, 1, 0.36, 1),
    max-width 0.38s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Móvil: logo tipo showcase (referencia The Barber Plug); búsqueda en fila inferior */
@media (max-width: 767.98px) {
  .site-header__shell {
    row-gap: 0.6rem;
    padding-block: 0.38rem 0.48rem;
    column-gap: 0.35rem;
    /* Fila 1 más alta: el logo puede usar casi todo ese alto */
    grid-template-rows: minmax(clamp(5.55rem, 17vw, 7.35rem), auto) auto;
    align-items: stretch;
  }

  .site-header__shell > .nav-toggle,
  .site-header__shell > .site-header__tools {
    align-self: center;
  }

  /* Solo el logo: ocupa todo el alto de la fila superior + ancho de la celda central */
  .site-header__shell > .site-header__logo {
    justify-self: stretch;
    align-self: stretch;
    width: 100%;
    max-width: none;
    min-width: 0;
    min-height: 0;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-inline: 0.06rem;
  }

  .site-header__shell > .site-header__logo .logo__img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    margin: 0;
    object-fit: contain;
    object-position: center;
  }

  .site-header__search {
    transform-origin: center top;
  }

  .site-header--mobile-search-collapsed .site-header__shell {
    row-gap: 0;
    padding-block: 0.42rem 0.45rem;
  }

  .site-header--mobile-search-collapsed:not(:focus-within) .site-header__search {
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    max-height: 0;
    min-height: 0;
    margin: 0;
    padding: 0;
    border-color: transparent;
    box-shadow: none;
    pointer-events: none;
    overflow: hidden;
  }

  /* Si el usuario enfoca el buscador, mostrarlo aunque el scroll siga abajo */
  .site-header--mobile-search-collapsed:focus-within .site-header__search {
    opacity: 1;
    visibility: visible;
    transform: none;
    max-height: 6rem;
    min-height: 2.45rem;
    margin-top: 0.55rem;
    pointer-events: auto;
    border-color: hsl(var(--border));
    overflow: hidden;
  }

  .site-header--mobile-search-collapsed:focus-within .site-header__shell {
    row-gap: 0.55rem;
    padding-block: 0.48rem 0.5rem;
  }

  @media (prefers-reduced-motion: reduce) {
    .site-header__search {
      transition-duration: 0.01ms;
    }
  }
}

.site-header__search {
  display: flex;
  align-items: stretch;
  min-height: 2.45rem;
  border-radius: calc(var(--radius) + 3px);
  border: 1px solid hsl(var(--border));
  background: hsl(var(--secondary));
  overflow: hidden;
  opacity: 1;
  visibility: visible;
  transform: none;
  transition:
    opacity 0.3s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
    max-height 0.34s cubic-bezier(0.22, 1, 0.36, 1),
    min-height 0.28s ease,
    margin 0.28s ease,
    visibility 0.28s ease,
    border-color 0.28s ease,
    box-shadow 0.32s cubic-bezier(0.22, 1, 0.36, 1),
    max-width 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.site-header__search:focus-within {
  border-color: hsl(var(--primary) / 0.42);
  box-shadow: 0 0 0 3px hsl(var(--primary) / 0.12);
}

.site-header__search-input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  padding: 0 0.5rem 0 0.85rem;
  font-size: 0.875rem;
  color: hsl(var(--header-foreground));
}

.site-header__search-input::placeholder {
  color: hsl(var(--muted-foreground));
}

.site-header__search-input:focus {
  outline: none;
}

.site-header__search-submit {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.65rem;
  padding: 0;
  border: none;
  border-left: 1px solid hsl(var(--border) / 0.65);
  background: hsl(var(--header-background) / 0.35);
  color: hsl(var(--nav-link-muted));
  cursor: pointer;
  transition:
    color 0.22s ease,
    background 0.22s ease;
}

.site-header__search-submit:hover {
  color: hsl(var(--nav-accent));
  background: hsl(var(--secondary));
}

@media (min-width: 768px) {
  /* Hamburguesa solo visible al estar compacto (tras scroll), tipo The Barber Plug */
  .site-header:not(.site-header--compact) .site-header__shell > .nav-toggle {
    display: none;
  }

  .site-header--compact .site-header__shell > .nav-toggle {
    display: inline-flex;
    grid-column: 1;
    grid-row: 1;
    align-self: center;
    margin-right: 0.1rem;
  }

  .site-header__shell {
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-rows: auto auto;
    column-gap: clamp(0.85rem, 2.2vw, 1.45rem);
    row-gap: clamp(0.55rem, 1.2vw, 0.85rem);
    padding-block: 0.58rem 0;
  }

  .site-header__shell > .site-header__logo {
    grid-column: 1;
    grid-row: 1;
    justify-self: start;
    align-self: center;
  }

  .site-header__shell > .site-header__search {
    grid-column: 2;
    grid-row: 1;
    width: 100%;
    max-width: min(40rem, 100%);
    justify-self: center;
    align-self: center;
    position: relative;
    z-index: 2;
  }

  .site-header__shell > .site-header__tools {
    grid-column: 3;
    grid-row: 1;
    align-self: center;
  }

  .site-header__shell > .site-header__nav.nav-desktop {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
    grid-column: 1 / -1;
    grid-row: 2;
    justify-self: center;
    align-self: center;
    width: auto;
    max-width: calc(100% - 0.75rem);
    margin-top: 0;
    margin-bottom: clamp(0.65rem, 1.6vw, 1.05rem);
    position: relative;
    z-index: 1;
    padding: 0.32rem 0.4rem;
    gap: 0.12rem;
    box-sizing: border-box;
    border: 1px solid hsl(var(--border) / 0.4);
    border-radius: 9999px;
    background: hsl(var(--menu-bar-background) / 0.92);
    backdrop-filter: blur(14px) saturate(1.2);
    -webkit-backdrop-filter: blur(14px) saturate(1.2);
    box-shadow:
      0 6px 28px hsl(0 0% 0% / 0.14),
      inset 0 1px 0 hsl(0 0% 100% / 0.05);
    transition:
      margin-top 0.34s cubic-bezier(0.22, 1, 0.36, 1),
      margin-bottom 0.34s cubic-bezier(0.22, 1, 0.36, 1),
      padding 0.34s cubic-bezier(0.22, 1, 0.36, 1),
      border-color 0.28s ease,
      background 0.28s ease,
      box-shadow 0.28s ease;
  }

  .site-header__logo .logo__img {
    height: 8.2rem;
    max-width: min(380px, 42vw);
  }

  .site-header--compact .site-header__shell {
    grid-template-columns: auto auto minmax(0, 1fr) auto;
    grid-template-rows: auto;
    column-gap: clamp(0.45rem, 1.2vw, 0.75rem);
    row-gap: 0;
    padding-block: 0.38rem;
  }

  /* Menú principal en panel (drawer); la barra desktop se oculta al compactar */
  .site-header--compact .site-header__shell > .site-header__nav.nav-desktop {
    display: none !important;
  }

  .site-header--compact .site-header__shell > .site-header__logo {
    grid-column: 2;
    grid-row: 1;
  }

  .site-header--compact .site-header__shell > .site-header__search {
    grid-column: 3;
    grid-row: 1;
    max-width: min(22rem, 38vw);
    width: 100%;
    justify-self: end;
    min-width: 7.5rem;
    min-height: 2.2rem;
  }

  .site-header--compact .site-header__shell > .site-header__tools {
    grid-column: 4;
    grid-row: 1;
  }

  .site-header--compact .site-header__logo .logo__img {
    height: 4.15rem;
    max-width: min(280px, 34vw);
  }
}

.logo {
  display: inline-flex;
  align-items: center;
  font-weight: 700;
  letter-spacing: -0.02em;
  flex-shrink: 0;
  text-decoration: none;
  color: inherit;
}

.logo--wordmark {
  line-height: 0;
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: none;
  border-radius: var(--radius);
  background: transparent;
  color: hsl(var(--header-foreground));
  cursor: pointer;
  transition:
    background 0.22s ease,
    color 0.22s ease,
    transform 0.22s ease;
}

.nav-toggle:hover {
  background: hsl(var(--secondary));
}

.nav-toggle__icon {
  width: 1.375rem;
  height: 0.875rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.nav-toggle__icon span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition:
    transform 0.32s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.22s ease;
}

.nav-toggle[aria-expanded='true'] .nav-toggle__icon span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded='true'] .nav-toggle__icon span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.nav-toggle[aria-expanded='true'] .nav-toggle__icon span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.nav-desktop {
  display: none;
}

@media (min-width: 768px) {
  .site-header__nav > a {
    position: relative;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: none;
    color: hsl(var(--nav-link-muted));
    padding: 0.45rem 0.95rem;
    border-radius: 9999px;
    transition:
      color 0.22s ease,
      background 0.22s ease,
      box-shadow 0.22s ease,
      font-size 0.34s cubic-bezier(0.22, 1, 0.36, 1),
      padding 0.34s cubic-bezier(0.22, 1, 0.36, 1);
    white-space: nowrap;
  }

  .site-header__nav > a:hover {
    color: hsl(var(--nav-link-hover));
    background: hsl(var(--secondary) / 0.55);
  }

  .site-header__nav > a.is-active {
    color: hsl(var(--nav-link-hover));
    background: hsl(var(--nav-accent) / 0.16);
    box-shadow: inset 0 0 0 1px hsl(var(--nav-accent) / 0.35);
  }
}

.site-header__tools {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.site-header__tools .nav-desktop__auth a {
  font-size: 0.8125rem;
  font-weight: 600;
  color: hsl(var(--nav-link-muted));
  padding: 0.48rem 0.65rem;
  border-radius: var(--radius);
  transition:
    color 0.22s ease,
    background 0.22s ease;
}

.site-header__tools .nav-desktop__auth a:hover {
  color: hsl(var(--nav-accent));
  background: hsl(var(--secondary));
}

.site-header__backdrop {
  position: fixed;
  inset: 0;
  background: hsl(0 0% 0% / 0.5);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.34s cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0.34s ease;
  z-index: 120;
  pointer-events: none;
}

.site-header__backdrop.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.nav-mobile--drawer {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  max-height: 100dvh;
  width: min(max(15.5rem, max-content), min(26rem, calc(100vw - 1.25rem)));
  max-width: 100%;
  margin: 0;
  padding: 0;
  background-color: hsl(var(--menu-drawer-background));
  background-image: none;
  border-right: 1px solid hsl(var(--border) / 0.55);
  border-radius: 0 1.125rem 1.125rem 0;
  border-top: none;
  box-shadow:
    24px 0 56px hsl(0 0% 0% / 0.28),
    inset -1px 0 0 hsl(0 0% 100% / 0.04);
  z-index: 130;
  transform: translate3d(-108%, 0, 0);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

@media (max-width: 767.98px) {
  .nav-mobile--drawer {
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }

  .nav-mobile__top {
    padding-top: calc(1rem + env(safe-area-inset-top, 0px));
  }

  .nav-mobile__links {
    padding-bottom: calc(1.35rem + env(safe-area-inset-bottom, 0px));
  }
}

.nav-mobile--drawer.is-open {
  transform: translate3d(0, 0, 0);
}

@media (min-width: 768px) {
  .nav-mobile--drawer {
    width: min(max(17rem, max-content), min(28rem, calc(100vw - 2rem)));
    border-radius: 0 1.25rem 1.25rem 0;
  }
}

.nav-mobile__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.1rem 0.85rem;
  border-bottom: 1px solid hsl(var(--border) / 0.55);
}

.nav-mobile__title {
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: hsl(var(--nav-link-muted));
}

.nav-mobile__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: none;
  border-radius: var(--radius);
  background: transparent;
  color: hsl(var(--header-foreground));
  cursor: pointer;
  transition: background 0.22s ease;
}

.nav-mobile__close:hover {
  background: hsl(var(--secondary));
}

.nav-mobile__links {
  display: flex;
  flex-direction: column;
  padding: 0.6rem 0.65rem 1.35rem;
  gap: 0.28rem;
}

.nav-mobile__links > a {
  padding: 0.78rem 0.95rem;
  border-radius: 0.75rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: hsl(var(--nav-link-hover));
  transition:
    background 0.22s ease,
    color 0.22s ease,
    transform 0.22s ease,
    box-shadow 0.22s ease;
}

.nav-mobile__links > a:hover {
  background: hsl(var(--secondary) / 0.85);
  color: hsl(var(--nav-accent));
}

.nav-mobile__links > a.is-active {
  color: hsl(var(--nav-accent));
  background: hsl(var(--nav-accent) / 0.1);
  box-shadow: inset 0 0 0 1px hsl(var(--nav-accent) / 0.28);
}

/* Mitad izquierda del combo (icono hexagonal ninja), 1024×576 */
.hero-brand-icon {
  width: min(220px, 46vw);
  aspect-ratio: 512 / 576;
  margin: 0 auto 1rem;
  background-image: url('/images/logo-combo.png');
  background-repeat: no-repeat;
  background-position: left center;
  background-size: 200% 100%;
}

.hero {
  position: relative;
  padding: clamp(1rem, 3vw, 1.75rem) 0 clamp(1.25rem, 4vw, 2rem);
  overflow: hidden;
}

.hero--compact {
  padding: clamp(2.5rem, 7vw, 4.5rem) 0 clamp(2rem, 5vw, 3.5rem);
}

.gallery-page-hero {
  background:
    radial-gradient(circle at 12% 20%, hsl(var(--primary) / 0.18), transparent 26rem),
    radial-gradient(circle at 88% 8%, hsl(188 95% 43% / 0.14), transparent 24rem),
    linear-gradient(135deg, hsl(0 0% 5%), hsl(0 0% 2%)),
    hsl(var(--background));
}

.gallery-hero {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  align-items: center;
}

@media (min-width: 900px) {
  .gallery-hero {
    grid-template-columns: minmax(0, 1.45fr) minmax(18rem, 0.55fr);
  }
}

.gallery-hero__copy {
  position: relative;
  z-index: 1;
  text-align: left;
}

.gallery-hero__copy h1 {
  max-width: 13ch;
  font-size: clamp(2.7rem, 8vw, 5.8rem);
}

.gallery-hero__copy p {
  margin-left: 0;
}

.gallery-hero__copy .hero__actions {
  justify-content: flex-start;
}

.gallery-hero__panel {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 0.7rem;
  padding: 1rem;
  border-radius: 1.35rem;
  background:
    linear-gradient(145deg, hsl(var(--primary) / 0.16), transparent 45%),
    hsl(var(--background) / 0.7);
}

.gallery-hero__panel div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0.95rem;
  border: 1px solid hsl(var(--border));
  border-radius: 1rem;
  background: hsl(0 0% 100% / 0.035);
}

.gallery-hero__panel strong {
  color: hsl(var(--primary));
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  line-height: 1;
  text-shadow: 0 0 22px hsl(var(--primary) / 0.24);
}

.gallery-hero__panel span {
  color: hsl(var(--muted-foreground));
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.hero::before {
  content: '';
  position: absolute;
  inset: -40% -20%;
  background: radial-gradient(
    ellipse 50% 40% at 50% 0%,
    hsl(var(--primary) / 0.12),
    transparent 70%
  );
  pointer-events: none;
}

.hero__inner {
  position: relative;
  text-align: center;
  max-width: min(62rem, 100%);
  margin: 0 auto;
}

.hero__eyebrow {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: hsl(var(--primary));
  margin-bottom: 0.65rem;
}

.hero h1 {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0 0 0.85rem;
}

.hero p {
  font-size: 1.125rem;
  color: hsl(var(--muted-foreground));
  margin: 0 0 1.35rem;
  max-width: min(50rem, 100%);
  margin-left: auto;
  margin-right: auto;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: calc(var(--radius) + 2px);
  border: 1px solid transparent;
  cursor: pointer;
  transition:
    transform 0.2s,
    background 0.2s,
    border-color 0.2s,
    box-shadow 0.2s;
}

.btn:focus-visible {
  outline: 2px solid hsl(var(--ring));
  outline-offset: 2px;
}

.btn--primary {
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  box-shadow: 0 0 20px hsl(var(--primary) / 0.35);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 28px hsl(var(--primary) / 0.45);
}

.btn--ghost {
  background: hsl(var(--secondary));
  color: hsl(var(--secondary-foreground));
  border-color: hsl(var(--border));
}

.btn--ghost:hover {
  transform: translateY(-2px);
  border-color: hsl(var(--primary) / 0.5);
}

.btn--sm {
  padding: 0.35rem 0.75rem;
  font-size: 0.8125rem;
}

.section {
  padding: clamp(3rem, 8vw, 5rem) 0;
}

.section--alt {
  background: linear-gradient(
    180deg,
    hsl(var(--background)) 0%,
    hsl(0 0% 6%) 50%,
    hsl(var(--background)) 100%
  );
}

.section__header {
  text-align: center;
  max-width: min(58rem, 100%);
  margin: 0 auto 3rem;
}

.section__header h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 0.75rem;
}

.section__header p {
  margin: 0;
  color: hsl(var(--muted-foreground));
}

.section__eyebrow {
  display: inline-flex;
  margin-bottom: 0.65rem;
  color: hsl(var(--primary));
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.gallery-section {
  position: relative;
  overflow: hidden;
  padding-top: clamp(2.5rem, 6vw, 4rem);
}

.gallery-section::before {
  content: '';
  position: absolute;
  inset: 8% -12% auto auto;
  width: 24rem;
  height: 24rem;
  border-radius: 999px;
  background: radial-gradient(circle, hsl(var(--primary) / 0.16), transparent 68%);
  pointer-events: none;
}

.gallery-section__header {
  position: relative;
  z-index: 1;
}

.gallery-youtube-link {
  margin-top: 1.25rem;
}

.gallery-toolbar {
  position: sticky;
  top: 0.8rem;
  z-index: 5;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.4rem;
  padding: 0.9rem 1rem;
  border-radius: 1.1rem;
  background:
    linear-gradient(135deg, hsl(var(--secondary) / 0.82), hsl(var(--background) / 0.78)),
    hsl(var(--background));
  backdrop-filter: blur(18px);
}

.gallery-toolbar .section__eyebrow {
  margin-bottom: 0.25rem;
}

.gallery-toolbar p {
  margin: 0;
  color: hsl(var(--muted-foreground));
  font-size: 0.9rem;
}

.gallery-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.gallery-filters button {
  padding: 0.52rem 0.78rem;
  border: 1px solid hsl(var(--border));
  border-radius: 999px;
  background: hsl(0 0% 100% / 0.035);
  color: hsl(var(--muted-foreground));
  font: inherit;
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
  transition:
    transform 0.2s,
    border-color 0.2s,
    background 0.2s,
    color 0.2s;
}

.gallery-filters button:hover,
.gallery-filters button.is-active {
  transform: translateY(-1px);
  border-color: hsl(var(--primary) / 0.52);
  background: hsl(var(--primary) / 0.16);
  color: hsl(var(--primary));
}

.gallery-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  grid-auto-flow: dense;
  gap: 1.1rem;
}

@media (min-width: 720px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1180px) {
  .gallery-grid--page {
    grid-template-columns: repeat(4, 1fr);
  }
}

.gallery-card {
  position: relative;
  overflow: hidden;
  border-radius: 1.15rem;
  cursor: pointer;
  min-height: 100%;
  border-color: hsl(var(--border));
  background:
    linear-gradient(180deg, hsl(var(--secondary) / 0.68), hsl(var(--background) / 0.78)),
    hsl(var(--background));
  transition:
    transform 0.22s,
    border-color 0.22s,
    box-shadow 0.22s;
}

.gallery-card--featured {
  grid-column: span 1;
}

@media (min-width: 720px) {
  .gallery-card--featured {
    grid-column: span 2;
    grid-row: span 2;
  }
}

.gallery-card:hover,
.gallery-card:focus-visible {
  transform: translateY(-6px);
  border-color: hsl(var(--primary) / 0.45);
  box-shadow: 0 22px 60px hsl(0 0% 0% / 0.45), 0 0 28px hsl(var(--primary) / 0.2);
  outline: none;
}

.gallery-card__media {
  position: relative;
  aspect-ratio: 1.08 / 1;
  overflow: hidden;
  background: hsl(0 0% 8%);
}

.gallery-card--featured .gallery-card__media {
  aspect-ratio: 1.45 / 1;
}

.gallery-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s;
}

.gallery-card__media::after {
  content: '';
  position: absolute;
  inset: 28% 0 0;
  background: linear-gradient(180deg, transparent, hsl(0 0% 0% / 0.74));
}

.gallery-card:hover .gallery-card__media img,
.gallery-card:focus-visible .gallery-card__media img {
  transform: scale(1.07);
}

.gallery-card__shine {
  position: absolute;
  inset: -20% auto auto -35%;
  width: 42%;
  height: 150%;
  background: linear-gradient(100deg, transparent, hsl(0 0% 100% / 0.16), transparent);
  transform: rotate(16deg) translateX(-140%);
  transition: transform 0.55s;
}

.gallery-card:hover .gallery-card__shine,
.gallery-card:focus-visible .gallery-card__shine {
  transform: rotate(16deg) translateX(360%);
}

.gallery-card__play {
  position: absolute;
  inset: 50% auto auto 50%;
  display: grid;
  width: 3.45rem;
  height: 3.45rem;
  place-items: center;
  border: 1px solid hsl(var(--primary) / 0.45);
  border-radius: 999px;
  background: hsl(0 0% 0% / 0.68);
  color: hsl(var(--primary));
  transform: translate(-50%, -50%);
  box-shadow: 0 0 24px hsl(var(--primary) / 0.22);
}

.gallery-card__body {
  position: relative;
  display: flex;
  min-height: 11rem;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1rem;
}

.gallery-card__body span,
.gallery-lightbox__body span {
  color: hsl(var(--primary));
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.gallery-card__body h3 {
  margin: 0.45rem 0 0.4rem;
  font-size: clamp(1.1rem, 2vw, 1.45rem);
  line-height: 1.18;
}

.gallery-card__body p {
  margin: 0;
  color: hsl(var(--muted-foreground));
  font-size: 0.9rem;
}

.gallery-empty {
  grid-column: 1 / -1;
  margin: 0;
  padding: 1rem;
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  background: hsl(var(--secondary) / 0.45);
  color: hsl(var(--muted-foreground));
  text-align: center;
}

.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.gallery-lightbox[hidden] {
  display: none !important;
}

.gallery-lightbox__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: hsl(0 0% 0% / 0.82);
  backdrop-filter: blur(12px);
  cursor: pointer;
}

.gallery-lightbox__dialog {
  position: relative;
  width: min(960px, 100%);
  max-height: min(88vh, 760px);
  overflow: auto;
  border-radius: 1.2rem;
  box-shadow: 0 24px 90px hsl(0 0% 0% / 0.72), 0 0 42px hsl(var(--primary) / 0.18);
}

.gallery-lightbox__close {
  position: absolute;
  top: 0.7rem;
  right: 0.7rem;
  z-index: 2;
  display: grid;
  width: 2.35rem;
  height: 2.35rem;
  place-items: center;
  border: 1px solid hsl(var(--border));
  border-radius: 999px;
  background: hsl(0 0% 0% / 0.62);
  color: hsl(var(--foreground));
  font-size: 1.4rem;
  cursor: pointer;
}

.gallery-lightbox__media {
  background:
    radial-gradient(circle at top left, hsl(var(--primary) / 0.12), transparent 18rem),
    hsl(0 0% 5%);
}

.gallery-lightbox__media img,
.gallery-lightbox__media iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  object-fit: contain;
}

.gallery-lightbox__body {
  padding: 1.1rem 1.25rem 1.25rem;
}

.gallery-lightbox__body h3 {
  margin: 0.35rem 0 0.4rem;
  font-size: clamp(1.3rem, 2.5vw, 2rem);
}

.gallery-lightbox__body p {
  margin: 0;
  color: hsl(var(--muted-foreground));
}

body.gallery-open {
  overflow: hidden;
}

.cards {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .cards {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
}

.card {
  border-radius: 1rem;
  padding: 1.75rem;
  transition: transform 0.2s, box-shadow 0.2s;
}

.card--link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.card:hover {
  transform: translateY(-4px);
}

.card__icon {
  width: 3rem;
  height: 3rem;
  border-radius: 0.75rem;
  background: hsl(var(--primary) / 0.1);
  color: hsl(var(--primary));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.card__icon svg {
  width: 1.5rem;
  height: 1.5rem;
}

.card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
}

.card p {
  margin: 0;
  font-size: 0.9375rem;
  color: hsl(var(--muted-foreground));
}

.quality {
  display: grid;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 900px) {
  .quality {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
}

.quality__visual {
  aspect-ratio: 4 / 3;
  border-radius: 1.5rem;
  background:
    radial-gradient(circle at 50% 42%, hsl(var(--primary) / 0.18), transparent 34%),
    linear-gradient(135deg, hsl(var(--secondary) / 0.56), hsl(var(--background) / 0.86));
  border: 1px solid hsl(var(--border));
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
  padding: clamp(1rem, 4vw, 2.5rem);
}

.quality__visual::after {
  content: '';
  position: absolute;
  inset: auto 14% 10%;
  height: 18%;
  border-radius: 999px;
  background: hsl(var(--primary) / 0.16);
  filter: blur(24px);
}

.quality__visual img {
  position: relative;
  z-index: 1;
  width: min(92%, 34rem);
  max-height: 86%;
  object-fit: contain;
  filter: drop-shadow(0 0 28px hsl(var(--primary) / 0.18));
}

.quality__content h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
}

.quality__content p {
  margin: 0;
  color: hsl(var(--muted-foreground));
  font-size: 1.0625rem;
}

.site-footer {
  border-top: 1px solid hsl(var(--border));
  margin-top: auto;
  background: linear-gradient(180deg, hsl(var(--background)) 0%, hsl(0 0% 5%) 100%);
}

.site-footer--extended {
  padding: 3rem 0 0;
}

.footer-grid {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: 1fr;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid hsl(var(--border));
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 1.6fr 1fr 1fr 1fr;
    gap: 2rem;
    align-items: start;
  }
}

.footer-brand__logo {
  display: inline-block;
  line-height: 0;
  margin-bottom: 0.75rem;
}

.footer-brand__img {
  height: 2rem;
  width: auto;
  max-width: 180px;
  object-fit: contain;
}

.footer-brand p {
  margin: 0;
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  line-height: 1.55;
  max-width: 16rem;
}

.footer-col__title {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: hsl(var(--primary));
  margin: 0 0 1rem;
}

.footer-col__title--spaced {
  margin-top: 1.25rem;
}

.footer-links,
.footer-contact {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links li,
.footer-contact li {
  margin-bottom: 0.5rem;
}

.footer-links a,
.footer-contact a {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  transition: color 0.2s;
}

.footer-links a:hover,
.footer-contact a:hover {
  color: hsl(var(--foreground));
}

.footer-muted {
  font-size: 0.8125rem;
  color: hsl(var(--muted-foreground));
  line-height: 1.45;
}

.footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.footer-social__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius);
  border: 1px solid hsl(var(--border));
  background: hsl(var(--secondary));
  color: hsl(var(--muted-foreground));
  transition:
    color 0.2s,
    border-color 0.2s,
    box-shadow 0.2s;
}

.footer-social__link:hover {
  color: hsl(var(--primary));
  border-color: hsl(var(--primary) / 0.45);
  box-shadow: 0 0 12px hsl(var(--primary) / 0.2);
}

.footer-social__link svg {
  width: 1.125rem;
  height: 1.125rem;
}

.footer-bar {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: center;
  text-align: center;
  padding: 1.25rem 0 1.75rem;
}

@media (min-width: 640px) {
  .footer-bar {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.footer-bar small {
  color: hsl(var(--muted-foreground));
  font-size: 0.8125rem;
}

.footer-bar a {
  color: hsl(var(--muted-foreground));
  font-size: 0.8125rem;
}

.footer-bar a:hover {
  color: hsl(var(--primary));
}

/* Footer compacto heredado (si alguna página lo usa) */
.site-footer__inner {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  text-align: center;
  padding: 2rem 0;
}

@media (min-width: 640px) {
  .site-footer__inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.site-footer__inner small {
  color: hsl(var(--muted-foreground));
  font-size: 0.875rem;
}

.auth-register-callout {
  margin-top: 1.75rem;
  padding: 1.35rem 1.25rem;
  border-radius: 1rem;
  text-align: center;
  border: 1px solid hsl(var(--border));
}

.auth-register-callout__title {
  margin: 0 0 0.35rem;
  font-size: 0.9375rem;
  font-weight: 700;
}

.auth-register-callout__sub {
  margin: 0 0 1rem;
  font-size: 0.8125rem;
  color: hsl(var(--muted-foreground));
}

.auth-register-callout .btn {
  width: 100%;
}

.page-intro {
  padding: clamp(3rem, 10vw, 5rem) 0;
  text-align: center;
}

.page-intro h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  margin: 0 0 1rem;
}

.page-intro p {
  color: hsl(var(--muted-foreground));
  max-width: 32rem;
  margin: 0 auto;
}

.layout {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.layout main {
  flex: 1;
}

/* ========== Tienda — colecciones tipo featured (layout tipo Shopify / The Barber Plug) ========== */
.shop-page {
  /* clip evita desbordes horizontales sin bloquear position:sticky en hijos tanto como overflow:hidden */
  overflow-x: clip;
}

/* Sin transform aquí: hijo position:sticky no puede anclar bien al viewport si el padre está transformado */
.shop-hero[data-shop-animate] {
  opacity: 0;
  transition: opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1);
}

.shop-hero[data-shop-animate].is-visible {
  opacity: 1;
}

.shop-hero {
  padding: clamp(2rem, 6vw, 3.25rem) 0 clamp(1.5rem, 4vw, 2.25rem);
  text-align: center;
  border-bottom: 1px solid hsl(var(--border));
}

.shop-hero__eyebrow {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: hsl(var(--primary));
  margin: 0 0 0.65rem;
}

.shop-hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.shop-hero__compact-menu {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin: 0 auto;
  max-width: 64rem;
}

.shop-hero__compact-menu a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.1rem;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  border: 1px solid hsl(var(--border));
  background: hsl(var(--secondary));
  color: hsl(var(--foreground));
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition:
    border-color 0.2s,
    background 0.2s,
    color 0.2s,
    transform 0.2s;
}

.shop-hero__compact-menu a:hover {
  border-color: hsl(var(--primary) / 0.5);
  color: hsl(var(--primary));
  transform: translateY(-1px);
}

.shop-hero__compact-menu a.is-quote {
  background: hsl(var(--primary));
  border-color: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
}

.shop-hero__compact-menu a.is-quote:hover {
  background: hsl(var(--primary) / 0.86);
  border-color: hsl(var(--primary) / 0.86);
  color: hsl(var(--primary-foreground));
}

@media (max-width: 767px) {
  .shop-hero__menu-sticky {
    position: -webkit-sticky;
    position: sticky;
    top: var(--shop-menu-sticky-top, 5.75rem);
    z-index: 90;
    margin-top: 0.28rem;
  }

  .shop-hero__compact-menu {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0.35rem 0.45rem;
    gap: 0.38rem;
    border: 1px solid hsl(var(--border));
    border-radius: 999px;
    background: hsl(var(--background) / 0.92);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 1px 12px hsl(0 0% 0% / 0.16);
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
  }

  .shop-hero__compact-menu::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
  }

  .shop-hero__compact-menu a {
    flex: 0 0 auto;
    min-height: 1.68rem;
    padding: 0.26rem 0.62rem;
    font-size: 0.638rem;
    letter-spacing: 0.065em;
  }
}

.shop-hero p {
  margin: 0 auto 1.5rem;
  max-width: min(50rem, 100%);
  color: hsl(var(--muted-foreground));
  font-size: 0.9375rem;
}

.shop-collection {
  padding: clamp(2.25rem, 6vw, 3.75rem) 0;
  border-bottom: 1px solid hsl(var(--border));
}

.shop-collection--stripe {
  background: linear-gradient(180deg, hsl(0 0% 5.2%) 0%, hsl(var(--background)) 55%, hsl(0 0% 4.5%) 100%);
}

.shop-collection__head {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: clamp(1.1rem, 2.5vw, 1.65rem);
}

@media (min-width: 768px) {
  .shop-collection__head {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }
}

.shop-collection__titles {
  text-align: center;
}

@media (min-width: 768px) {
  .shop-collection__titles {
    text-align: left;
  }
}

.shop-collection__eyebrow {
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: hsl(var(--primary));
  margin: 0 0 0.45rem;
}

.shop-collection__title {
  margin: 0;
  font-size: clamp(1.45rem, 3.2vw, 2.25rem);
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  line-height: 1.12;
}

.shop-collection__lead {
  margin: 0.55rem 0 0;
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  max-width: 30rem;
}

.shop-collection__actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
}

@media (min-width: 768px) {
  .shop-collection__actions {
    align-items: flex-end;
  }
}

.shop-collection__quote {
  font-size: 0.8125rem;
  padding: 0.55rem 1.15rem;
  text-align: center;
}

@media (max-width: 767px) {
  .shop-collection__quote {
    width: 100%;
    max-width: 16rem;
    justify-content: center;
  }
}

.shop-collection__viewall {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: hsl(var(--muted-foreground));
  transition:
    color 0.2s,
    gap 0.25s ease;
  align-self: center;
}

@media (min-width: 768px) {
  .shop-collection__viewall {
    align-self: flex-end;
  }
}

.shop-collection__viewall:hover {
  color: hsl(var(--primary));
  gap: 0.55rem;
}

.shop-collection__viewall svg {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
}

.shop-carousel-outer {
  position: relative;
}

@media (min-width: 1024px) {
  .shop-carousel-outer {
    padding-inline: 3rem;
  }
}

.shop-carousel-outer [data-shop-prev],
.shop-carousel-outer [data-shop-next] {
  position: absolute;
  top: 42%;
  transform: translateY(-50%);
  z-index: 4;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  border: 1px solid hsl(var(--border));
  background: hsl(var(--secondary) / 0.94);
  color: hsl(var(--foreground));
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  transition:
    background 0.2s,
    border-color 0.2s,
    box-shadow 0.25s,
    transform 0.2s;
}

.shop-carousel-outer [data-shop-prev]:hover,
.shop-carousel-outer [data-shop-next]:hover {
  border-color: hsl(var(--primary) / 0.5);
  box-shadow:
    0 0 0 1px hsl(var(--primary) / 0.18),
    0 10px 28px hsl(0 0% 0% / 0.4);
}

.shop-carousel-outer [data-shop-prev]:active,
.shop-carousel-outer [data-shop-next]:active {
  transform: translateY(-50%) scale(0.96);
}

@media (min-width: 1024px) {
  .shop-carousel-outer [data-shop-prev],
  .shop-carousel-outer [data-shop-next] {
    display: flex;
  }

  .shop-carousel-outer [data-shop-prev] {
    left: 0;
  }

  .shop-carousel-outer [data-shop-next] {
    right: 0;
  }
}

.shop-rail {
  display: flex;
  gap: 1.05rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 0.5rem;
  padding: 0.4rem 0.25rem 1rem;
  margin: 0 -0.25rem;
  scrollbar-width: thin;
  scrollbar-color: hsl(var(--primary) / 0.4) hsl(var(--border));
  -webkit-overflow-scrolling: touch;
}

.shop-rail::-webkit-scrollbar {
  height: 5px;
}

.shop-rail::-webkit-scrollbar-thumb {
  background: hsl(var(--primary) / 0.35);
  border-radius: 999px;
}

.shop-card {
  flex: 0 0 min(82vw, 272px);
  scroll-snap-align: start;
  border-radius: calc(var(--radius) + 6px);
  border: 1px solid hsl(var(--border));
  overflow: hidden;
  transition:
    transform 0.38s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.38s ease,
    border-color 0.28s ease;
}

@media (min-width: 640px) {
  .shop-card {
    flex: 0 0 calc(50% - 0.55rem);
    min-width: 236px;
  }
}

@media (min-width: 1024px) {
  .shop-card {
    flex: 0 0 calc(25% - 0.8rem);
    max-width: 302px;
  }
}

@media (hover: hover) and (pointer: fine) {
  .shop-card:hover {
    transform: translateY(-7px);
    border-color: hsl(var(--primary) / 0.38);
    box-shadow:
      0 18px 44px hsl(0 0% 0% / 0.48),
      0 0 0 1px hsl(var(--primary) / 0.12);
  }
}

.shop-card__media {
  position: relative;
  aspect-ratio: 4 / 5;
  background: hsl(0 0% 8%);
  overflow: hidden;
}

.shop-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

@media (hover: hover) and (pointer: fine) {
  .shop-card:hover .shop-card__media img {
    transform: scale(1.07);
  }
}

.shop-card__badges {
  position: absolute;
  top: 0.6rem;
  left: 0.6rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  z-index: 2;
}

.shop-badge {
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.28rem 0.48rem;
  border-radius: 2px;
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
}

.shop-badge--muted {
  background: hsl(var(--secondary));
  color: hsl(var(--muted-foreground));
  border: 1px solid hsl(var(--border));
}

.shop-card__quick {
  position: absolute;
  inset: auto 0 0 0;
  padding: 0.85rem 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  background: linear-gradient(0deg, hsl(0 0% 2% / 0.96) 0%, hsl(0 0% 0% / 0) 100%);
  transform: translateY(102%);
  transition: transform 0.42s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 2;
}

@media (hover: hover) and (pointer: fine) {
  .shop-card:hover .shop-card__quick {
    transform: translateY(0);
  }
}

@media (hover: none), (pointer: coarse) {
  .shop-card__quick {
    position: relative;
    transform: none;
    background: hsl(var(--secondary));
    border-top: 1px solid hsl(var(--border));
  }
}

.btn--shop-sm {
  padding: 0.52rem 0.6rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
  width: 100%;
  justify-content: center;
}

.shop-card__body {
  padding: 1rem 1rem 1.15rem;
}

.shop-card__title {
  margin: 0 0 0.35rem;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.shop-card__title a {
  color: inherit;
  transition: color 0.2s;
}

.shop-card__title a:hover {
  color: hsl(var(--primary));
}

.shop-card__price {
  margin: 0;
  font-size: 0.8125rem;
  color: hsl(var(--muted-foreground));
}

.shop-card__stock {
  margin: 0.35rem 0 0;
  font-size: 0.72rem;
  font-weight: 600;
  color: hsl(var(--muted-foreground));
}

.shop-card__stock--out {
  color: hsl(0 72% 58%);
}

.shop-buy {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.shop-buy__row {
  display: grid;
  grid-template-columns: minmax(5.25rem, 0.9fr) minmax(0, 1.35fr);
  gap: 0.45rem;
  align-items: stretch;
}

.shop-qty {
  display: grid;
  grid-template-columns: 2rem minmax(1.9rem, 1fr) 2rem;
  min-height: 2.55rem;
  border: 1px solid hsl(var(--border));
  border-radius: calc(var(--radius) - 2px);
  overflow: hidden;
  background: hsl(var(--background) / 0.86);
}

.shop-qty__btn {
  border: 0;
  border-radius: 0;
  background: hsl(var(--secondary));
  color: hsl(var(--foreground));
  font: inherit;
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
  transition:
    background 0.2s,
    color 0.2s,
    opacity 0.2s;
}

.shop-qty__btn:hover:not(:disabled) {
  background: hsl(var(--primary) / 0.18);
  color: hsl(var(--primary));
}

.shop-qty__btn:disabled {
  cursor: not-allowed;
  opacity: 0.42;
}

.shop-qty__value {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  background: hsl(var(--background) / 0.94);
  font-size: 0.875rem;
  font-weight: 700;
}

.shop-buy__whatsapp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  min-height: 3rem;
  width: 100%;
  padding: 0.55rem 0.75rem;
  border-radius: calc(var(--radius) - 2px);
  border: 1px solid hsl(142 76% 36% / 0.36);
  background: hsl(142 70% 48%);
  color: white;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 12px 24px hsl(142 80% 16% / 0.24);
  transition:
    transform 0.2s,
    filter 0.2s,
    box-shadow 0.2s;
}

.shop-buy__whatsapp:hover {
  transform: translateY(-1px);
  filter: brightness(1.04);
  box-shadow: 0 16px 30px hsl(142 80% 16% / 0.32);
}

.shop-buy__whatsapp.is-disabled {
  pointer-events: none;
  opacity: 0.55;
  filter: grayscale(0.45);
}

.shop-buy__whatsapp-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 2rem;
  width: 2rem;
  height: 2rem;
  border: 2px solid currentColor;
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.shop-buy__whatsapp strong,
.shop-buy__whatsapp small {
  display: block;
  line-height: 1.05;
}

.shop-buy__whatsapp strong {
  font-size: 0.95rem;
  font-weight: 800;
}

.shop-buy__whatsapp small {
  margin-top: 0.15rem;
  font-size: 0.74rem;
  font-weight: 600;
  opacity: 0.9;
}

.shop-price--accent {
  color: hsl(var(--primary));
  font-weight: 700;
}

@keyframes shop-card-in {
  from {
    opacity: 0;
    transform: translateY(26px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.shop-collection[data-shop-animate] .shop-card {
  opacity: 0;
}

.shop-collection[data-shop-animate].is-visible .shop-card {
  animation: shop-card-in 0.58s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.shop-collection[data-shop-animate].is-visible .shop-card:nth-child(1) {
  animation-delay: 0.04s;
}

.shop-collection[data-shop-animate].is-visible .shop-card:nth-child(2) {
  animation-delay: 0.1s;
}

.shop-collection[data-shop-animate].is-visible .shop-card:nth-child(3) {
  animation-delay: 0.16s;
}

.shop-collection[data-shop-animate].is-visible .shop-card:nth-child(4) {
  animation-delay: 0.22s;
}

.shop-collection[data-shop-animate].is-visible .shop-card:nth-child(5) {
  animation-delay: 0.28s;
}

.shop-collection[data-shop-animate].is-visible .shop-card:nth-child(6) {
  animation-delay: 0.34s;
}

.shop-collection[data-shop-animate].is-visible .shop-card:nth-child(7) {
  animation-delay: 0.4s;
}

.shop-collection[data-shop-animate].is-visible .shop-card:nth-child(8) {
  animation-delay: 0.46s;
}

@media (prefers-reduced-motion: reduce) {
  .shop-hero[data-shop-animate] {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .shop-card__media img,
  .shop-card__quick {
    transition: none !important;
  }

  .shop-collection[data-shop-animate] .shop-card,
  .shop-collection[data-shop-animate].is-visible .shop-card {
    opacity: 1;
    animation: none !important;
    transform: none;
  }

  .shop-card:hover,
  .shop-card:hover .shop-card__media img {
    transform: none;
  }

  .shop-carousel-outer [data-shop-prev]:active,
  .shop-carousel-outer [data-shop-next]:active {
    transform: translateY(-50%);
  }
}

/* —— Carrito y navegación —— */
.nav-cart-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.55rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: hsl(var(--nav-link-muted));
  border-radius: var(--radius);
  text-decoration: none;
  transition:
    color 0.2s,
    background 0.2s;
}

.nav-cart-link:hover {
  color: hsl(var(--nav-accent));
  background: hsl(var(--secondary));
}

.nav-cart-link__icon {
  display: flex;
  line-height: 0;
}

.nav-cart-badge {
  min-width: 1.2rem;
  height: 1.2rem;
  padding: 0 0.28rem;
  border-radius: 999px;
  font-size: 0.625rem;
  font-weight: 800;
  line-height: 1.2rem;
  text-align: center;
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
}

.nav-cart-badge[hidden] {
  display: none !important;
}

@media (max-width: 767.98px) {
  .site-header__tools .nav-cart-link {
    position: relative;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    padding: 0;
  }

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

  .site-header__tools .nav-cart-badge {
    position: absolute;
    top: 0.12rem;
    right: 0.08rem;
    min-width: 1.1rem;
    height: 1.1rem;
    padding: 0 0.22rem;
    font-size: 0.58rem;
    line-height: 1.1rem;
  }
}

.shop-collection__title-link {
  color: inherit;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition:
    color 0.2s,
    border-color 0.2s;
}

.shop-collection__title-link:hover {
  color: hsl(var(--primary));
  border-bottom-color: hsl(var(--primary) / 0.45);
}

.btn--shop-sm.is-added {
  box-shadow: 0 0 0 2px hsl(var(--primary)), 0 0 18px hsl(var(--primary) / 0.45);
}

/* Modal PDP tienda (layout tipo The Barber Plug: thumbs | zoom | compra + raíles) */
.nl-product-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 0.65rem;
  box-sizing: border-box;
}

.nl-product-modal[hidden] {
  display: none !important;
}

.nl-product-modal__backdrop {
  position: absolute;
  inset: 0;
  background: hsl(0 0% 0% / 0.62);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.nl-product-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(1240px, calc(100vw - 1rem));
  max-height: min(94vh, 920px);
  overflow-x: hidden;
  overflow-y: auto;
  border-radius: 1rem;
  padding: clamp(1rem, 2.5vw, 1.85rem);
  border: 1px solid hsl(var(--border));
  -webkit-overflow-scrolling: touch;
}

.nl-product-modal__close {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  z-index: 5;
  width: 2.5rem;
  height: 2.5rem;
  border: none;
  border-radius: var(--radius);
  background: hsl(var(--secondary));
  color: hsl(var(--foreground));
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  transition:
    background 0.2s,
    color 0.2s;
}

.nl-product-modal__close:hover {
  background: hsl(var(--accent));
  color: hsl(var(--accent-foreground));
}

.nl-product-modal__inner {
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
  padding-right: clamp(1.25rem, 3vw, 2rem);
  max-width: 100%;
}

.nl-product-modal__main {
  display: grid;
  gap: 1rem;
  align-items: start;
}

@media (min-width: 900px) {
  .nl-product-modal__main {
    width: 100%;
    /* miniaturas | foto | compra (la derecha crece y usa el hueco del modal) */
    grid-template-columns: max-content max-content minmax(292px, 1fr);
    /* filas | columnas: más aire entre thumbs ↔ hero ↔ panel derecho */
    gap: 1.25rem clamp(1.85rem, 4.5vw, 3rem);
    justify-content: start;
    align-items: start;
  }

  .nl-product-modal__col--thumbs {
    padding-inline-end: 0.5rem;
  }

  .nl-product-modal__col--stage {
    padding-inline-end: 0.35rem;
  }

  .nl-product-modal__col--stage .nl-product-modal__hero-shell {
    margin-inline: 0;
  }

  .nl-product-modal__col--buy {
    padding-inline-start: 0.35rem;
    min-width: 0;
  }
}

.nl-product-modal__col--thumbs {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

@media (max-width: 899.98px) {
  .nl-product-modal__main {
    grid-template-columns: 1fr;
  }

  .nl-product-modal__hero-shell {
    margin-inline: auto;
    width: min(100%, min(52vh, 540px));
  }

  .nl-product-modal__col--thumbs {
    order: 2;
  }

  .nl-product-modal__col--stage {
    order: 1;
  }

  .nl-product-modal__col--buy {
    order: 3;
  }

  /* Una sola imagen: columna oculta sin ocupar hueco ni heredar alto del rail de thumbs */
  .nl-product-modal__col--thumbs[hidden] {
    display: none !important;
    margin: 0 !important;
    padding: 0 !important;
    min-height: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
  }

  .nl-product-modal--single-image .nl-product-modal__main {
    gap: 0.7rem;
  }

  .nl-product-modal--single-image .nl-product-modal__inner {
    gap: 1rem;
  }

  .nl-product-modal--single-image .nl-product-modal__zoom-hint {
    margin-bottom: 0.35rem;
  }

  .nl-product-modal__col--thumbs:not([hidden]) .nl-product-modal__thumbs {
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 0.25rem;
    max-height: none;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .nl-product-modal__thumb {
    flex: 0 0 auto;
    scroll-snap-align: start;
  }
}

.nl-product-modal__thumbs {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  max-height: min(52vh, 420px);
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 0;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.nl-product-modal__thumbs::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.nl-product-modal__thumb {
  flex-shrink: 0;
  padding: 0;
  border: 2px solid transparent;
  border-radius: var(--radius);
  background: hsl(var(--secondary));
  cursor: pointer;
  overflow: hidden;
  line-height: 0;
  opacity: 0.78;
  transition:
    opacity 0.2s,
    border-color 0.2s;
}

.nl-product-modal__thumb:hover,
.nl-product-modal__thumb.is-active {
  opacity: 1;
  border-color: hsl(var(--primary) / 0.55);
}

.nl-product-modal__thumb img {
  width: 5.6rem;
  height: 5.6rem;
  object-fit: cover;
  display: block;
}

.nl-product-modal__col--stage {
  min-width: 0;
}

.nl-product-modal__zoom-hint {
  margin: 0 0 0.45rem;
  font-size: 0.72rem;
  color: hsl(var(--muted-foreground));
  letter-spacing: 0.02em;
}

@media (pointer: coarse) {
  .nl-product-modal__zoom-hint {
    display: none;
  }
}

.nl-product-modal__hero-shell {
  position: relative;
  overflow: hidden;
  border-radius: calc(var(--radius) + 6px);
  background: hsl(0 0% 8%);
  border: 1px solid hsl(var(--border) / 0.55);
  aspect-ratio: 1;
  width: min(52vh, 540px);
  max-width: 100%;
  max-height: min(52vh, 540px);
  margin-inline: 0;
}

.nl-product-modal__hero-shell--zooming {
  cursor: crosshair;
}

.nl-product-modal__hero-shell--no-zoom {
  cursor: default;
}

.nl-product-modal__hero {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  transform-origin: center center;
}

.nl-product-modal__col--buy {
  padding-top: 0.15rem;
}

.nl-product-modal__crumb {
  font-size: 0.78rem;
  color: hsl(var(--muted-foreground));
  margin-bottom: 0.65rem;
}

.nl-product-modal__crumb a {
  color: hsl(var(--muted-foreground));
  text-decoration: none;
  transition: color 0.2s;
}

.nl-product-modal__crumb a:hover {
  color: hsl(var(--primary));
}

.nl-product-modal__crumb-sep {
  margin: 0 0.28rem;
  opacity: 0.55;
}

.nl-product-modal__crumb-current {
  color: hsl(var(--foreground));
  font-weight: 600;
}

.nl-product-modal__title {
  margin: 0;
  font-size: clamp(1.35rem, 2.8vw, 1.85rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.nl-product-modal__price-block {
  margin: 0.55rem 0 1rem;
}

.nl-product-modal__price-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem 0.85rem;
}

.nl-product-modal__price-compare {
  font-size: 1rem;
  font-weight: 600;
  color: hsl(var(--muted-foreground));
  text-decoration: line-through;
  text-decoration-thickness: 1px;
}

.nl-product-modal__price-compare[hidden] {
  display: none !important;
}

.nl-product-modal__price-current {
  font-size: 1.45rem;
  font-weight: 800;
  color: hsl(var(--primary));
  letter-spacing: -0.02em;
}

.nl-product-modal__price-save {
  margin: 0.35rem 0 0;
  font-size: 0.8125rem;
  font-weight: 700;
  color: hsl(0 72% 62%);
}

.nl-product-modal__price-save[hidden] {
  display: none !important;
}

.nl-product-modal__stock {
  margin: 0 0 0.85rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: hsl(var(--muted-foreground));
}

.nl-product-modal__stock--out {
  color: hsl(0 72% 58%);
}

.nl-product-modal__desc {
  margin-bottom: 1.15rem;
  color: hsl(var(--muted-foreground));
  font-size: 0.9375rem;
  line-height: 1.65;
}

.nl-product-modal__desc p {
  margin: 0 0 0.65rem;
}

.nl-product-modal__desc p:last-child {
  margin-bottom: 0;
}

.nl-product-modal__nodesc {
  font-style: italic;
  opacity: 0.85;
}

.nl-product-modal__qty-row {
  margin: 0 0 0.65rem;
}

.nl-product-modal__qty {
  max-width: 7.8rem;
  min-height: 3rem;
}

.nl-product-modal__actions {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.nl-product-modal__actions[hidden],
.nl-product-modal__qty-row[hidden] {
  display: none !important;
}

.nl-product-modal__actions .btn {
  width: 100%;
  justify-content: center;
  min-height: 2.65rem;
  font-weight: 600;
}

.nl-product-modal__btn-cart {
  border-width: 2px;
}

.nl-product-modal__btn-whatsapp {
  min-height: 3.25rem;
}

.nl-product-modal__after-add {
  margin-top: 0.85rem;
  padding: 0.9rem;
  border: 1px solid hsl(142 76% 36% / 0.35);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, hsl(142 76% 36% / 0.16), transparent 48%),
    hsl(var(--secondary) / 0.5);
}

.nl-product-modal__after-add[hidden] {
  display: none !important;
}

.nl-product-modal__after-add-title {
  margin: 0 0 0.75rem;
  color: hsl(142 71% 78%);
  font-size: 0.9rem;
  font-weight: 800;
  text-align: center;
}

.nl-product-modal__after-add-actions {
  display: grid;
  gap: 0.6rem;
}

.nl-product-modal__after-add-actions .btn {
  width: 100%;
  justify-content: center;
}

.nl-product-modal__trust {
  margin: 1rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1rem;
  font-size: 0.72rem;
  color: hsl(var(--muted-foreground));
}

.nl-product-modal__trust span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.nl-product-modal__trust span::before {
  content: '';
  width: 0.35rem;
  height: 0.35rem;
  border-radius: 50%;
  background: hsl(var(--primary) / 0.65);
}

.nl-product-modal__below {
  border-top: 1px solid hsl(var(--border) / 0.55);
  padding-top: 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.nl-product-modal__rail-section[hidden] {
  display: none !important;
}

.nl-product-modal__rail-title {
  margin: 0 0 0.55rem;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: hsl(var(--muted-foreground));
}

.nl-product-modal__rail {
  display: flex;
  gap: 0.65rem;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 0.35rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.nl-product-modal__mini {
  flex: 0 0 auto;
  width: 6.75rem;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.35rem;
  padding: 0;
  border: 1px solid hsl(var(--border) / 0.65);
  border-radius: var(--radius);
  background: hsl(var(--secondary) / 0.35);
  cursor: pointer;
  text-align: left;
  scroll-snap-align: start;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}

.nl-product-modal__mini:hover {
  border-color: hsl(var(--primary) / 0.45);
  box-shadow: 0 6px 20px hsl(0 0% 0% / 0.18);
}

.nl-product-modal__mini img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
  border-radius: calc(var(--radius) - 2px) calc(var(--radius) - 2px) 0 0;
}

.nl-product-modal__mini-meta {
  padding: 0 0.4rem 0.45rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.nl-product-modal__mini-name {
  font-size: 0.68rem;
  font-weight: 600;
  line-height: 1.25;
  color: hsl(var(--foreground));
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
}

.nl-product-modal__mini-price {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  font-size: 0.72rem;
  line-height: 1.2;
}

.nl-product-modal__mini-compare {
  font-size: 0.62rem;
  font-weight: 600;
  color: hsl(var(--muted-foreground));
  text-decoration: line-through;
}

.nl-product-modal__mini-sale {
  font-weight: 800;
  color: hsl(var(--primary));
}

.product-card__price {
  margin: 0 0 0.85rem;
  font-size: 0.9375rem;
  font-weight: 700;
  color: hsl(var(--primary));
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.5rem;
}

.product-card__price-compare {
  font-size: 0.8125rem;
  font-weight: 600;
  color: hsl(var(--muted-foreground));
  text-decoration: line-through;
}

.product-card__price-sale {
  font-weight: 800;
  color: hsl(var(--primary));
}

.product-card__stock {
  margin: 0 0 0.65rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: hsl(var(--muted-foreground));
}

.product-card__stock--out {
  color: hsl(0 72% 58%);
}

.product-card .shop-buy {
  margin-top: auto;
}

.product-card .shop-buy__row {
  grid-template-columns: minmax(5.4rem, 0.85fr) minmax(0, 1.25fr);
}

/* Página categoría tienda */
.breadcrumb {
  font-size: 0.8125rem;
  color: hsl(var(--muted-foreground));
  margin-bottom: 1.5rem;
}

.breadcrumb a {
  color: hsl(var(--muted-foreground));
  transition: color 0.2s;
}

.breadcrumb a:hover {
  color: hsl(var(--primary));
}

.breadcrumb__sep {
  margin: 0 0.35rem;
  opacity: 0.5;
}

.breadcrumb__current {
  color: hsl(var(--foreground));
  font-weight: 600;
}

.category-page {
  padding-bottom: clamp(2rem, 6vw, 4rem);
}

.category-page__head {
  margin-bottom: 2rem;
}

.category-page__title {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  margin: 0.35rem 0 0.75rem;
}

.category-page__lead {
  margin: 0;
  max-width: min(52rem, 100%);
  color: hsl(var(--muted-foreground));
  font-size: 0.9375rem;
}

.category-page__cotiza {
  margin: 1rem 0 0;
  text-align: center;
}

@media (min-width: 768px) {
  .category-page__cotiza {
    text-align: left;
  }
}

.category-page__err {
  color: hsl(0 84% 60%);
}

.product-grid {
  display: grid;
  gap: 1.35rem;
  grid-template-columns: 1fr;
}

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

@media (min-width: 1024px) {
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.product-card {
  border-radius: calc(var(--radius) + 4px);
  border: 1px solid hsl(var(--border));
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.2s;
}

.product-card:hover {
  transform: translateY(-4px);
  border-color: hsl(var(--primary) / 0.35);
  box-shadow: 0 12px 32px hsl(0 0% 0% / 0.35);
}

.product-card__media {
  aspect-ratio: 4 / 5;
  background: hsl(0 0% 8%);
}

.product-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-card__body {
  padding: 1rem 1.1rem 1.15rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-card__title {
  margin: 0 0 0.4rem;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
}

.product-card__desc {
  margin: 0 0 0.5rem;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: hsl(var(--muted-foreground));
}

.product-card__btn {
  margin-top: auto;
  width: 100%;
  justify-content: center;
}

.search-page {
  padding-top: 0;
}

.search-hero {
  padding: clamp(3.5rem, 8vw, 6.5rem) 0 2rem;
  background:
    radial-gradient(circle at top left, hsl(var(--primary) / 0.18), transparent 34rem),
    linear-gradient(180deg, hsl(var(--secondary) / 0.32), transparent);
}

.search-hero__eyebrow {
  margin: 0 0 0.45rem;
  color: hsl(var(--primary));
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.search-hero__title {
  margin: 0;
}

.search-hero__lead {
  max-width: 44rem;
  margin: 0.75rem 0 1.3rem;
  color: hsl(var(--muted-foreground));
  line-height: 1.65;
}

.search-page__form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.75rem;
  max-width: 46rem;
  padding: 0.65rem;
  border-radius: calc(var(--radius) + 8px);
  border: 1px solid hsl(var(--border));
}

.search-page__form input {
  width: 100%;
  min-height: 3rem;
  border: none;
  border-radius: var(--radius);
  background: hsl(var(--background) / 0.78);
  color: hsl(var(--foreground));
  font: inherit;
  padding: 0.7rem 0.9rem;
}

.search-page__form input:focus {
  outline: 2px solid hsl(var(--primary) / 0.42);
  outline-offset: 2px;
}

.search-results-section {
  padding: 2rem 0 clamp(3.5rem, 7vw, 5.5rem);
}

.search-status {
  margin-bottom: 1.25rem;
  padding: 0.95rem 1rem;
  border-radius: var(--radius);
  color: hsl(var(--muted-foreground));
  line-height: 1.5;
}

.search-status[hidden] {
  display: none !important;
}

.search-status--empty {
  border-color: hsl(var(--primary) / 0.28);
  color: hsl(var(--foreground));
}

.search-section-head {
  margin: 0 0 1rem;
}

.search-section-head__eyebrow {
  margin: 0 0 0.25rem;
  color: hsl(var(--primary));
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.search-section-head h2 {
  margin: 0;
  font-size: clamp(1.35rem, 3vw, 2rem);
}

.search-related {
  margin-bottom: 2rem;
}

.search-related[hidden],
.search-products[hidden] {
  display: none !important;
}

.search-related__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(12.5rem, 1fr));
  gap: 0.85rem;
}

.search-related-card {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-height: 9rem;
  padding: 1rem;
  border-radius: var(--radius);
  border: 1px solid hsl(var(--border));
  text-decoration: none;
  color: inherit;
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease;
}

.search-related-card:hover {
  transform: translateY(-3px);
  border-color: hsl(var(--primary) / 0.4);
  box-shadow: 0 12px 30px hsl(0 0% 0% / 0.2);
}

.search-related-card__label {
  font-weight: 800;
  font-size: 1rem;
}

.search-related-card__desc {
  color: hsl(var(--muted-foreground));
  font-size: 0.85rem;
  line-height: 1.45;
}

.search-related-card__cta {
  margin-top: auto;
  color: hsl(var(--primary));
  font-size: 0.82rem;
  font-weight: 800;
}

.search-products__grid {
  gap: 1rem;
}

.search-product-card__category {
  margin: 0 0 0.35rem;
  color: hsl(var(--primary));
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

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

  .search-page__form .btn {
    width: 100%;
    justify-content: center;
  }
}

/* Página carrito */
.cart-page__title {
  margin-bottom: 0.5rem;
}

.cart-page__lead {
  margin: 0 0 1.75rem;
  max-width: 40rem;
  color: hsl(var(--muted-foreground));
  font-size: 0.9rem;
}

.cart-empty {
  padding: 2rem 1.5rem;
  text-align: center;
  border-radius: 1rem;
  margin-bottom: 1.5rem;
}

.cart-empty p {
  margin: 0 0 1.25rem;
  color: hsl(var(--muted-foreground));
}

.cart-root {
  margin-bottom: 1.5rem;
  overflow-x: auto;
}

.cart-table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.cart-table th,
.cart-table td {
  padding: 0.75rem 0.5rem;
  text-align: left;
  border-bottom: 1px solid hsl(var(--border));
  vertical-align: middle;
}

.cart-table th {
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: hsl(var(--muted-foreground));
}

.cart-table__thumb {
  width: 4.5rem;
}

.cart-table__thumb img {
  width: 3.25rem;
  height: 3.25rem;
  object-fit: cover;
  border-radius: 0.35rem;
  border: 1px solid hsl(var(--border));
}

.cart-table__name {
  font-weight: 600;
}

.cart-table__meta {
  font-size: 0.75rem;
  color: hsl(var(--muted-foreground));
}

.cart-qty {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  padding: 0.15rem;
}

.cart-qty__btn {
  width: 1.75rem;
  height: 1.75rem;
  border: none;
  background: hsl(var(--secondary));
  color: hsl(var(--foreground));
  border-radius: calc(var(--radius) - 2px);
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  transition: background 0.2s;
}

.cart-qty__btn:hover {
  background: hsl(var(--muted));
}

.cart-qty__val {
  min-width: 1.5rem;
  text-align: center;
  font-weight: 600;
}

.cart-rm {
  width: 2rem;
  height: 2rem;
  border: none;
  background: transparent;
  color: hsl(var(--muted-foreground));
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  border-radius: var(--radius);
  transition:
    color 0.2s,
    background 0.2s;
}

.cart-rm:hover {
  color: hsl(0 84% 60%);
  background: hsl(var(--secondary));
}

.cart-summary {
  max-width: 28rem;
  padding: 1.35rem 1.25rem;
  border-radius: 1rem;
}

.cart-summary__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0 0 0.75rem;
  font-size: 1rem;
}

.cart-summary__row--total {
  margin-top: 0.35rem;
  padding-top: 0.75rem;
  border-top: 1px solid hsl(var(--border));
  font-size: 1.08rem;
}

.cart-summary__note {
  margin: 0 0 1.25rem;
  font-size: 0.8125rem;
  color: hsl(var(--muted-foreground));
  line-height: 1.5;
}

.cart-summary__actions {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.cart-summary__actions .btn {
  width: 100%;
  justify-content: center;
}

.cart-global-msg {
  margin: 0 0 1.25rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius);
  border: 1px solid hsl(var(--border));
  background: hsl(var(--secondary));
  font-size: 0.9rem;
  line-height: 1.45;
}

.cart-global-msg--ok {
  border-color: hsl(142 76% 36% / 0.45);
  background: hsl(142 30% 12%);
  color: hsl(142 71% 88%);
}

.cart-global-msg--err {
  border-color: hsl(0 62% 45% / 0.45);
  background: hsl(0 35% 12%);
  color: hsl(0 86% 90%);
}

/* Toast al añadir al carrito (móvil: siempre visible abajo) */
.nl-cart-toast {
  position: fixed;
  left: 50%;
  bottom: max(1rem, env(safe-area-inset-bottom, 0px));
  transform: translate3d(-50%, 120%, 0);
  z-index: 10050;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  max-width: min(22rem, calc(100vw - 1.5rem));
  padding: 0.7rem 1.1rem;
  border-radius: var(--radius);
  border: 1px solid hsl(142 76% 36% / 0.5);
  background: hsl(222 47% 8% / 0.94);
  box-shadow: 0 8px 28px hsl(0 0% 0% / 0.45);
  color: hsl(142 71% 92%);
  text-align: center;
  font-size: 0.9rem;
  line-height: 1.3;
  opacity: 0;
  pointer-events: none;
  transition:
    transform 0.28s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.22s ease;
}

.nl-cart-toast--show {
  transform: translate3d(-50%, 0, 0);
  opacity: 1;
}

.nl-cart-toast__main {
  font-weight: 700;
}

.nl-cart-toast__sub {
  display: block;
  font-size: 0.78rem;
  font-weight: 500;
  color: hsl(var(--muted-foreground));
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cart-order-form {
  margin: 0 0 1.15rem;
  padding: 1rem 0 0;
  border-top: 1px solid hsl(var(--border));
}

.cart-order-form__title {
  margin: 0 0 0.75rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: hsl(var(--foreground));
}

.cart-pay-methods {
  margin: 0 0 0.75rem;
  padding: 0;
  border: none;
}

.cart-pay-methods__legend {
  padding: 0;
  margin: 0 0 0.45rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: hsl(var(--foreground));
}

.cart-pay-methods__opt {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  margin-bottom: 0.45rem;
  font-size: 0.8125rem;
  line-height: 1.35;
  cursor: pointer;
}

.cart-pay-methods__opt input {
  margin-top: 0.2rem;
}

.cart-delivery {
  margin: 0 0 1rem;
  padding: 0.95rem;
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, hsl(var(--primary) / 0.12), transparent 42%),
    hsl(var(--secondary) / 0.48);
}

.cart-delivery__legend {
  float: left;
  width: 100%;
  padding: 0;
  margin: 0 0 0.7rem;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: hsl(var(--foreground));
}

.cart-delivery-option {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.55rem;
  padding: 0.7rem 0.75rem;
  border: 1px solid hsl(var(--border));
  border-radius: calc(var(--radius) - 2px);
  background: hsl(var(--background) / 0.64);
  cursor: pointer;
  transition:
    border-color 0.18s ease,
    background 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
}

.cart-delivery-option:hover {
  transform: translateY(-1px);
  border-color: hsl(var(--primary) / 0.45);
  background: hsl(var(--background) / 0.82);
}

.cart-delivery-option.is-selected {
  border-color: hsl(var(--primary) / 0.75);
  background: hsl(var(--primary) / 0.12);
  box-shadow: 0 0 0 1px hsl(var(--primary) / 0.22), 0 10px 24px hsl(var(--primary) / 0.08);
}

.cart-delivery-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.cart-delivery-option__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.15rem;
  height: 2.15rem;
  border-radius: 999px;
  background: hsl(var(--primary) / 0.14);
  color: hsl(var(--primary));
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.cart-delivery-option__body {
  min-width: 0;
}

.cart-delivery-option__body strong,
.cart-delivery-option__body small {
  display: block;
}

.cart-delivery-option__body strong {
  font-size: 0.84rem;
  line-height: 1.2;
}

.cart-delivery-option__body small {
  margin-top: 0.14rem;
  color: hsl(var(--muted-foreground));
  font-size: 0.75rem;
}

.cart-delivery-option__price {
  padding: 0.28rem 0.48rem;
  border-radius: 999px;
  background: hsl(var(--secondary));
  color: hsl(var(--foreground));
  font-size: 0.76rem;
  font-weight: 800;
  white-space: nowrap;
}

.cart-delivery-option.is-selected .cart-delivery-option__price {
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
}

.cart-delivery__note {
  clear: both;
  margin: 0.25rem 0 0;
  padding: 0.55rem 0.65rem;
  border-radius: calc(var(--radius) - 4px);
  background: hsl(var(--background) / 0.48);
  font-size: 0.78rem;
  line-height: 1.45;
  color: hsl(var(--muted-foreground));
}

.cart-delivery-address {
  margin: -0.25rem 0 1rem;
  padding: 0.9rem;
  border: 1px solid hsl(var(--primary) / 0.26);
  border-radius: var(--radius);
  background: hsl(var(--background) / 0.58);
}

.cart-delivery-address[hidden] {
  display: none !important;
}

.cart-delivery-address__title {
  margin: 0 0 0.7rem;
  font-size: 0.84rem;
  font-weight: 800;
  color: hsl(var(--foreground));
}

.cart-order-form .form-field {
  margin-bottom: 0.65rem;
}

.cart-order-form .form-field label {
  font-size: 0.8125rem;
}

.cart-order-form input,
.cart-order-form select,
.cart-order-form textarea {
  width: 100%;
  font: inherit;
  padding: 0.5rem 0.65rem;
  border-radius: calc(var(--radius) - 2px);
  border: 1px solid hsl(var(--border));
  background: hsl(var(--background));
  color: inherit;
}

.cart-order-form textarea {
  resize: vertical;
  min-height: 3rem;
}

.cart-order-inline-msg {
  margin: 0 0 0.65rem;
  font-size: 0.8125rem;
  color: hsl(var(--muted-foreground));
}

.cart-order-inline-msg--err {
  color: hsl(0 84% 62%);
}

.cart-order-inline-msg--ok {
  color: hsl(142 71% 72%);
}

.checkout-status-page {
  display: flex;
  align-items: center;
}

.checkout-status {
  width: 100%;
  padding-block: 3rem;
}

.checkout-status__card {
  max-width: 42rem;
  margin-inline: auto;
  padding: clamp(1.5rem, 4vw, 2.4rem);
  text-align: center;
  border-radius: calc(var(--radius) * 1.35);
}

.checkout-status__eyebrow {
  margin: 0 0 0.5rem;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: hsl(var(--primary));
}

.checkout-status__card h1 {
  margin-bottom: 0.75rem;
}

.checkout-status__card p {
  color: hsl(var(--muted-foreground));
}

.checkout-status--success .checkout-status__card {
  border-color: hsl(142 76% 36% / 0.45);
  box-shadow: 0 0 40px hsl(142 76% 36% / 0.14);
}

.checkout-status--error .checkout-status__card {
  border-color: hsl(0 84% 62% / 0.45);
  box-shadow: 0 0 40px hsl(0 84% 62% / 0.12);
}

.checkout-status__folio {
  margin-top: 1rem;
}

.checkout-status__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.8rem;
  margin-top: 1.4rem;
}

/* Panel administración (/admin) */
.admin-body {
  min-height: 100vh;
  background: hsl(var(--background));
}

.admin-login {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
}

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

.admin-login__card {
  width: 100%;
  max-width: 26rem;
  padding: 2rem 1.75rem;
  border-radius: 1rem;
}

.admin-login__title {
  margin: 0 0 0.5rem;
  font-size: 1.5rem;
}

.admin-login__hint {
  margin: 0 0 1.25rem;
  font-size: 0.8125rem;
  color: hsl(var(--muted-foreground));
  line-height: 1.5;
}

.admin-login__hint code {
  font-size: 0.75em;
}

.admin-login__form .form-field {
  margin-bottom: 1rem;
}

.admin-app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

.admin-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid hsl(var(--border));
}

.admin-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
}

.admin-header__brand {
  font-weight: 700;
  font-size: 0.9375rem;
}

.admin-header__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.admin-layout {
  flex: 1;
  padding: 1.25rem 0 2.5rem;
}

.admin-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.admin-tab {
  padding: 0.5rem 1rem;
  font: inherit;
  font-weight: 600;
  font-size: 0.875rem;
  border-radius: var(--radius);
  border: 1px solid hsl(var(--border));
  background: hsl(var(--secondary));
  color: inherit;
  cursor: pointer;
  transition:
    background 0.2s,
    border-color 0.2s;
}

.admin-tab:hover {
  border-color: hsl(var(--primary) / 0.4);
}

.admin-tab.is-active {
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  border-color: transparent;
}

.admin-section {
  margin-bottom: 2rem;
}

.admin-h2 {
  margin: 0 0 1rem;
  font-size: 1.25rem;
}

.admin-h3 {
  margin: 1.5rem 0 0.65rem;
  font-size: 1rem;
  font-weight: 700;
}

.admin-dashboard-hero {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
  padding: 1.25rem;
  border-radius: calc(var(--radius) * 1.2);
  background:
    radial-gradient(circle at top right, hsl(188 95% 43% / 0.2), transparent 32rem),
    linear-gradient(135deg, hsl(var(--secondary) / 0.86), hsl(var(--background) / 0.72));
}

.admin-dashboard-hero .admin-h2,
.admin-dashboard-hero .admin-muted {
  margin-bottom: 0;
}

.admin-dashboard-hero__eyebrow {
  margin: 0 0 0.3rem;
  color: hsl(var(--primary));
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.admin-dashboard-hero__badge {
  display: inline-flex;
  align-items: center;
  min-height: 2.1rem;
  padding: 0.45rem 0.75rem;
  border: 1px solid hsl(var(--primary) / 0.35);
  border-radius: 999px;
  background: hsl(var(--primary) / 0.12);
  color: hsl(var(--primary));
  font-size: 0.8rem;
  font-weight: 800;
}

.admin-dashboard-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.85rem;
  margin-bottom: 1rem;
  padding: 1rem;
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, hsl(var(--secondary) / 0.72), transparent),
    hsl(var(--background) / 0.58);
}

.admin-dashboard-filters [hidden] {
  display: none !important;
}

.admin-dashboard-filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.admin-dashboard-filter-pills--wide {
  flex-basis: 100%;
}

.admin-dashboard-filter-pills button {
  padding: 0.5rem 0.75rem;
  border: 1px solid hsl(var(--border));
  border-radius: 999px;
  background: hsl(var(--secondary) / 0.55);
  color: hsl(var(--muted-foreground));
  font: inherit;
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
  transition:
    border-color 0.2s,
    background 0.2s,
    color 0.2s,
    transform 0.2s;
}

.admin-dashboard-filter-pills button:hover,
.admin-dashboard-filter-pills button.is-active {
  border-color: hsl(var(--primary) / 0.5);
  background: hsl(var(--primary) / 0.16);
  color: hsl(var(--primary));
  transform: translateY(-1px);
}

.admin-content-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
  padding: 0.75rem;
  border-radius: var(--radius);
}

.admin-content-switch button {
  padding: 0.55rem 0.85rem;
  border: 1px solid hsl(var(--border));
  border-radius: 999px;
  background: hsl(var(--secondary) / 0.6);
  color: hsl(var(--muted-foreground));
  font: inherit;
  font-size: 0.85rem;
  font-weight: 800;
  cursor: pointer;
}

.admin-content-switch button:hover,
.admin-content-switch button.is-active {
  border-color: hsl(var(--primary) / 0.5);
  background: hsl(var(--primary) / 0.16);
  color: hsl(var(--primary));
}

.admin-content-panel[hidden] {
  display: none !important;
}

.admin-dashboard-table-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
}

.admin-home-form {
  padding: 1.15rem 1.25rem 1.35rem;
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
}

.admin-home-block .admin-h3 {
  margin: 0 0 0.5rem;
  font-size: 0.95rem;
}

.admin-home-block__row {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.admin-home-block__inputs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
}

.admin-input-wide {
  flex: 1;
  min-width: min(100%, 14rem);
  padding: 0.45rem 0.6rem;
  border-radius: var(--radius);
  border: 1px solid hsl(var(--border));
  background: hsl(var(--background));
  color: inherit;
  font: inherit;
}

.admin-home-preview {
  display: block;
  width: 96px;
  height: 96px;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid hsl(var(--border));
  background: hsl(0 0% 10%);
}

.admin-home-form__actions {
  margin-top: 0.25rem;
}

.admin-dynamic-list {
  display: grid;
  gap: 0.85rem;
}

.admin-dynamic-card {
  padding: 0.9rem;
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  background: hsl(var(--secondary) / 0.35);
}

.admin-dynamic-card__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.admin-dynamic-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  gap: 0.8rem;
}

.admin-dynamic-grid__wide {
  grid-column: 1 / -1;
}

.admin-color-field {
  padding: 0.75rem;
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  background: hsl(var(--secondary) / 0.28);
}

.admin-color-field__row {
  display: grid;
  grid-template-columns: 3.25rem minmax(0, 1fr);
  align-items: center;
  gap: 0.55rem;
}

.admin-color-field input[type='color'] {
  min-width: 0;
  width: 3.25rem;
  height: 2.55rem;
  padding: 0.18rem;
  border-radius: 0.85rem;
  cursor: pointer;
}

.admin-color-field input[type='text'] {
  min-width: 0;
}

.admin-gallery-youtube {
  margin-bottom: 1rem;
}

.admin-gallery-card__preview {
  display: grid;
  min-height: 8rem;
  margin-bottom: 0.85rem;
  place-items: center;
  overflow: hidden;
  border: 1px dashed hsl(var(--border));
  border-radius: var(--radius);
  background: hsl(0 0% 8%);
  color: hsl(var(--muted-foreground));
  font-size: 0.85rem;
}

.admin-gallery-card__preview img {
  width: 100%;
  height: 12rem;
  object-fit: cover;
}

.admin-check {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.85rem;
  font-weight: 700;
}

.admin-stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr));
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.admin-stat-card {
  padding: 1rem 1.1rem;
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  border: 1px solid hsl(var(--border));
  background:
    linear-gradient(135deg, hsl(var(--secondary) / 0.78), hsl(var(--background) / 0.72)),
    hsl(var(--background));
}

.admin-stat-card::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: hsl(var(--primary));
}

.admin-stat-card--orders::before {
  background: hsl(38 92% 56%);
}

.admin-stat-card--revenue::before {
  background: hsl(142 71% 45%);
}

.admin-stat-card--expenses::before {
  background: hsl(0 72% 58%);
}

.admin-stat-card--net::before {
  background: hsl(var(--primary));
}

.admin-stat-card--items::before {
  background: hsl(188 95% 43%);
}

.admin-stat-card__label {
  margin: 0 0 0.35rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: hsl(var(--muted-foreground));
}

.admin-stat-card__value {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 800;
}

/* Resumen filamentos (Bedoya / pagos): etiqueta arriba, cifra abajo; montos largos se adaptan */
.admin-stat-grid--filament {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 12.5rem), 1fr));
  gap: 0.85rem;
  margin-bottom: 1rem;
}

@media (min-width: 640px) {
  .admin-stat-grid--filament {
    grid-template-columns: repeat(auto-fill, minmax(11.25rem, 1fr));
  }
}

@media (min-width: 1100px) {
  .admin-stat-grid--filament {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

.admin-stat-card--filament {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 0.45rem;
  min-height: 5.75rem;
  min-width: 0;
  padding: 0.95rem 1rem 1.05rem 1.2rem;
}

.admin-stat-card--filament .admin-stat-card__label {
  display: block;
  order: 1;
  flex: 0 0 auto;
  margin: 0;
  line-height: 1.35;
  text-transform: none;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: hsl(var(--muted-foreground));
}

.admin-stat-card--filament .admin-stat-card__value {
  order: 2;
  display: block;
  flex: 1 1 auto;
  margin: 0;
  margin-top: auto;
  padding-top: 0.15rem;
  line-height: 1.2;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
  word-break: break-word;
  hyphens: auto;
}

.admin-stat-card--filament.is-count .admin-stat-card__value {
  font-size: clamp(1.25rem, 3vw, 1.65rem);
}

.admin-stat-card--filament.is-money .admin-stat-card__value {
  font-size: clamp(0.9375rem, 1.4vw + 0.4rem, 1.3rem);
}

.admin-stat-card--filament.is-money .admin-stat-card__value.is-long {
  font-size: clamp(0.8125rem, 1vw + 0.35rem, 1.1rem);
  line-height: 1.25;
}

.admin-stat-card--filament.is-money .admin-stat-card__value.is-very-long {
  font-size: clamp(0.75rem, 0.85vw + 0.3rem, 0.95rem);
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.admin-table__num {
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.admin-table__money {
  min-width: 6.5rem;
  font-size: clamp(0.8125rem, 1.5vw, 0.9375rem);
  line-height: 1.35;
}

#admin-tab-filament-sales .admin-table th:nth-child(n + 2),
#admin-tab-filament-sales .admin-table td:nth-child(n + 2),
#admin-tab-filament-payments .admin-table th:nth-child(2),
#admin-tab-filament-payments .admin-table td:nth-child(2) {
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

#admin-tab-filament-sales .admin-table td:nth-child(3),
#admin-tab-filament-sales .admin-table th:nth-child(3) {
  min-width: 7.5rem;
}

#admin-tab-filament-sales .admin-table-wrap,
#admin-tab-filament-payments .admin-table-wrap {
  overflow-x: auto;
}

.admin-toolbar {
  margin-bottom: 1rem;
}

.admin-toolbar__row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 1rem;
}

.admin-expense-form {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 1rem;
  margin-bottom: 1rem;
  padding: 1rem;
  border-radius: var(--radius);
}

.admin-register-order-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding: 1rem;
  border-radius: var(--radius);
}

.admin-manual-products {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.admin-order-line-input {
  width: 6.5rem;
  padding: 0.4rem 0.5rem;
  border-radius: var(--radius);
  border: 1px solid hsl(var(--border));
  background: hsl(var(--background));
  color: inherit;
  font: inherit;
}

.admin-home-form [hidden] {
  display: none !important;
}

.admin-label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.8125rem;
  font-weight: 600;
}

.admin-label select,
.admin-label input,
.admin-label textarea {
  min-width: 12rem;
  padding: 0.45rem 0.6rem;
  border-radius: var(--radius);
  border: 1px solid hsl(var(--border));
  background: hsl(var(--background));
  color: inherit;
  font: inherit;
}

.admin-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  padding: 0.25rem;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.admin-table th,
.admin-table td {
  padding: 0.65rem 0.75rem;
  text-align: left;
  border-bottom: 1px solid hsl(var(--border));
  vertical-align: middle;
}

.admin-table th {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: hsl(var(--muted-foreground));
}

.admin-order-select {
  min-width: 9.5rem;
  padding: 0.4rem 0.55rem;
  border: 1px solid hsl(var(--border));
  border-radius: calc(var(--radius) * 0.75);
  background: linear-gradient(180deg, hsl(var(--secondary) / 0.9), hsl(var(--background)));
  color: hsl(var(--foreground));
  font: inherit;
  color-scheme: dark;
}

.admin-order-select option {
  background: hsl(var(--background));
  color: hsl(var(--foreground));
}

.admin-order-money {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  white-space: nowrap;
}

.admin-order-money span {
  color: hsl(var(--muted-foreground));
  font-size: 0.78rem;
}

.admin-orders-hero {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
  padding: 1.25rem;
  border-radius: calc(var(--radius) * 1.2);
  background:
    radial-gradient(circle at top left, hsl(var(--primary) / 0.22), transparent 34rem),
    linear-gradient(135deg, hsl(var(--secondary) / 0.86), hsl(var(--background) / 0.72));
}

.admin-orders-hero .admin-h2,
.admin-orders-hero .admin-muted {
  margin-bottom: 0;
}

.admin-orders-hero__eyebrow {
  margin: 0 0 0.3rem;
  color: hsl(var(--primary));
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.admin-orders-hero__badge {
  display: inline-flex;
  align-items: center;
  min-height: 2.1rem;
  padding: 0.45rem 0.75rem;
  border: 1px solid hsl(var(--primary) / 0.35);
  border-radius: 999px;
  background: hsl(var(--primary) / 0.12);
  color: hsl(var(--primary));
  font-size: 0.8rem;
  font-weight: 800;
}

.admin-orders-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.85rem;
  margin-bottom: 1rem;
  padding: 1rem;
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, hsl(var(--secondary) / 0.72), transparent),
    hsl(var(--background) / 0.58);
}

.admin-orders-status-filter {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  margin-left: auto;
}

.admin-orders-status-filter button {
  padding: 0.48rem 0.7rem;
  border: 1px solid hsl(var(--border));
  border-radius: 999px;
  background: hsl(var(--secondary) / 0.55);
  color: hsl(var(--muted-foreground));
  font: inherit;
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
  transition:
    border-color 0.2s,
    background 0.2s,
    color 0.2s,
    transform 0.2s;
}

.admin-orders-status-filter button:hover,
.admin-orders-status-filter button.is-active {
  border-color: hsl(var(--primary) / 0.5);
  background: hsl(var(--primary) / 0.16);
  color: hsl(var(--primary));
  transform: translateY(-1px);
}

.admin-orders-panels {
  display: grid;
  gap: 1rem;
}

.admin-orders-filter-note {
  width: fit-content;
  margin: 0;
  padding: 0.45rem 0.7rem;
  border: 1px solid hsl(var(--border));
  border-radius: 999px;
  background: hsl(var(--secondary) / 0.55);
  color: hsl(var(--muted-foreground));
  font-size: 0.875rem;
}

.admin-order-panel {
  --order-accent: hsl(var(--primary));
  overflow: hidden;
  padding: 0;
  border: 1px solid hsl(var(--border));
  border-radius: calc(var(--radius) * 1.15);
  box-shadow: 0 18px 42px hsl(0 0% 0% / 0.18);
}

.admin-order-panel--pendiente {
  --order-accent: hsl(38 92% 56%);
}

.admin-order-panel--pagada {
  --order-accent: hsl(142 71% 45%);
}

.admin-order-panel--completada {
  --order-accent: hsl(188 95% 43%);
}

.admin-order-panel--cancelada {
  --order-accent: hsl(0 84% 62%);
}

.admin-order-panel__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1rem 1.05rem 0.85rem;
  border-bottom: 1px solid hsl(var(--border));
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--order-accent) 18%, transparent), transparent 52%),
    hsl(var(--secondary) / 0.48);
}

.admin-order-panel__title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.admin-order-panel__icon {
  display: inline-grid;
  place-items: center;
  width: 2.35rem;
  height: 2.35rem;
  border: 1px solid color-mix(in srgb, var(--order-accent) 45%, transparent);
  border-radius: 0.85rem;
  background: color-mix(in srgb, var(--order-accent) 16%, transparent);
  color: var(--order-accent);
  font-size: 0.76rem;
  font-weight: 900;
}

.admin-order-panel__head h3 {
  margin: 0;
  font-size: 1rem;
}

.admin-order-panel__head p {
  margin: 0.16rem 0 0;
  color: hsl(var(--muted-foreground));
  font-size: 0.85rem;
}

.admin-order-panel__count {
  display: inline-flex;
  align-items: center;
  padding: 0.42rem 0.65rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--order-accent) 14%, transparent);
  color: var(--order-accent);
  font-size: 0.82rem;
  font-weight: 800;
}

.admin-order-panel .admin-table-wrap {
  border-radius: 0;
}

.admin-order-panel .admin-table tbody tr:hover {
  background: hsl(var(--secondary) / 0.4);
}

.admin-order-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  padding: 0.85rem 1rem 1rem;
  border-top: 1px solid hsl(var(--border));
  background: hsl(var(--secondary) / 0.24);
}

.admin-order-pagination span {
  color: hsl(var(--muted-foreground));
  font-size: 0.85rem;
}

.admin-table tbody tr:last-child td {
  border-bottom: none;
}

.admin-td-thumb img {
  display: block;
  border-radius: 6px;
  object-fit: cover;
}

.admin-td-actions {
  white-space: nowrap;
}

.admin-msg {
  margin: 0 0 1rem;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
  background: hsl(var(--secondary));
  border: 1px solid hsl(var(--border));
}

.admin-msg--err {
  border-color: hsl(0 62% 45% / 0.45);
  color: hsl(0 86% 88%);
  background: hsl(0 35% 12%);
}

.admin-msg--ok {
  border-color: hsl(142 76% 36% / 0.45);
  color: hsl(142 71% 88%);
  background: hsl(142 30% 12%);
}

.admin-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  overflow-y: auto;
}

/* El atributo HTML hidden debe ganar a display:flex (si no, el modal se ve siempre). */
.admin-modal[hidden] {
  display: none !important;
}

.admin-modal__backdrop {
  position: absolute;
  inset: 0;
  background: hsl(0 0% 0% / 0.65);
  cursor: pointer;
}

.admin-modal__dialog {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: min(32rem, 100%);
  margin: auto;
  padding: 1.5rem 1.35rem;
  border-radius: 1rem;
}

.admin-modal__title {
  margin: 0 0 1rem;
  font-size: 1.125rem;
}

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

.admin-muted {
  margin: 0 0 0.75rem;
  font-size: 0.8125rem;
  color: hsl(var(--muted-foreground));
  line-height: 1.45;
}

.admin-modal .form-field {
  margin-bottom: 0.85rem;
}

.admin-modal input,
.admin-modal textarea {
  width: 100%;
  font: inherit;
  padding: 0.5rem 0.65rem;
  border-radius: var(--radius);
  border: 1px solid hsl(var(--border));
  background: hsl(var(--background));
  color: inherit;
}

.admin-modal textarea {
  min-height: 4rem;
  resize: vertical;
}

.admin-field-hint {
  margin: 0 0 0.45rem;
  font-size: 0.78rem;
  line-height: 1.45;
  color: hsl(var(--muted-foreground));
}

.admin-field-hint code {
  font-size: 0.85em;
}

.admin-upload-row {
  margin-top: 0.45rem;
}

.admin-upload-label {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: hsl(var(--foreground));
}

.admin-img-preview-wrap {
  margin-top: 0.55rem;
}

.admin-img-preview {
  display: block;
  max-width: 100%;
  height: auto;
  aspect-ratio: 1;
  width: 8.75rem;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid hsl(var(--border));
  background: hsl(var(--muted) / 0.35);
}

.admin-gallery-previews {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.5rem;
  min-height: 0;
}

.admin-gallery-previews img {
  width: 3.35rem;
  height: 3.35rem;
  object-fit: cover;
  border-radius: calc(var(--radius) - 2px);
  border: 1px solid hsl(var(--border));
  background: hsl(var(--muted) / 0.35);
}

.admin-gallery-stack {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.admin-gallery-textarea {
  min-height: 7.5rem;
  font-family: ui-monospace, monospace;
  font-size: 0.8125rem;
}

.admin-drop-zone {
  border: 2px dashed hsl(var(--border));
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  text-align: center;
  cursor: pointer;
  transition:
    border-color 0.15s ease,
    background-color 0.15s ease;
}

.admin-drop-zone:hover,
.admin-drop-zone:focus-visible {
  border-color: hsl(var(--primary));
  outline: none;
}

.admin-drop-zone.is-dragover {
  border-color: hsl(var(--primary));
  background: hsl(var(--primary) / 0.09);
}

.admin-drop-zone--compact {
  padding: 0.65rem 0.85rem;
}

.admin-drop-zone__title {
  margin: 0 0 0.25rem;
  font-size: 0.875rem;
  font-weight: 600;
}

.admin-drop-zone__hint {
  margin: 0;
  font-size: 0.76rem;
  line-height: 1.4;
  color: hsl(var(--muted-foreground));
}
