/* ===== RESET ===== */

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  background: linear-gradient(135deg, #fffcf9, #fffef8);
  color: #333;
}

/* ===== PORTADA ===== */

.hero {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 15px 20px;
  background-color: rgb(243, 221, 197);
}

.hero-img {
  width: 230px;
  height: auto;
  object-fit: contain;
  border-radius: 100px;

  mask-image: radial-gradient(circle,
    rgba(243, 221, 197) 60%,
    rgb(255, 234, 211) 300%);

  -webkit-mask-image: radial-gradient(circle,
    rgba(0, 0, 0, 1) 60%,
    rgba(0, 0, 0, 0) 100%);
}

.hero-overlay {
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
}

.btn-admin {
  display: none !important;

  background: #eed6b1;
  color: white;
  border: none;
  padding: 10px 16px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 13px;
  transition: 0.2s;
}

.btn-admin:hover {
  transform: scale(1.04);
}

/* ===== BUSCADOR ===== */

#buscador {

  width: calc(100% - 30px);
  max-width: 650px;

  display: block;

  margin: 20px auto;

  padding: 18px 22px;

  border: none;
  border-radius: 22px;

  background: white;

  font-size: 18px;

  box-shadow:
    0 6px 20px rgba(0,0,0,0.08);

  outline: none;

  transition: 0.2s;
}

#buscador:focus {

  box-shadow:
    0 8px 25px rgba(212,163,115,0.18);

  transform: scale(1.01);
}

/* ===== GRID ===== */

#catalogo {
  display: grid;

  grid-template-columns:
    repeat(auto-fit, minmax(240px, 280px));

  justify-content: center;

  gap: 14px;

  max-width: 1400px;

  margin: auto;

  padding: 14px;
}

/* ===== TARJETAS ===== */

.producto {
  background: white;

  border-radius: 18px;

  overflow: hidden;

  box-shadow: 0 4px 15px rgba(0,0,0,0.08);

  display: flex;
  flex-direction: column;

  height: 100%;

  transition: 0.2s;
}

.producto:hover {
  transform: translateY(-3px);
}

/* ===== CARRUSEL ===== */

.carrusel {
  position: relative;

  width: 100%;
  height: 260px;

  overflow: hidden;

  background: white;
}

.carrusel-track {
  display: flex;
  transition: transform 0.5s ease;
}

.carrusel img {
  width: 100%;
  height: 100%;

  object-fit: contain;

  display: block;

  background: white;

  flex-shrink: 0;
}

/* BOTONES CARRUSEL */

/* =========================
   FLECHAS CARRUSEL LUXURY
========================= */

.carrusel button{
  position:absolute;
  top:50%;
  transform:translateY(-50%);

  width:26px;
  height:26px;

  border:none;
  border-radius:50%;

  background:
    rgba(255,255,255,.55);

  backdrop-filter: blur(8px);

  color:#b99277;

  font-size:15px;
  font-weight:300;
  line-height:1;

  display:flex;
  align-items:center;
  justify-content:center;

  cursor:pointer;

  opacity:0;

  transition:
    opacity .22s ease,
    transform .22s ease,
    background .22s ease;

  z-index:5;
}

/* SOLO APARECEN AL PASAR */
.producto:hover .carrusel button{
  opacity:.9;
}

/* MOBILE: siempre visibles */
@media(max-width:768px){
  .carrusel button{
    opacity:.85;
  }
}

.carrusel button:hover{
  background:
    rgba(255,255,255,.92);

  transform:
    translateY(-50%)
    scale(1.08);
}

.prev{
  left:7px;
}

.next{
  right:7px;
}

/* ===== INFO TARJETA ===== */

.info {
  padding: 14px;

  display: flex;
  flex-direction: column;

  gap: 10px;

  flex-grow: 1;
}

/* TODOS LOS TEXTOS ALINEADOS */

.codigo,
.producto h3,
.descripcion,
.precio,
.stock {
  margin: 0;
}

/* CODIGO */

.codigo {
  font-size: 12px;
  font-weight: bold;
  color: #ff6b81;
}

/* TITULO */

.producto h3 {
  font-size: 17px;

  line-height: 1.3;

  min-height: 46px;

  display: flex;
  align-items: flex-start;
}

/* DESCRIPCION */

.descripcion {
  font-size: 13px;

  color: #666;

  line-height: 1.4;

  min-height: 42px;

  overflow: hidden;
}

/* PRECIO */

.precio {
  font-size: 22px;
  font-weight: 700;
  color: #d4a373;
}

/* STOCK */

.stock {
  font-size: 13px;
  font-weight: bold;
}

.stock.ok {
  color: green;
}

.stock.no {
  color: red;
}

/* ===== MODAL ===== */

.modal {
  position: fixed;

  top: 0;
  left: 0;

  width: 100%;
  height: 100%;

  background: rgba(0,0,0,0.85);

  display: none;

  justify-content: center;
  align-items: center;

  z-index: 999;
}

.modal img {
  max-width: 90%;
  max-height: 90%;

  border-radius: 12px;
}

/* ===== ADMIN ===== */

.admin-container {
  max-width: 1200px;

  margin: 30px auto;

  background: white;

  padding: 24px;

  border-radius: 20px;

  box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.admin-container h2 {
  text-align: center;

  color: #ff69b4;

  margin-bottom: 20px;
}

.form-grid {
  display: grid;

  grid-template-columns:
    repeat(auto-fit, minmax(180px, 1fr));

  gap: 12px;

  margin-bottom: 18px;
}

.admin-container input {
  width: 100%;

  padding: 12px;

  border-radius: 12px;

  border: 1px solid #ddd;

  transition: 0.2s;
}

.admin-container input:focus {
  border-color: #ff69b4;
  box-shadow: 0 0 0 3px rgba(255,105,180,0.15);
  outline: none;
}

/* BOTONES */

.btn {
  padding: 10px 14px;

  border: none;

  border-radius: 10px;

  cursor: pointer;

  font-weight: bold;

  transition: 0.2s;
}

.btn:hover {
  transform: scale(1.04);
}

.btn-guardar {
  background: #ff69b4;
  color: white;
}

.btn-guardar:hover {
  background: #e0559f;
}

/* =========================
   TABLA
========================= */

.tabla-container {
  margin-top: 25px;

  background: white;

  border-radius: 20px;

  overflow: hidden;

  box-shadow: 0 8px 25px rgba(0,0,0,0.08);

  overflow-x: auto;
}

/* FILTROS */

.filtros-tabla {
  display: grid;

  grid-template-columns:
    repeat(auto-fit, minmax(160px, 1fr));

  gap: 10px;

  padding: 14px 16px;

  background: #fff;

  border-bottom: 1px solid #ececec;
}

.filtros-tabla input {
  height: 42px;

  padding: 0 14px;

  border-radius: 10px;

  border: 1px solid #e4e4e4;

  background: #fafafa;

  font-size: 14px;

  transition: 0.2s;

  outline: none;
}

.filtros-tabla input:focus {
  border-color: #e7b8d0;

  background: white;

  box-shadow: 0 0 0 4px rgba(231,184,208,0.15);
}

.fila-filtros th {
  background: #ec6eb0;
  padding: 14px;
}

.fila-filtros input {
  width: 100%;

  height: 40px;

  border: none;

  border-radius: 14px;

  padding: 0 14px;

  font-size: 14px;

  outline: none;

  background: #fff;
}

.fila-filtros input:focus {
  box-shadow:
    0 0 0 3px
    rgba(255,255,255,0.35);
}

/* TABLA */

.tabla {
  width: 100%;

  min-width: 950px;

  border-collapse: separate;

  border-spacing: 0;
}

/* CABECERA */

.tabla thead {
  background: linear-gradient(
    135deg,
    #ff69b4,
    #ff8ac2
  );

  color: white;
}

.tabla th {
  padding: 16px 14px;

  font-size: 13px;

  text-transform: uppercase;

  letter-spacing: 0.5px;

  border-right: 1px solid rgba(255,255,255,0.2);
}

.tabla th:last-child {
  border-right: none;
}

/* CELDAS */

.tabla td {
  padding: 16px 12px;

  text-align: center;

  font-size: 14px;

  background: white;

  border-bottom: 1px solid #f1f1f1;

  border-right: 1px solid #f3f3f3;
}

.tabla td:last-child {
  border-right: none;
}

/* HOVER FILAS */

.tabla tbody tr {
  transition: 0.2s;
}

.tabla tbody tr:hover td {
  background: #fff7fb;
}

/* IMAGEN TABLA */

.img-mini {
  width: 55px !important;
  height: 55px !important;

  object-fit: cover;

  border-radius: 10px;

  display: block;

  margin: auto;
}

/* BOTONES TABLA */

.btn-editar,
.btn-eliminar {
  border: none;

  padding: 9px 11px;

  border-radius: 10px;

  cursor: pointer;

  transition: 0.2s;
}

.btn-editar {
  background: #ffc107;
}

.btn-eliminar {
  background: #dc3545;
  color: white;
}

.btn-editar:hover,
.btn-eliminar:hover {
  transform: scale(1.06);
}

/* ===== MENSAJE ===== */

.sin-resultados {
  grid-column: 1 / -1;
  width: 100%;

  text-align: center;

  padding: 40px;

  color: #777;

  font-size: 18px;
}

/* ===== REDES ===== */

.redes-fijas {
  position: fixed;

  right: 15px;
  top: 50%;

  transform: translateY(-50%);

  display: flex;
  flex-direction: column;

  gap: 12px;

  z-index: 9999;
}

.social {
  width: 52px;
  height: 52px;

  border-radius: 50%;

  display: flex;
  align-items: center;
  justify-content: center;

  color: white;

  font-size: 24px;

  text-decoration: none;

  box-shadow: 0 5px 14px rgba(0,0,0,0.2);

  transition: all 0.3s ease;
}

.social:hover {
  transform: scale(1.1);
}

.instagram {
  background: linear-gradient(
    45deg,
    #feda75,
    #fa7e1e,
    #d62976,
    #962fbf,
    #4f5bd5
  );
}

.facebook {
  background: #1877f2;
}

.whatsapp {
  background: #25d366;
}

/* ===== VENTAS ===== */

.ventas-box {
  background: white;

  padding: 20px;

  border-radius: 18px;

  margin: 20px 0;

  box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.ventas-box h2 {
  margin-bottom: 15px;

  color: #444;
}

.ventas-box input {
  width: 100%;

  padding: 12px;

  margin-bottom: 12px;

  border-radius: 12px;

  border: 1px solid #ddd;
}

.ventas-box button {
  width: 100%;

  padding: 12px;

  border: none;

  border-radius: 12px;

  background: #ff5fa2;

  color: white;

  font-weight: bold;

  cursor: pointer;

  transition: 0.3s;
}

.ventas-box button:hover {
  opacity: 0.9;
}

/* ===== RESPONSIVE ===== */

@media (max-width: 768px) {

  .hero-img {
    width: 140px;
  }

  #catalogo {
    grid-template-columns: repeat(2, 1fr);
    justify-content: stretch;
    gap: 12px;
    padding: 12px;
  }

  .carrusel {
    height: 180px;
  }

  .info {
    padding: 14px;
    gap: 8px;
  }

  /* CODIGO */
  .codigo {
    font-size: 13px;
  }

  /* TITULO PRODUCTO */
  .producto h3 {
    font-size: 18px;
    line-height: 1.3;
    min-height: auto;
    font-weight: 600;
  }

  /* DESCRIPCION */
  .descripcion {
    font-size: 14px;
    line-height: 1.4;
    color: #666;
    min-height: auto;
  }

  /* PRECIO */
  .precio {
    font-size: 22px;
    font-weight: bold;
  }

  /* STOCK */
  .stock {
    font-size: 14px;
  }

  /* REDES */
  .redes-fijas {
    right: 10px;
    bottom: 20px;
    top: auto;
    transform: none;
  }

  .social {
    width: 56px;
    height: 56px;
    font-size: 26px;
  }
}

  .filtros-tabla {
    grid-template-columns: 1fr;
  }



/* =====================================
   IMAGENES TABLA ADMIN
===================================== */

.tabla td img.img-mini {
  width: 60px !important;
  height: 60px !important;

  min-width: 60px !important;
  max-width: 60px !important;

  min-height: 60px !important;
  max-height: 60px !important;

  object-fit: cover !important;

  border-radius: 10px !important;

  display: block !important;

  margin: 0 auto !important;
}

/* =========================
   LOADER LUMA PREMIUM
========================= */

.loader-screen {
  position: fixed;
  inset: 0;
  z-index: 999999;

  display: flex;
  align-items: center;
  justify-content: center;

  background:
    linear-gradient(
      135deg,
      rgba(255,252,249,0.98),
      rgba(255,244,248,0.98)
    );

  backdrop-filter: blur(10px);
}

.loader-box {
  text-align: center;
  animation: fadeIn 0.35s ease;
}

/* CIRCULO ELEGANTE */

.loader-circle {
  position: relative;

  width: 95px;
  height: 95px;

  margin: 0 auto 20px;
}

.loader-circle::before {
  content: "";

  position: absolute;
  inset: 0;

  border-radius: 50%;

  border: 4px solid #f1d9e5;
  border-top-color: #d7b08b;

  animation: spin 0.9s linear infinite;
}

/* LETRA L */

.loader-brand {
  position: absolute;
  inset: 0;

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 42px;
  font-weight: 700;

  color: #c79a73;

  font-family: serif;
}

/* TITULO */

.loader-title {
  font-size: 24px;
  font-weight: 600;

  color: #7d5c49;

  margin-bottom: 8px;
}

/* TEXTO */

.loader-text {
  font-size: 15px;
  color: #9b7d6b;
}

.loader-dots::after {
  content: "";
  animation: dots 1.4s infinite;
}

/* ANIMACIONES */

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(.96);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes dots {
  0% { content:""; }
  33% { content:"."; }
  66% { content:".."; }
  100% { content:"..."; }
}

/* =========================
   LOGIN ADMIN
========================= */

.login-screen {
  min-height: 100vh;

  display: flex;
  justify-content: center;
  align-items: center;

  padding: 20px;

  background:
    linear-gradient(
      135deg,
      #fffaf7,
      #fff2f7
    );
}

.login-card {
  width: 100%;
  max-width: 420px;

  background: rgba(255,255,255,0.95);

  backdrop-filter: blur(12px);

  border-radius: 30px;

  padding: 40px 30px;

  text-align: center;

  box-shadow:
    0 15px 40px rgba(0,0,0,0.08);

  border: 1px solid rgba(255,255,255,0.7);

  animation: aparecerLogin .4s ease;
}

.login-logo {
  width: 85px;
  height: 85px;

  margin: auto auto 20px;

  border-radius: 50%;

  background:
    linear-gradient(
      135deg,
      #f3dcc5,
      #e9c4a8
    );

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 42px;
  font-weight: bold;

  color: white;

  box-shadow:
    0 8px 25px rgba(218,186,152,.35);
}

.login-card h1 {
  margin: 0 0 10px;

  font-size: 30px;

  color: #5f4a3d;
}

.login-card p {
  margin: 0 0 28px;

  color: #8d7a6e;

  line-height: 1.5;

  font-size: 15px;
}

.login-card input {
  width: 100%;

  padding: 16px;

  border-radius: 16px;

  border: 1px solid #e6d8d0;

  font-size: 16px;

  outline: none;

  transition: 0.25s;

  margin-bottom: 16px;
}

.login-card input:focus {
  border-color: #d8b08c;

  box-shadow:
    0 0 0 5px rgba(216,176,140,.15);
}

.btn-login {
  width: 100%;

  border: none;

  padding: 16px;

  border-radius: 18px;

  background:
    linear-gradient(
      135deg,
      #d8b08c,
      #c79a73
    );

  color: white;

  font-size: 16px;
  font-weight: 600;

  cursor: pointer;

  transition: .25s;
}

.btn-login:hover {
  transform: translateY(-2px);

  box-shadow:
    0 10px 20px rgba(199,154,115,.25);
}

@keyframes aparecerLogin {

  from {
    opacity: 0;
    transform: translateY(20px);
  }

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

/* =========================
   TOP BAR ADMIN
========================= */

.admin-topbar {
  display: flex;
  justify-content: flex-start;
  margin-bottom: 20px;
}

.btn-volver {
  border: none;

  background: white;

  color: #8d6f5a;

  padding: 12px 18px;

  border-radius: 16px;

  cursor: pointer;

  font-size: 14px;
  font-weight: 600;

  box-shadow:
    0 6px 18px rgba(0,0,0,0.08);

  transition: .25s;
}

.btn-volver:hover {
  transform: translateY(-2px);

  background: #fff6f1;

  box-shadow:
    0 10px 22px rgba(0,0,0,.10);
}

/* ==========================
   MENU ADMIN
========================== */

.menu-admin {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;

  margin-bottom: 25px;
}

.menu-btn {
  border: none;

  background: linear-gradient(
    135deg,
    #f06db3,
    #ff8fc5
  );

  color: white;

  padding: 18px 22px;

  border-radius: 18px;

  font-size: 16px;
  font-weight: 600;

  cursor: pointer;

  box-shadow:
    0 6px 18px rgba(0,0,0,0.08);

  transition: 0.2s;
}

.menu-btn:hover {
  transform: translateY(-2px);
}

.menu-btn.secondary {
  background: #f4f4f4;
  color: #555;
}

/* ==========================
   TARJETAS ADMIN
========================== */

.card-admin {
  background: white;

  border-radius: 22px;

  padding: 24px;

  margin-bottom: 20px;

  box-shadow:
    0 8px 25px rgba(0,0,0,0.08);

  animation: fadeIn 0.2s ease;
}

.card-admin h3 {
  margin-top: 0;

  margin-bottom: 18px;

  color: #444;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

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

/* MOBILE */

@media (max-width:768px){

  .menu-admin {
    flex-direction: column;
  }

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

/* ==========================
   PREVIEW IMÁGENES
========================== */

.preview-imagenes {

  display: flex;
  flex-wrap: wrap;

  gap: 14px;

  margin-top: 22px;
  margin-bottom: 10px;

  align-items: flex-start;
}

.preview-item {

  position: relative;

  width: 95px;
  height: 95px;

  border-radius: 18px;

  background: #fff;

  padding: 5px;

  box-shadow:
    0 4px 14px rgba(0,0,0,0.08);

  border: 1px solid #f2f2f2;
}

.preview-img {

  width: 100%;
  height: 100%;

  object-fit: cover;

  border-radius: 14px;

  display: block;
}

/* BOTON BORRAR */

.btn-eliminar-preview {

  position: absolute;

  top: -10px;
  right: -10px;

  width: 28px;
  height: 28px;

  border: none;

  border-radius: 50%;

  background: #ff4d6d;

  color: white;

  font-size: 14px;
  font-weight: bold;

  cursor: pointer;

  display: flex;
  align-items: center;
  justify-content: center;

  box-shadow:
    0 4px 12px rgba(0,0,0,0.2);

  z-index: 5;

  transition: 0.2s;
}

.btn-eliminar-preview:hover {

  transform: scale(1.08);
}
.btn-fotos {
  margin-bottom: 14px;
}

.form-grid-admin {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.campo-completo {
  margin-top: 14px;
}

.campo-completo input,
.campo-completo textarea {

  width: 100%;

  padding: 14px;

  border-radius: 14px;

  border: 1px solid #ddd;

  font-size: 15px;
}

textarea {
  min-height: 110px;
  resize: vertical;
}

.hint {
  display: block;
  margin-top: 8px;
  color: #777;
  font-size: 13px;
}

.stock-auto {
  display: block;
  margin-top: 8px;
  color: #d4a373;
  font-weight: 600;
}

@media(max-width:768px){

  .form-grid-admin {
    grid-template-columns: 1fr;
  }

}

/* ==========================
   COLORES PRODUCTO
========================== */

.bloque-colores {
  margin-top: 15px;
}

.titulo-colores {
  display: block;
  margin-bottom: 12px;
  font-weight: 600;
  color: #555;
}

.color-row {
  display: grid;
  grid-template-columns: 1fr 120px 50px;

  gap: 10px;
  margin-bottom: 10px;
}

.color-row input {

  width: 100%;

  padding: 12px;

  border-radius: 12px;

  border: 1px solid #ddd;

  font-size: 14px;
}

.btn-borrar-color {

  border: none;

  border-radius: 12px;

  background: #ff5f7d;

  color: white;

  cursor: pointer;

  font-size: 18px;
}

.btn-color {
  margin-top: 8px;
}

.stock-auto {

  display: block;

  margin-top: 10px;

  color: #c79a73;

  font-weight: bold;
}

@media(max-width:768px){

  .color-row {
    grid-template-columns: 1fr 90px 45px;
  }

}

.colores-disponibles{
  margin-top:10px;
}

.colores-disponibles small{
  display:block;
  color:#888;
  font-size:12px;
  margin-bottom:7px;
}

.colores-lista{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
}

.color-item{
  background:#f8dfe7;
  border-radius:20px;
  padding:5px 10px;
  font-size:12px;
  color:#444;
  font-weight:500;
}

#btnTop{
  position:fixed;

  bottom:155px;
  right: 11px;

  width:52px;
  height:52px;

  border:none;
  border-radius:50%;

  background:#f8dfe7;
  color:#444;

  font-size:22px;
  font-weight:bold;

  cursor:pointer;

  box-shadow:
    0 8px 22px rgba(0,0,0,.12);

  opacity:0;
  visibility:hidden;

  transform:translateY(20px);

  transition:.25s ease;

  z-index:9999;
}

#btnTop.show{
  opacity:1;
  visibility:visible;
  transform:translateY(0);
}

.icon-social{
  width:28px;
  height:28px;
}

/* ======================
   CATEGORÍAS
====================== */

.categorias-container{

  position:sticky;
  top:0;
  z-index:50;

  display:flex;
  gap:10px;

  overflow-x:auto;

  padding:14px 14px;

  background:
    rgba(255,255,255,.92);

  backdrop-filter:
    blur(12px);

  border-bottom:
    1px solid #eee;

  scrollbar-width:none;
}

.categorias-container::-webkit-scrollbar{
  display:none;
}

.categoria-btn{

  flex:none;

  border:none;

  padding:
    10px 18px;

  border-radius:999px;

  background:#f7edf0;

  color:#555;

  cursor:pointer;

  font-size:14px;
  font-weight:500;

  transition:.25s ease;

  white-space:nowrap;
}

.categoria-btn:hover{
  transform:
    translateY(-2px);
}

.categoria-btn.active{

  background:#f2c8d4;

  color:#333;

  font-weight:600;
}

/* =========================
   HERO PREMIUM
========================= */

.hero{
  background: rgb(243, 221, 197);
  padding: 25px 20px;
}

.hero-content{

  max-width:1300px;
  margin:auto;

  display:flex;
  align-items:center;
  justify-content:space-between;

  gap:45px;
}

/* LOGO */

.hero-logo{
  flex-shrink:0;
}

.hero-img{
  width:230px;
  border-radius:100px;

  box-shadow:
    0 10px 30px rgba(0,0,0,.08);
}

/* =========================
   BARRA PREMIUM
========================= */

.categorias-barra{

  flex:1;

  display:flex;
  flex-wrap:wrap;
  gap:10px;

  align-items:center;

  padding:18px;

  border-radius:28px;

  background:
    rgba(255,255,255,.35);

  backdrop-filter: blur(12px);

  box-shadow:
    0 10px 25px rgba(0,0,0,.06);

  border:
    1px solid rgba(255,255,255,.4);
}

/* BOTONES */

.categoria-btn{

  border:none;

  background:transparent;

  color:#7a6355;

  padding:12px 18px;

  border-radius:999px;

  cursor:pointer;

  font-size:14px;
  font-weight:600;

  transition:.25s ease;
}

.categoria-btn:hover{
  background:rgba(255,255,255,.45);
}

.categoria-btn.active{

  background:#c79a73;
  color:rgb(53, 32, 9);

  box-shadow:
    0 6px 18px rgba(199,154,115,.28);
}

/* =========================
   MOBILE MENU
========================= */

.categorias-mobile{
  display:none;
}

#btnCategorias{

  width:100%;

  border:none;

  background:#f1ebe0 ;

  padding:16px 20px;

  border-radius:22px;

  font-size:16px;
  font-weight:600;

  color:#7a6355;

  box-shadow:
    0 8px 22px rgba(0,0,0,.08);

  cursor:pointer;
}

#menuCategoriasMobile{
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  width: 100%;

  background: #f9f4ef;
  backdrop-filter: blur(14px);

  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,.12);

  display: flex;
  flex-direction: column;
  gap: 6px;

  overflow: hidden;
  z-index: 999;

  /* ESTADO CERRADO */
  max-height: 0;
  opacity: 0;
  transform: translateY(-12px);

  pointer-events: none;

  transition:
    max-height .35s ease,
    opacity .25s ease,
    transform .28s ease,
    padding .25s ease;

  padding: 0 14px;
}

#menuCategoriasMobile.open{
  max-height: 600px;
  opacity: 1;
  transform: translateY(0);

  pointer-events: auto;
  padding: 14px;
}

/* =========================
   MOBILE
========================= */

/* =========================
   MOBILE
========================= */

@media(max-width:768px){

  .hero-content{
    flex-direction: column;
    gap: 18px;
    align-items: center;
  }

  .hero-img{
    width: 170px;
  }

  .categorias-barra{
    display: none;
  }

  .categorias-mobile{
    display: block;
    width: 100%;
    max-width: 320px;
    position: relative;
  }

  /* BOTÓN MENU */
  .btn-categorias-mobile{
    width: 100%;
    border: none;
    border-radius: 18px;
    padding: 14px 18px;
    background: #fff;
    box-shadow: 0 6px 20px rgba(0,0,0,.08);
    font-size: 15px;
    font-weight: 600;
    color: #444;
    cursor: pointer;

    display: flex;
    justify-content: space-between;
    align-items: center;

    transition: all .25s ease;
  }

  .btn-categorias-mobile:hover{
    transform: translateY(-2px);
  }

  /* MENU DESPLEGABLE */
  #menuCategoriasMobile{
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    width: 100%;

    background: #f9f4ef;
    backdrop-filter: blur(14px);

    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,.12);

    overflow: hidden;

    /* animación */
    opacity: 0;
    transform: translateY(-10px) scale(.96);
    pointer-events: none;
    transition:
      opacity .28s ease,
      transform .28s ease;

    z-index: 999;
  }

  /* CUANDO ABRE */
 #menuCategoriasMobile.open{
    max-height:600px;
    opacity:1;
    transform:translateY(0);
    margin-top:12px;
  }

  /* BOTONES */
  #menuCategoriasMobile .categoria-btn{
    width: 100%;
    border: none;
    background: transparent;
    text-align: left;
    padding: 14px 18px;
    font-size: 14px;
    color: #444;
    transition: background .2s ease;
  }

  #menuCategoriasMobile .categoria-btn:hover{
    background: #f9f4ef;
  }

  #menuCategoriasMobile .categoria-btn.active{
    background: #f4e5dc;
    font-weight: 600;
    transform:scale(.98);
  }
}
/* =========================
   ADMIN MOBILE FIX
========================= */

.hero{
  position: relative;
}

.hero-overlay{
  position:absolute;
  top:15px;
  right:15px;
}

/* MOBILE */

@media(max-width:768px){

  .hero-overlay{
    top:12px;
    right:12px;
  }

  .btn-admin{

    padding:8px 14px;

    font-size:10px;

    border-radius:16px;

   background: #eed6b1;
  color: white;

    backdrop-filter: blur(10px);

    box-shadow:
      0 4px 14px rgba(0,0,0,.08);
  }

  .hero-content{
    align-items:center;
    text-align:center;
  }

  .hero-logo{
    width:100%;
    display:flex;
    justify-content:center;
  }
}

/* IMAGEN ÚNICA */
.imagen-unica {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 18px;
}

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

#btnVerMas{

  display:block;

  margin:30px auto 50px;

  border:none;

  padding:16px 28px;

  border-radius:999px;

  background:
    linear-gradient(
      135deg,
      #d8b08c,
      #c79a73
    );

  color:white;

  font-size:15px;
  font-weight:600;

  cursor:pointer;

  box-shadow:
    0 10px 22px
    rgba(199,154,115,.22);

  transition:.25s ease;
}

#btnVerMas:hover{
  transform:translateY(-2px);
}

#btnVerMas:active{
  transform:scale(.98);
}

.modal-prev,
.modal-next{

  position:absolute;
  top:50%;

  transform:
    translateY(-50%);

  width:42px;
  height:42px;

  border:none;
  border-radius:50%;

  background:
    rgba(255,255,255,.16);

  backdrop-filter:
    blur(10px);

  color:white;

  font-size:24px;
  font-weight:300;

  cursor:pointer;

  transition:.25s ease;

  z-index:9999;
}

.modal-prev:hover,
.modal-next:hover{

  transform:
    translateY(-50%)
    scale(1.08);

  background:
    rgba(255,255,255,.25);
}

.modal-prev{
  left:20px;
}

.modal-next{
  right:20px;
}

@media(max-width:768px){

  .modal-prev,
  .modal-next{

    width:38px;
    height:38px;

    font-size:20px;
  }
}

/* =========================
   TABLET FIX (769px - 1100px)
========================= */

@media (min-width: 769px) and (max-width: 1500px){

  .hero{
    position: relative;
    padding: 24px 20px 30px;
  }

  .hero-content{
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 22px;
    text-align: center;
    width: 100%;
  }

  /* LOGO */
  .hero-logo{
    display: flex;
    justify-content: center;
    width: 100%;
  }

  .hero-img{
    width: 180px;
  }

  /* OCULTAR BARRA DESKTOP */
  .categorias-barra{
    display: none;
  }

  /* MOSTRAR MENU MOBILE/TABLET */
  .categorias-mobile{
    display: block;
    width: 100%;
    max-width: 420px;
  }

  /* BOTON ADMIN */
  .hero-overlay{
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 20;
  }

  .btn-admin{
    padding: 10px 14px;
    font-size: 12px;
    border-radius: 18px;
    background: #eed6b1;
    color: white;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 12px rgba(0,0,0,.08);
  }

  /* CATALOGO MAS PROLIJO EN TABLET */
  #catalogo{
    grid-template-columns: repeat(auto-fit, minmax(240px, 280px));
    justify-content: center;
    gap: 14px;
  }
}
/* =========================
   PROMOS
========================= */

#promosContainer {
  width: min(860px, calc(100% - 28px));
  margin: 4px auto 16px;
  display: grid;
  gap: 12px;
}

.promo-card {
  position: relative;
  display: grid;
  grid-template-columns: 200px 1fr;
  min-height: 200px;
  overflow: hidden;
  background:
    radial-gradient(circle at 92% 12%, rgba(242,200,212,.45), transparent 32%),
    linear-gradient(135deg, #fff, #fff8f1 58%, #fff2e9);
  border: 1px solid rgba(199,154,115,.30);
  border-radius: 18px;
  box-shadow:
    0 16px 36px rgba(70,46,25,.13);
  isolation: isolate;
  transition:
    transform .22s ease,
    box-shadow .22s ease,
    border-color .22s ease;
}

.promo-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 6px;
  background:
    linear-gradient(180deg, #c79a73, #f2c8d4, #d8b08c);
  z-index: 2;
}

.promo-card::after {
  content: "Oferta";
  position: absolute;
  top: 14px;
  right: -34px;
  width: 128px;
  padding: 5px 0;
  background: #8c2f55;
  color: white;
  font-size: 11px;
  font-weight: 900;
  text-align: center;
  text-transform: uppercase;
  transform: rotate(35deg);
  box-shadow:
    0 8px 18px rgba(140,47,85,.22);
  z-index: 3;
}

.promo-card:hover {
  transform: translateY(-3px);
  border-color: rgba(199,154,115,.46);
  box-shadow:
    0 20px 44px rgba(70,46,25,.16);
}

.promo-media {
  position: relative;
  width: 200px;
  height: 200px;
  align-self: center;
  background: #f4e5dc;
  overflow: hidden;
}

.promo-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 50%, rgba(54,32,9,.18));
  pointer-events: none;
}

.promo-img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  cursor: zoom-in;
  transition: transform .28s ease;
}

.promo-card:hover .promo-img {
  transform: scale(1.04);
}

.promo-img-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: default;
  color: #8a6752;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: .08em;
  background:
    linear-gradient(135deg, #f4e5dc, #fff6ed);
}

.promo-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 9px;
  padding: 20px 24px 20px 22px;
}

.promo-badge {
  width: fit-content;
  padding: 6px 11px;
  border-radius: 999px;
  background:
    linear-gradient(135deg, #8c2f55, #c79a73);
  color: white;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  box-shadow:
    0 7px 16px rgba(140,47,85,.18);
}

.promo-info h2 {
  margin: 0;
  color: #352009;
  font-size: clamp(22px, 2.4vw, 31px);
  line-height: 1.12;
}

.promo-info p {
  max-width: 520px;
  margin: 0;
  color: #6e5b4c;
  font-size: 13px;
  line-height: 1.42;
}

.promo-detalle {
  max-width: 560px;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(255,255,255,.82);
  border: 1px solid rgba(199,154,115,.14);
  color: #5b4636;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.45;
}

.promo-descuento {
  width: fit-content;
  padding: 7px 10px;
  border-radius: 999px;
  background:
    linear-gradient(135deg, #f8dfe7, #fff);
  color: #8c2f55;
  font-size: 16px;
  font-weight: 900;
  border: 1px solid rgba(140,47,85,.14);
}

.promo-precios {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
}

.promo-precio-antes {
  color: #9d8b7d;
  font-size: 13px;
  text-decoration: line-through;
}

.promo-precio-ahora {
  color: #8c2f55;
  font-size: clamp(26px, 3.4vw, 38px);
  line-height: 1;
  text-shadow:
    0 8px 18px rgba(140,47,85,.10);
}

.promo-countdown {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 2px;
}

.promo-countdown span {
  min-width: 45px;
  padding: 6px 7px;
  border-radius: 11px;
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(199,154,115,.22);
  text-align: center;
  box-shadow:
    0 7px 15px rgba(70,46,25,.06);
}

.promo-countdown strong {
  display: block;
  color: #3f2b1e;
  font-size: 15px;
  line-height: 1;
}

.promo-countdown small {
  display: block;
  margin-top: 3px;
  color: #856d5b;
  font-size: 10px;
  font-weight: 700;
}

.promo-finalizada {
  width: fit-content;
  min-width: 0 !important;
  color: #8c2f55;
  font-size: 12px;
  font-weight: 800;
}

.promo-fecha {
  width: fit-content;
  color: #7d6758;
  font-size: 11px;
  font-weight: 700;
}

@media (max-width: 768px) {

  #promosContainer {
    width: calc(100% - 24px);
    margin-top: 4px;
  }

  .promo-card {
    grid-template-columns: 140px 1fr;
    min-height: 140px;
    border-radius: 16px;
  }

  .promo-card::after {
    display: none;
  }

  .promo-media {
    width: 140px;
    height: 140px;
  }

  .promo-img {
    width: 140px;
    height: 140px;
  }

  .promo-info {
    padding: 14px 12px 14px 15px;
    gap: 7px;
  }

  .promo-info h2 {
    font-size: 21px;
  }

  .promo-info p,
  .promo-detalle {
    font-size: 12px;
  }

  .promo-countdown span {
    min-width: 39px;
    padding: 5px;
  }
}

/* =========================
   SHOP EXPERIENCE UPGRADES
========================= */

.descripcion-vacia {
  color: #a9a19c;
  font-style: italic;
}

.producto-acciones {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  margin-top: auto;
}

.producto .btn-detalle-producto,
.producto .btn-consultar-producto {
  width: 100%;
  min-height: 36px;
  margin-top: 0;
  padding: 9px 8px;
  border-radius: 2px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: uppercase;
  cursor: pointer;
}

.producto .btn-detalle-producto {
  border: 1px solid rgba(37,29,25,.12);
  background: #fff;
  color: #6f6661;
}

.producto .btn-detalle-producto:hover {
  border-color: rgba(37,29,25,.22);
  background: #f7f4f2;
}

.producto .btn-consultar-producto {
  border: 1px solid rgba(145,80,77,.18);
  background: #fff8f5;
  color: #8f4c55;
}

.producto .btn-consultar-producto:hover {
  border-color: rgba(145,80,77,.32);
  background: #f9e6e2;
  color: #7d3943;
  transform: translateY(-1px);
}

.promo-ver-todas {
  display: none;
  grid-column: 1 / -1;
  width: min(360px, 100%);
  margin: 0 auto;
  min-height: 42px;
  border: 1px solid rgba(145,80,77,.16);
  border-radius: 2px;
  background: #fff8f5;
  color: #8f4c55;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
}

.site-footer {
  width: min(1180px, calc(100% - 28px));
  margin: 44px auto 26px;
  padding: 28px 0 18px;
  border-top: 1px solid rgba(37,29,25,.10);
  color: #514844;
}

.footer-brand {
  max-width: 520px;
  margin-bottom: 22px;
}

.footer-brand strong {
  display: block;
  margin-bottom: 7px;
  color: #251d19;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 26px;
  font-weight: 400;
}

.footer-brand p,
.footer-confianza p {
  margin: 0;
  color: #817973;
  font-size: 12px;
  line-height: 1.55;
}

.footer-confianza {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 22px;
}

.footer-confianza span {
  display: block;
  margin-bottom: 6px;
  color: #8f4c55;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}

.footer-contacto {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-copyright {
  margin: 18px 0 0;
  color: rgba(92,67,63,.62);
  font-size: 11px;
  line-height: 1.4;
  text-align: center;
}

.footer-contacto button,
.footer-contacto a {
  min-height: 38px;
  padding: 10px 13px;
  border-radius: 2px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
}

.footer-contacto button {
  border: 1px solid rgba(145,80,77,.18);
  background: #fff8f5;
  color: #8f4c55;
  cursor: pointer;
}

.footer-contacto a {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(37,29,25,.10);
  color: #6f6661;
  background: #fff;
}

.producto-modal {
  position: fixed;
  inset: 0;
  z-index: 10020;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(37,29,25,.58);
  backdrop-filter: blur(8px);
}

.producto-modal-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(260px, 420px) minmax(260px, 390px);
  width: min(880px, 100%);
  max-height: calc(100vh - 36px);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 3px;
  background: #fff;
  box-shadow:
    0 24px 60px rgba(0,0,0,.22);
}

.producto-modal-cerrar {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 3;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(37,29,25,.10);
  border-radius: 50%;
  background: rgba(255,255,255,.82);
  color: #6f6661;
  cursor: pointer;
}

.producto-modal-media {
  min-height: 420px;
  background: #f5f5f3;
}

.producto-modal-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  cursor: zoom-in;
}

.producto-modal-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 36px 32px 30px;
}

.producto-modal-codigo {
  color: #a29b96;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
}

.producto-modal-info h2 {
  margin: 0;
  color: #251d19;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 400;
  line-height: 1.08;
}

.producto-modal-descripcion {
  margin: 0;
  color: #817973;
  font-size: 13px;
  line-height: 1.6;
}

.producto-modal-datos {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.producto-modal-datos strong {
  color: #251d19;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 30px;
  font-weight: 400;
}

.producto-modal-stock {
  color: #41734d;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}

.producto-modal-stock.no {
  color: #a24747;
}

#productoModalColores small {
  display: block;
  margin-bottom: 7px;
  color: #9b938e;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}

.producto-modal-consultar {
  min-height: 44px;
  margin-top: auto;
  border: 1px solid rgba(145,80,77,.18);
  border-radius: 2px;
  background: #8f4c55;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
}

@media (max-width: 768px) {

  #promosContainer .promo-card:nth-of-type(n+2) {
    display: none;
  }

  .promo-ver-todas {
    display: block;
  }

  .producto-acciones {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .producto .btn-detalle-producto,
  .producto .btn-consultar-producto {
    min-height: 32px;
    padding: 7px;
    font-size: 9px;
  }

  .site-footer {
    margin-top: 32px;
    padding-bottom: 84px;
  }

  .footer-confianza {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .footer-contacto {
    flex-direction: column;
  }

  .footer-contacto button,
  .footer-contacto a {
    justify-content: center;
    width: 100%;
  }

  .producto-modal {
    padding: 10px;
  }

  .producto-modal-card {
    grid-template-columns: 1fr;
    max-height: calc(100vh - 20px);
    overflow: auto;
  }

  .producto-modal-media {
    min-height: 280px;
    height: 42vh;
  }

  .producto-modal-info {
    padding: 24px 20px 22px;
  }
}

/* =========================
   STORE EDITORIAL POLISH
========================= */

#buscador {
  max-width: 760px;
  margin: 24px auto;
  padding: 15px 17px;
  border: 1px solid #e4e0dd;
  border-radius: 2px;
  background: #fff;
  color: #2b2522;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 15px;
  box-shadow: none;
}

#buscador:focus {
  border-color: #9e938d;
  box-shadow:
    0 0 0 3px rgba(37,29,25,.05);
  transform: none;
}

.categorias-barra {
  padding: 12px;
  border: 1px solid rgba(37,29,25,.08);
  border-radius: 2px;
  background: rgba(255,255,255,.72);
  box-shadow: none;
}

.categorias-barra .categoria-btn {
  padding: 10px 14px;
  border-radius: 2px;
  color: #5f5752;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: uppercase;
}

.categorias-barra .categoria-btn:hover {
  background: #f5f3f1;
}

.categorias-barra .categoria-btn.active {
  background: #251d19;
  color: #fff;
  box-shadow: none;
}

#btnCategorias {
  border: 1px solid rgba(37,29,25,.10);
  border-radius: 2px;
  background: rgba(255,255,255,.82);
  color: #352e2a;
  box-shadow: none;
}

#btnCategorias::before {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0;
}

#btnCategorias::after {
  border-color: #352e2a;
}

#btnCategorias.open {
  background: #fff;
  box-shadow:
    0 8px 20px rgba(0,0,0,.06);
}

#menuCategoriasMobile {
  border-radius: 2px;
  background: rgba(255,255,255,.96);
  box-shadow:
    0 14px 30px rgba(0,0,0,.08);
}

#menuCategoriasMobile .categoria-btn {
  border-radius: 1px;
  color: #5f5752;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: uppercase;
}

#menuCategoriasMobile .categoria-btn.active {
  background: #251d19;
  color: #fff;
}

#promosContainer {
  width: min(920px, calc(100% - 28px));
  margin: 6px auto 24px;
  gap: 14px;
}

.promo-card {
  grid-template-columns: 200px 1fr;
  min-height: 200px;
  border: 1px solid rgba(37,29,25,.10);
  border-radius: 3px;
  background: #fff;
  box-shadow: none;
}

.promo-card::before {
  width: 3px;
  background: #8c2f55;
}

.promo-card::after {
  display: none;
}

.promo-card:hover {
  border-color: rgba(37,29,25,.18);
  box-shadow:
    0 14px 30px rgba(0,0,0,.08);
}

.promo-media {
  width: 200px;
  height: 200px;
  background: #f5f5f3;
}

.promo-media::after {
  background:
    linear-gradient(180deg, transparent 68%, rgba(0,0,0,.10));
}

.promo-card:hover .promo-img {
  transform: scale(1.025);
}

.promo-info {
  gap: 8px;
  padding: 21px 25px;
}

.promo-badge {
  padding: 5px 8px;
  border-radius: 1px;
  background: #251d19;
  color: #fff;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0;
  box-shadow: none;
}

.promo-info h2 {
  color: #251d19;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(23px, 2.4vw, 31px);
  font-weight: 400;
  line-height: 1.1;
}

.promo-info p {
  color: #817973;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.48;
}

.promo-detalle {
  padding: 7px 0 7px 10px;
  border: none;
  border-left: 2px solid #e9ded8;
  border-radius: 0;
  background: transparent;
  color: #6f6661;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 11px;
  font-weight: 500;
}

.promo-descuento {
  padding: 5px 8px;
  border: 1px solid #eadde1;
  border-radius: 1px;
  background: #fbf5f7;
  color: #8c2f55;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 12px;
  font-weight: 700;
}

.promo-precio-antes {
  color: #aaa19c;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 11px;
}

.promo-precio-ahora {
  color: #8c2f55;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(28px, 3.2vw, 36px);
  font-weight: 400;
  text-shadow: none;
}

.promo-countdown {
  gap: 4px;
}

.promo-countdown span {
  min-width: 43px;
  padding: 5px 6px;
  border: 1px solid #ece8e5;
  border-radius: 2px;
  background: #fcfbfa;
  box-shadow: none;
}

.promo-countdown strong {
  color: #352e2a;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 15px;
  font-weight: 400;
}

.promo-countdown small,
.promo-fecha {
  color: #918781;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 9px;
  font-weight: 500;
}

.promos-categoria-header {
  margin-bottom: 18px;
  text-align: left;
}

.promos-categoria-header span {
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: #8c2f55;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0;
}

.promos-categoria-header h2 {
  color: #251d19;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(27px, 4vw, 40px);
  font-weight: 400;
}

@media (max-width: 768px) {

  #buscador {
    width: calc(100% - 24px);
    margin: 18px auto;
    padding: 14px 15px;
    font-size: 14px;
  }

  .promo-card {
    grid-template-columns: 140px 1fr;
    min-height: 140px;
    border-radius: 2px;
  }

  .promo-media,
  .promo-img {
    width: 140px;
    height: 140px;
  }

  .promo-info {
    gap: 6px;
    padding: 13px 12px 13px 14px;
  }

  .promo-info h2 {
    font-size: 20px;
  }

  .promo-info p,
  .promo-detalle {
    font-size: 11px;
  }

  .promo-countdown span {
    min-width: 38px;
    padding: 4px;
  }
}

/* =========================
   ADMIN PREMIUM FORMS
========================= */

.admin-container {
  background:
    linear-gradient(135deg, #fffdfa, #fff7f2);
  border: 1px solid rgba(199,154,115,.14);
}

.card-admin {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(199,154,115,.14);
  background: rgba(255,255,255,.94);
  box-shadow:
    0 14px 35px rgba(74,47,28,.08);
}

.card-admin::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background:
    linear-gradient(90deg, #c79a73, #f2c8d4, #f4e5dc);
}

.card-admin h3 {
  color: #4b3324;
  font-size: 24px;
  letter-spacing: 0;
  padding-right: 44px;
}

.btn-cerrar-seccion {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border: 1px solid #eadfd8;
  border-radius: 50%;
  background: #fff8f2;
  color: #7a523a;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 8px 18px rgba(74,47,28,.08);
  transition:
    transform .18s ease,
    background .18s ease,
    color .18s ease;
  z-index: 3;
}

.btn-cerrar-seccion:hover {
  transform: scale(1.06);
  background: #fff0f3;
  color: #9a2948;
}

.card-admin label,
.titulo-colores {
  display: block;
  margin: 12px 0 8px;
  color: #6b5140;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.card-admin input,
.card-admin select,
.card-admin textarea,
.form-grid-admin input,
.form-grid-admin select {
  width: 100%;
  min-height: 48px;
  padding: 13px 15px;
  border: 1px solid #eadfd8;
  border-radius: 14px;
  background: #fffdfb;
  color: #3c2c23;
  font-size: 15px;
  outline: none;
  transition:
    border-color .2s ease,
    box-shadow .2s ease,
    background .2s ease;
}

.card-admin textarea {
  min-height: 112px;
  line-height: 1.45;
}

.card-admin input:focus,
.card-admin select:focus,
.card-admin textarea:focus {
  border-color: #c79a73;
  background: white;
  box-shadow:
    0 0 0 4px rgba(199,154,115,.14);
}

.card-admin input[type="file"] {
  min-height: auto;
  padding: 12px;
  background: #fff8f2;
  cursor: pointer;
}

.form-grid-admin {
  grid-template-columns: repeat(4, minmax(140px, 1fr));
  gap: 12px;
}

#seccionVenta,
#seccionStock,
#seccionPromo {
  max-width: 760px;
}

#seccionVenta input,
#seccionVenta select,
#seccionStock input,
#seccionStock select,
#seccionPromo input,
#seccionPromo select,
#seccionPromo textarea {
  margin-bottom: 12px;
}

#promoComboCampos,
#promoDescuentoCampos {
  padding: 14px;
  margin: 12px 0;
  border: 1px solid #f0e4dc;
  border-radius: 16px;
  background: #fffaf6;
}

.btn-guardar,
.btn-fotos,
.btn-color {
  border-radius: 14px;
  box-shadow:
    0 8px 18px rgba(199,154,115,.16);
}

.btn-guardar {
  padding: 14px 18px;
  margin-top: 8px;
  background:
    linear-gradient(135deg, #c79a73, #d8b08c);
}

.btn-guardar:hover {
  background:
    linear-gradient(135deg, #b88960, #c79a73);
}

.color-row {
  padding: 10px;
  border: 1px solid #f0e4dc;
  border-radius: 16px;
  background: #fffaf6;
}

/* =========================
   ADMIN COLOR CHIPS
========================= */

.tabla-colores-lista {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  min-width: 160px;
}

.tabla-color-chip {
  display: inline-flex;
  align-items: center;
  overflow: hidden;
  border: 1px solid #eadfd8;
  border-radius: 999px;
  background: #fff8f2;
  color: #5c4636;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.tabla-color-nombre {
  padding: 5px 8px 5px 10px;
}

.tabla-color-stock {
  min-width: 26px;
  padding: 5px 8px;
  background: #f2c8d4;
  color: #5a2b3d;
  text-align: center;
}

.tabla-sin-colores {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  background: #f5f1ee;
  color: #8a7b71;
  font-size: 12px;
  font-weight: 700;
}

/* =========================
   ADMIN PROMOS LIST
========================= */

.promos-admin-panel {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid #f0e4dc;
}

.promos-admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.promos-admin-header h4 {
  margin: 0;
  color: #4b3324;
  font-size: 18px;
}

.promos-admin-header span {
  padding: 6px 10px;
  border-radius: 999px;
  background: #f4e5dc;
  color: #7a523a;
  font-size: 12px;
  font-weight: 800;
}

#promosAdminLista {
  display: grid;
  gap: 10px;
}

.promos-admin-vacio {
  padding: 18px;
  border: 1px dashed #e5d5ca;
  border-radius: 16px;
  background: #fffaf6;
  color: #8a7b71;
  text-align: center;
  font-weight: 700;
}

.promo-admin-item {
  display: grid;
  grid-template-columns: 82px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border: 1px solid #f0e4dc;
  border-radius: 16px;
  background:
    linear-gradient(135deg, #fff, #fff8f2);
  box-shadow:
    0 8px 18px rgba(74,47,28,.06);
}

.promo-admin-item.is-paused {
  opacity: .68;
}

.promo-admin-img {
  width: 82px;
  height: 82px;
  overflow: hidden;
  border-radius: 13px;
  background: #f4e5dc;
}

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

.promo-admin-img span {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  color: #8a6752;
  font-size: 11px;
  font-weight: 900;
}

.promo-admin-info {
  min-width: 0;
}

.promo-admin-top,
.promo-admin-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
}

.promo-admin-estado,
.promo-admin-descuento {
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.promo-admin-estado {
  background: #e7f7ec;
  color: #24743c;
}

.promo-admin-item.is-paused .promo-admin-estado {
  background: #f5f1ee;
  color: #8a7b71;
}

.promo-admin-descuento {
  background: #f8dfe7;
  color: #8c2f55;
}

.promo-admin-info h5 {
  margin: 6px 0 3px;
  color: #352009;
  font-size: 15px;
}

.promo-admin-info p {
  margin: 0;
  color: #6e5b4c;
  font-size: 12px;
  line-height: 1.35;
}

.promo-admin-meta {
  margin-top: 7px;
}

.promo-admin-meta strong {
  color: #8c2f55;
  font-size: 15px;
}

.promo-admin-meta span {
  color: #8a7b71;
  font-size: 11px;
  font-weight: 700;
}

.promo-admin-actions {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.btn-promo-admin {
  border: none;
  border-radius: 11px;
  padding: 9px 12px;
  background: #f4e5dc;
  color: #5b4636;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  transition:
    transform .18s ease,
    background .18s ease;
}

.btn-promo-admin:hover {
  transform: translateY(-1px);
  background: #ead6c8;
}

.btn-promo-admin.danger {
  background: #fff0f3;
  color: #9a2948;
}

.btn-promo-admin.danger:hover {
  background: #f8dfe7;
}

.btn-promo-admin:disabled {
  opacity: .45;
  cursor: not-allowed;
}

/* =========================
   VENTA PREVIEW
========================= */

#ventaProductoPreview {
  margin-top: 12px;
}

.venta-preview {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 14px;
  align-items: center;
  padding: 12px;
  border: 1px solid #f0e4dc;
  border-radius: 16px;
  background:
    linear-gradient(135deg, #fff, #fff8f2);
  box-shadow:
    0 8px 18px rgba(74,47,28,.06);
}

.venta-preview-error {
  display: block;
  color: #9a2948;
  font-weight: 800;
  text-align: center;
  background: #fff0f3;
}

.venta-preview-img {
  width: 92px;
  height: 92px;
  overflow: hidden;
  border-radius: 14px;
  background: #f4e5dc;
}

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

.venta-preview-img span {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  color: #8a6752;
  font-size: 11px;
  font-weight: 800;
  text-align: center;
}

.venta-preview-info {
  min-width: 0;
}

.venta-preview-info small {
  color: #9b7d6b;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.venta-preview-info h4 {
  margin: 4px 0;
  color: #352009;
  font-size: 18px;
}

.venta-preview-info p {
  margin: 0 0 8px;
  color: #6e5b4c;
  font-size: 12px;
  line-height: 1.35;
}

.venta-preview-datos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.venta-preview-datos strong {
  color: #8c2f55;
  font-size: 20px;
}

.venta-preview-datos span {
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.venta-preview-datos .ok {
  background: #e7f7ec;
  color: #24743c;
}

.venta-preview-datos .no {
  background: #fff0f3;
  color: #9a2948;
}

.venta-preview-colores {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.venta-preview-colores span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 8px;
  border-radius: 999px;
  background: #f4e5dc;
  color: #5b4636;
  font-size: 12px;
  font-weight: 700;
}

.venta-preview-colores strong {
  min-width: 20px;
  padding: 2px 6px;
  border-radius: 999px;
  background: white;
  color: #8c2f55;
  text-align: center;
}

@media (max-width: 900px) {

  .form-grid-admin {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {

  .form-grid-admin {
    grid-template-columns: 1fr;
  }

  .card-admin {
    padding: 20px;
  }

  #seccionVenta,
  #seccionStock,
  #seccionPromo {
    max-width: none;
  }

  .promo-admin-item {
    grid-template-columns: 70px 1fr;
  }

  .promo-admin-img {
    width: 70px;
    height: 70px;
  }

  .promo-admin-actions {
    grid-column: 1 / -1;
    flex-direction: row;
  }

  .btn-promo-admin {
    flex: 1;
  }

  .venta-preview {
    grid-template-columns: 78px 1fr;
  }

  .venta-preview-img {
    width: 78px;
    height: 78px;
  }
}

/* =========================
   PROMOS EN CATEGORIA
========================= */

.promos-categoria {
  grid-column: 1 / -1;
  width: min(980px, 100%);
  margin: 0 auto 24px;
}

.promos-categoria-header {
  margin: 6px 0 14px;
  text-align: center;
}

.promos-categoria-header span {
  display: inline-block;
  margin-bottom: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: #f4e5dc;
  color: #7a523a;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.promos-categoria-header h2 {
  margin: 0;
  color: #352009;
  font-size: clamp(26px, 4vw, 42px);
  line-height: 1.1;
}

.promos-categoria-grid {
  display: grid;
  gap: 14px;
}

.promos-categoria .promo-card {
  width: 100%;
}

/* =========================
   MENU MOBILE ANIMADO
========================= */

#btnCategorias {
  position: relative;
  overflow: hidden;
  transition:
    transform .22s ease,
    box-shadow .22s ease,
    background .22s ease;
}

#btnCategorias::after {
  content: "⌄";
  display: inline-block;
  margin-left: 8px;
  transition: transform .28s ease;
}

#btnCategorias.open {
  background: #fff8f2;
  box-shadow:
    0 12px 28px rgba(80,50,28,.12);
}

#btnCategorias.open::after {
  transform: rotate(180deg);
}

#menuCategoriasMobile {
  transform-origin: top center;
  transition:
    max-height .38s ease,
    opacity .24s ease,
    transform .32s cubic-bezier(.2,.9,.25,1),
    padding .25s ease,
    box-shadow .25s ease;
}

#menuCategoriasMobile.open .categoria-btn {
  animation: categoriaItemIn .28s ease both;
}

#menuCategoriasMobile.open .categoria-btn:nth-child(1) { animation-delay: .02s; }
#menuCategoriasMobile.open .categoria-btn:nth-child(2) { animation-delay: .04s; }
#menuCategoriasMobile.open .categoria-btn:nth-child(3) { animation-delay: .06s; }
#menuCategoriasMobile.open .categoria-btn:nth-child(4) { animation-delay: .08s; }
#menuCategoriasMobile.open .categoria-btn:nth-child(5) { animation-delay: .10s; }
#menuCategoriasMobile.open .categoria-btn:nth-child(6) { animation-delay: .12s; }
#menuCategoriasMobile.open .categoria-btn:nth-child(7) { animation-delay: .14s; }
#menuCategoriasMobile.open .categoria-btn:nth-child(8) { animation-delay: .16s; }
#menuCategoriasMobile.open .categoria-btn:nth-child(9) { animation-delay: .18s; }
#menuCategoriasMobile.open .categoria-btn:nth-child(10) { animation-delay: .20s; }

@keyframes categoriaItemIn {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }

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

@media (max-width: 768px) {

  #menuCategoriasMobile {
    border: 1px solid rgba(199,154,115,.16);
    background:
      linear-gradient(135deg, #fffaf6, #f9f4ef);
  }

  #menuCategoriasMobile .categoria-btn {
    border-radius: 14px;
  }

  #menuCategoriasMobile .categoria-btn:hover {
    background: #fff;
  }
}

/* Flecha limpia del menu mobile */
#btnCategorias {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 0;
}

#btnCategorias::before {
  content: "Categorías";
  font-size: 16px;
  font-weight: 700;
}

#btnCategorias::after {
  content: "";
  display: block;
  width: 9px;
  height: 9px;
  margin-right: 2px;
  border-right: 2px solid #7a523a;
  border-bottom: 2px solid #7a523a;
  transform: rotate(45deg);
  transition: transform .28s ease;
}

#btnCategorias.open::after {
  transform: rotate(225deg);
}

/* =========================
   PRODUCT CARDS MINIMAL
========================= */

#catalogo {
  gap: 26px 18px;
}

.producto {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(30,30,30,.08);
  border-radius: 3px;
  background: #fff;
  box-shadow: none;
  font-family: Arial, Helvetica, sans-serif;
  transition:
    transform .24s ease,
    box-shadow .24s ease,
    border-color .24s ease;
}

.producto::before {
  display: none;
}

.producto:hover {
  transform: translateY(-3px);
  border-color: rgba(30,30,30,.14);
  box-shadow:
    0 12px 26px rgba(0,0,0,.08);
}

.producto .carrusel,
.producto .imagen-unica {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  border: none;
  border-radius: 0;
  background: #f5f5f3;
}

.producto .carrusel-track {
  height: 100%;
}

.producto .carrusel img {
  width: 100%;
  height: 100%;
  padding: 0;
  object-fit: cover;
  transition:
    transform .38s ease,
    filter .38s ease;
}

.producto:hover .carrusel img {
  transform: scale(1.025);
  filter: saturate(1.02);
}

.producto .info {
  position: relative;
  z-index: 2;
  padding: 16px 14px 17px;
  gap: 8px;
  background: #fff;
}

.producto .codigo {
  width: fit-content;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: #a29b96;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: uppercase;
}

.producto h3 {
  min-height: 42px;
  color: #251d19;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.16;
}

.producto .descripcion {
  min-height: 35px;
  color: #817973;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.48;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.producto .precio {
  margin-top: 5px;
  color: #251d19;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 21px;
  font-weight: 400;
  line-height: 1;
}

.producto .stock {
  width: fit-content;
  padding: 0;
  border-radius: 0;
  background: transparent;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
}

.producto .stock.ok {
  background: transparent;
  color: #41734d;
}

.producto .stock.no {
  background: transparent;
  color: #a24747;
}

.producto .btn-consultar-producto {
  width: 100%;
  min-height: 36px;
  margin-top: auto;
  padding: 9px 10px;
  border: 1px solid rgba(145,80,77,.16);
  border-radius: 2px;
  background: #fff8f5;
  color: #8f4c55;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    background .2s ease,
    border-color .2s ease,
    color .2s ease,
    transform .2s ease;
}

.producto .btn-consultar-producto:hover {
  border-color: rgba(145,80,77,.30);
  background: #f9e6e2;
  color: #7d3943;
  transform: translateY(-1px);
}

.producto .colores-disponibles {
  margin-top: 3px;
}

.producto .colores-disponibles small {
  margin-bottom: 6px;
  color: #9b938e;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: uppercase;
}

.producto .colores-lista {
  gap: 5px;
}

.producto .color-item {
  padding: 4px 6px;
  border: 1px solid #e9e5e2;
  border-radius: 2px;
  background: #fdfcfb;
  color: #766d67;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 10px;
  font-weight: 400;
  box-shadow: none;
}

.producto .dots {
  position: relative;
  left: auto;
  right: auto;
  top: auto;
  z-index: 4;
  display: flex;
  justify-content: center;
  gap: 5px;
  height: 0;
  transform: translateY(-16px);
}

.producto .dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255,255,255,.72);
  box-shadow:
    0 0 0 1px rgba(0,0,0,.12);
}

.producto .dot.active {
  background: #171717;
}

@media (max-width: 768px) {

  #catalogo {
    gap: 16px 10px;
    padding: 10px;
  }

  .producto {
    border-radius: 2px;
  }

  .producto .info {
    padding: 12px 10px 13px;
    gap: 6px;
  }

  .producto h3 {
    min-height: 38px;
    font-size: 16px;
  }

  .producto .descripcion {
    min-height: 32px;
    font-size: 11px;
  }

  .producto .precio {
    font-size: 19px;
  }

  .producto .codigo,
  .producto .stock,
  .producto .color-item {
    font-size: 10px;
  }

  .producto .btn-consultar-producto {
    min-height: 34px;
    padding: 8px 7px;
    font-size: 10px;
  }
}

/* =========================
   STORE EDITORIAL FINAL
========================= */

.promos-categoria-header {
  margin: 6px 0 18px;
  text-align: left;
}

.promos-categoria-header span {
  display: inline-block;
  margin-bottom: 7px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: #8c2f55;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: uppercase;
}

.promos-categoria-header h2 {
  margin: 0;
  color: #251d19;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(27px, 4vw, 40px);
  font-weight: 400;
  line-height: 1.1;
}

#btnCategorias {
  border: 1px solid rgba(37,29,25,.10);
  border-radius: 2px;
  background: rgba(255,255,255,.82);
  color: #352e2a;
  box-shadow: none;
}

#btnCategorias::before {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0;
}

#btnCategorias::after {
  border-color: #352e2a;
}

#btnCategorias.open {
  background: #fff;
  box-shadow:
    0 8px 20px rgba(0,0,0,.06);
}

#menuCategoriasMobile {
  border-radius: 2px;
  background: rgba(255,255,255,.96);
  box-shadow:
    0 14px 30px rgba(0,0,0,.08);
}

#menuCategoriasMobile .categoria-btn {
  border-radius: 1px;
  color: #5f5752;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: uppercase;
}

#menuCategoriasMobile .categoria-btn.active {
  background: #251d19;
  color: #fff;
}

/* Promo campaign cards: keep the image present without crowding mobile. */
.promo-media {
  align-self: stretch;
  height: 100%;
  min-height: 200px;
}

.promo-media .promo-img {
  height: 100%;
}

@media (max-width: 768px) {

  .promo-card {
    grid-template-columns: 156px 1fr;
    min-height: 156px;
  }

  .promo-media,
  .promo-media .promo-img {
    width: 156px;
    height: 156px;
    min-height: 156px;
  }

  .promo-info {
    position: relative;
    padding: 13px 12px 13px 14px;
  }

  .promo-info p {
    display: none;
  }

  .promo-detalle {
    display: -webkit-box;
    max-height: 39px;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .promo-descuento {
    position: absolute;
    top: 10px;
    left: -146px;
    z-index: 3;
    border-color: rgba(255,255,255,.72);
    background: rgba(255,255,255,.90);
    box-shadow:
      0 6px 14px rgba(0,0,0,.08);
  }

  .promo-fecha {
    display: none;
  }
}

/* =========================
   BRAND HERO
========================= */

.hero {
  position: relative;
  display: block;
  padding: 15px 20px 16px;
  background: #f8e5d7;
  border-bottom: 1px solid rgba(145,80,77,.12);
}

.hero-content {
  width: min(1180px, 100%);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 13px;
}

.hero-logo {
  display: flex;
  justify-content: center;
  width: 100%;
}

.hero-img {
  width: min(390px, 54vw);
  max-width: 100%;
  border: 1px solid rgba(145,80,77,.08);
  border-radius: 2px;
  box-shadow:
    0 8px 20px rgba(117,70,59,.06);
}

.hero-overlay {
  top: 14px;
  right: 14px;
}

.btn-admin {
  padding: 8px 12px;
  border: 1px solid rgba(145,80,77,.14);
  border-radius: 2px;
  background: rgba(255,255,255,.58);
  color: #7d5550;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  box-shadow: none;
}

.btn-admin:hover {
  border-color: rgba(145,80,77,.28);
  background: rgba(255,255,255,.84);
}

.categorias-barra {
  width: auto;
  max-width: 100%;
  flex: none;
  justify-content: center;
  gap: 3px;
  padding: 4px 8px;
  border-top: 1px solid rgba(145,80,77,.16);
  border-right: none;
  border-bottom: 1px solid rgba(145,80,77,.16);
  border-left: none;
  border-radius: 0;
  background: rgba(255,255,255,.18);
  box-shadow: none;
  backdrop-filter: blur(10px);
}

.categorias-barra .categoria-btn {
  position: relative;
  padding: 9px 11px;
  border-radius: 0;
  background: transparent;
  color: #80615e;
  font-size: 10px;
  font-weight: 600;
}

.categorias-barra .categoria-btn:hover {
  background: transparent;
  color: #a24f5b;
}

.categorias-barra .categoria-btn.active {
  background: transparent;
  color: #a24f5b;
  box-shadow: none;
}

.categorias-barra .categoria-btn.active::after {
  content: "";
  position: absolute;
  right: 11px;
  bottom: 3px;
  left: 11px;
  height: 1px;
  background: #c36f78;
}

#btnCategorias {
  padding: 13px 15px;
  border-color: rgba(145,80,77,.16);
  border-radius: 2px;
  background: rgba(255,255,255,.54);
  color: #755a56;
  box-shadow: none;
}

#btnCategorias::after {
  border-color: #a45f62;
}

#menuCategoriasMobile {
  gap: 2px;
  border: 1px solid rgba(145,80,77,.14);
  border-radius: 2px;
  background: rgba(255,252,249,.98);
  box-shadow:
    0 14px 26px rgba(117,70,59,.10);
}

#menuCategoriasMobile .categoria-btn {
  border-radius: 1px;
  color: #80615e;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
}

#menuCategoriasMobile .categoria-btn:hover {
  background: #fdf2ed;
}

#menuCategoriasMobile .categoria-btn.active {
  border-left: 2px solid #c36f78;
  background: #f9e6e2;
  color: #a24f5b;
}

#buscador:focus {
  border-color: #b96068;
  box-shadow:
    0 0 0 3px rgba(185,96,104,.10);
}

@media (min-width: 1101px) {

  .categorias-barra {
    display: flex;
  }

  .categorias-mobile {
    display: none;
  }
}

@media (max-width: 1100px) {

  .hero {
    padding: 14px 16px 15px;
  }

  .hero-img {
    width: min(360px, 58vw);
  }

  .categorias-barra {
    display: none;
  }

  .categorias-mobile {
    display: block;
    position: relative;
    width: min(420px, 100%);
  }

  #menuCategoriasMobile.open {
    max-height: 600px;
    padding: 14px;
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
  }
}

@media (max-width: 768px) {

  .hero {
    padding: 12px 12px 13px;
  }

  .hero-content {
    gap: 13px;
  }

  .hero-img {
    width: min(290px, 76vw);
  }

  .hero-overlay {
    position: absolute;
    top: 7px;
    right: 7px;
    width: auto;
    margin: 0;
  }

  .btn-admin {
    padding: 5px 7px;
    font-size: 8px;
    background: rgba(255,255,255,.30);
  }
}

/* =========================
   QUIET UTILITIES
========================= */

html {
  scrollbar-width: thin;
  scrollbar-color: #d59a9f #f9eee8;
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: #f9eee8;
}

::-webkit-scrollbar-thumb {
  border: 3px solid #f9eee8;
  border-radius: 999px;
  background: #d59a9f;
}

::-webkit-scrollbar-thumb:hover {
  background: #b96068;
}

.hero-overlay {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 20;
}

.btn-admin {
  padding: 6px 9px;
  border-color: rgba(145,80,77,.10);
  background: rgba(255,255,255,.30);
  color: rgba(125,85,80,.72);
  font-size: 9px;
  opacity: .72;
  box-shadow: none;
}

.btn-admin:hover,
.btn-admin:focus-visible {
  border-color: rgba(145,80,77,.22);
  background: rgba(255,255,255,.72);
  color: #7d5550;
  opacity: 1;
}

#btnTop {
  right: 14px;
  bottom: 154px;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(145,80,77,.16);
  border-radius: 50%;
  background: rgba(255,252,249,.88);
  color: #a45f62;
  font-size: 0;
  box-shadow:
    0 8px 20px rgba(117,70,59,.10);
  backdrop-filter: blur(8px);
}

#btnTop::before {
  content: "";
  display: block;
  width: 9px;
  height: 9px;
  margin: 5px auto 0;
  border-top: 1.5px solid currentColor;
  border-left: 1.5px solid currentColor;
  transform: rotate(45deg);
}

#btnTop:hover {
  border-color: rgba(145,80,77,.28);
  background: #fff;
  color: #8f4c55;
  transform: translateY(-2px);
}

#btnTop.show:hover {
  transform: translateY(-2px);
}

@media (max-width: 768px) {

  .hero-overlay {
    top: 7px;
    right: 7px;
    width: auto;
    margin: 0;
  }

  .btn-admin {
    padding: 5px 7px;
    font-size: 8px;
    opacity: .62;
  }

  #btnTop {
    right: 12px;
    bottom: 151px;
    width: 40px;
    height: 40px;
  }
}

/* Promo images fill their visual column on small screens. */
@media (max-width: 900px) {

  .promo-card {
    align-items: stretch;
  }

  .promo-media {
    position: relative;
    align-self: stretch;
    overflow: hidden;
    background: #fff9f5;
    height: auto;
    min-height: 100%;
  }

  .promo-media[style*="--promo-imagen"]::before {
    content: "";
    position: absolute;
    inset: -10px;
    z-index: 0;
    background-image: var(--promo-imagen);
    background-size: cover;
    background-position: center;
    filter: blur(14px);
    opacity: .24;
    transform: scale(1.08);
  }

  .promo-media::after {
    display: block;
    z-index: 1;
    background: rgba(255,249,245,.52);
  }

  .promo-media .promo-img,
  .promo-img {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    min-height: 100%;
    padding: 0;
    object-fit: cover;
    object-position: center;
    background: transparent;
    transform: none;
  }

  .promo-card:hover .promo-img {
    transform: none;
  }
}

@media (max-width: 768px) {

  .promo-card {
    grid-template-columns:
      clamp(132px, 38vw, 150px)
      1fr;
  }

  .promo-media,
  .promo-media .promo-img {
    width: 100%;
    height: auto;
    min-height: 100%;
  }
}

/* Final priority for new shop interactions. */
.producto-acciones {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  margin-top: auto;
}

.producto .btn-detalle-producto,
.producto .btn-consultar-producto {
  width: 100%;
  min-height: 36px;
  margin-top: 0;
  border-radius: 2px;
  font-size: 10px;
}

.producto .btn-detalle-producto {
  border: 1px solid rgba(37,29,25,.12);
  background: #fff;
  color: #6f6661;
}

@media (max-width: 768px) {

  #promosContainer .promo-card:nth-of-type(n+2) {
    display: none;
  }

  .promo-ver-todas {
    display: block;
  }

  .producto-acciones {
    grid-template-columns: 1fr 1fr;
    gap: 6px;
  }
}

/* Promo carousel and matching footer polish. */
#promosContainer {
  display: block;
  width: min(920px, calc(100% - 28px));
  margin: 8px auto 28px;
}

.promos-carousel {
  position: relative;
  width: 100%;
}

.promos-carousel-viewport {
  overflow: hidden;
  border-radius: 3px;
}

.promos-carousel-track {
  display: flex;
  transition:
    transform .58s cubic-bezier(.22,.75,.22,1);
  will-change: transform;
}

.promo-slide {
  flex: 0 0 100%;
  min-width: 100%;
  padding: 0 1px 4px;
}

.promo-slide .promo-card {
  width: 100%;
  height: 100%;
}

.promo-carrusel-control {
  position: absolute;
  top: 50%;
  z-index: 4;
  display: grid;
  place-items: center;
  width: 34px;
  height: 42px;
  border: 1px solid rgba(145,80,77,.18);
  border-radius: 2px;
  background: rgba(255,255,255,.76);
  color: #8c5457;
  font-size: 27px;
  line-height: 1;
  cursor: pointer;
  transform: translateY(-50%);
  backdrop-filter: blur(10px);
  transition:
    background .2s ease,
    color .2s ease,
    transform .2s ease;
}

.promo-carrusel-control:hover,
.promo-carrusel-control:focus-visible {
  background: #fff;
  color: #a24f5b;
  transform:
    translateY(-50%)
    scale(1.03);
}

.promo-carrusel-prev {
  left: 10px;
}

.promo-carrusel-next {
  right: 10px;
}

.promo-carrusel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
}

.promo-carrusel-dot {
  width: 22px;
  height: 3px;
  border: 0;
  border-radius: 999px;
  background: rgba(145,80,77,.20);
  cursor: pointer;
  transition:
    width .22s ease,
    background .22s ease;
}

.promo-carrusel-dot.active {
  width: 34px;
  background: #a24f5b;
}

.promo-ver-todas {
  display: none !important;
}

.site-footer {
  width: 100%;
  margin: 50px 0 0;
  padding:
    32px
    max(18px, calc((100% - 1180px) / 2))
    96px;
  border-top: 1px solid rgba(145,80,77,.12);
  background: #f8e5d7;
  color: #755a56;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.45);
}

.footer-brand {
  max-width: 580px;
  margin-bottom: 22px;
}

.footer-brand strong {
  color: #7d5550;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 28px;
  font-weight: 400;
}

.footer-brand p,
.footer-confianza p {
  color: rgba(92,67,63,.72);
}

.footer-confianza {
  gap: 12px;
  margin-bottom: 20px;
}

.footer-confianza > div {
  padding: 15px 16px;
  border: 1px solid rgba(145,80,77,.12);
  border-radius: 2px;
  background: rgba(255,255,255,.36);
}

.footer-confianza span {
  color: #a24f5b;
  letter-spacing: 0;
}

.footer-contacto button,
.footer-contacto a {
  border-radius: 2px;
  border-color: rgba(145,80,77,.16);
  background: rgba(255,255,255,.48);
  color: #7d5550;
}

.footer-contacto button:hover,
.footer-contacto a:hover {
  background: #fff;
  color: #a24f5b;
}

@media (max-width: 768px) {

  #promosContainer {
    width: calc(100% - 24px);
    margin: 6px auto 22px;
  }

  #promosContainer .promo-card:nth-of-type(n+2) {
    display: grid;
  }

  .promo-slide {
    padding-bottom: 2px;
  }

  .promo-carrusel-control {
    width: 30px;
    height: 38px;
    font-size: 24px;
  }

  .promo-carrusel-prev {
    left: 6px;
  }

  .promo-carrusel-next {
    right: 6px;
  }

  .promo-carrusel-dots {
    margin-top: 10px;
  }

  .site-footer {
    margin-top: 36px;
    padding:
      28px
      18px
      92px;
  }

  .footer-confianza {
    grid-template-columns: 1fr;
  }
}

/* =========================
   ADMIN FINAL POLISH
========================= */

#panel {
  min-height: 100vh;
  padding: 24px 14px 42px;
  background:
    linear-gradient(180deg, #f8e5d7 0, #fffaf7 235px, #fff 100%);
}

.admin-container {
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 24px;
  border: 1px solid rgba(145,80,77,.12);
  border-radius: 3px;
  background: rgba(255,255,255,.82);
  box-shadow:
    0 18px 42px rgba(117,70,59,.08);
}

.admin-container h2 {
  margin: 4px 0 22px;
  color: #7d5550;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 400;
  letter-spacing: 0;
}

.menu-admin {
  display: grid;
  grid-template-columns: repeat(5, minmax(150px, 1fr));
  gap: 10px;
  margin-bottom: 22px;
}

.menu-admin .menu-btn {
  width: 100%;
  min-height: 52px;
  padding: 13px 14px;
  border: 1px solid rgba(145,80,77,.14);
  border-radius: 2px;
  background: rgba(255,255,255,.72);
  color: #755a56;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  text-align: center;
  box-shadow: none;
  transition:
    background .2s ease,
    border-color .2s ease,
    color .2s ease,
    transform .2s ease;
}

.menu-admin .menu-btn:hover,
.menu-admin .menu-btn:focus-visible {
  border-color: rgba(145,80,77,.28);
  background: #fff;
  color: #a24f5b;
  transform: translateY(-1px);
}

.menu-admin .menu-btn.secondary {
  background: rgba(248,229,215,.44);
  color: rgba(117,90,86,.78);
}

.card-admin {
  position: relative;
  margin: 0 0 22px;
  padding: 26px;
  border: 1px solid rgba(145,80,77,.12);
  border-radius: 3px;
  background: #fff;
  box-shadow:
    0 16px 32px rgba(117,70,59,.08);
}

.card-admin h3 {
  margin: 0 44px 20px 0;
  color: #7d5550;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(23px, 3vw, 31px);
  font-weight: 400;
  letter-spacing: 0;
}

.card-admin label,
.titulo-colores {
  display: block;
  margin: 14px 0 7px;
  color: #8f6a64;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.card-admin input,
.card-admin select,
.card-admin textarea,
.login-card input,
.color-row input,
.stock-row input,
#stockProducto input {
  width: 100%;
  min-height: 46px;
  padding: 12px 13px;
  border: 1px solid rgba(145,80,77,.14);
  border-radius: 2px;
  background: #fffdfb;
  color: #342924;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  line-height: 1.35;
  outline: none;
  box-shadow: none;
  transition:
    border-color .18s ease,
    background .18s ease,
    box-shadow .18s ease;
}

.card-admin textarea {
  min-height: 118px;
  resize: vertical;
}

.card-admin select {
  appearance: none;
  padding-right: 36px;
  background-image:
    linear-gradient(45deg, transparent 50%, #a24f5b 50%),
    linear-gradient(135deg, #a24f5b 50%, transparent 50%);
  background-position:
    calc(100% - 18px) 19px,
    calc(100% - 12px) 19px;
  background-size:
    6px 6px,
    6px 6px;
  background-repeat: no-repeat;
}

.card-admin input::placeholder,
.card-admin textarea::placeholder {
  color: rgba(117,90,86,.58);
}

.card-admin input:focus,
.card-admin select:focus,
.card-admin textarea:focus,
.login-card input:focus,
.color-row input:focus,
.stock-row input:focus,
#stockProducto input:focus {
  border-color: rgba(162,79,91,.52);
  background: #fff;
  box-shadow:
    0 0 0 4px rgba(162,79,91,.10);
}

.card-admin input[readonly] {
  background: #f7f1ed;
  color: #8a7b71;
}

.card-admin input[type="file"] {
  display: block;
  min-height: 50px;
  padding: 10px;
  border-style: dashed;
  background: #fff8f4;
  cursor: pointer;
}

.card-admin input[type="file"]::file-selector-button {
  margin-right: 12px;
  padding: 9px 13px;
  border: 1px solid rgba(145,80,77,.14);
  border-radius: 2px;
  background: #fff;
  color: #8f4c55;
  font-weight: 700;
  cursor: pointer;
}

.form-grid-admin {
  display: grid;
  grid-template-columns: repeat(4, minmax(145px, 1fr));
  gap: 12px;
}

.admin-field {
  display: grid;
  gap: 7px;
  min-width: 0;
  margin: 0;
}

.admin-field span {
  color: #8f4c55;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .04em;
  line-height: 1.2;
  text-transform: uppercase;
}

.admin-field-full {
  margin-top: 16px;
}

.admin-field input,
.admin-field select,
.admin-field textarea {
  margin-bottom: 0;
}

.campo-completo,
#promoComboCampos,
#promoDescuentoCampos,
.promos-admin-panel,
#stockProducto {
  margin-top: 16px;
  padding: 16px;
  border: 1px solid rgba(145,80,77,.12);
  border-radius: 3px;
  background: #fffaf7;
}

#promoComboCampos,
#promoDescuentoCampos {
  display: grid;
  gap: 12px;
}

#promoComboCampos input,
#promoComboCampos textarea,
#promoDescuentoCampos input {
  margin-bottom: 0;
}

.btn,
.btn-login,
.btn-guardar,
.btn-fotos,
.btn-color,
.btn-promo-admin,
.btn-borrar-color,
.btn-cerrar-seccion {
  border-radius: 2px;
  font-family: Arial, Helvetica, sans-serif;
  letter-spacing: 0;
}

.card-admin .btn-guardar,
.card-admin .btn-fotos,
.card-admin .btn-color {
  min-height: 46px;
  padding: 12px 16px;
  border: 1px solid rgba(145,80,77,.14);
  background: #251d19;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  box-shadow: none;
  cursor: pointer;
}

.card-admin .btn-fotos,
.card-admin .btn-color {
  background: #fff;
  color: #8f4c55;
}

.card-admin .btn-guardar:hover,
.card-admin .btn-fotos:hover,
.card-admin .btn-color:hover {
  border-color: rgba(145,80,77,.28);
  background: #a24f5b;
  color: #fff;
  transform: translateY(-1px);
}

.btn-cerrar-seccion {
  position: absolute;
  top: 18px;
  right: 18px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(145,80,77,.14);
  background: #fffaf7;
  color: #8f4c55;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  transition:
    background .18s ease,
    color .18s ease,
    transform .18s ease;
}

.btn-cerrar-seccion:hover {
  background: #8f4c55;
  color: #fff;
  transform: rotate(90deg);
}

#listaColores {
  display: grid;
  gap: 10px;
}

.color-row {
  display: grid;
  grid-template-columns: 1fr 120px 40px;
  gap: 8px;
  align-items: center;
  margin: 0;
  padding: 10px;
  border: 1px solid rgba(145,80,77,.12);
  border-radius: 2px;
  background: #fff;
}

.btn-borrar-color {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(154,41,72,.14);
  background: #fff0f3;
  color: #9a2948;
  font-size: 16px;
  cursor: pointer;
}

.btn-borrar-color:hover {
  background: #9a2948;
  color: #fff;
}

.stock-auto {
  margin-top: 10px;
  color: #a24f5b;
  font-size: 12px;
  font-weight: 700;
}

#previewImagenes,
#previewPromo {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 12px 0 4px;
}

.preview-item {
  width: 92px;
  height: 92px;
  padding: 4px;
  border: 1px solid rgba(145,80,77,.12);
  border-radius: 3px;
  background: #fff;
  box-shadow: none;
}

.preview-img {
  border-radius: 2px;
}

.btn-eliminar-preview {
  top: -8px;
  right: -8px;
  width: 25px;
  height: 25px;
  border: 1px solid rgba(154,41,72,.18);
  background: #fff0f3;
  color: #9a2948;
  box-shadow: none;
}

.btn-eliminar-preview:hover {
  background: #9a2948;
  color: #fff;
}

#seccionVenta,
#seccionStock,
#seccionPromo {
  max-width: 820px;
}

#ventaProductoPreview {
  margin-top: 12px;
}

.venta-preview,
.promo-admin-item {
  border-radius: 3px;
  border-color: rgba(145,80,77,.12);
  background: #fff;
  box-shadow: none;
}

.venta-preview-img,
.promo-admin-img {
  border-radius: 2px;
}

.stock-row {
  display: grid;
  grid-template-columns: 1fr auto 132px;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid rgba(145,80,77,.12);
  border-radius: 2px;
  background: #fff;
}

.stock-row strong {
  color: #342924;
}

.stock-row span {
  color: #8a7b71;
  font-size: 12px;
  font-weight: 700;
}

.promos-admin-header h4,
#stockProducto h4 {
  margin: 0 0 12px;
  color: #7d5550;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
  font-weight: 400;
}

.btn-promo-admin {
  border: 1px solid rgba(145,80,77,.14);
  border-radius: 2px;
  background: #fff;
  color: #8f4c55;
  box-shadow: none;
}

.btn-promo-admin:hover {
  background: #f9e6e2;
}

.btn-promo-admin.danger {
  border-color: rgba(154,41,72,.16);
  background: #fff0f3;
}

.titulo-tabla {
  margin: 32px 0 12px;
  color: #7d5550;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 28px;
  font-weight: 400;
}

.tabla-container {
  border: 1px solid rgba(145,80,77,.12);
  border-radius: 3px;
  background: #fff;
  box-shadow:
    0 14px 30px rgba(117,70,59,.07);
}

.tabla thead {
  background: #251d19;
}

.tabla th {
  padding: 14px 12px;
  color: #fff;
  font-size: 11px;
  letter-spacing: 0;
}

.tabla td {
  border-right: 1px solid #f2ebe7;
  border-bottom: 1px solid #f2ebe7;
  color: #514844;
  font-size: 13px;
}

.tabla tbody tr:hover td {
  background: #fffaf7;
}

.btn-editar,
.btn-eliminar {
  border-radius: 2px;
  box-shadow: none;
}

.btn-editar {
  background: #fff8e8;
  color: #8a5d19;
}

.btn-eliminar {
  background: #fff0f3;
  color: #9a2948;
}

@media (max-width: 1020px) {

  .menu-admin {
    grid-template-columns: repeat(2, 1fr);
  }

  .form-grid-admin {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {

  #panel {
    padding: 12px 10px 28px;
  }

  .admin-container {
    padding: 16px;
  }

  .menu-admin {
    grid-template-columns: 1fr;
  }

  .card-admin {
    padding: 20px 16px;
  }

  .form-grid-admin,
  .color-row,
  .stock-row {
    grid-template-columns: 1fr;
  }

  .btn-borrar-color {
    width: 100%;
  }

  #seccionVenta,
  #seccionStock,
  #seccionPromo {
    max-width: none;
  }
}

/* =========================
   CATALOG FILTERS AND FLOATING ACTIONS
========================= */

.catalogo-filtros {
  width: min(1010px, calc(100% - 28px));
  margin: 16px auto 20px;
}

.busqueda-linea {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 2px 0 0;
  border: 0;
  background: transparent;
}

.buscador-caja {
  position: relative;
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  height: 46px;
  border-bottom: 1px solid rgba(145,80,77,.18);
  background: rgba(255,255,255,.42);
  transition:
    border-color .18s ease,
    background .18s ease;
}

.buscador-caja:focus-within {
  border-color: rgba(162,79,91,.52);
  background: rgba(255,255,255,.72);
}

.buscador-icono {
  position: absolute;
  left: 4px;
  top: 50%;
  width: 13px;
  height: 13px;
  border: 1px solid rgba(128,97,94,.72);
  border-radius: 999px;
  transform: translateY(-50%);
}

.buscador-icono::after {
  content: "";
  position: absolute;
  right: -5px;
  bottom: -4px;
  width: 7px;
  height: 1px;
  background: rgba(128,97,94,.72);
  transform: rotate(45deg);
  transform-origin: left center;
}

.catalogo-filtros #buscador {
  width: 100%;
  max-width: none;
  height: 46px;
  margin: 0;
  padding: 0 8px 0 30px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #342924;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  box-shadow: none;
}

.catalogo-filtros #buscador:focus {
  outline: none;
  box-shadow: none;
}

.catalogo-filtros #buscador::placeholder {
  color: rgba(91,75,69,.58);
}

.filtros-avanzados {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
  padding: 0;
  border: 0;
  background: transparent;
}

.filtros-avanzados label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #80615e;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
  white-space: nowrap;
}

.filtros-avanzados select {
  width: 132px;
  height: 36px;
  padding: 0 24px 0 0;
  border: 0;
  border-bottom: 1px solid rgba(145,80,77,.18);
  border-radius: 0;
  background-color: transparent;
  color: #342924;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 12px;
  outline: none;
}

.filtros-avanzados select {
  appearance: none;
  padding-right: 32px;
  background-image:
    linear-gradient(45deg, transparent 50%, #a24f5b 50%),
    linear-gradient(135deg, #a24f5b 50%, transparent 50%);
  background-position:
    calc(100% - 13px) 16px,
    calc(100% - 8px) 16px;
  background-size:
    5px 5px,
    5px 5px;
  background-repeat: no-repeat;
}

.filtros-avanzados select:focus {
  border-color: rgba(162,79,91,.52);
  box-shadow: none;
}

#limpiarFiltros {
  height: auto;
  min-width: 0;
  padding: 3px 0;
  border: 0;
  border-bottom: 1px solid transparent;
  border-radius: 0;
  background: transparent;
  color: #8f4c55;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
  opacity: .72;
  transition:
    color .18s ease,
    border-color .18s ease,
    opacity .18s ease;
}

#limpiarFiltros:hover {
  border-color: currentColor;
  color: #7d3943;
  opacity: 1;
}

.producto .stock {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  min-height: 26px;
  padding: 5px 9px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
}

.producto .stock::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: currentColor;
}

.producto .stock.ok {
  border-color: rgba(65,115,77,.20);
  background: #ecf8ef;
  color: #2f7542;
}

.producto .stock.no {
  border-color: rgba(154,41,72,.18);
  background: #fff0f3;
  color: #9a2948;
}

.producto .colores-lista,
#productoModalColores .colores-lista {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.producto .color-item,
#productoModalColores .color-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 23px;
  padding: 4px 7px;
  border: 1px solid rgba(145,80,77,.13);
  border-radius: 999px;
  background: #fff;
  color: #685b55;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 10px;
  font-weight: 500;
  line-height: 1;
}

.producto .color-item.agotado,
#productoModalColores .color-item.agotado {
  border-style: dashed;
  border-color: rgba(120,104,98,.25);
  background: #f8f4f1;
  color: #9c918b;
}

.producto .color-item.agotado::after,
#productoModalColores .color-item.agotado::after {
  content: attr(data-estado);
  padding-left: 5px;
  border-left: 1px solid rgba(120,104,98,.18);
  color: #a24f5b;
  font-size: 8px;
  font-weight: 700;
  text-transform: uppercase;
}

.producto-modal-stock {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 9px;
  border-radius: 999px;
  background: #ecf8ef;
  color: #2f7542;
  font-size: 10px;
  font-weight: 800;
}

.producto-modal-stock::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: currentColor;
}

.producto-modal-stock.no {
  background: #fff0f3;
  color: #9a2948;
}

.redes-fijas {
  right: auto;
  left: 14px;
}

@media (max-width: 900px) {

  .busqueda-linea {
    flex-direction: row;
    align-items: center;
    gap: 9px;
  }

  .filtros-avanzados {
    width: auto;
    flex: 0 0 auto;
    justify-content: flex-end;
  }
}

@media (max-width: 768px) {

  .catalogo-filtros {
    width: calc(100% - 24px);
    margin: 16px auto 16px;
  }

  .filtros-avanzados {
    display: flex;
    justify-content: flex-end;
    gap: 0;
  }

  .orden-control > span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .filtros-avanzados select {
    width: 112px;
    height: 42px;
    font-size: 8px;
    text-align: right;
    text-align-last: right;
    padding-right: 24px;
    background-position:
      calc(100% - 13px) 19px,
      calc(100% - 8px) 19px;
  }

  #limpiarFiltros {
    display: none;
  }

  .catalogo-filtros #buscador {
    font-size: 13px;
  }

  .redes-fijas {
    left: 12px;
    right: auto;
    bottom: 20px;
    top: auto;
    transform: none;
  }

  #btnTop {
    right: 12px;
  }
}

/* =========================
   MOBILE FILTER AND FOOTER POLISH
========================= */

.footer-brand strong {
  font-family:
    "Palatino Linotype",
    "Book Antiqua",
    Georgia,
    serif;
  font-size: clamp(30px, 4vw, 40px);
  font-style: italic;
  font-weight: 400;
  letter-spacing: .02em;
  line-height: 1;
}

.footer-brand strong::after {
  content: "";
  display: block;
  width: 54px;
  height: 1px;
  margin-top: 11px;
  background: linear-gradient(
    90deg,
    rgba(125,85,80,.82),
    rgba(125,85,80,0)
  );
}

@media (max-width: 420px) {

  .catalogo-filtros {
    width: calc(100% - 18px);
  }

  .busqueda-linea {
    gap: 7px;
  }

  .buscador-caja {
    height: 42px;
  }

  .catalogo-filtros #buscador {
    height: 42px;
    padding-left: 27px;
  }

  .buscador-icono {
    width: 12px;
    height: 12px;
  }

  .filtros-avanzados select {
    width: 104px;
  }
}

/* =========================
   PRO LOADER AND TOASTS
========================= */

.loader-screen {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background:
    radial-gradient(
      circle at 50% 36%,
      rgba(255,255,255,.98) 0,
      rgba(255,250,247,.94) 38%,
      rgba(248,229,215,.92) 100%
    );
  backdrop-filter: blur(18px);
}

.loader-box {
  position: relative;
  width: min(330px, 100%);
  padding: 34px 28px 30px;
  border: 1px solid rgba(145,80,77,.14);
  border-radius: 4px;
  background:
    linear-gradient(
      180deg,
      rgba(255,255,255,.92),
      rgba(255,250,247,.86)
    );
  text-align: center;
  box-shadow:
    0 26px 70px rgba(117,70,59,.14),
    inset 0 1px 0 rgba(255,255,255,.82);
  animation: loaderEntrada .32s ease both;
}

.loader-box::before {
  content: "";
  position: absolute;
  left: 28px;
  right: 28px;
  top: 0;
  height: 2px;
  background:
    linear-gradient(
      90deg,
      transparent,
      #a24f5b,
      #d8b08c,
      transparent
    );
}

.loader-circle {
  position: relative;
  width: 104px;
  height: 104px;
  margin: 0 auto 22px;
  border-radius: 999px;
  background:
    radial-gradient(
      circle,
      #fff 0 50%,
      rgba(248,229,215,.72) 51% 100%
    );
  box-shadow:
    0 12px 32px rgba(162,79,91,.14);
}

.loader-circle::before,
.loader-circle::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 999px;
}

.loader-circle::before {
  border: 1px solid rgba(145,80,77,.12);
  border-top-color: #a24f5b;
  border-right-color: #d8b08c;
  animation: spin 1s linear infinite;
}

.loader-circle::after {
  inset: 10px;
  border: 1px solid rgba(216,176,140,.34);
  border-bottom-color: transparent;
  animation: spin 1.7s linear infinite reverse;
}

.loader-brand {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #7d5550;
  font-family:
    "Palatino Linotype",
    "Book Antiqua",
    Georgia,
    serif;
  font-size: 42px;
  font-style: italic;
  font-weight: 400;
  letter-spacing: .03em;
}

.loader-title {
  margin-bottom: 8px;
  color: #5f4540;
  font-family:
    "Palatino Linotype",
    "Book Antiqua",
    Georgia,
    serif;
  font-size: 29px;
  font-style: italic;
  font-weight: 400;
  line-height: 1;
}

.loader-text {
  color: rgba(95,69,64,.72);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  animation: loaderTextoPulso 1.8s ease-in-out infinite;
}

.loader-text::before {
  content: "";
  display: block;
  width: 58px;
  height: 2px;
  margin: 0 auto 13px;
  border-radius: 999px;
  background:
    linear-gradient(
      90deg,
      rgba(162,79,91,.2),
      #a24f5b,
      rgba(216,176,140,.8),
      rgba(162,79,91,.2)
    );
  background-size: 180% 100%;
  animation: loaderBrillo 1.2s ease-in-out infinite;
}

@keyframes loaderEntrada {
  from {
    opacity: 0;
    transform: translateY(10px) scale(.98);
  }

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

@keyframes loaderTextoPulso {
  0%,
  100% {
    opacity: .68;
  }

  50% {
    opacity: 1;
  }
}

@keyframes loaderBrillo {
  0% {
    background-position: 100% 0;
    transform: scaleX(.72);
  }

  50% {
    transform: scaleX(1);
  }

  100% {
    background-position: 0 0;
    transform: scaleX(.72);
  }
}

.toast-container {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 1000000;
  display: grid;
  gap: 10px;
  width: min(360px, calc(100% - 36px));
  pointer-events: none;
}

.toast {
  display: grid;
  grid-template-columns: 10px 1fr auto;
  align-items: center;
  gap: 11px;
  min-height: 54px;
  padding: 13px 13px 13px 15px;
  border: 1px solid rgba(145,80,77,.14);
  border-radius: 3px;
  background: rgba(255,255,255,.96);
  color: #463733;
  box-shadow:
    0 18px 42px rgba(73,45,40,.16);
  pointer-events: auto;
  animation: toastEntrada .24s ease both;
}

.toast p {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px;
  line-height: 1.35;
}

.toast-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #8f4c55;
}

.toast-success .toast-dot {
  background: #2f7542;
}

.toast-error .toast-dot {
  background: #9a2948;
}

.toast button {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border: 0;
  border-radius: 2px;
  background: transparent;
  color: rgba(70,55,51,.62);
  font-size: 16px;
  cursor: pointer;
}

.toast button:hover,
.toast button:focus-visible {
  background: #fff4f1;
  color: #8f4c55;
}

.toast-salida {
  animation: toastSalida .2s ease both;
}

@keyframes toastEntrada {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }

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

@keyframes toastSalida {
  to {
    opacity: 0;
    transform: translateY(-8px);
  }
}

@media (max-width: 600px) {

  .toast-container {
    top: 12px;
    right: 12px;
    width: calc(100% - 24px);
  }

  .loader-box {
    padding: 30px 22px 26px;
  }
}

/* =========================
   ADMIN TABLE SEARCH
========================= */

.admin-table-tools {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 12px;
}

.admin-buscador-tabla {
  position: relative;
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  min-height: 46px;
  border: 1px solid rgba(145,80,77,.14);
  border-radius: 3px;
  background: rgba(255,255,255,.82);
  transition:
    border-color .18s ease,
    background .18s ease,
    box-shadow .18s ease;
}

.admin-buscador-tabla:focus-within {
  border-color: rgba(162,79,91,.42);
  background: #fff;
  box-shadow:
    0 0 0 4px rgba(162,79,91,.08);
}

.admin-buscador-icono {
  position: absolute;
  left: 15px;
  width: 13px;
  height: 13px;
  border: 1px solid rgba(128,97,94,.72);
  border-radius: 999px;
}

.admin-buscador-icono::after {
  content: "";
  position: absolute;
  right: -5px;
  bottom: -4px;
  width: 7px;
  height: 1px;
  background: rgba(128,97,94,.72);
  transform: rotate(45deg);
  transform-origin: left center;
}

.admin-buscador-tabla input {
  width: 100%;
  min-height: 44px;
  padding: 0 14px 0 40px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #342924;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  outline: none;
}

.admin-buscador-tabla input::placeholder {
  color: rgba(117,90,86,.58);
}

#limpiarBusquedaAdmin {
  min-height: 46px;
  padding: 0 16px;
  border: 1px solid rgba(145,80,77,.14);
  border-radius: 3px;
  background: #fff;
  color: #8f4c55;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    background .18s ease,
    color .18s ease,
    border-color .18s ease;
}

#limpiarBusquedaAdmin:hover,
#limpiarBusquedaAdmin:focus-visible {
  border-color: rgba(145,80,77,.28);
  background: #251d19;
  color: #fff;
}

.tabla-vacia {
  padding: 34px 18px !important;
  color: rgba(81,72,68,.72) !important;
  font-size: 14px !important;
  text-align: center !important;
}

@media (max-width: 768px) {

  .admin-table-tools {
    flex-direction: column;
    align-items: stretch;
  }

  #limpiarBusquedaAdmin {
    width: 100%;
  }
}

/* =========================
   PROFESSIONAL ADMIN LOGIN
========================= */

.login-screen {
  position: relative;
  min-height: 100vh;
  padding: 28px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    linear-gradient(
      115deg,
      #251d19 0%,
      #4c3631 45%,
      #f8e5d7 45.2%,
      #fffaf7 100%
    );
}

.login-screen::before {
  content: "Luma Ushas";
  position: absolute;
  left: max(28px, 7vw);
  top: max(28px, 8vh);
  color: rgba(255,255,255,.10);
  font-family:
    "Palatino Linotype",
    "Book Antiqua",
    Georgia,
    serif;
  font-size: clamp(54px, 10vw, 140px);
  font-style: italic;
  line-height: .9;
  pointer-events: none;
}

.login-screen::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      rgba(255,255,255,.06) 1px,
      transparent 1px
    ),
    linear-gradient(
      180deg,
      rgba(255,255,255,.05) 1px,
      transparent 1px
    );
  background-size: 42px 42px;
  opacity: .22;
  pointer-events: none;
}

.login-card {
  position: relative;
  z-index: 1;
  width: min(430px, 100%);
  padding: 34px;
  border: 1px solid rgba(145,80,77,.14);
  border-radius: 6px;
  background:
    linear-gradient(
      180deg,
      rgba(255,255,255,.96),
      rgba(255,250,247,.92)
    );
  text-align: left;
  box-shadow:
    0 30px 80px rgba(37,29,25,.24),
    inset 0 1px 0 rgba(255,255,255,.78);
}

.login-card::before {
  content: "";
  position: absolute;
  left: 34px;
  right: 34px;
  top: 0;
  height: 2px;
  background:
    linear-gradient(
      90deg,
      #a24f5b,
      #d8b08c,
      rgba(216,176,140,0)
    );
}

.login-logo {
  width: 62px;
  height: 62px;
  margin: 0 0 22px;
  border: 1px solid rgba(145,80,77,.18);
  border-radius: 6px;
  background: #251d19;
  color: #fffaf7;
  font-family:
    "Palatino Linotype",
    "Book Antiqua",
    Georgia,
    serif;
  font-size: 28px;
  font-style: italic;
  font-weight: 400;
  letter-spacing: .04em;
  box-shadow:
    0 14px 30px rgba(37,29,25,.18);
}

.login-eyebrow {
  display: inline-flex;
  margin-bottom: 9px;
  color: #a24f5b;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.login-card h1 {
  margin: 0 0 10px;
  color: #342924;
  font-family:
    "Palatino Linotype",
    "Book Antiqua",
    Georgia,
    serif;
  font-size: clamp(31px, 6vw, 42px);
  font-style: italic;
  font-weight: 400;
  line-height: 1;
}

.login-card p {
  max-width: 330px;
  margin: 0 0 28px;
  color: rgba(65,50,45,.72);
  font-size: 14px;
  line-height: 1.55;
}

.login-card input {
  min-height: 50px;
  margin-bottom: 14px;
  padding: 0 14px;
  border: 1px solid rgba(145,80,77,.16);
  border-radius: 3px;
  background: #fff;
  color: #342924;
  font-size: 15px;
  box-shadow: none;
}

.login-card input:focus {
  border-color: rgba(162,79,91,.50);
  box-shadow:
    0 0 0 4px rgba(162,79,91,.09);
}

.btn-login {
  min-height: 50px;
  border: 1px solid #251d19;
  border-radius: 3px;
  background: #251d19;
  color: #fffaf7;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  box-shadow:
    0 16px 28px rgba(37,29,25,.16);
}

.btn-login:hover,
.btn-login:focus-visible {
  background: #a24f5b;
  border-color: #a24f5b;
  transform: translateY(-1px);
  box-shadow:
    0 18px 30px rgba(162,79,91,.22);
}

@media (max-width: 720px) {

  .login-screen {
    padding: 18px;
    background:
      linear-gradient(
        180deg,
        #251d19 0,
        #4c3631 35%,
        #fffaf7 35.2%,
        #fffaf7 100%
      );
  }

  .login-screen::before {
    left: 18px;
    top: 26px;
    font-size: 58px;
  }

  .login-card {
    padding: 28px 22px;
  }
}

/* =========================
   STABLE ADMIN ICONS
========================= */

.admin-action-icon,
.admin-section-icon {
  position: relative;
  flex: 0 0 auto;
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 1px solid rgba(145,80,77,.16);
  border-radius: 3px;
  background: #fffaf7;
  color: #8f4c55;
}

.admin-section-icon {
  width: 34px;
  height: 34px;
  margin-right: 10px;
  background: #251d19;
  color: #fffaf7;
  border-color: #251d19;
}

.menu-admin .menu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
}

.menu-admin .menu-btn:hover .admin-action-icon,
.menu-admin .menu-btn:focus-visible .admin-action-icon {
  border-color: rgba(162,79,91,.28);
  background: #fff;
  color: #a24f5b;
}

.card-admin h3 {
  display: flex;
  align-items: center;
}

.icon-product::before,
.icon-product::after,
.icon-stock::before,
.icon-stock::after,
.icon-home::before,
.icon-home::after,
.icon-photo::before,
.icon-photo::after,
.icon-save::before,
.icon-save::after,
.icon-edit::before,
.icon-edit::after,
.icon-delete::before,
.icon-delete::after {
  content: "";
  position: absolute;
}

.icon-product::before {
  width: 11px;
  height: 9px;
  border: 1.5px solid currentColor;
  border-radius: 2px;
}

.icon-product::after {
  width: 7px;
  height: 1.5px;
  background: currentColor;
  top: 7px;
}

.icon-sale::before {
  content: "$";
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
}

.icon-stock::before {
  width: 13px;
  height: 10px;
  border: 1.5px solid currentColor;
  border-radius: 1px;
  bottom: 6px;
}

.icon-stock::after {
  width: 9px;
  height: 6px;
  border-top: 1.5px solid currentColor;
  border-left: 1.5px solid currentColor;
  transform: rotate(45deg);
  top: 4px;
}

.icon-promo::before {
  content: "%";
  font-family: Arial, Helvetica, sans-serif;
  font-size: 15px;
  font-weight: 900;
  line-height: 1;
}

.icon-home::before {
  width: 12px;
  height: 9px;
  border: 1.5px solid currentColor;
  border-top: 0;
  bottom: 5px;
}

.icon-home::after {
  width: 11px;
  height: 11px;
  border-top: 1.5px solid currentColor;
  border-left: 1.5px solid currentColor;
  transform: rotate(45deg);
  top: 4px;
}

.icon-plus::before {
  content: "+";
  font-family: Arial, Helvetica, sans-serif;
  font-size: 18px;
  font-weight: 800;
  line-height: 1;
}

.icon-photo::before {
  width: 14px;
  height: 11px;
  border: 1.5px solid currentColor;
  border-radius: 2px;
}

.icon-photo::after {
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: currentColor;
  right: 6px;
  top: 7px;
}

.icon-save::before {
  width: 13px;
  height: 13px;
  border: 1.5px solid currentColor;
  border-radius: 2px;
}

.icon-save::after {
  width: 7px;
  height: 1.5px;
  background: currentColor;
  bottom: 7px;
}

.icon-edit::before {
  width: 14px;
  height: 3px;
  border-radius: 999px;
  background: currentColor;
  transform: rotate(-42deg);
}

.icon-edit::after {
  width: 6px;
  height: 6px;
  border-left: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  right: 5px;
  bottom: 5px;
}

.icon-delete::before {
  width: 12px;
  height: 11px;
  border: 1.5px solid currentColor;
  border-top: 0;
  bottom: 5px;
}

.icon-delete::after {
  width: 13px;
  height: 1.5px;
  background: currentColor;
  top: 7px;
}

.card-admin .btn-guardar,
.card-admin .btn-fotos,
.card-admin .btn-color {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-editar,
.btn-eliminar,
.btn-promo-admin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}

.btn-editar .admin-action-icon,
.btn-eliminar .admin-action-icon,
.btn-promo-admin .admin-action-icon {
  width: 22px;
  height: 22px;
  background: rgba(255,255,255,.72);
}

/* =========================
   REFINED ADMIN LINE ICONS
========================= */

.admin-action-icon,
.admin-section-icon {
  overflow: hidden;
  border-radius: 7px;
  border-color: rgba(145,80,77,.16);
  background:
    linear-gradient(
      180deg,
      rgba(255,255,255,.96),
      rgba(255,250,247,.84)
    );
  color: #8f4c55;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.82);
}

.admin-section-icon {
  width: 38px;
  height: 38px;
  border-color: rgba(37,29,25,.92);
  background:
    linear-gradient(
      180deg,
      #3a2d28,
      #251d19
    );
  color: #fffaf7;
  box-shadow:
    0 10px 22px rgba(37,29,25,.16),
    inset 0 1px 0 rgba(255,255,255,.10);
}

.admin-action-icon::before,
.admin-section-icon::before {
  content: "";
  position: absolute;
  inset: auto;
  width: 17px;
  height: 17px;
  border: 0;
  border-radius: 0;
  background: currentColor;
  transform: none;
  -webkit-mask:
    var(--admin-icon)
    center / contain
    no-repeat;
  mask:
    var(--admin-icon)
    center / contain
    no-repeat;
}

.admin-section-icon::before {
  width: 20px;
  height: 20px;
}

.admin-action-icon::after,
.admin-section-icon::after {
  display: none !important;
  content: none !important;
}

.menu-admin .menu-btn:hover .admin-action-icon,
.menu-admin .menu-btn:focus-visible .admin-action-icon,
.card-admin .btn-guardar:hover .admin-action-icon,
.card-admin .btn-fotos:hover .admin-action-icon,
.card-admin .btn-color:hover .admin-action-icon {
  border-color: rgba(255,255,255,.30);
  background: rgba(255,255,255,.14);
  color: currentColor;
}

.icon-product {
  --admin-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16Z'/%3E%3Cpath d='m3.3 7 8.7 5 8.7-5'/%3E%3Cpath d='M12 22V12'/%3E%3C/svg%3E");
}

.icon-sale {
  --admin-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 6v12'/%3E%3Cpath d='M16 9.5c-.7-1-1.9-1.5-3.5-1.5-2 0-3.5.9-3.5 2.4 0 3.3 7 1.5 7 5 0 1.5-1.4 2.6-3.8 2.6-1.7 0-3-.6-3.8-1.7'/%3E%3C/svg%3E");
}

.icon-stock {
  --admin-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 7.5 12 3l8 4.5-8 4.5-8-4.5Z'/%3E%3Cpath d='M4 7.5v9L12 21l8-4.5v-9'/%3E%3Cpath d='M12 12v9'/%3E%3C/svg%3E");
}

.icon-promo {
  --admin-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20.5 13.5 13.5 20.5a2.1 2.1 0 0 1-3 0L3 13V3h10l7.5 7.5a2.1 2.1 0 0 1 0 3Z'/%3E%3Ccircle cx='7.5' cy='7.5' r='1.4'/%3E%3Cpath d='M9 16 16 9'/%3E%3Cpath d='M15.5 15.5h.01'/%3E%3Cpath d='M9.5 9.5h.01'/%3E%3C/svg%3E");
}

.icon-home {
  --admin-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m3 11 9-8 9 8'/%3E%3Cpath d='M5 10v10h14V10'/%3E%3Cpath d='M10 20v-6h4v6'/%3E%3C/svg%3E");
}

.icon-plus {
  --admin-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M12 5v14'/%3E%3Cpath d='M5 12h14'/%3E%3C/svg%3E");
}

.icon-photo {
  --admin-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 8a2 2 0 0 1 2-2h2l1.5-2h5L16 6h2a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V8Z'/%3E%3Ccircle cx='12' cy='13' r='3.2'/%3E%3C/svg%3E");
}

.icon-save {
  --admin-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 3h12l2 2v16H5V3Z'/%3E%3Cpath d='M8 3v6h8V3'/%3E%3Cpath d='M8 21v-7h8v7'/%3E%3C/svg%3E");
}

.icon-edit {
  --admin-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 20h9'/%3E%3Cpath d='M16.5 3.5a2.1 2.1 0 0 1 3 3L7 19l-4 1 1-4 12.5-12.5Z'/%3E%3C/svg%3E");
}

.icon-delete {
  --admin-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 7h16'/%3E%3Cpath d='M10 11v6'/%3E%3Cpath d='M14 11v6'/%3E%3Cpath d='M6 7l1 14h10l1-14'/%3E%3Cpath d='M9 7V4h6v3'/%3E%3C/svg%3E");
}

/* =========================
   MOBILE KEYBOARD STABILITY
========================= */

html {
  -webkit-text-size-adjust: 100%;
}

@media (max-width: 768px) {

  .login-screen,
  #panel {
    min-height: var(--admin-stable-vh, 100svh);
  }

  .login-screen {
    place-items: start center;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .login-card {
    margin-top: 18px;
    margin-bottom: 18px;
  }

  .admin-container,
  .card-admin {
    overflow-anchor: none;
  }

  .login-card input,
  .card-admin input,
  .card-admin select,
  .card-admin textarea,
  .color-row input,
  .stock-row input,
  #stockProducto input,
  .admin-buscador-tabla input {
    font-size: 16px;
  }

  .card-admin input,
  .card-admin select,
  .card-admin textarea,
  .login-card input {
    scroll-margin-top: 18px;
  }

  body.teclado-admin-activo {
    overscroll-behavior-y: contain;
  }

  body.teclado-admin-activo .login-screen,
  body.teclado-admin-activo #panel {
    min-height: var(--admin-stable-vh, 100svh);
  }

body.teclado-admin-activo .admin-container {
    padding-bottom: max(28px, env(safe-area-inset-bottom));
  }
}

/* =========================
   CATALOG MOBILE KEYBOARD
========================= */

@media (max-width: 768px) {

  .catalogo-filtros #buscador,
  .filtros-avanzados select {
    font-size: 16px;
  }

  .catalogo-filtros #buscador {
    min-height: 44px;
    scroll-margin-top: 22px;
  }

  body.teclado-catalogo-activo {
    min-height: var(--catalogo-stable-vh, 100svh);
    overscroll-behavior-y: contain;
  }

  body.teclado-catalogo-activo .hero,
  body.teclado-catalogo-activo .catalogo-filtros {
    overflow-anchor: none;
  }
}

/* =========================
   DELICATE CATALOG COVER
========================= */

.hero {
  position: relative;
  display: block;
  padding:
    22px
    max(18px, calc((100% - 1180px) / 2))
    14px;
  border-bottom: 1px solid rgba(145,80,77,.10);
  background:
    linear-gradient(
      180deg,
      #f4dfc4 0%,
      #f7e6cf 100%
    );
  box-shadow:
    inset 0 -1px 0 rgba(255,255,255,.55);
}

.hero-content {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.hero-logo {
  display: grid;
  align-items: center;
  justify-content: center;
  width: min(560px, 92vw);
  max-width: none;
  margin: 0 auto;
  text-align: center;
}

.hero-img {
  width: 100%;
  height: auto;
  max-height: 230px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  object-fit: contain;
  box-shadow: none;
  mask-image: none;
  -webkit-mask-image: none;
}

.categorias-barra {
  width: min(980px, 100%);
  flex: initial;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 7px;
  padding: 12px 0 0;
  border: 0;
  border-top: 1px solid rgba(145,80,77,.10);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.categoria-btn {
  min-height: 34px;
  padding: 8px 13px;
  border: 1px solid rgba(145,80,77,.12);
  border-radius: 999px;
  background: rgba(255,255,255,.44);
  color: rgba(74,52,47,.74);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  box-shadow: none;
  transition:
    background .18s ease,
    border-color .18s ease,
    color .18s ease,
    transform .18s ease;
}

.hero .categorias-barra .categoria-btn,
.hero .categorias-mobile .categoria-btn {
  border-radius: 999px !important;
}

.categoria-btn:hover,
.categoria-btn:focus-visible {
  border-color: rgba(162,79,91,.22);
  background: #fff;
  color: #8f4c55;
  transform: translateY(-1px);
}

.categoria-btn.active {
  border-color: rgba(162,79,91,.24);
  background: #fff;
  color: #8f4c55;
  box-shadow:
    inset 0 -2px 0 rgba(162,79,91,.16);
}

.categoria-btn.active::after {
  display: none;
}

.hero-overlay {
  position: absolute;
  top: 14px;
  right: max(14px, calc((100% - 1180px) / 2));
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.btn-admin {
  min-height: 28px;
  padding: 4px 8px;
  border: 1px solid rgba(145,80,77,.10);
  border-radius: 999px;
  background: rgba(255,255,255,.30);
  color: rgba(117,90,86,.56);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
  box-shadow: none;
  opacity: .72;
}

.btn-admin:hover,
.btn-admin:focus-visible {
  border-color: rgba(145,80,77,.20);
  background: rgba(255,255,255,.72);
  color: #8f4c55;
  opacity: 1;
  transform: none;
}

.catalogo-filtros {
  width: min(820px, calc(100% - 28px));
  margin: 18px auto 20px;
}

.busqueda-linea {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 18px;
  padding: 0;
}

.buscador-caja {
  height: 42px;
  padding: 0;
  border: 0;
  border-bottom: 1px solid rgba(145,80,77,.22);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.buscador-caja:focus-within {
  border-color: rgba(162,79,91,.58);
  background: transparent;
  box-shadow: none;
}

.buscador-icono {
  left: 0;
  width: 13px;
  height: 13px;
  border-color: rgba(117,90,86,.66);
}

.buscador-icono::after {
  background: rgba(117,90,86,.66);
}

.catalogo-filtros #buscador {
  height: 42px;
  padding: 0 4px 0 28px;
  color: #342924;
  font-size: 14px;
}

.filtros-avanzados {
  gap: 12px;
}

.filtros-avanzados label {
  color: rgba(117,90,86,.72);
}

.filtros-avanzados select {
  width: 128px;
  height: 36px;
  border: 0;
  border-bottom: 1px solid rgba(145,80,77,.22);
  border-radius: 0;
  background-color: transparent;
  padding-left: 0;
}

#limpiarFiltros {
  color: rgba(143,76,85,.78);
}

@media (max-width: 768px) {

  .hero {
    padding: 18px 14px 14px;
  }

  .hero-content {
    gap: 13px;
  }

  .hero-logo {
    width: min(330px, 94vw);
    max-width: none;
    text-align: center;
  }

  .hero-img {
    width: 100%;
    height: auto;
    max-height: 150px;
  }

  .categorias-barra {
    display: none;
  }

  .categorias-mobile {
    display: block;
    width: min(100%, 320px);
    position: relative;
  }

  #btnCategorias {
    min-height: 42px;
    padding: 0 16px;
    border: 1px solid rgba(145,80,77,.12);
    border-radius: 999px;
    background: rgba(255,255,255,.66);
    color: #755a56;
    font-size: 13px;
    box-shadow: none;
  }

  #menuCategoriasMobile {
    top: calc(100% + 8px);
    border: 1px solid rgba(145,80,77,.12);
    border-radius: 8px;
    background: rgba(255,250,247,.98);
    box-shadow:
      0 18px 38px rgba(117,70,59,.14);
  }

  #menuCategoriasMobile .categoria-btn {
    min-height: 38px;
    width: 100%;
    justify-content: flex-start;
    border-radius: 6px;
    border-color: transparent;
    background: transparent;
    text-align: left;
  }

  #menuCategoriasMobile .categoria-btn.active {
    background: #fff;
  }

  .hero-overlay {
    top: 10px;
    right: 10px;
  }

  .btn-admin {
    min-height: 26px;
    padding: 3px 7px;
    font-size: 9px;
  }

  .catalogo-filtros {
    width: calc(100% - 24px);
    margin-top: 14px;
  }

  .busqueda-linea {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
  }

  .buscador-caja {
    height: 44px;
    padding: 0;
  }

  .catalogo-filtros #buscador {
    height: 44px;
    font-size: 16px;
  }

  .filtros-avanzados select {
    height: 44px;
    width: 112px;
    font-size: 12px;
  }
}

/* =========================
   COVER REFINEMENT
========================= */

.hero {
  padding:
    18px
    max(18px, calc((100% - 1180px) / 2))
    12px;
  background:
    linear-gradient(
      180deg,
      #f2dcc1 0%,
      #f6e4cb 100%
    );
}

.hero-content {
  gap: 12px;
}

.hero-logo {
  width: min(380px, 74vw);
}

.hero-img {
  width: 100%;
  max-height: 158px;
  opacity: .94;
  filter:
    saturate(.96)
    contrast(.98);
  -webkit-mask-image:
    linear-gradient(
      90deg,
      transparent 0%,
      #000 10%,
      #000 90%,
      transparent 100%
    );
  mask-image:
    linear-gradient(
      90deg,
      transparent 0%,
      #000 10%,
      #000 90%,
      transparent 100%
    );
}

#btnCategorias {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-size: 13px;
  line-height: 1;
}

#btnCategorias::before {
  content: none !important;
  display: none !important;
}

#btnCategorias::after {
  content: "";
  display: block;
  width: 7px;
  height: 7px;
  margin: -3px 0 0;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  transition: transform .22s ease;
}

#btnCategorias.open::after {
  transform: rotate(225deg);
  margin-top: 3px;
}

#menuCategoriasMobile {
  padding: 0 8px;
  border-radius: 4px;
}

#menuCategoriasMobile.open {
  padding: 8px;
}

#menuCategoriasMobile .categoria-btn {
  min-height: 34px;
  padding: 8px 11px;
  border-radius: 3px !important;
  font-size: 12px;
}

@media (max-width: 768px) {

  .hero {
    padding: 16px 14px 12px;
  }

  .hero-logo {
    width: min(258px, 82vw);
  }

  .hero-img {
    max-height: 112px;
  }

  .categorias-mobile {
    width: min(100%, 260px);
  }

  #btnCategorias {
    min-height: 38px;
    padding: 0 14px;
  }
}

/* =========================
   DELICATE TEXT AND LOGO EDGES
========================= */

.hero-logo {
  mix-blend-mode: normal;
}

.hero-img {
  opacity: 1;
  filter: none;
  -webkit-mask-image:
    radial-gradient(
      ellipse at center,
      #000 0%,
      #000 58%,
      rgba(0,0,0,.88) 72%,
      rgba(0,0,0,.36) 88%,
      transparent 100%
    );
  mask-image:
    radial-gradient(
      ellipse at center,
      #000 0%,
      #000 58%,
      rgba(0,0,0,.88) 72%,
      rgba(0,0,0,.36) 88%,
      transparent 100%
    );
}

.categoria-btn {
  padding-inline: 14px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 11px;
  font-weight: 400;
}

.categorias-barra .categoria-btn,
#menuCategoriasMobile .categoria-btn {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
}

#btnCategorias {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 12px;
  font-weight: 400;
}

.catalogo-filtros #buscador {
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  font-weight: 400;
}

.filtros-avanzados label,
#limpiarFiltros {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
}

.filtros-avanzados select {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
}

/* =========================
   ADMIN TABLE SORTING
========================= */

.tabla th {
  white-space: nowrap;
}

.tabla th.orden-activo {
  background: rgba(255,255,255,.08);
}

.tabla-orden {
  width: 100%;
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 7px;
  margin: -4px 0;
  padding: 4px 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  text-align: left;
  cursor: pointer;
}

.tabla-orden:focus-visible {
  outline: 2px solid rgba(255,255,255,.72);
  outline-offset: 3px;
}

.tabla-orden-icono {
  position: relative;
  width: 8px;
  height: 14px;
  flex: 0 0 auto;
  opacity: .58;
}

.tabla-orden-icono::before,
.tabla-orden-icono::after {
  content: "";
  position: absolute;
  left: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  transition:
    opacity .16s ease,
    transform .16s ease;
}

.tabla-orden-icono::before {
  top: 1px;
  border-bottom: 5px solid currentColor;
  opacity: .45;
}

.tabla-orden-icono::after {
  bottom: 1px;
  border-top: 5px solid currentColor;
  opacity: .45;
}

.tabla th.orden-asc .tabla-orden-icono,
.tabla th.orden-desc .tabla-orden-icono {
  opacity: 1;
}

.tabla th.orden-asc .tabla-orden-icono::before,
.tabla th.orden-desc .tabla-orden-icono::after {
  opacity: 1;
  transform: scale(1.08);
}

.tabla th.orden-asc .tabla-orden-icono::after,
.tabla th.orden-desc .tabla-orden-icono::before {
  opacity: .22;
}
