:root {
  --color-header-footer: #c8986;
  --color-header-opacity: #161515;/*rgba(200, 152, 98, 0.95);*/
  --gold: #a68b2d;
  --gold-hover: #b89635;
  --gold-rgb: 166, 139, 45;
  --color-text-light: var(--gold);
  --color-text-navegacion:#ffffff;
  --color-text-muted: rgba(255, 255, 255, 0.85);
  --color-search-bg: rgba(255, 255, 255, 0.95);
  --color-search-text: #4a3728;
  --font-body: 'Inter', system-ui, sans-serif;
  --header-height: 100px;
  --shadow-card: 0 8px 24px rgba(0, 0, 0, 0.2);
  --radius-search: 8px;
  --radius-card: 12px;
  --bg: #0f1114;
  --accent: var(--gold);
  --radius: 12px;
}


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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  font-family: var(--font-body);
}

body {
  font-family: var(--font-body);
  color: var(--color-text-light);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  background-color: var(--bg);
}

/* Tipografía unificada: Inter (misma fuente que los tabs del navbar) */
:where(
  h1, h2, h3, h4, h5, h6,
  p, span, a, li, td, th, label, small, strong, em,
  button, input, select, textarea,
  .btn, [class*="btn-"], .modal-cancel,
  .enlace-navegacion, .enlace-admin, .cabecera__usuario-trigger, .cabecera__carrito,
  .catalogo-busqueda-btn, .admin-input, .admin-select, .auth-input,
  .cantidad-control__input, .cantidad-control__btn, .carrito-input-cantidad,
  .boton-ayuda-flotante, .footer, .pie-pagina
) {
  font-family: var(--font-body);
}

.cabecera {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-height);
  background: var(--color-header-opacity);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  gap: 2rem;
  flex-wrap: wrap;
}

.cabecera__logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}



.icono-logo img {
  width: 200px;
  height: 150px;
  margin-top: -25px;
  margin-left: -50px;
}

.logo-claro { display: none; }
.logo-oscuro { display: block; }
[data-theme="light"] .logo-claro { display: block; }
[data-theme="light"] .logo-oscuro { display: none; }

.texto-logo {
  font-family: var(--font-body);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-text-light);
  letter-spacing: 0.02em;
}

/* Barra de búsqueda */
.cabecera__busqueda {
  flex: 1;
  min-width: 200px;
  max-width: 500px;
  position: relative;
  margin: 0 auto;
}

.entrada-busqueda {
  width: 100%;
  height: 44px;
  padding: 0 44px 0 1rem;
  border: none;
  border-radius: var(--radius-search);
  background: var(--color-search-bg);
  color: var(--color-search-text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  background-color: rgba(139, 115, 85, 0.674);
}

.entrada-busqueda::placeholder {
  color: #8b7355;
}

.entrada-busqueda:focus {
  outline: 2px solid rgba(255, 255, 255, 0.6);
  outline-offset: 2px;
}

.icono-busqueda {
  position: absolute;
  right: 12px;
  top: 40%;
  transform: translateY(-50%);
  color: #6b5344;
  pointer-events: none;
}

/* Navegación */
.cabecera__navegacion {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  justify-content: space-around;
  margin-top: 10px;
}

.enlace-navegacion {
  color: var(--color-text-navegacion);
  text-decoration: none;
  font-size: 1.3rem;
  font-weight: 500;
  transition: opacity 0.2s;
}

.enlace-navegacion:hover {
  opacity: 0.9;
  text-decoration: underline;
}

.enlace-admin {
  color: var(--gold);
  font-weight: 700;
}

.enlace-admin__icono {
  vertical-align: middle;
  margin-right: .3rem;
}

/* Usuario */
.cabecera__usuario {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  flex-shrink: 0;
}

.avatar-usuario {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  color: var(--color-text-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1;
  text-transform: uppercase;
}

.avatar-usuario svg {
  width: 24px;
  height: 24px;
}

.avatar-usuario__img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.etiqueta-usuario {
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

/* ===== Hero / Contenido principal ===== */
.inicio {
  position: relative;
  min-height: 55vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  justify-items: center;
  gap: 2rem;
  padding: calc(var(--header-height) + 2rem) 2rem 3rem;
  margin-top: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.inicio__badge {
  display: inline-block;
  background: rgba(var(--gold-rgb), 0.12);
  border: 1px solid rgba(var(--gold-rgb), 0.35);
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.3rem 0.75rem;
  border-radius: 6px;
}

.inicio__texto {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  max-width: 480px;
}

.inicio__descripcion {
  margin-top: 0;
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.05rem;
  line-height: 1.65;
}

.inicio__acciones {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 0.25rem;
}

.inicio__imagen {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.inicio .img_fondo {
  width: 100%;
  max-width: 400px;
  height: auto;
  border-radius: var(--radius-card);
  object-fit: cover;
  display: block;
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.inicio__fondo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.15) 0%,
    rgba(0, 0, 0, 0.4) 100%
  );
  z-index: 1;
}

.inicio__contenido {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.5rem;
}

/* Tarjetas de imágenes */
.inicio__tarjetas {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  width: 100%;
  max-width: 900px;
}

.tarjeta {
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  aspect-ratio: 4 / 3;
}

.tarjeta__imagen {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  margin-top: 20px;
}

.tarjeta__imagen--1 {
  background-image: url("../imagenes/foto cultivo.1bff72d99522.jpeg");
}

.tarjeta__imagen--2 {
  background-image: url("../imagenes/foto tostado.656e05bd974c.jpeg");
}

.tarjeta__imagen--3 {
  background-image: url("../imagenes/preparacion.085f23e43b41.jpeg");
}

.inicio__fondo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.15) 0%,
    rgba(0, 0, 0, 0.4) 100%
  );
  z-index: 1;
}

.inicio__contenido {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.5rem;
}

/* Tarjetas de imágenes */
.inicio__tarjetas {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  width: 100%;
  max-width: 900px;
}

.tarjeta {
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  aspect-ratio: 4 / 3;
}

.tarjeta__imagen {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  margin-top: 20px;
}

.tarjeta__imagen--1 {
  background-image: url("../imagenes/foto cultivo.1bff72d99522.jpeg");
}

.tarjeta__imagen--2 {
  background-image: url("../imagenes/foto tostado.656e05bd974c.jpeg");
}

.tarjeta__imagen--3 {
  background-image: url("../imagenes/preparacion.085f23e43b41.jpeg");
}

.inicio__fondo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.15) 0%,
    rgba(0, 0, 0, 0.4) 100%
  );
  z-index: 1;
}

.inicio__contenido {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.5rem;
}

/* Tarjetas de imágenes */
.inicio__tarjetas {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  width: 100%;
  max-width: 900px;
}

.tarjeta {
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  aspect-ratio: 4 / 3;
}

.tarjeta__imagen {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  margin-top: 20px;
}

.tarjeta__imagen--1 {
  background-image: url("../imagenes/foto cultivo.1bff72d99522.jpeg");
}

.tarjeta__imagen--2 {
  background-image: url("../imagenes/foto tostado.656e05bd974c.jpeg");
}

.tarjeta__imagen--3 {
  background-image: url("../imagenes/preparacion.085f23e43b41.jpeg");
}

/* Título de bienvenida */
.inicio__titulo {
  font-family: var(--font-body);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 400;
  color: var(--color-text-light);
  text-align: center;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.4);
  letter-spacing: 0.02em;
}

/* ===== Footer ===== */
.pie-pagina {
  background: var(--color-header-footer);
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 2rem;
  gap: 1rem;
  flex-wrap: wrap;
}

.pie-pagina__marca {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.pie-pagina__icono {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #2d5a27;
}

.pie-pagina__texto-marca {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-text-muted);
  letter-spacing: 0.05em;
}

.pie-pagina__legal {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  text-align: center;
}

.pie-pagina__enlace {
  color: var(--color-text-muted);
  font-size: 0.85rem;
  text-decoration: none;
}

.pie-pagina__enlace:hover {
  text-decoration: underline;
  color: var(--color-text-light);
}

.pie-pagina__copyright {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .cabecera {
    padding: 0 1rem;
    gap: 1rem;
    height: auto;
    min-height: 120px;
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
  }

  .cabecera__busqueda {
    order: 3;
    flex-basis: 100%;
    max-width: 100%;
    
    margin: 0;
  }

  .inicio__tarjetas {
    grid-template-columns: 1fr;
    max-width: 400px;
  }

.inicio {
    grid-template-columns: 1fr;
    padding-top: calc(120px + 1.5rem);
    padding-bottom: 2.5rem;
    gap: 1.75rem;
    min-height: auto;
  }

  .inicio__texto {
    text-align: center;
    align-items: center;
    max-width: 100%;
  }

  .inicio__acciones {
    justify-content: center;
  }

  .inicio .img_fondo {
    max-width: 320px;
  }
}

@media (max-width: 600px) {
  .cabecera {
    padding: 0.5rem 1rem;
    min-height: auto;
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .icono-logo img {
    width: 120px;
    height: auto;
    margin-top: 0;
    margin-left: 0;
  }

  .cabecera__navegacion {
    gap: 0.75rem;
  }

  .enlace-navegacion {
    font-size: 1rem;
  }

  .cabecera__carrito-icon svg {
    width: 1.35rem;
    height: 1.35rem;
  }

  .texto-logo {
    font-size: 1.2rem;
  }

  .inicio {
    padding-top: calc(80px + 1rem);
    padding-left: 1rem;
    padding-right: 1rem;
    min-height: auto;
  }

  .inicio__titulo {
    font-size: clamp(1.5rem, 7vw, 2.5rem);
  }

  .inicio__descripcion {
    font-size: 1rem;
  }

  .inicio .img_fondo {
    max-width: 100%;
    border-radius: var(--radius);
  }

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

.pie-pagina {
    flex-direction: column;
    text-align: center;
  }

  .pie-pagina__legal {
    order: 2;
  }

  .pie-pagina__marca {
    order: 1;
  }

  .footer-container {
    flex-direction: column;
    gap: 24px;
  }

  .footer-section {
    min-width: unset;
  }
}
.footer {
  background-color: var(--color-header-opacity);
  color: #f5e6d3;
  padding: 40px 20px;
  font-family: var(--font-body);
}

.footer-container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 40px;
}

.footer-section {
  flex: 1;
  min-width: 250px;
}

.footer-section h3 {
  font-size: 18px;
  margin-bottom: 10px;
  position: relative;
}

.footer-section h3::after {
  content: "";
  width: 40px;
  height: 2px;
  background: #d4a373;
  display: block;
  margin-top: 5px;
}

.footer-section p {
  font-size: 14px;
  line-height: 1.6;
}

.footer-section ul {
  list-style: none;
  padding: 0;
}

.footer-section ul li {
  margin: 8px 0;
}

.footer-section ul li a {
  text-decoration: none;
  color: #f5e6d3;
  transition: color 0.3s;
}

.footer-section ul li a:hover {
  color: #d4a373;
}

.socials a {
  display: inline-block;
  margin-right: 10px;
  background: #161515;
  padding: 8px;
  border-radius: 50%;
  color: white;
  transition: transform 0.3s, background 0.3s;
}

.socials a:hover {
  background: #d4a373;
  transform: scale(1.1);
}

.footer-bottom {
  text-align: center;
  margin-top: 30px;
  border-top: 1px solid #6f4e37;
  padding-top: 15px;
  font-size: 13px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  transition: background 0.15s, transform 0.1s;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--accent);
  color: var(--bg);
}

.btn-primary:hover {
  filter: brightness(1.08);
}

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

.btn-primary:disabled:hover {
  filter: none;
}

.producto-detalle__sin-stock {
  margin: 0.5rem 0 0;
  font-size: 0.9rem;
  color: var(--text-muted, #6b5d52);
}

/* ===== Catálogo (e-commerce) ===== */
.enlace-navegacion--activo {
  text-decoration: underline;
  font-weight: 600;
}

a.icono-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: inherit;
}

.catalogo-busqueda-form {
  width: 100%;
  margin-bottom: 1.75rem;
}

.catalogo-busqueda-wrap {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  flex-wrap: wrap;
}

.catalogo-busqueda-input {
  flex: 1;
  min-width: 200px;
  height: 44px;
  padding: 0 1rem;
  border-radius: var(--radius-search);
  border: 1px solid rgba(var(--gold-rgb), 0.35);
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  font-size: 0.95rem;
  font-family: var(--font-body);
}

.catalogo-busqueda-input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.catalogo-busqueda-input:focus {
  outline: 2px solid rgba(var(--gold-rgb), 0.5);
  outline-offset: 2px;
}

.catalogo-busqueda-btn {
  white-space: nowrap;
  height: 44px;
}

.catalogo-busqueda-limpiar {
  white-space: nowrap;
  height: 44px;
  display: inline-flex;
  align-items: center;
}

.catalogo-filtro-info {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 1.25rem;
  padding: 0.6rem 0.85rem;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 8px;
  border-left: 3px solid rgba(var(--gold-rgb), 0.5);
}

.catalogo-filtro-info strong {
  color: var(--accent);
}
.catalogo-pagina {
  flex: 1;
  padding: calc(var(--header-height) + 2rem) 1.5rem 4rem;
  background: var(--bg);
}

.catalogo-contenedor {
  max-width: 1200px;
  margin: 0 auto;
}

.catalogo-encabezado {
  margin-bottom: 2rem;
}

.catalogo-titulo {
  font-family: var(--font-body);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  color: var(--accent);
  font-weight: 400;
}

.catalogo-subtitulo {
  color: rgba(255, 255, 255, 0.85);
  margin-top: 0.5rem;
  font-size: 1rem;
}

.catalogo-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 2rem;
  align-items: start;
}

.catalogo-sidebar {
  background: rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-card);
  padding: 1.25rem;
  border: 1px solid rgba(var(--gold-rgb), 0.2);
}

.catalogo-sidebar__titulo {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 1rem;
}

.catalogo-filtros {
  list-style: none;
}

.catalogo-filtros li + li {
  margin-top: 0.5rem;
}

.catalogo-filtro {
  display: block;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  color: var(--color-text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  transition: background 0.15s, color 0.15s;
}

.catalogo-filtro:hover {
  background: rgba(var(--gold-rgb), 0.15);
  color: #fff;
}

.catalogo-filtro--activo {
  background: rgba(var(--gold-rgb), 0.25);
  color: var(--accent);
  font-weight: 600;
}

.catalogo-vacio-hint {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.55);
}

.catalogo-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.5rem;
}

.catalogo-grid--compacto {
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
}

.catalogo-card {
  border-radius: var(--radius-card);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow-card);
  transition: transform 0.2s, border-color 0.2s;
}

.catalogo-card:hover {
  transform: translateY(-4px);
  border-color: rgba(var(--gold-rgb), 0.35);
}

.catalogo-card__link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.catalogo-card__media {
  position: relative;
  aspect-ratio: 4 / 3;
  background: #1a1d22;
  overflow: hidden;
}

.catalogo-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.catalogo-card__placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #3d2914 0%, #6f4e37 45%, #2a1810 100%);
}

.catalogo-card__badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--accent);
  color: var(--bg);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.35rem 0.6rem;
  border-radius: 6px;
}

.catalogo-card__body {
  padding: 1rem 1.1rem 1.25rem;
}

.catalogo-card__cat {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(var(--gold-rgb), 0.95);
  margin-bottom: 0.35rem;
}

.catalogo-card__nombre {
  font-size: 1.05rem;
  font-weight: 600;
  color: #fff;
  line-height: 1.3;
  margin-bottom: 0.5rem;
}

.catalogo-card__precio {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--accent);
}
/* ── Badge de estado de stock ── */
.stock-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.55rem;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.stock-badge--disponible {
  background: rgba(66, 170, 100, 0.15);
  border: 1px solid rgba(66, 170, 100, 0.38);
  color: #6fd08f;
}

.stock-badge--bajo {
  background: rgba(241, 200, 75, 0.15);
  border: 1px solid rgba(241, 200, 75, 0.4);
  color: #f1c84b;
}

.stock-badge--agotado {
  background: rgba(224, 107, 95, 0.13);
  border: 1px solid rgba(224, 107, 95, 0.4);
  color: #e06b5f;
}

.stock-badge--lg {
  font-size: 0.82rem;
  padding: 0.35rem 0.9rem;
  margin-top: 0.75rem;
  margin-bottom: 0.5rem;
}

.catalogo-sin-resultados {
  text-align: center;
  padding: 3rem 1.5rem;
  color: rgba(255, 255, 255, 0.75);
  background: rgba(255, 255, 255, 0.04);
  border-radius: var(--radius-card);
}

.catalogo-sin-resultados .btn {
  margin-top: 1.25rem;
}

.catalogo-migas {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 1.5rem;
}

.catalogo-migas a {
  color: var(--accent);
  text-decoration: none;
}

.catalogo-migas a:hover {
  text-decoration: underline;
}

.producto-detalle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

.producto-detalle__media {
  border-radius: var(--radius-card);
  overflow: hidden;
  background: #1a1d22;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.producto-detalle__img {
  width: 100%;
  display: block;
  aspect-ratio: 1;
  object-fit: cover;
}

.producto-sin-foto {
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.38);
  background: #1a1d22;
  box-sizing: border-box;
}

.producto-sin-foto--card,
.producto-sin-foto--carrito {
  width: 100%;
  aspect-ratio: 4 / 3;
}

.producto-sin-foto--detalle {
  width: 100%;
  aspect-ratio: 1;
}

.producto-sin-foto--slider {
  width: 100%;
  aspect-ratio: 4 / 3;
  min-height: 12rem;
}

.producto-sin-foto--thumb {
  width: 52px;
  height: 52px;
  min-height: 52px;
  flex-shrink: 0;
  border-radius: 8px;
  border: 1px dashed rgba(255, 255, 255, 0.18);
}

.producto-sin-foto svg {
  width: 2.5rem;
  height: 2.5rem;
}

.producto-sin-foto--thumb svg {
  width: 1.35rem;
  height: 1.35rem;
}

.producto-detalle__placeholder {
  aspect-ratio: 1;
  background: linear-gradient(135deg, #3d2914 0%, #6f4e37 45%, #2a1810 100%);
}

.producto-detalle__titulo {
  font-family: var(--font-body);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  color: #fff;
  margin: 0.5rem 0 1rem;
}

.producto-detalle__precio {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 1.25rem;
}

.producto-detalle__extras {
  margin-top: .35rem;
}

.producto-detalle__desc {
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.65;
  margin-bottom: 1.5rem;
}

.producto-detalle__acciones {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn-ghost {
  background: transparent;
  color: var(--accent);
  border: 2px solid rgba(var(--gold-rgb), 0.5);
}

.btn-ghost:hover {
  background: rgba(var(--gold-rgb), 0.12);
}

.catalogo-relacionados {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.catalogo-relacionados__titulo {
  font-size: 1.25rem;
  color: var(--accent);
  margin-bottom: 1.25rem;
  font-family: var(--font-body);
  font-weight: 400;
}

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

  .producto-detalle {
    grid-template-columns: 1fr;
  }
}

/* ===== Cabecera: carrito ===== */
.cabecera__acciones {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-shrink: 0;
}

.cabecera__carrito {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: var(--color-text-navegacion);
  font-weight: 500;
  padding: 0.25rem 0.35rem;
  border-radius: 8px;
  transition: background 0.15s, opacity 0.2s;
}

.cabecera__carrito:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  opacity: 0.9;
}

.cabecera__carrito-icon {
  position: relative;
  display: flex;
  color: var(--accent);
}

.cabecera__carrito-icon svg {
  width: 1.75rem;
  height: 1.75rem;
}

.cabecera__carrito-badge {
  position: absolute;
  top: -4px;
  right: -6px;
  min-width: 1.15rem;
  height: 1.15rem;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--bg);
  font-size: 0.65rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

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

.mensajes-flash-contenedor {
  position: fixed;
  top: 5.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1200;
  width: min(92vw, 32rem);
  pointer-events: none;
}

.mensajes-flash-contenedor--auth {
  position: static;
  transform: none;
  width: 100%;
  margin-bottom: 1rem;
  pointer-events: auto;
}

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

.mensajes-flash__item {
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  font-size: 0.95rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.mensajes-flash__item--oculto {
  opacity: 0;
  transform: translateY(-0.35rem);
}

.mensajes-flash__item--success {
  background: rgba(45, 90, 39, 0.35);
  border: 1px solid rgba(var(--gold-rgb), 0.4);
  color: #e8f5e4;
  pointer-events: auto;
}

.mensajes-flash__item--error {
  background: rgba(120, 40, 40, 0.4);
  border: 1px solid rgba(255, 120, 120, 0.35);
  color: #ffe0e0;
  pointer-events: auto;
}

.mensajes-flash__item--info {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--color-text-muted);
  pointer-events: auto;
}

.catalogo-card__footer {
  padding: 0.75rem 1rem 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.catalogo-card__btn {
  width: 100%;
  justify-content: center;
  text-decoration: none;
}

.catalogo-card__add-form {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.catalogo-card__qty {
  width: 3.25rem;
  height: 38px;
  border-radius: 8px;
  border: 1px solid rgba(var(--gold-rgb), 0.35);
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  padding: 0 0.4rem;
  font-size: 0.9rem;
}

.btn--compact {
  padding: 0.45rem 0.85rem;
  font-size: 0.85rem;
}

.producto-detalle__add-form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.producto-detalle__qty-label {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9rem;
}

.cantidad-control {
  display: inline-grid;
  grid-template-columns: 4rem 1.55rem;
  align-items: stretch;
  height: 54px;
  border: 1px solid rgba(var(--gold-rgb), 0.45);
  border-radius: 10px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.35);
}

.cantidad-control__botones {
  display: grid;
  grid-template-rows: 1fr 1fr;
  border-left: 1px solid rgba(var(--gold-rgb), 0.3);
}

.cantidad-control__btn {
  width: 1.55rem;
  height: 100%;
  border: none;
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.78);
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.52rem;
  font-weight: 800;
  line-height: 1;
  transition: background 0.15s, color 0.15s;
}

.cantidad-control__btn--arriba {
  border-bottom: 1px solid rgba(var(--gold-rgb), 0.22);
}

.cantidad-control__btn:hover,
.cantidad-control__btn:focus-visible {
  background: rgba(var(--gold-rgb), 0.18);
  color: var(--accent);
  outline: none;
}

.cantidad-control__input {
  border-radius: 0;
  border: none;
  text-align: left;
  appearance: textfield;
  -moz-appearance: textfield;
}

.cantidad-control__input::-webkit-outer-spin-button,
.cantidad-control__input::-webkit-inner-spin-button {
  margin: 0;
  -webkit-appearance: none;
}

.producto-detalle__qty {
  width: 4rem;
  height: 54px;
  background: transparent;
  color: #fff;
  padding: 0 0.7rem;
  font-size: 1rem;
}

/* ===== Página carrito ===== */
.carrito-pagina .catalogo-encabezado {
  margin-bottom: 1.5rem;
}

.carrito-vacio {
  text-align: center;
  padding: 3rem 1.5rem;
  background: rgba(255, 255, 255, 0.04);
  border-radius: var(--radius-card);
  color: rgba(255, 255, 255, 0.8);
}

.carrito-vacio .btn {
  margin-top: 1.25rem;
}

.carrito-tabla-wrap {
  overflow-x: auto;
  border-radius: var(--radius-card);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
}

.carrito-tabla {
  width: 100%;
  border-collapse: collapse;
  min-width: 560px;
}

.carrito-tabla th,
.carrito-tabla td {
  padding: 1rem 1.1rem;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.carrito-tabla th {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  font-weight: 600;
}

.carrito-tabla tbody tr:last-child td {
  border-bottom: none;
}

.carrito-fila__nombre {
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  margin-bottom: 0.25rem;
}

.carrito-fila__nombre:hover {
  color: var(--accent);
  text-decoration: underline;
}

.carrito-fila__desc {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.72);
  margin: 0.15rem 0 0.1rem;
  line-height: 1.35;
}

.carrito-fila__cat {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.55);
}

.carrito-fila__precio,
.carrito-fila__sub {
  color: var(--accent);
  font-weight: 600;
  white-space: nowrap;
}

.carrito-form-qty {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  white-space: nowrap;
}

.carrito-input-cantidad {
  width: 4rem;
  height: 54px;
  background: transparent;
  color: #fff;
  padding: 0 0.7rem;
  font-size: 1rem;
}

.cantidad-control--carrito {
  height: 54px;
  grid-template-columns: 4rem 1.55rem;
  border-radius: 10px;
  flex: 0 0 auto;
}

.cantidad-control--carrito .cantidad-control__btn {
  width: 1.55rem;
}

.cantidad-control--carrito .carrito-input-cantidad {
  width: 4rem;
}

.btn-eliminar-carrito {
  background: transparent;
  color: #e8a4a4;
  border: 1px solid rgba(232, 164, 164, 0.4);
  padding: 0.45rem 0.75rem;
  border-radius: var(--radius);
  font-size: 0.85rem;
  cursor: pointer;
  font-family: var(--font-body);
  font-weight: 500;
  transition: background 0.15s;
}

.btn-eliminar-carrito:hover {
  background: rgba(232, 164, 164, 0.12);
}

.carrito-pie {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.5rem;
}

.carrito-total {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
}

.carrito-total__label {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.75);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.carrito-total__valor {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--accent);
}

.carrito-nota {
  margin-top: 1.5rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
}

@media (max-width: 900px) {
  .cabecera__acciones {
    gap: 0.75rem;
  }
}

/* ===== Cuenta en cabecera ===== */
.cabecera__usuario--cuenta {
  position: relative;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.35rem;
}

.cabecera__usuario-trigger {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.25rem 0.35rem;
  border-radius: 10px;
  color: inherit;
  font-family: var(--font-body);
  transition: background 0.15s;
}

.cabecera__usuario-trigger:hover,
.cabecera__usuario-trigger:focus-visible {
  background: rgba(255, 255, 255, 0.08);
  outline: none;
}

.cabecera__usuario-trigger:focus-visible {
  box-shadow: 0 0 0 2px rgba(var(--gold-rgb), 0.6);
}

.cabecera__usuario-trigger[aria-expanded='true'] {
  background: rgba(var(--gold-rgb), 0.12);
}

.cabecera__usuario-nombre {
  max-width: 7rem;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.78rem;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.usuario-modal-abierto {
  overflow: hidden;
}

/* Modal usuario */
.usuario-modal[hidden] {
  display: none !important;
}

.usuario-modal {
  position: fixed;
  inset: 0;
  z-index: 250;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  padding-top: calc(var(--header-height) + 0.5rem);
}

.usuario-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(2px);
}

.usuario-modal__panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 380px;
  padding: 1.75rem 1.5rem 1.5rem;
  background: #1a1c20;
  border: 1px solid rgba(var(--gold-rgb), 0.3);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card), 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.usuario-modal__confirmar-foto {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 1.5rem;
  border-radius: inherit;
  background: rgba(10, 10, 12, 0.94);
  text-align: center;
}

.usuario-modal__confirmar-foto[hidden] {
  display: none;
}

.usuario-modal__confirmar-texto {
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.95rem;
  line-height: 1.5;
}

.usuario-modal__confirmar-acciones {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
  justify-content: center;
}

.usuario-modal__confirmar-eliminar {
  border-color: rgba(224, 107, 95, 0.55) !important;
  color: #e06b5f !important;
}

.usuario-modal__confirmar-eliminar:hover {
  background: rgba(224, 107, 95, 0.18) !important;
  color: #fff !important;
}

.usuario-modal__cerrar {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  width: 2.25rem;
  height: 2.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  font-family: var(--font-body);
  transition: background 0.15s, color 0.15s;
}

.usuario-modal__cerrar:hover {
  background: rgba(var(--gold-rgb), 0.15);
  color: var(--accent);
}

.usuario-modal__titulo {
  font-family: var(--font-body);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--accent);
  margin: 0 0 1.25rem;
  text-align: center;
}

.usuario-modal__perfil {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  margin: 0 0 1rem;
  padding: 0 0 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.usuario-modal__avatar {
  width: 5.5rem;
  height: 5.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: rgba(var(--gold-rgb), 0.18);
  border: 1px solid rgba(var(--gold-rgb), 0.35);
  color: var(--accent);
  font-size: 1.3rem;
  font-weight: 800;
  line-height: 1;
}

.usuario-modal__avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.usuario-modal__foto-estado {
  margin: 0;
  font-size: 0.82rem;
  text-align: center;
}

.usuario-modal__foto-estado--ok {
  color: #6fd08f;
}

.usuario-modal__foto-estado--error {
  color: #e06b5f;
}

.usuario-modal__foto-acciones {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
}

.usuario-modal__foto-form {
  display: flex;
  margin: 0;
}

.usuario-modal__foto-icono {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: 1px solid rgba(var(--gold-rgb), 0.45);
  border-radius: 8px;
  background: rgba(var(--gold-rgb), 0.1);
  color: var(--accent);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.usuario-modal__foto-icono:hover,
.usuario-modal__foto-icono:focus-visible {
  background: rgba(var(--gold-rgb), 0.2);
  border-color: var(--accent);
  color: #fff;
}

.usuario-modal__foto-icono--eliminar {
  border-color: rgba(224, 107, 95, 0.45);
  background: rgba(224, 107, 95, 0.12);
  color: #e06b5f;
}

.usuario-modal__foto-icono--eliminar:hover,
.usuario-modal__foto-icono--eliminar:focus-visible {
  background: rgba(224, 107, 95, 0.22);
  border-color: #e06b5f;
  color: #fff;
}

.usuario-modal__file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.usuario-modal__datos {
  margin: 0 0 1.5rem;
}

.usuario-modal__fila {
  display: grid;
  grid-template-columns: 5.5rem 1fr;
  gap: 0.5rem 1rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.9rem;
}

.usuario-modal__fila:last-of-type {
  border-bottom: none;
}

.usuario-modal__fila dt {
  margin: 0;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 500;
}

.usuario-modal__fila dd {
  margin: 0;
  color: rgba(255, 255, 255, 0.92);
  word-break: break-word;
}

.usuario-modal__logout {
  margin: 0;
}

.usuario-modal__btn-salir {
  width: 100%;
  justify-content: center;
}

.usuario-modal__hint {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  line-height: 1.5;
  margin: 0 0 1.25rem;
}

.usuario-modal__nav {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.usuario-modal__link-btn {
  width: 100%;
  justify-content: center;
  text-decoration: none;
  text-align: center;
}

/* ===== Autenticación (login / registro / contraseña) ===== */
.auth-pagina .auth-card {
  max-width: 460px;
  margin: 0 auto;
  padding: 2rem 1.75rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(var(--gold-rgb), 0.2);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
}

.auth-titulo {
  font-family: var(--font-body);
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--accent);
  font-weight: 400;
  margin-bottom: 0.5rem;
  text-align: center;
}

.auth-subtitulo {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 1.75rem;
  text-align: center;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.auth-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.auth-label {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.88);
  font-weight: 500;
}

.auth-input {
  width: 100%;
  height: 46px;
  padding: 0 1rem;
  border-radius: var(--radius-search);
  border: 1px solid rgba(var(--gold-rgb), 0.35);
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  font-size: 1rem;
  font-family: var(--font-body);
}

.auth-password-wrap {
  position: relative;
  width: 100%;
}

.auth-password-wrap .auth-input {
  padding-right: 3rem;
}

.auth-password-toggle {
  position: absolute;
  top: 50%;
  right: 0.55rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: rgba(255, 255, 255, 0.72);
  cursor: pointer;
  transform: translateY(-50%);
}

.auth-password-toggle:hover,
.auth-password-toggle:focus-visible {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.auth-password-toggle:focus-visible {
  outline: 2px solid rgba(var(--gold-rgb), 0.65);
  outline-offset: 2px;
}

.auth-password-toggle__icon {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.auth-password-toggle__icon--hide,
.auth-password-toggle.is-visible .auth-password-toggle__icon--show {
  display: none;
}

.auth-password-toggle.is-visible .auth-password-toggle__icon--hide {
  display: block;
}

.auth-input:focus {
  outline: 2px solid rgba(var(--gold-rgb), 0.5);
  outline-offset: 2px;
}

.auth-help {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.4;
}

.auth-form__errors {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.85rem;
  color: #f0b4b4;
}

.auth-field .errorlist {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.82rem;
  color: #f0b4b4;
  line-height: 1.35;
}

.auth-form__errors--global {
  padding: 0.75rem 1rem;
  background: rgba(120, 40, 40, 0.35);
  border-radius: 8px;
  border: 1px solid rgba(255, 120, 120, 0.25);
}

.auth-form__errors--success {
  color: #8ee6a6;
  background: rgba(24, 115, 57, 0.28);
  border-color: rgba(142, 230, 166, 0.35);
}

.auth-alert {
  margin: 0 0 1.2rem;
  padding: 0.95rem 1rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 120, 120, 0.25);
  background: rgba(120, 40, 40, 0.35);
  color: #f0b4b4;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.24);
}

.auth-alert--success {
  border-color: rgba(142, 230, 166, 0.42);
  background: rgba(24, 115, 57, 0.32);
  color: #9bf0b2;
}

.auth-submit {
  margin-top: 0.5rem;
  width: 100%;
  justify-content: center;
}

/* ===== Manual de usuario ===== */
.enlace-ayuda {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.boton-ayuda-flotante {
  position: fixed;
  right: 1.2rem;
  bottom: 1.2rem;
  z-index: 40;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 44px;
  padding: 0 1rem;
  border-radius: 999px;
  background: var(--color-oro, var(--gold));
  color: #17100b;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.34);
}

.boton-ayuda-flotante:hover {
  transform: translateY(-2px);
}

/* ── Centro de ayuda ── */
.ayuda-pagina {
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(24, 16, 10, 0.97), rgba(12, 8, 5, 0.99)),
    url("../imagenes/fondo pagina.f88a05f7a760.jpeg") center/cover fixed;
  color: #fff;
}

.ayuda-hero {
  padding: calc(var(--header-height) + 3rem) clamp(1rem, 5vw, 5rem) 3rem;
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
}

.ayuda-hero__titulo {
  margin: 0.9rem 0 0.75rem;
  font-family: var(--font-body);
  font-size: clamp(2rem, 5vw, 3.8rem);
  line-height: 1.1;
}

.ayuda-hero__desc {
  color: rgba(255,255,255,0.72);
  font-size: 1.05rem;
  line-height: 1.7;
  margin: 0 0 1.8rem;
}

.ayuda-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}

.ayuda-pill {
  padding: 0.45rem 1rem;
  border: 1px solid rgba(var(--gold-rgb), 0.35);
  border-radius: 999px;
  background: rgba(var(--gold-rgb), 0.08);
  color: #f4d36f;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.18s, border-color 0.18s;
}

.ayuda-pill:hover {
  background: rgba(var(--gold-rgb), 0.18);
  border-color: rgba(var(--gold-rgb), 0.65);
}

/* Tarjetas rápidas */
.ayuda-tarjetas {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  max-width: 1180px;
  margin: 0 auto 1rem;
  padding: 0 clamp(1rem, 4vw, 4rem);
}

.ayuda-tarjeta {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.2rem 1.4rem;
  border: 1px solid rgba(var(--gold-rgb), 0.22);
  border-radius: 16px;
  background: rgba(255,255,255,0.04);
  text-decoration: none;
  color: #fff;
  transition: background 0.18s, border-color 0.18s, transform 0.14s;
}

.ayuda-tarjeta:hover {
  background: rgba(var(--gold-rgb), 0.1);
  border-color: rgba(var(--gold-rgb), 0.45);
  transform: translateY(-2px);
}

.ayuda-tarjeta__icono {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(var(--gold-rgb), 0.1);
  color: #f4d36f;
}

.ayuda-tarjeta__texto {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.ayuda-tarjeta__texto strong {
  font-size: 0.92rem;
  color: #fff;
}

.ayuda-tarjeta__texto small {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.55);
}

/* Secciones paso a paso */
.ayuda-seccion {
  padding: clamp(2.5rem, 5vw, 4rem) clamp(1rem, 4vw, 4rem);
  max-width: 1180px;
  margin: 0 auto;
  scroll-margin-top: 72px;
}

.ayuda-seccion__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.ayuda-seccion--invertida .ayuda-seccion__texto {
  order: 1;
}
.ayuda-seccion--invertida .ayuda-seccion__imagen {
  order: 0;
}

.ayuda-seccion__texto h2 {
  margin: 0.75rem 0 0.9rem;
  font-family: var(--font-body);
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  line-height: 1.15;
  color: #fff;
}

.ayuda-seccion__texto p {
  color: rgba(255,255,255,0.75);
  font-size: 1rem;
  line-height: 1.7;
  margin: 0 0 1rem;
}

/* Tabs cuenta */
.ayuda-tabs {
  display: flex;
  gap: 0.4rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid rgba(var(--gold-rgb), 0.2);
  padding-bottom: 0;
}

.ayuda-tab {
  padding: 0.5rem 1rem;
  border: none;
  background: none;
  color: rgba(255,255,255,0.5);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color 0.18s, border-color 0.18s;
}

.ayuda-tab--activo,
.ayuda-tab:hover {
  color: #f4d36f;
  border-bottom-color: #f4d36f;
}

.ayuda-tab-panel ol {
  padding-left: 1.2rem;
  color: rgba(255,255,255,0.78);
  font-size: 0.97rem;
  line-height: 1.8;
  overflow-wrap: break-word;
  word-break: break-word;
}

.ayuda-tab-panel li + li {
  margin-top: 0.3rem;
}

.ayuda-tab-panel strong {
  color: #f4d36f;
}

.ayuda-seccion__texto .manual-lista {
  color: rgba(255,255,255,0.78);
  font-size: 0.97rem;
  line-height: 1.8;
  overflow-wrap: break-word;
}

.ayuda-seccion__texto .manual-lista strong {
  color: #f4d36f;
}

.ayuda-tip {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  margin-top: 1.2rem;
  padding: 0.8rem 1rem;
  border-radius: 10px;
  background: rgba(var(--gold-rgb), 0.07);
  border: 1px solid rgba(var(--gold-rgb), 0.22);
  color: rgba(255,255,255,0.72);
  font-size: 0.9rem;
  line-height: 1.55;
}

.ayuda-tip svg {
  flex-shrink: 0;
  margin-top: 1px;
  color: #f4d36f;
}

.ayuda-tip strong {
  color: #f4d36f;
}

/* Browser frame */
.ayuda-browser {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(var(--gold-rgb), 0.28);
  box-shadow: 0 24px 60px rgba(0,0,0,0.45);
}

.ayuda-browser__barra {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  background: rgba(18,12,8,0.92);
  border-bottom: 1px solid rgba(var(--gold-rgb), 0.18);
}

.ayuda-browser__barra span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.18);
}

.ayuda-browser__url {
  width: auto !important;
  height: auto !important;
  border-radius: 0 !important;
  background: transparent !important;
  margin-left: 8px;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.4);
  font-family: monospace;
  letter-spacing: 0;
}

.ayuda-browser__contenido img {
  width: 100%;
  display: block;
  border-radius: 0;
}

.ayuda-browser--alt {
  margin-top: 0;
}

/* Perfil mockup */
.ayuda-perfil-acciones {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 0.5rem;
}

.ayuda-accion-card {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  padding: 1rem;
  border-radius: 12px;
  border: 1px solid rgba(var(--gold-rgb), 0.18);
  background: rgba(255,255,255,0.04);
}

.ayuda-accion-card svg {
  flex-shrink: 0;
  color: #f4d36f;
  margin-top: 2px;
}

.ayuda-accion-card strong {
  display: block;
  color: #fff;
  font-size: 0.95rem;
  margin-bottom: 0.2rem;
}

.ayuda-accion-card p {
  margin: 0;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.5;
}

.ayuda-accion-card strong ~ p strong {
  color: #f4d36f;
}

.ayuda-perfil-mockup {
  max-width: 300px;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 1.25rem;
  border-radius: 18px;
  border: 1px solid rgba(var(--gold-rgb), 0.32);
  background: linear-gradient(160deg, #1a110a 0%, #0e0806 100%);
  box-shadow: 0 24px 60px rgba(0,0,0,0.45);
}

.ayuda-perfil-mockup__header {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 1rem;
}

.ayuda-perfil-mockup__avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(var(--gold-rgb), 0.15);
  border: 2px solid rgba(var(--gold-rgb), 0.4);
  color: #f4d36f;
  font-size: 1.4rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.75rem;
}

.ayuda-perfil-mockup__nombre {
  text-align: center;
  font-weight: 700;
  font-size: 1.05rem;
  color: #fff;
}

.ayuda-perfil-mockup__correo {
  text-align: center;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.45);
  margin-bottom: 1rem;
}

.ayuda-perfil-mockup__divisor {
  border: none;
  border-top: 1px solid rgba(var(--gold-rgb), 0.18);
  margin: 0 0 0.6rem;
}

.ayuda-perfil-mockup__item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.65rem 0.5rem;
  border-radius: 8px;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.75);
  cursor: default;
  transition: background 0.15s;
}

.ayuda-perfil-mockup__item svg {
  color: #f4d36f;
}

.ayuda-perfil-mockup__item:hover {
  background: rgba(255,255,255,0.06);
}

.ayuda-perfil-mockup__item--salir {
  margin-top: 0.5rem;
  color: rgba(255,100,100,0.8);
  font-weight: 600;
  border-top: 1px solid rgba(var(--gold-rgb), 0.12);
  padding-top: 0.9rem;
}

/* FAQ */
.ayuda-faq {
  padding: clamp(2.5rem, 5vw, 4rem) clamp(1rem, 4vw, 4rem);
  background: rgba(18,12,8,0.6);
  border-top: 1px solid rgba(var(--gold-rgb), 0.14);
  border-bottom: 1px solid rgba(var(--gold-rgb), 0.14);
}

.ayuda-faq__inner {
  max-width: 860px;
  margin: 0 auto;
}

.ayuda-faq__titulo {
  font-family: var(--font-body);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  margin: 0 0 2rem;
  color: #fff;
}

.faq-item {
  border-bottom: 1px solid rgba(var(--gold-rgb), 0.18);
}

.faq-item:first-child {
  border-top: 1px solid rgba(var(--gold-rgb), 0.18);
}

.faq-pregunta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 0.25rem;
  font-size: 1rem;
  font-weight: 600;
  color: rgba(255,255,255,0.9);
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.faq-pregunta::-webkit-details-marker { display: none; }

.faq-chevron {
  flex-shrink: 0;
  color: #f4d36f;
  transition: transform 0.22s;
}

.faq-item[open] .faq-chevron {
  transform: rotate(180deg);
}

.faq-item[open] .faq-pregunta {
  color: #f4d36f;
}

.faq-respuesta {
  padding: 0 0.25rem 1.1rem;
  color: rgba(255,255,255,0.68);
  font-size: 0.97rem;
  line-height: 1.75;
}

.faq-respuesta strong {
  color: #f4d36f;
}

/* Contacto */
.ayuda-contacto {
  padding: clamp(3rem, 6vw, 5rem) clamp(1rem, 4vw, 4rem);
  text-align: center;
}

.ayuda-contacto__inner {
  max-width: 700px;
  margin: 0 auto;
}

.ayuda-contacto h2 {
  font-family: var(--font-body);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  margin: 0 0 0.75rem;
  color: #fff;
}

.ayuda-contacto p {
  color: rgba(255,255,255,0.62);
  margin: 0 0 2rem;
  font-size: 1rem;
}

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

.ayuda-canal {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.8rem 1.5rem;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: opacity 0.18s, transform 0.14s;
  border: 1px solid transparent;
}

.ayuda-canal:hover {
  opacity: 0.85;
  transform: translateY(-2px);
}

.ayuda-canal--whatsapp {
  background: #25D366;
  color: #fff;
}

.ayuda-canal--email {
  background: transparent;
  border-color: rgba(var(--gold-rgb), 0.38);
  color: #f4d36f;
}

.ayuda-canal--telefono {
  background: transparent;
  border-color: rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.75);
}

/* ── Responsive ayuda ── */

/* Tablet ancho: 900px - 1024px */
@media (max-width: 1024px) {
  .ayuda-seccion {
    padding: clamp(2rem, 4vw, 3rem) clamp(1rem, 3vw, 2.5rem);
  }
  .ayuda-seccion__inner {
    gap: clamp(1.5rem, 3vw, 2.5rem);
  }
}

/* Tablet: < 900px → navbar crece por el wrap de 2 filas (~138px medido) */
@media (max-width: 900px) {
  .ayuda-hero {
    padding: calc(145px + 2rem) clamp(1rem, 4vw, 2.5rem) 2rem;
  }
  .ayuda-hero__titulo {
    font-size: clamp(1.8rem, 6vw, 3rem);
  }
  .ayuda-tarjetas {
    grid-template-columns: repeat(2, 1fr);
    padding: 0 clamp(1rem, 3vw, 2.5rem);
  }
  .ayuda-seccion {
    padding: 2rem clamp(1rem, 3vw, 2rem);
  }
  .ayuda-seccion__inner {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }
  .ayuda-seccion--invertida .ayuda-seccion__texto,
  .ayuda-seccion--invertida .ayuda-seccion__imagen {
    order: unset;
  }
  .ayuda-seccion__texto h2 {
    font-size: clamp(1.4rem, 4vw, 2rem);
  }
  .ayuda-browser__contenido img {
    max-height: 340px;
    object-fit: cover;
    object-position: top;
  }
  .ayuda-perfil-mockup {
    max-width: 420px;
  }
  .ayuda-perfil-acciones {
    gap: 0.75rem;
  }
  .ayuda-faq {
    padding: 2rem clamp(1rem, 3vw, 2rem);
  }
}

/* Móvil: < 640px — navbar mide ~138px en 390px y 600px */
@media (max-width: 640px) {
  .ayuda-hero {
    padding: calc(145px + 1.5rem) 1rem 1.5rem;
  }
  .ayuda-hero__titulo {
    font-size: clamp(1.6rem, 7vw, 2.2rem);
  }
  .ayuda-hero__desc {
    font-size: 0.95rem;
  }
  .ayuda-pills {
    gap: 0.4rem;
  }
  .ayuda-pill {
    font-size: 0.82rem;
    padding: 0.4rem 0.8rem;
  }
  .ayuda-tarjetas {
    gap: 0.75rem;
  }
  .ayuda-tarjeta {
    padding: 1rem;
    gap: 0.75rem;
  }
  .ayuda-tarjeta__icono {
    width: 40px;
    height: 40px;
  }
  .ayuda-seccion {
    padding: 1.75rem 1rem;
  }
  .ayuda-seccion__inner {
    gap: 1.25rem;
  }
  .ayuda-seccion__texto p {
    font-size: 0.95rem;
  }
  .ayuda-tabs {
    gap: 0.2rem;
  }
  .ayuda-tab {
    font-size: 0.85rem;
    padding: 0.45rem 0.75rem;
  }
  .ayuda-tip {
    font-size: 0.85rem;
    padding: 0.7rem 0.85rem;
    overflow-wrap: break-word;
    word-break: break-word;
  }
  .ayuda-browser__contenido img {
    max-height: 260px;
    object-fit: cover;
    object-position: top;
  }
  .ayuda-accion-card {
    padding: 0.85rem;
    gap: 0.75rem;
  }
  .ayuda-accion-card p {
    font-size: 0.83rem;
  }
  .ayuda-perfil-mockup {
    max-width: 100%;
    padding: 1.25rem 1rem 1rem;
  }
  .ayuda-faq {
    padding: 1.75rem 1rem;
  }
  .faq-pregunta {
    font-size: 0.93rem;
    padding: 0.9rem 0.1rem;
  }
  .faq-respuesta {
    font-size: 0.9rem;
    padding-bottom: 0.9rem;
  }
  .ayuda-contacto {
    padding: 2.5rem 1rem;
  }
  .ayuda-contacto h2 {
    font-size: clamp(1.4rem, 6vw, 2rem);
  }
}

/* Móvil pequeño: < 420px → tarjetas en columna única */
@media (max-width: 420px) {
  .ayuda-tarjetas {
    grid-template-columns: 1fr;
  }
  .ayuda-hero__titulo {
    font-size: 1.6rem;
  }
  .ayuda-tarjeta__texto strong {
    font-size: 0.88rem;
  }
  .ayuda-contacto__canales {
    flex-direction: column;
    align-items: stretch;
  }
  .ayuda-canal {
    justify-content: center;
  }
}

.manual-pagina {
  min-height: 100vh;
  padding: 3rem clamp(1rem, 4vw, 4rem) 4rem;
  background:
    linear-gradient(180deg, rgba(24, 16, 10, 0.96), rgba(12, 8, 5, 0.98)),
    url("../imagenes/fondo pagina.f88a05f7a760.jpeg") center/cover fixed;
  color: #fff;
}

.manual-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.82fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
  max-width: 1180px;
  margin: 0 auto 2rem;
}

.manual-badge,
.manual-paso {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 30px;
  padding: 0 0.85rem;
  border: 1px solid rgba(var(--gold-rgb), 0.42);
  border-radius: 999px;
  background: rgba(var(--gold-rgb), 0.12);
  color: #f4d36f;
  font-size: 0.82rem;
  font-weight: 700;
}

.manual-titulo {
  margin: 1rem 0 1rem;
  font-family: var(--font-body);
  font-size: clamp(2.2rem, 5vw, 4.6rem);
  line-height: 1;
  letter-spacing: 0;
}

.manual-descripcion {
  max-width: 680px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.05rem;
  line-height: 1.7;
}

.manual-hero__img,
.manual-imagen {
  width: 100%;
  border-radius: 18px;
  border: 1px solid rgba(var(--gold-rgb), 0.32);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.32);
}

.manual-hero__icono,
.manual-imagen-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 220px;
  border-radius: 18px;
  border: 1px solid rgba(var(--gold-rgb), 0.22);
  background: rgba(var(--gold-rgb), 0.05);
}

.manual-indice {
  position: sticky;
  top: 0.75rem;
  z-index: 5;
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  max-width: 1180px;
  margin: 0 auto 2rem;
  padding: 0.8rem;
  border: 1px solid rgba(var(--gold-rgb), 0.24);
  border-radius: 16px;
  background: rgba(18, 12, 8, 0.88);
  backdrop-filter: blur(14px);
}

.manual-indice a {
  padding: 0.6rem 0.9rem;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.84);
  text-decoration: none;
}

.manual-indice a:hover {
  color: #17100b;
  background: var(--gold);
}

.manual-seccion {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(300px, 1fr);
  gap: clamp(1.5rem, 4vw, 3.25rem);
  align-items: center;
  max-width: 1180px;
  margin: 0 auto 2rem;
  padding: clamp(1.2rem, 3vw, 2rem);
  border: 1px solid rgba(var(--gold-rgb), 0.22);
  border-radius: 22px;
  background: rgba(31, 20, 13, 0.78);
}

.manual-seccion--invertida .manual-seccion__texto {
  order: 2;
}

.manual-seccion h2,
.manual-notas h2 {
  margin: 1rem 0 0.75rem;
  font-family: var(--font-body);
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  letter-spacing: 0;
}

.manual-seccion p,
.manual-lista,
.manual-notas p {
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.65;
}

.manual-lista {
  margin: 1rem 0 0;
  padding-left: 1.35rem;
}

.manual-lista li + li {
  margin-top: 0.45rem;
}

.manual-notas {
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(1.2rem, 3vw, 2rem);
  border-radius: 22px;
  background: rgba(18, 12, 8, 0.72);
  border: 1px solid rgba(var(--gold-rgb), 0.22);
}

.manual-notas__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.manual-notas article {
  min-height: 148px;
  padding: 1rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
}

.manual-notas h3 {
  margin-bottom: 0.5rem;
  color: #f4d36f;
}

@media (max-width: 860px) {
  .manual-hero,
  .manual-seccion,
  .manual-notas__grid {
    grid-template-columns: 1fr;
  }

  .manual-seccion--invertida .manual-seccion__texto {
    order: 0;
  }

  .manual-indice {
    position: static;
  }
}

.auth-links {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  justify-content: center;
  text-align: center;
}

.auth-links a,
.auth-footer-text a {
  color: var(--accent);
  text-decoration: none;
}

.auth-links a:hover,
.auth-footer-text a:hover {
  text-decoration: underline;
}

.auth-footer-text {
  margin-top: 1.5rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.95rem;
}

.pie-logout-form {
  display: inline;
  margin: 0;
}

.pie-link-btn {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  font: inherit;
  color: #f5e6d3;
  cursor: pointer;
  text-decoration: none;
  transition: color 0.3s;
}

.pie-link-btn:hover {
  color: #d4a373;
}

/* ===== Catálogo / detalle solo HTML (demo) ===== */
.catalogo-demo-badge {
  display: inline-block;
  margin: 0 0 1rem;
  padding: 0.45rem 0.75rem;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(var(--gold-rgb), 0.95);
  border: 1px solid rgba(var(--gold-rgb), 0.35);
  border-radius: 8px;
  background: rgba(var(--gold-rgb), 0.08);
}

.catalogo-subtitulo a {
  color: var(--accent);
}

.catalogo-seccion-estatica {
  margin-bottom: 2.5rem;
  scroll-margin-top: calc(var(--header-height) + 1rem);
}

.catalogo-seccion-estatica__titulo {
  font-family: var(--font-body);
  font-size: 1.35rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 1.25rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(var(--gold-rgb), 0.25);
}

.catalogo-card__demo-nota {
  margin: 0;
  padding: 0.5rem 1rem 0.85rem;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.45);
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

/* Carrito solo HTML (demo) */
.carrito-fila__nombre--texto {
  color: #fff;
  font-weight: 600;
  display: inline-block;
  margin-bottom: 0.25rem;
}

.carrito-cantidad-estatica {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  height: 40px;
  padding: 0 0.75rem;
  border-radius: 8px;
  border: 1px solid rgba(var(--gold-rgb), 0.25);
  background: rgba(0, 0, 0, 0.25);
  color: rgba(255, 255, 255, 0.9);
  font-weight: 600;
}

.carrito-pie--estatico {
  justify-content: flex-end;
  margin-top: 1.25rem;
}

.carrito-nota--estatico {
  max-width: 42rem;
}

.carrito-estatico-acciones {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.auth-card--estatico .catalogo-demo-badge {
  margin-bottom: 1.25rem;
}

.auth-card--estatico .catalogo-demo-badge a {
  color: var(--accent);
}

.auth-form--solo-lectura .auth-input[readonly] {
  opacity: 0.92;
  cursor: default;
}

.auth-estatico-acciones {
  margin-top: 1rem;
}

.auth-estatico-acciones .btn {
  width: 100%;
  justify-content: center;
}

.auth-footer-text--muted {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
}
.auth-logo {
  text-align: center;
}
.auth-logo-img {
  max-width: 350px;
  margin:-65px -100px -50px -100px;
}
/* ── Separador "o continua con" ── */
.auth-divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1.25rem 0 1rem;
}
.auth-divider__linea {
  flex: 1;
  height: 1px;
  background: rgba(var(--gold-rgb), 0.25);
}
.auth-divider__texto {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.45);
  white-space: nowrap;
}

/* ── Botón Google ── */
.btn-google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  width: 100%;
  padding: 0.7rem 1rem;
  border-radius: var(--radius-search);
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.95rem;
  font-family: var(--font-body);
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
  margin-bottom: 0.5rem;
}
.btn-google:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.32);
  color: #fff;
}
.btn-google__icono {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.footer-section img {
  width: 80px !important;
  height: 80px;
}

.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: #25d366;
  color: #fff;
  border: none;
  padding: 0.65rem 1.4rem;
  border-radius: 0.5rem;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: background-color 0.2s ease, transform 0.15s ease;
}

.btn-whatsapp:hover {
  background-color: #1ebe5d;
  transform: translateY(-1px);
  color: #fff;
}
/* ===== Slider productos destacados ===== */
.slider-seccion {
  background: #0b0d10;
  padding: 3rem 2rem 4rem;
}

.slider-encabezado {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  max-width: 1100px;
  margin: 0 auto 2rem;
}

.slider-titulo {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: clamp(1.4rem, 3vw, 2rem);
  color: var(--accent);
}

.slider-ver-todos {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.9rem;
  text-decoration: none;
  transition: color 0.2s;
}

.slider-ver-todos:hover {
  color: var(--accent);
}

.slider-contenedor {
  position: relative;
  display: flex;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
  gap: 0.5rem;
}

.slider-pista-wrap {
  flex: 1;
  overflow: hidden;
  border-radius: var(--radius-card);
}

.slider-pista {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.slider-item {
  flex: 0 0 100%; /* el JS sobreescribe flex-basis según cuántos productos hay */
  padding: 0 0.6rem;
  box-sizing: border-box;
}

.slider-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  transition: border-color 0.25s, transform 0.25s;
  height: 100%;
}

.slider-card:hover {
  border-color: rgba(var(--gold-rgb), 0.4);
  transform: translateY(-3px);
}

/* Tarjeta central destacada */
.slider-item--centro .slider-card {
  border-color: rgba(var(--gold-rgb), 0.45);
  transform: translateY(-5px);
}

.slider-card__media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #1a1d22;
}

.slider-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.slider-card:hover .slider-card__img {
  transform: scale(1.04);
}

.slider-card__body {
  padding: 1rem 1.1rem 0.75rem;
  flex: 1;
}

.slider-card__cat {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(var(--gold-rgb), 0.9);
  margin-bottom: 0.35rem;
}

.slider-card__nombre {
  font-size: 1.05rem;
  font-weight: 600;
  color: #fff;
  line-height: 1.3;
  margin-bottom: 0.4rem;
}

.slider-card__precio {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--accent);
}

.slider-card__footer {
  padding: 0.75rem 1.1rem 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.slider-card__btn {
  width: 100%;
  justify-content: center;
  text-decoration: none;
}

/* Botones prev / next */
.slider-btn {
  flex-shrink: 0;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 50%;
  border: 1px solid rgba(var(--gold-rgb), 0.35);
  background: rgba(255, 255, 255, 0.05);
  color: var(--accent);
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, border-color 0.2s;
  z-index: 2;
}

.slider-btn:hover {
  background: rgba(var(--gold-rgb), 0.15);
  border-color: var(--accent);
}

/* Puntos de navegación */
.slider-puntos {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.25rem;
}

.slider-punto {
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 99px;
  border: none;
  background: rgba(255, 255, 255, 0.25);
  cursor: pointer;
  padding: 0;
  transition: background 0.25s, width 0.25s;
}

.slider-punto--activo {
  background: var(--accent);
  width: 1.5rem;
}

/* ===== Hero slider (imágenes del proceso) ===== */
.hero-slider {
  position: relative;
  width: 100%;
  max-width: 440px;
  border-radius: var(--radius-card);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  aspect-ratio: 4 / 3;
}

.hero-slider__pista {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  height: 100%;
  transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.hero-slider__item {
  flex: 0 0 100%;
  position: relative;
  overflow: hidden;
}

.hero-slider__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.55s ease;
}

.hero-slider__etiqueta {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(6px);
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.3rem 0.65rem;
  border-radius: 6px;
  border: 1px solid rgba(var(--gold-rgb), 0.3);
}

.hero-slider__puntos {
  position: absolute;
  bottom: 12px;
  right: 12px;
  display: flex;
  gap: 6px;
  align-items: center;
}

.hero-slider__punto {
  width: 7px;
  height: 7px;
  border-radius: 99px;
  border: none;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  padding: 0;
  transition: background 0.25s, width 0.25s;
}

.hero-slider__punto--activo {
  background: var(--accent);
  width: 18px;
}

/* Responsivo hero-slider */
@media (max-width: 900px) {
  .hero-slider {
    max-width: 340px;
    margin: 0 auto;
  }
}

@media (max-width: 600px) {
  .hero-slider {
    max-width: 100%;
    aspect-ratio: 16 / 9;
  }
}

/* Responsivo slider */
@media (max-width: 700px) {
  .slider-item {
    padding: 0 0.5rem;
  }

  .slider-item--centro .slider-card {
    transform: none;
    border-color: rgba(255, 255, 255, 0.08);
  }
}

@media (max-width: 600px) {
  .slider-seccion {
    padding: 2rem 1rem 3rem;
  }

  .slider-btn {
    width: 2.1rem;
    height: 2.1rem;
    font-size: 1.4rem;
  }
}

/* ── Imagen en filas de carrito e historial ── */
.carrito-fila__producto {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.carrito-fila__media {
  width: 80px;
  flex-shrink: 0;
  border-radius: 8px;
  overflow: hidden;
}

/* ── Historial de pedidos ── */


.historial-mensajes {
  margin-bottom: 1.5rem;
}

.mensaje {
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius);
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}

.mensaje--success {
  background-color: rgba(37, 211, 102, 0.15);
  border: 1px solid #25d366;
  color: #25d366;
}

.mensaje--error {
  background-color: rgba(220, 53, 69, 0.15);
  border: 1px solid #dc3545;
  color: #ff6b6b;
}

.historial-lista {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.historial-tarjeta {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(var(--gold-rgb), 0.2);
  border-radius: var(--radius);
  overflow: visible;
}

.historial-tarjeta__encabezado {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 1rem 1.5rem;
  background: rgba(var(--gold-rgb), 0.08);
  border-bottom: 1px solid rgba(var(--gold-rgb), 0.15);
}

.historial-tarjeta__info {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.historial-tarjeta__numero {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--color-text-light);
}

.historial-tarjeta__fecha {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.55);
}

.historial-tarjeta__estado {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
}

.historial-tarjeta__estado--confirmado {
  background-color: rgba(37, 211, 102, 0.15);
  color: #25d366;
  border: 1px solid rgba(37, 211, 102, 0.4);
}

.historial-tarjeta__estado--cancelado {
  background-color: rgba(220, 53, 69, 0.15);
  color: #ff6b6b;
  border: 1px solid rgba(220, 53, 69, 0.4);
}

.historial-tabla-wrap {
  margin: 0;
  border: none;
  border-radius: 0;
  background: transparent;
}

.historial-tabla {
  margin: 0;
  border-radius: 0;
  border: none;
}

.historial-tarjeta__pie {
  padding: 1rem 1.5rem;
  border-top: 1px solid rgba(var(--gold-rgb), 0.15);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.historial-factura-btn {
  white-space: nowrap;
}

.historial-paginacion {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.9rem;
  width: fit-content;
  max-width: 100%;
  margin: 1.75rem auto 0;
  padding: 0.85rem;
  border: 1px solid rgba(var(--gold-rgb), 0.22);
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.28);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.26);
}

.historial-paginacion__numeros {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
}

.historial-paginacion__enlace,
.historial-paginacion__numero {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.75rem;
  height: 2.75rem;
  padding: 0 0.95rem;
  border: 1px solid rgba(var(--gold-rgb), 0.36);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.025));
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: transform 0.15s, background 0.15s, border-color 0.15s, color 0.15s, box-shadow 0.15s;
}

.historial-paginacion__enlace {
  gap: 0.35rem;
}

.historial-paginacion__enlace:hover,
.historial-paginacion__numero:hover {
  transform: translateY(-1px);
  background: rgba(var(--gold-rgb), 0.16);
  border-color: rgba(var(--gold-rgb), 0.7);
  color: #fff;
  box-shadow: 0 10px 24px rgba(var(--gold-rgb), 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.historial-paginacion__numero--activo {
  background: var(--accent);
  border-color: var(--accent);
  color: #1b1208;
  box-shadow: 0 12px 28px rgba(var(--gold-rgb), 0.24);
}

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

.historial-paginacion__enlace--disabled:hover {
  transform: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.025));
  border-color: rgba(var(--gold-rgb), 0.36);
  color: rgba(255, 255, 255, 0.84);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.historial-paginacion__puntos {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.5rem;
  height: 2.75rem;
  color: rgba(255, 255, 255, 0.45);
  font-weight: 700;
}

@media (max-width: 600px) {
  .historial-paginacion {
    width: 100%;
    padding: 0.7rem;
    gap: 0.55rem;
    border-radius: 14px;
  }

  .historial-paginacion__enlace,
  .historial-paginacion__numero {
    min-width: 2.35rem;
    height: 2.35rem;
    padding: 0 0.65rem;
    font-size: 0.82rem;
  }

  .historial-paginacion__puntos {
    height: 2.35rem;
  }
}

.historial-vacio {
  text-align: center;
  padding: 4rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.historial-vacio__texto {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.55);
}

.usuario-modal__nav {
  margin-bottom: 0.75rem;
}

.usuario-modal__link-btn {
  width: 100%;
  text-align: center;
  display: block;
}

/* ===================================================
   PÁGINA SOBRE NOSOTROS
   =================================================== */

/* ── Contenedor central reutilizable ── */
.sn-contenedor {
  max-width: 1150px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ── Hero ── */
.sn-hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: calc(var(--header-height) + 3rem) 1.5rem 4rem;
}

.sn-hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  z-index: 0;
}

.sn-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(10, 8, 5, 0.85) 0%,
    rgba(10, 8, 5, 0.55) 60%,
    rgba(10, 8, 5, 0.3) 100%
  );
  z-index: 1;
}

.sn-hero__contenido {
  position: relative;
  z-index: 2;
  max-width: 680px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 0 auto;
}

.sn-hero__kicker {
  margin-bottom: 0.75rem;
  color: var(--accent);
}

.sn-hero__titulo {
  font-family: var(--font-body);
  font-size: clamp(2.25rem, 5.5vw, 4rem);
  font-weight: 600;
  color: #fff;
  line-height: 1.2;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.5);
}

.sn-hero__subtitulo {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.7;
  max-width: 560px;
}

/* ── Sección genérica ── */
.sn-seccion {
  padding: 5rem 0;
  background: var(--bg);
}

.sn-seccion:nth-child(even) {
  background: #0b0d10;
}

.sn-titulo-seccion {
  font-family: var(--font-body);
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 1.25rem;
}

.sn-titulo-seccion--centro {
  text-align: center;
}

.sn-subtitulo-seccion {
  text-align: center;
  color: rgba(255, 255, 255, 0.65);
  font-size: 1rem;
  margin-bottom: 3rem;
  margin-top: -0.75rem;
}

.sn-parrafo {
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.75;
  font-size: 1rem;
  margin-bottom: 1.1rem;
}

.sn-parrafo strong {
  color: var(--accent);
  font-weight: 600;
}

.sn-parrafo em {
  font-style: italic;
  color: rgba(255, 255, 255, 0.95);
}

/* ── Misión: grid dos columnas ── */
.sn-mision__grid {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 4rem;
  align-items: center;
}

.sn-mision__imagen-wrap {
  position: relative;
}

.sn-mision__imagen {
  width: 100%;
  border-radius: var(--radius-card);
  object-fit: cover;
  aspect-ratio: 4 / 5;
  display: block;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.sn-mision__badge-flotante {
  position: absolute;
  bottom: -1.5rem;
  left: -1.5rem;
  background: var(--accent);
  color: var(--bg);
  border-radius: var(--radius-card);
  padding: 1rem 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  box-shadow: 0 8px 24px rgba(var(--gold-rgb), 0.35);
}

.sn-mision__badge-num {
  font-size: 2rem;
  font-weight: 700;
  font-family: var(--font-body);
  line-height: 1;
}

.sn-mision__badge-txt {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  text-align: center;
}

/* ── Cifras clave ── */
.sn-cifras {
  background: var(--accent);
  padding: 3.5rem 1.5rem;
}

.sn-cifras__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}

.sn-cifra__num {
  display: block;
  font-family: var(--font-body);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--bg);
  line-height: 1.1;
  margin-bottom: 0.4rem;
}

.sn-cifra__label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(15, 17, 20, 0.75);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ── Valores ── */
.sn-valores__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.5rem;
}

.sn-valor-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(var(--gold-rgb), 0.2);
  border-radius: var(--radius-card);
  padding: 2rem 1.5rem;
  transition: border-color 0.2s, transform 0.2s;
}

.sn-valor-card:hover {
  border-color: rgba(var(--gold-rgb), 0.5);
  transform: translateY(-4px);
}

.sn-valor-card__icono {
  color: var(--accent);
  margin-bottom: 1rem;
}

.sn-valor-card__titulo {
  font-size: 1.1rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.75rem;
}

.sn-valor-card__texto {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.65;
}

/* ── Regiones ── */
.sn-regiones {
  background: #0b0d10;
}

.sn-regiones__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.5rem;
}

.sn-region-card {
  border-radius: var(--radius-card);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: transform 0.2s, border-color 0.2s;
}

.sn-region-card:hover {
  transform: translateY(-4px);
  border-color: rgba(var(--gold-rgb), 0.35);
}

.sn-region-card__img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

.sn-region-card__cuerpo {
  padding: 1.25rem 1.1rem 1.5rem;
}

.sn-region-card__titulo {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.6rem;
  font-family: var(--font-body);
}

.sn-region-card__texto {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.6;
}

/* ── Proceso / pasos ── */
.sn-proceso {
  background: var(--bg);
}

.sn-pasos {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
  counter-reset: none;
  max-width: 760px;
  margin: 0 auto;
}

.sn-paso {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  padding: 2rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  position: relative;
}

.sn-paso:last-child {
  border-bottom: none;
}

.sn-paso__num {
  flex-shrink: 0;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  border: 2px solid var(--accent);
  color: var(--accent);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(var(--gold-rgb), 0.08);
}

.sn-paso__titulo {
  font-size: 1.1rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.5rem;
}

.sn-paso__texto {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.65;
}

/* ── CTA final ── */
.sn-cta {
  background: linear-gradient(135deg, #1a1208 0%, #0f0c06 100%);
  border-top: 1px solid rgba(var(--gold-rgb), 0.2);
  padding: 5rem 1.5rem;
  text-align: center;
}

.sn-cta__titulo {
  font-family: var(--font-body);
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 400;
  color: var(--accent);
  margin-bottom: 1.25rem;
}

.sn-cta__texto {
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.05rem;
  line-height: 1.7;
  max-width: 580px;
  margin: 0 auto 2rem;
}

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

/* ── Responsive ── */
@media (max-width: 900px) {
  .sn-mision__grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .sn-mision__badge-flotante {
    left: 50%;
    transform: translateX(-50%);
    bottom: -1.25rem;
    white-space: nowrap;
  }

  .sn-mision__imagen {
    aspect-ratio: 16 / 9;
    max-height: 380px;
  }

  .sn-cifras__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

@media (max-width: 600px) {
  .sn-hero {
    min-height: 60vh;
    padding-bottom: 3rem;
  }

  .sn-seccion {
    padding: 3.5rem 0;
  }

  .sn-cifras__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }

  .sn-cifra__num {
    font-size: 1.75rem;
  }

  .sn-paso {
    flex-direction: column;
    gap: 1rem;
    padding: 1.5rem 0;
  }

  .sn-cta {
    padding: 3.5rem 1.5rem;
  }

  .sn-cta__acciones .btn {
    width: 100%;
    justify-content: center;
  }
}

/* ── Tutorial de bienvenida ── */
@keyframes tutorial-aparecer {
  from { opacity: 0; transform: translateY(20px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0)   scale(1); }
}

.tutorial-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(6, 3, 1, 0.78);
  backdrop-filter: blur(4px);
  padding: 1rem;
}

.tutorial-modal {
  position: relative;
  width: 100%;
  max-width: 460px;
  background: linear-gradient(160deg, #1a110a 0%, #0e0806 100%);
  border: 1px solid rgba(var(--gold-rgb), 0.38);
  border-radius: 22px;
  padding: 2.5rem 2rem 1.75rem;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.55);
  animation: tutorial-aparecer 0.32s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.tutorial-cerrar {
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.55);
  cursor: pointer;
  transition: background 0.18s, color 0.18s;
}

.tutorial-cerrar:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}

.tutorial-paso {
  display: none;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.9rem;
}

.tutorial-paso[data-paso].activo {
  display: flex;
  animation: tutorial-aparecer 0.24s ease both;
}

.tutorial-icono {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: rgba(var(--gold-rgb), 0.1);
  border: 1px solid rgba(var(--gold-rgb), 0.28);
  color: #f4d36f;
  margin-bottom: 0.25rem;
}

.tutorial-titulo {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.45rem;
  color: #fff;
  line-height: 1.2;
}

.tutorial-desc {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.97rem;
  line-height: 1.65;
  max-width: 360px;
}

.tutorial-desc strong {
  color: #f4d36f;
  font-weight: 600;
}

.tutorial-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 2rem;
  gap: 1rem;
}

.tutorial-dots {
  display: flex;
  gap: 0.4rem;
}

.tutorial-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  transition: background 0.22s, transform 0.22s;
}

.tutorial-dot--activo {
  background: #f4d36f;
  transform: scale(1.25);
}

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

.tutorial-btn {
  border: none;
  border-radius: 10px;
  padding: 0.55rem 1.2rem;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.18s, transform 0.14s;
}

.tutorial-btn:active {
  transform: scale(0.97);
}

.tutorial-btn--omitir {
  background: transparent;
  color: rgba(255, 255, 255, 0.45);
}

.tutorial-btn--omitir:hover {
  color: rgba(255, 255, 255, 0.75);
}

.tutorial-btn--siguiente {
  background: linear-gradient(135deg, #c9962b, #f4d36f);
  color: #1a0f00;
}

.tutorial-btn--siguiente:hover {
  opacity: 0.9;
}

@media (max-width: 500px) {
  .tutorial-modal {
    padding: 2rem 1.25rem 1.5rem;
    border-radius: 18px;
  }

  .tutorial-footer {
    flex-direction: column-reverse;
    align-items: center;
    gap: 0.75rem;
  }
}

/* ── Tema claro — Manual de usuario ── */
[data-theme="light"] .ayuda-pagina {
  background: #faf7f2;
  color: #3d2f1a;
}

[data-theme="light"] .ayuda-hero__desc {
  color: rgba(0, 0, 0, 0.55);
}

[data-theme="light"] .ayuda-pill {
  color: #7a6522;
  background: rgba(var(--gold-rgb), 0.1);
  border-color: rgba(var(--gold-rgb), 0.35);
}

[data-theme="light"] .ayuda-pill:hover {
  background: rgba(var(--gold-rgb), 0.2);
  border-color: rgba(var(--gold-rgb), 0.55);
}

[data-theme="light"] .ayuda-tarjeta {
  background: #fff;
  color: #3d2f1a;
  border-color: rgba(var(--gold-rgb), 0.28);
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
}

[data-theme="light"] .ayuda-tarjeta:hover {
  background: rgba(var(--gold-rgb), 0.07);
  border-color: rgba(var(--gold-rgb), 0.45);
}

[data-theme="light"] .ayuda-tarjeta__texto strong {
  color: #2d1f12;
}

[data-theme="light"] .ayuda-tarjeta__texto small {
  color: rgba(0,0,0,0.5);
}

[data-theme="light"] .ayuda-seccion__texto h2 {
  color: #2d1f12;
}

[data-theme="light"] .ayuda-seccion__texto p {
  color: rgba(0,0,0,0.6);
}

[data-theme="light"] .ayuda-tab {
  color: rgba(0,0,0,0.45);
}

[data-theme="light"] .ayuda-tab--activo,
[data-theme="light"] .ayuda-tab:hover {
  color: #7a6522;
  border-bottom-color: #7a6522;
}

[data-theme="light"] .ayuda-tabs {
  border-bottom-color: rgba(var(--gold-rgb), 0.25);
}

[data-theme="light"] .ayuda-tab-panel ol {
  color: rgba(0,0,0,0.65);
}

[data-theme="light"] .ayuda-tab-panel strong {
  color: #7a6522;
}

[data-theme="light"] .ayuda-seccion__texto .manual-lista {
  color: rgba(0,0,0,0.65);
}

[data-theme="light"] .ayuda-seccion__texto .manual-lista strong {
  color: #7a6522;
}

[data-theme="light"] .ayuda-tip {
  background: rgba(var(--gold-rgb), 0.07);
  border-color: rgba(var(--gold-rgb), 0.28);
  color: rgba(0,0,0,0.65);
}

[data-theme="light"] .ayuda-tip svg {
  color: #7a6522;
}

[data-theme="light"] .ayuda-tip strong {
  color: #7a6522;
}

[data-theme="light"] .ayuda-browser {
  border-color: rgba(var(--gold-rgb), 0.3);
  box-shadow: 0 12px 40px rgba(0,0,0,0.12);
}

[data-theme="light"] .ayuda-browser__barra {
  background: #f0ece6;
  border-bottom-color: rgba(var(--gold-rgb), 0.2);
}

[data-theme="light"] .ayuda-browser__barra span {
  background: rgba(0,0,0,0.2);
}

[data-theme="light"] .ayuda-browser__url {
  color: rgba(0,0,0,0.35);
}

[data-theme="light"] .ayuda-accion-card {
  background: #fff;
  border-color: rgba(var(--gold-rgb), 0.22);
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}

[data-theme="light"] .ayuda-accion-card svg {
  color: #7a6522;
}

[data-theme="light"] .ayuda-accion-card strong {
  color: #2d1f12;
}

[data-theme="light"] .ayuda-accion-card p {
  color: rgba(0,0,0,0.55);
}

[data-theme="light"] .ayuda-accion-card strong ~ p strong {
  color: #7a6522;
}

[data-theme="light"] .ayuda-perfil-mockup {
  background: #fff;
  border-color: rgba(var(--gold-rgb), 0.3);
  box-shadow: 0 12px 40px rgba(0,0,0,0.1);
}

[data-theme="light"] .ayuda-perfil-mockup__header {
  color: rgba(0,0,0,0.4);
}

[data-theme="light"] .ayuda-perfil-mockup__nombre {
  color: #2d1f12;
}

[data-theme="light"] .ayuda-perfil-mockup__correo {
  color: rgba(0,0,0,0.45);
}

[data-theme="light"] .ayuda-perfil-mockup__divisor {
  border-top-color: rgba(var(--gold-rgb), 0.2);
}

[data-theme="light"] .ayuda-perfil-mockup__item {
  color: rgba(0,0,0,0.7);
}

[data-theme="light"] .ayuda-perfil-mockup__item svg {
  color: #7a6522;
}

[data-theme="light"] .ayuda-perfil-mockup__item:hover {
  background: rgba(0,0,0,0.04);
}

[data-theme="light"] .ayuda-perfil-mockup__item--salir {
  border-top-color: rgba(var(--gold-rgb), 0.15);
  color: rgba(200,50,50,0.8);
}

[data-theme="light"] .ayuda-faq {
  background: #f3ede4;
  border-top-color: rgba(var(--gold-rgb), 0.18);
  border-bottom-color: rgba(var(--gold-rgb), 0.18);
}

[data-theme="light"] .ayuda-faq__titulo {
  color: #2d1f12;
}

[data-theme="light"] .faq-item {
  border-bottom-color: rgba(var(--gold-rgb), 0.22);
}

[data-theme="light"] .faq-item:first-child {
  border-top-color: rgba(var(--gold-rgb), 0.22);
}

[data-theme="light"] .faq-pregunta {
  color: rgba(0,0,0,0.85);
}

[data-theme="light"] .faq-chevron {
  color: #7a6522;
}

[data-theme="light"] .faq-item[open] .faq-pregunta {
  color: #7a6522;
}

[data-theme="light"] .faq-respuesta {
  color: rgba(0,0,0,0.62);
}

[data-theme="light"] .faq-respuesta strong {
  color: #7a6522;
}

[data-theme="light"] .ayuda-contacto h2 {
  color: #2d1f12;
}

[data-theme="light"] .ayuda-contacto p {
  color: rgba(0,0,0,0.55);
}

[data-theme="light"] .ayuda-canal--email {
  border-color: rgba(var(--gold-rgb), 0.45);
  color: #7a6522;
}

[data-theme="light"] .ayuda-canal--telefono {
  border-color: rgba(0,0,0,0.2);
  color: rgba(0,0,0,0.7);
}

[data-theme="light"] .manual-badge,
[data-theme="light"] .manual-paso {
  color: #7a6522;
  background: rgba(var(--gold-rgb), 0.1);
  border-color: rgba(var(--gold-rgb), 0.38);
}

[data-theme="light"] .manual-descripcion {
  color: rgba(0,0,0,0.6);
}

/* ===================================================
   HISTORIAL ADMIN — responde al tema claro/oscuro
   =================================================== */

.ha-body {
  --ha-bg: #111213;
  --ha-panel: #1c1c1e;
  --ha-border: rgba(255, 255, 255, .1);
  --ha-gold: #c4a84a;
  --ha-gold-light: rgba(196, 168, 74, .15);
  --ha-text: #f5f0e8;
  --ha-muted: rgba(245, 240, 232, .55);
  --ha-green: #6fd08f;
  --ha-red: #e06b5f;
  --ha-blue: #60a5fa;
  background: var(--ha-bg);
  color: var(--ha-text);
  font-family: var(--font-body);
}

.ha-wrapper {
  width: min(1280px, calc(100% - 32px));
  margin: 130px auto 80px;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Hero */
.ha-hero {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1.5rem;
  flex-wrap: wrap;
  background: var(--ha-panel);
  border: 1px solid var(--ha-border);
  border-radius: 12px;
  padding: 1.75rem 2rem;
  box-shadow: 0 2px 12px rgba(0,0,0,.15);
}

.ha-kicker {
  display: block;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ha-gold);
  margin-bottom: .35rem;
}

.ha-titulo {
  margin: 0;
  font-size: clamp(1.7rem, 4vw, 2.6rem);
  font-weight: 800;
  color: var(--ha-text);
  line-height: 1.1;
}

.ha-subtitulo {
  margin: .55rem 0 0;
  color: var(--ha-muted);
  font-size: .97rem;
}

.ha-hero__acciones {
  display: flex;
  gap: .75rem;
  align-items: center;
  flex-wrap: wrap;
}

/* Botones */
.ha-btn {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  min-height: 42px;
  padding: 0 1.1rem;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: .9rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: background .15s, box-shadow .15s;
}

.ha-btn--pri {
  background: var(--ha-gold);
  color: #fff;
}

.ha-btn--pri:hover {
  background: #705819;
  box-shadow: 0 4px 12px rgba(138,111,40,.3);
}

.ha-btn--sec {
  background: var(--ha-panel);
  color: var(--ha-text);
  border: 1.5px solid var(--ha-border);
}

.ha-btn--sec:hover {
  background: var(--ha-gold-light);
  border-color: var(--ha-gold);
}

.ha-btn--ghost {
  background: transparent;
  color: var(--ha-muted);
  border: 1.5px solid var(--ha-border);
}

.ha-btn--ghost:hover {
  background: var(--ha-gold-light);
  color: var(--ha-gold);
}

.ha-btn--sm {
  min-height: 36px;
  padding: 0 .85rem;
  font-size: .84rem;
}

/* Estadísticas */
.ha-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.ha-stat {
  background: var(--ha-panel);
  border: 1px solid var(--ha-border);
  border-radius: 10px;
  padding: 1.2rem 1.4rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  box-shadow: 0 1px 6px rgba(0,0,0,.12);
}

.ha-stat__icono {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--ha-gold-light);
  color: var(--ha-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ha-stat__label {
  display: block;
  font-size: .78rem;
  color: var(--ha-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.ha-stat__valor {
  display: block;
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--ha-text);
  margin-top: .1rem;
}

/* Filtros */
.ha-filtros {
  display: flex;
  align-items: center;
  gap: .75rem;
  flex-wrap: wrap;
  background: var(--ha-panel);
  border: 1px solid var(--ha-border);
  border-radius: 10px;
  padding: 1rem 1.25rem;
}

.ha-filtros__busqueda {
  flex: 1;
  min-width: 220px;
  display: flex;
  align-items: center;
  gap: .6rem;
  background: var(--ha-bg);
  border: 1.5px solid var(--ha-border);
  border-radius: 8px;
  padding: 0 .9rem;
  color: var(--ha-muted);
}

.ha-filtros__busqueda:focus-within {
  border-color: var(--ha-gold);
  background: var(--ha-panel);
}

.ha-input {
  flex: 1;
  border: none;
  background: transparent;
  padding: .65rem 0;
  font-family: var(--font-body);
  font-size: .93rem;
  color: var(--ha-text);
  outline: none;
}

.ha-input::placeholder {
  color: var(--ha-muted);
}

.ha-select {
  min-width: 180px;
  height: 44px;
  border: 1.5px solid var(--ha-border);
  border-radius: 8px;
  background: var(--ha-bg);
  color: var(--ha-text);
  font-family: var(--font-body);
  font-size: .93rem;
  padding: 0 .9rem;
  outline: none;
  cursor: pointer;
}

.ha-select:focus {
  border-color: var(--ha-gold);
  background: var(--ha-panel);
}

/* Panel tabla */
.ha-panel {
  background: var(--ha-panel);
  border: 1px solid var(--ha-border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,.12);
}

.ha-panel__cabecera {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--ha-border);
  flex-wrap: wrap;
  gap: .5rem;
}

.ha-panel__titulo {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ha-text);
}

.ha-panel__contador {
  font-size: .82rem;
  font-weight: 700;
  color: var(--ha-gold);
  background: var(--ha-gold-light);
  padding: .25rem .75rem;
  border-radius: 20px;
}

/* Tabla */
.ha-tabla-wrap {
  overflow-x: auto;
}

.ha-tabla {
  width: 100%;
  border-collapse: collapse;
  font-size: .9rem;
}

.ha-tabla thead th {
  background: var(--ha-bg);
  padding: .85rem 1rem;
  text-align: left;
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--ha-muted);
  border-bottom: 1px solid var(--ha-border);
  white-space: nowrap;
}

.ha-tabla tbody tr {
  border-bottom: 1px solid var(--ha-border);
  transition: background .12s;
}

.ha-tabla tbody tr:last-child {
  border-bottom: none;
}

.ha-tabla tbody tr:hover {
  background: var(--ha-bg);
}

.ha-tabla td {
  padding: .9rem 1rem;
  vertical-align: top;
}

.ha-badge-id {
  display: inline-block;
  padding: .25rem .65rem;
  border-radius: 6px;
  background: var(--ha-gold-light);
  color: var(--ha-gold);
  font-weight: 800;
  font-size: .85rem;
}

.ha-cliente__nombre {
  display: block;
  font-weight: 700;
  color: var(--ha-text);
}

.ha-cliente__correo,
.ha-cliente__tel {
  display: block;
  font-size: .8rem;
  color: var(--ha-muted);
}

.ha-ver-productos {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  background: var(--ha-bg);
  border: 1.5px solid var(--ha-border);
  border-radius: 6px;
  padding: .3rem .7rem;
  font-family: var(--font-body);
  font-size: .83rem;
  font-weight: 700;
  color: var(--ha-text);
  cursor: pointer;
  transition: background .12s, border-color .12s;
}

.ha-ver-productos:hover {
  background: var(--ha-gold-light);
  border-color: var(--ha-gold);
  color: var(--ha-gold);
}

.ha-ver-productos svg {
  transition: transform .2s;
}

.ha-detalle-productos {
  margin-top: .6rem;
}

.ha-productos-lista {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: .3rem;
}

.ha-productos-lista li {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .83rem;
}

.ha-prod__nombre {
  flex: 1;
  color: var(--ha-text);
}

.ha-prod__cant {
  color: var(--ha-muted);
  font-size: .78rem;
}

.ha-prod__sub {
  font-weight: 700;
  color: var(--ha-gold);
  white-space: nowrap;
}

.ha-fila__total {
  font-weight: 800;
  color: var(--ha-text);
  white-space: nowrap;
}

.ha-fecha__dia {
  display: block;
  font-weight: 600;
  font-size: .88rem;
}

.ha-fecha__hora {
  display: block;
  font-size: .78rem;
  color: var(--ha-muted);
}

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

/* Estados */
.ha-estado {
  display: inline-block;
  padding: .28rem .7rem;
  border-radius: 20px;
  font-size: .78rem;
  font-weight: 700;
}

.ha-estado--confirmado {
  background: #d1fae5;
  color: var(--ha-green);
}

.ha-estado--cancelado {
  background: #fee2e2;
  color: var(--ha-red);
}

.ha-estado--entregado {
  background: #dbeafe;
  color: var(--ha-blue);
}

/* Botón factura */
.ha-btn-factura {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: var(--ha-gold-light);
  color: var(--ha-gold);
  border: 1.5px solid rgba(138,111,40,.3);
  border-radius: 8px;
  padding: .4rem .85rem;
  font-family: var(--font-body);
  font-size: .83rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: background .12s, box-shadow .12s;
}

.ha-btn-factura:hover {
  background: var(--ha-gold);
  color: #fff;
  box-shadow: 0 4px 12px rgba(138,111,40,.3);
}

/* Paginación */
.ha-paginacion {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: 1.25rem;
  border-top: 1px solid var(--ha-border);
  flex-wrap: wrap;
}

.ha-pag__enlace,
.ha-pag__num {
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  padding: .45rem .9rem;
  border-radius: 8px;
  font-size: .88rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--ha-text);
  border: 1.5px solid var(--ha-border);
  background: var(--ha-panel);
  transition: background .12s, border-color .12s;
}

.ha-pag__enlace:hover,
.ha-pag__num:hover {
  background: var(--ha-gold-light);
  border-color: var(--ha-gold);
  color: var(--ha-gold);
}

.ha-pag__num--act {
  background: var(--ha-gold);
  color: #fff;
  border-color: var(--ha-gold);
}

.ha-pag__num--act:hover {
  background: var(--ha-gold);
  color: #fff;
}

.ha-pag__enlace--dis {
  color: var(--ha-muted);
  cursor: default;
  opacity: .5;
}

.ha-pag__enlace--dis:hover {
  background: var(--ha-panel);
  border-color: var(--ha-border);
  color: var(--ha-muted);
}

.ha-pag__puntos {
  padding: .45rem .5rem;
  color: var(--ha-muted);
  font-weight: 700;
}

/* Vacío */
.ha-vacio {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
  padding: 4rem 2rem;
  color: var(--ha-muted);
  text-align: center;
  font-size: 1rem;
}

/* ── Tarjetas móvil ── */
.ha-cards {
  display: none;
  flex-direction: column;
  gap: 1rem;
  padding: 1rem;
}

.ha-card {
  border: 1px solid var(--ha-border);
  border-radius: 10px;
  overflow: hidden;
  background: var(--ha-panel);
}

.ha-card__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: .85rem 1rem;
  background: var(--ha-bg);
  border-bottom: 1px solid var(--ha-border);
}

.ha-card__body {
  padding: 1rem;
}

.ha-card__cliente {
  margin: 0 0 .75rem;
  display: flex;
  flex-direction: column;
  gap: .2rem;
  font-size: .88rem;
}

.ha-card__cliente strong {
  color: var(--ha-text);
}

.ha-card__cliente span {
  color: var(--ha-muted);
  font-size: .81rem;
}

.ha-productos-lista--card li {
  padding: .3rem 0;
  border-bottom: 1px solid var(--ha-border);
}

.ha-productos-lista--card li:last-child {
  border-bottom: none;
}

.ha-card__foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: .85rem 1rem;
  border-top: 1px solid var(--ha-border);
  flex-wrap: wrap;
  gap: .5rem;
}

.ha-card__meta {
  display: flex;
  flex-direction: column;
  gap: .1rem;
}

.ha-card__total {
  font-size: 1.1rem;
  color: var(--ha-text);
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .ha-stats {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .ha-tabla-wrap {
    display: none;
  }

  .ha-cards {
    display: flex;
  }

  .ha-wrapper {
    margin-top: 110px;
  }

  .ha-hero {
    padding: 1.25rem 1.1rem;
  }

  .ha-filtros {
    padding: .85rem 1rem;
  }

  .ha-filtros__busqueda {
    min-width: 100%;
  }
}

@media (max-width: 540px) {
  .ha-stats {
    grid-template-columns: 1fr;
  }
}

/* estados: fondo suave en oscuro */
.ha-estado--confirmado {
  background: rgba(111, 208, 143, .15);
  color: var(--ha-green);
}

.ha-estado--cancelado {
  background: rgba(224, 107, 95, .15);
  color: var(--ha-red);
}

.ha-estado--entregado {
  background: rgba(96, 165, 250, .15);
  color: var(--ha-blue);
}
