:root {
  --ink: #292521;
  --cream: #faf7f2;
  --sand: #eee6db;
  --gold: #ad8664;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: "DM Sans", Arial, sans-serif;
}
button,
input,
select,
textarea {
  font: inherit;
}
button {
  cursor: pointer;
}
a {
  color: inherit;
  text-decoration: none;
}
[hidden] {
  display: none !important;
}
.topbar {
  background: #28231f;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 48px;
  padding: 4px 12px;
  text-align: center;
  font-size: 12px;
  letter-spacing: 0.6px;
}

#promoTexto {
  min-width: 0;
  width: 520px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.topbar button {
  flex-shrink: 0;
  min-width: 44px;
  min-height: 44px;
  padding: 4px 8px;
  border: 1px solid transparent;
  background: transparent;
  color: white;
  font-size: 12px;
}

.topbar button:hover {
  background: #ffffff15;
}

.topbar button:focus-visible {
  outline: 2px solid #d6bc85;
  outline-offset: -3px;
}

@media (max-width: 550px) {
  .topbar {
    gap: 2px;
    padding: 4px;
    font-size: 11px;
    letter-spacing: 0;
    min-height: 64px;
  }

  #promoTexto {
    flex: 1;
    width: auto;
  }
}
.header {
  height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 max(5%, calc((100vw - 1300px) / 2));
  background: #fff;
}
.brand {
  font-family: Georgia, serif;
  font-size: 30px;
  letter-spacing: 5px;
}
.brand span {
  display: block;
  font: 10px Arial;
  letter-spacing: 4px;
  text-align: center;
  margin-top: 2px;
}
.header nav {
  display: flex;
  gap: 32px;
  font-size: 13px;
}
.cart-trigger,
.secondary {
  background: transparent;
  border: 1px solid #c7b9a9;
  padding: 12px 18px;
}
.cart-trigger span {
  background: var(--ink);
  color: white;
  border-radius: 50%;
  padding: 3px 8px;
  margin-left: 8px;
}
.hero {
  min-height: 490px;
  display: flex;
  align-items: center;
  background:
    linear-gradient(
      90deg,
      rgba(244, 236, 225, 0.96),
      rgba(244, 236, 225, 0.75) 50%,
      rgba(244, 236, 225, 0.1)
    ),
    url("https://images.unsplash.com/photo-1617038220319-276d3cfab638?w=1800&q=85")
      center/cover;
}
.hero-inner {
  max-width: 1200px;
  width: 90%;
  margin: auto;
}
.eyebrow {
  font-size: 11px;
  letter-spacing: 2.5px;
  color: var(--gold);
  font-weight: 700;
}
.hero h1 {
  font:
    clamp(42px, 6vw, 78px)/1.12 Georgia,
    serif;
  letter-spacing: -2px;
  margin: 20px 0;
}
.hero h1 em {
  font-weight: 400;
  color: #8c705c;
}
.hero p:not(.eyebrow) {
  max-width: 410px;
  line-height: 1.8;
  color: #655d55;
}
.btn {
  display: inline-block;
  border: 0;
  background: #28231f;
  color: white;
  padding: 17px 24px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  margin-top: 20px;
}
.btn:hover {
  background: #705943;
}
.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 20px;
}
.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
}
.section-head h2,
.cart h2,
.admin-card h2 {
  font:
    36px Georgia,
    serif;
  margin: 10px 0;
}
.section-head > p {
  color: #8c8075;
  font-size: 13px;
}
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 35px 0;
}
.filters button {
  border: 1px solid #d8cec3;
  background: transparent;
  padding: 12px 22px;
}
.filters button.active {
  background: var(--ink);
  color: white;
}
.products {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}
.product {
  background: white;
}
.product > img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  background: #e7dfd5;
}
.product-info {
  padding: 20px;
}
.product h3 {
  font:
    24px Georgia,
    serif;
  margin: 10px 0;
}
.description {
  color: #83786f;
  font-size: 13px;
  min-height: 38px;
}
.price {
  display: block;
  font-size: 18px;
  margin: 15px 0;
}
.add {
  background: transparent;
  border: 1px solid #b7a99c;
  width: 100%;
  padding: 12px;
  font-size: 11px;
  letter-spacing: 1px;
}
.add:hover {
  background: #eee6db;
}
.benefits {
  background: var(--sand);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  padding: 60px max(5%, calc((100vw - 1200px) / 2));
}
.benefits strong {
  font:
    22px Georgia,
    serif;
}
.benefits p {
  font-size: 13px;
  color: #594e44;
  line-height: 1.7;
}
footer {
  display: flex;
  justify-content: space-between;
  background: #292521;
  color: #f5f0e9;
  padding: 28px 5%;
  font-size: 12px;
  letter-spacing: 1px;
}
.shade {
  position: fixed;
  inset: 0;
  background: #0008;
  z-index: 9;
}
.cart {
  position: fixed;
  right: 0;
  top: 0;
  bottom: 0;
  width: min(480px, 100vw);
  background: #fff;
  z-index: 10;
  display: flex;
  flex-direction: column;
  transform: translateX(101%);
  transition: transform 0.25s;
  box-shadow: -10px 0 30px #0001;
}
.cart.open {
  transform: translateX(0);
}
.no-scroll {
  overflow: hidden;
}
.cart-head {
  padding: 22px;
  border-bottom: 1px solid #eee;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.cart-head h2 {
  font-size: 29px;
  margin: 0;
}
.icon-btn {
  border: 0;
  background: none;
  font-size: 22px;
}
.cart-items {
  flex: 1;
  overflow: auto;
  padding: 20px;
}
.cart-row {
  display: flex;
  gap: 15px;
  padding: 12px 0;
  border-bottom: 1px solid #eee;
}
.cart-row img {
  width: 85px;
  height: 100px;
  object-fit: cover;
}
.cart-row-info {
  display: flex;
  flex-direction: column;
  gap: 7px;
  flex: 1;
  font-size: 13px;
}
.cart-row-info span {
  color: #887d72;
}
.qty {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 5px;
}
.qty button {
  border: 1px solid #ddd;
  background: white;
  padding: 5px 10px;
}
.qty .remove {
  margin-left: auto;
  border: 0;
  text-decoration: underline;
  font-size: 11px;
}
.checkout {
  padding: 18px 22px 24px;
  border-top: 1px solid #eee;
  max-height: 62vh;
  overflow: auto;
}
.checkout label,
.admin-form label,
.admin-card label {
  display: block;
  font-size: 13px;
  margin: 12px 0;
}
.checkout input,
.checkout select,
.checkout textarea,
.admin-card input,
.admin-card select,
.admin-card textarea {
  display: block;
  width: 100%;
  border: 1px solid #d7ccc0;
  padding: 11px;
  margin-top: 6px;
  background: white;
  border-radius: 0;
}
.totals {
  margin-top: 18px;
}
.totals > div {
  display: flex;
  justify-content: space-between;
  margin: 8px 0;
  font-size: 13px;
}
.totals .grand {
  border-top: 1px solid #ddd;
  padding-top: 13px;
  font-size: 20px;
}
.wide {
  width: 100%;
  margin-top: 10px;
}
.checkout small {
  display: block;
  text-align: center;
  color: #80776f;
  line-height: 1.5;
  margin-top: 12px;
}
.empty {
  color: #82786f;
  padding: 30px 0;
}
.toast {
  position: fixed;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  background: #292521;
  color: white;
  padding: 14px 20px;
  z-index: 20;
}
.admin-main {
  max-width: 960px;
  margin: 50px auto;
  padding: 0 20px;
}
.admin-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.admin-heading h1,
.admin-card h1 {
  font:
    36px Georgia,
    serif;
}
.admin-card {
  background: white;
  padding: 30px;
  margin: 24px 0;
  box-shadow: 0 2px 18px #00000008;
}
.admin-card h2 {
  font-size: 27px;
}
.admin-form {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 5px 22px;
}
.admin-form label:nth-child(5),
.admin-form label:nth-child(6),
.admin-form label:nth-child(7) {
  grid-column: 1/-1;
}
.actions {
  display: flex;
  gap: 12px;
  align-items: end;
}
.admin-row {
  display: flex;
  align-items: center;
  gap: 15px;
  border-bottom: 1px solid #eee;
  padding: 12px 0;
}
.admin-row img {
  width: 65px;
  height: 65px;
  object-fit: cover;
}
.admin-row div {
  flex: 1;
}
.admin-row p {
  font-size: 12px;
  color: #777;
}
.danger {
  color: #a33;
}
#adminMessage {
  position: sticky;
  bottom: 0;
  background: #e7dfd5;
  padding: 10px;
  min-height: 20px;
}
@media (max-width: 900px) {
  .products {
    grid-template-columns: repeat(2, 1fr);
  }
  .header nav {
    display: none;
  }
  .benefits {
    gap: 15px;
  }
  .section-head {
    display: block;
  }
}
@media (max-width: 550px) {
  .products {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .product > img {
    height: 190px;
  }
  .product-info {
    padding: 12px;
  }
  .product h3 {
    font-size: 19px;
  }
  .description {
    font-size: 11px;
  }
  .hero {
    min-height: 420px;
  }
  .benefits {
    grid-template-columns: 1fr;
  }
  .admin-form {
    grid-template-columns: 1fr;
  }
  .admin-form label {
    grid-column: 1/-1;
  }
  .admin-row {
    flex-wrap: wrap;
  }
  .admin-row div {
    flex-basis: 65%;
  }
  .header {
    padding: 0 15px;
  }
  .brand {
    font-size: 24px;
  }
}
/* =====================================
   BOTÓN FLOTANTE WHATSAPP - CALOVA
===================================== */

.whatsapp-flotante {
  position: fixed;
  bottom: 25px;
  right: 25px;

  width: 60px;
  height: 60px;

  background-color: #25d366;
  border-radius: 50%;

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

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

  z-index: 9999;

  cursor: pointer;

  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

/* Efecto al pasar el mouse */
.whatsapp-flotante:hover {
  transform: scale(1.12);

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

/* Ajuste para celulares */
@media (max-width: 768px) {
  .whatsapp-flotante {
    width: 55px;
    height: 55px;

    bottom: 20px;
    right: 20px;
  }
}

/* ======================================
   DETALLE DE PRODUCTO - CALOVA
====================================== */

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

.product-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;

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

  padding: 20px;
}

.product-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
}

.product-modal-content {
  position: relative;

  background: #fff;
  width: 100%;
  max-width: 950px;
  max-height: 90vh;

  overflow-y: auto;
  border-radius: 12px;

  padding: 35px;
}

.product-modal-close {
  position: absolute;
  top: 15px;
  right: 20px;

  background: none;
  border: none;

  font-size: 25px;
  cursor: pointer;
  z-index: 2;
}

.product-detail {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px;
  align-items: start;
}

.product-detail-info h2 {
  font-size: 32px;
  margin: 10px 0 20px;
}

.detail-category {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 12px;
}

.detail-prices {
  margin: 25px 0;
}

.detail-prices h3 {
  font-size: 28px;
  margin-bottom: 10px;
}

.detail-discount {
  color: #3c7652;
  font-size: 14px;
}

.detail-stock {
  margin: 20px 0;
  font-weight: 600;
}

.detail-quantity {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 25px;
}

.detail-quantity button {
  width: 35px;
  height: 35px;

  border: 1px solid #ddd;
  background: white;

  cursor: pointer;
  font-size: 20px;
}

.detail-whatsapp {
  width: 100%;
  margin-top: 12px;
  padding: 15px;

  background: #25d366;
  color: white;

  border: none;
  border-radius: 5px;

  cursor: pointer;
  font-weight: bold;
}

.detail-whatsapp:hover {
  background: #1ebe5d;
}

/* Celulares */

@media (max-width: 768px) {
  .product-detail {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .product-modal-content {
    padding: 25px 20px;
  }

  .product-detail-info h2 {
    font-size: 25px;
  }
}
/* ======================================
   CALOVA - GESTIÓN DE STOCK
====================================== */

.venta-resumen {
  margin-top: 25px;
  padding: 20px;

  background: #f7f4f0;
  border-radius: 8px;
}

.venta-resumen p {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
}

.venta-resumen h3 {
  display: flex;
  justify-content: space-between;

  border-top: 1px solid #ddd;
  padding-top: 15px;
}

.stock-item {
  display: flex;
  justify-content: space-between;
  align-items: center;

  padding: 15px;
  border-bottom: 1px solid #eee;
  gap: 15px;
}

.stock-bajo {
  color: #b7791f;
  font-weight: bold;
}

.stock-agotado {
  color: #c53030;
  font-weight: bold;
}

.stock-disponible {
  color: #2f855a;
  font-weight: bold;
}

.venta-item {
  display: flex;
  justify-content: space-between;
  align-items: center;

  padding: 12px 0;
  border-bottom: 1px solid #eee;
  gap: 10px;
}

.venta-item button {
  padding: 7px 12px;
  cursor: pointer;
}

/* ======================================
   CALOVA - HISTORIAL DE VENTAS
====================================== */

.ventas-estadisticas {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  margin: 25px 0;
}

.ventas-estadisticas > div {
  background: #faf7f2;
  padding: 20px;
  border: 1px solid #eee6db;
}

.ventas-estadisticas span {
  display: block;
  font-size: 12px;
  color: #83786f;
  margin-bottom: 10px;
}

.ventas-estadisticas strong {
  font-size: 22px;
}

.historial-venta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 18px 0;
  border-bottom: 1px solid #eee6db;
}

.historial-venta p {
  font-size: 13px;
  margin: 6px 0;
  color: #766b60;
}

@media (max-width: 600px) {
  .ventas-estadisticas {
    grid-template-columns: 1fr;
  }

  .historial-venta {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* ======================================
   CALOVA - FILTROS E HISTORIAL CON SCROLL
====================================== */

.ventas-filtros {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 20px;
  margin: 20px 0;
}

.ventas-filtros label {
  font-size: 13px;
  color: #766b60;
}

.ventas-filtros select,
.ventas-filtros input {
  display: block;
  margin-top: 8px;
  padding: 10px;
  border: 1px solid #d7ccc0;
  background: #fff;
}

.ventas-rango {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

.ventas-scroll {
  max-height: 420px;
  overflow-y: auto;
  padding-right: 12px;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: #ad8664 #faf7f2;
}

.ventas-scroll::-webkit-scrollbar {
  width: 8px;
}

.ventas-scroll::-webkit-scrollbar-thumb {
  background: #ad8664;
  border-radius: 10px;
}

.ventas-scroll::-webkit-scrollbar-track {
  background: #faf7f2;
}

.ventas-resumen {
  font-size: 13px;
  color: #766b60;
  margin: 12px 0;
}

@media (max-width: 600px) {
  .ventas-filtros,
  .ventas-rango {
    flex-direction: column;
    align-items: stretch;
  }
}

/* ======================================
   CALOVA - ANULACIÓN DE VENTAS
====================================== */

.venta-acciones {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  flex-shrink: 0;
}

.venta-acciones button {
  padding: 9px 12px;
  font-size: 12px;
}

.venta-acciones button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.venta-estado-confirmada {
  color: #398451 !important;
  font-weight: 600;
}

.venta-estado-anulada {
  color: #b43e3e !important;
  font-weight: 600;
}

.historial-venta-anulada {
  opacity: 0.65;
}

@media (max-width: 600px) {
  .venta-acciones {
    align-items: flex-start;
  }
}

/* ======================================
   CALOVA - DASHBOARD PRINCIPAL
====================================== */

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 24px 0;
}

.dashboard-stat {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 22px;
  background: #faf8f5;
  border: 1px solid #e8e1d9;
  border-radius: 12px;
}

.dashboard-stat span {
  font-size: 13px;
  color: #777;
}

.dashboard-stat strong {
  font-size: 28px;
  font-weight: 600;
  color: #292522;
  overflow-wrap: anywhere;
}

.dashboard-alerta {
  background: #fff8ee;
  border-color: #ead5b8;
}

.dashboard-alerta strong {
  color: #b17b32;
}

.dashboard-detalles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.dashboard-panel {
  border: 1px solid #e8e1d9;
  border-radius: 12px;
  padding: 18px;
}

.dashboard-panel h3 {
  margin-top: 0;
  margin-bottom: 16px;
  font-size: 16px;
}

.dashboard-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #eee;
}

.dashboard-item:last-child {
  border-bottom: none;
}

.dashboard-item p {
  margin: 5px 0 0;
  font-size: 12px;
  color: #777;
}

#dashProductosAlerta,
#dashUltimasVentas {
  max-height: 280px;
  overflow-y: auto;
}

/* Adaptación para celulares */

@media (max-width: 768px) {
  .dashboard-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-detalles {
    grid-template-columns: 1fr;
  }

  .dashboard-stat {
    padding: 16px;
  }

  .dashboard-stat strong {
    font-size: 22px;
  }
}
/* ======================================
   CALOVA - AVISOS DE REPOSICIÓN
====================================== */

.stock-notify-btn {
  width: 100%;
  margin-top: 10px;
  padding: 13px 10px;

  background: var(--ink);
  color: white;

  border: 1px solid var(--ink);

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

  cursor: pointer;

  transition: background 0.2s;
}

.stock-notify-btn:hover {
  background: #705943;
  border-color: #705943;
}

.add:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Ventana de reposición */

.stock-notify-modal {
  position: fixed;
  inset: 0;

  z-index: 10001;

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

  padding: 20px;
}

.stock-notify-overlay {
  position: absolute;
  inset: 0;

  background: rgba(0, 0, 0, 0.65);
}

.stock-notify-content {
  position: relative;

  width: 100%;
  max-width: 460px;
  max-height: 90vh;

  overflow-y: auto;

  background: #fff;
  padding: 35px;

  border-radius: 12px;

  box-shadow: 0 15px 50px #0002;
}

.stock-notify-close {
  position: absolute;
  top: 12px;
  right: 15px;

  border: 0;
  background: transparent;

  font-size: 22px;
  color: var(--ink);
}

.stock-notify-content h2 {
  font-family: Georgia, serif;
  font-weight: 400;
  font-size: 29px;

  margin: 15px 0;
}

#stockNotifyProduct {
  font-weight: 600;
  color: #8c705c;

  padding-bottom: 15px;
  border-bottom: 1px solid var(--sand);
}

#stockNotifyForm p {
  color: #766b60;
  font-size: 14px;
  line-height: 1.7;
}

#stockNotifyForm label {
  display: block;

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

  margin: 20px 0 8px;
}

#stockNotifyEmail {
  width: 100%;
  padding: 13px;

  border: 1px solid #d7ccc0;
  background: #faf8f5;

  font-size: 16px;
}

#stockNotifyEmail:focus {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

#stockNotifyForm small {
  display: block;

  margin-top: 15px;

  font-size: 11px;
  line-height: 1.6;
  color: #766b60;

  text-align: center;
}

.stock-notify-success {
  background: #f0f7f1;
  color: #39734c;

  border: 1px solid #cde2d2;

  padding: 18px;
  border-radius: 6px;

  line-height: 1.7;
  font-size: 14px;
}

.stock-notify-error {
  background: #fff3f3;
  color: #a33;

  border: 1px solid #ead0d0;

  padding: 14px;
  border-radius: 6px;

  font-size: 13px;
}

/* Adaptación para celulares */

@media (max-width: 550px) {
  .stock-notify-content {
    padding: 28px 20px;
  }

  .stock-notify-content h2 {
    font-size: 25px;
  }

  .stock-notify-btn {
    font-size: 11px;
    line-height: 1.5;
  }
}

/* ======================================
   CALOVA - PANEL DE AVISOS DE REPOSICIÓN
   ====================================== */

.avisos-indicadores {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 12px;
  margin: 20px 0;
}

.aviso-indicador {
  background: #faf7f2;
  border: 1px solid #e5ddd2;
  border-radius: 8px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.aviso-indicador span {
  font-size: 13px;
  color: #756b60;
}

.aviso-indicador strong {
  font-size: 28px;
}

#avisosPendientes {
  color: #ad812e;
}

#avisosNotificados {
  color: #28754c;
}

#avisosErrores {
  color: #b43d3d;
}

#avisosSinVerificar,
#avisosCancelados {
  color: #777;
}

/* ======================================
   CALOVA - FILTROS AVANZADOS DE AVISOS
====================================== */

.avisos-filtros {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: end;

  gap: 15px;
  margin: 20px 0;
  padding: 20px;

  background: #faf7f2;
  border: 1px solid #e5ddd2;
  border-radius: 10px;
}

.avisos-filtros label {
  margin: 0;
  min-width: 0;

  font-size: 12px;
  font-weight: 600;
  color: #766b60;
}

.avisos-filtros input,
.avisos-filtros select {
  width: 100%;
  min-width: 0;
  height: 44px;

  margin-top: 8px;
  padding: 10px;

  background: white;
  border: 1px solid #d7ccc0;
  border-radius: 5px;

  font-size: 13px;
}

.avisos-filtros input:focus,
.avisos-filtros select:focus {
  outline: 2px solid var(--gold);
  outline-offset: 1px;
}

#limpiarFiltrosAvisos {
  height: 44px;
  border-radius: 5px;

  font-size: 13px;
  font-weight: 600;
}

#limpiarFiltrosAvisos:hover {
  background: #eee6db;
}

/* Tablets */

@media (max-width: 1000px) {
  .avisos-filtros {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Celulares */

@media (max-width: 550px) {
  .avisos-filtros {
    grid-template-columns: minmax(0, 1fr);
    padding: 15px;
    gap: 12px;
  }

  #limpiarFiltrosAvisos {
    width: 100%;
  }
}

#historialAvisosStock {
  max-height: 420px;
  overflow-y: auto;
}

.aviso-stock-row {
  border-bottom: 1px solid #e5ddd2;
  padding: 16px 8px;
  overflow-wrap: anywhere;
}

.aviso-stock-row p {
  font-size: 13px;
  margin: 6px 0;
}

.aviso-estado {
  display: inline-block;
  border-radius: 5px;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 600;
  background: #eee;
  color: #666;
}

.aviso-estado[data-estado="PENDIENTE"] {
  background: #fff1d6;
  color: #956a20;
}

.aviso-estado[data-estado="NOTIFICADO"] {
  background: #e3f3e8;
  color: #28754c;
}

.aviso-estado[data-estado="ERROR"] {
  background: #fce5e5;
  color: #b43d3d;
}

#demandaAvisosStock {
  margin-bottom: 25px;
  max-height: 250px;
  overflow-y: auto;
}
/* ======================================
   CALOVA - NUEVO PANEL ADMINISTRATIVO
====================================== */

.admin-main {
  width: 100%;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
  padding: 24px;
  box-sizing: border-box;
}

/* Menú de navegación */

.admin-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px;
  margin: 20px 0;
  background: #f1ebe3;
  border: 1px solid #e4dbcf;
  border-radius: 12px;
  position: sticky;
  top: 0;
  z-index: 100;
}

/* Botones del menú */

.admin-tab {
  flex: 1;
  padding: 12px 16px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: #51463c;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition:
    background 0.2s,
    color 0.2s;
}

.admin-tab:hover {
  background: #e3d8cb;
}

.admin-tab.activo {
  background: #292521;
  color: #ffffff;
}

.admin-tab:focus-visible {
  outline: 2px solid #ad8664;
  outline-offset: 2px;
}

/* Contenedor de las secciones */

.admin-contenido {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

/* Distribución en dos columnas */

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

.admin-contenido > .admin-card {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
}

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

/* Listado de productos con scroll */

#adminProducts {
  max-height: 650px;
  overflow-y: auto;
}

/* Permitir que las acciones se acomoden */

#adminProducts .admin-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

#adminProducts .admin-row > div {
  flex: 1;
  min-width: 120px;
}

/* Mensajes administrativos */

#adminMessage:not(:empty) {
  position: sticky;
  bottom: 12px;
  z-index: 101;
  padding: 14px 20px;
  background: #292521;
  color: white;
  border-radius: 8px;
  text-align: center;
}

/* Tablets y celulares */

@media (max-width: 1000px) {
  .admin-contenido.admin-doble-columna {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 600px) {
  .admin-main {
    padding: 12px;
  }

  .admin-nav {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: 8px;
    gap: 6px;
  }

  .admin-tab {
    flex: 0 0 auto;
    padding: 10px 14px;
    font-size: 13px;
  }

  .admin-contenido {
    gap: 12px;
  }
}
/* ======================================
   CALOVA - GESTIÓN DE AVISOS DE STOCK
====================================== */

.aviso-acciones {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 15px;
}

.aviso-btn {
  padding: 9px 14px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

/* Reintentar */

.aviso-btn-reintentar {
  background: var(--ink);
  color: white;
}

.aviso-btn-reintentar:hover {
  background: #705943;
}

/* Cancelar */

.aviso-btn-cancelar {
  background: #fff5e5;
  color: #956a20;
  border-color: #ead5b8;
}

.aviso-btn-cancelar:hover {
  background: #f6e5c8;
}

/* Eliminar */

.aviso-btn-eliminar {
  background: #fff;
  color: #b43d3d;
  border-color: #e6bcbc;
}

.aviso-btn-eliminar:hover {
  background: #fce5e5;
}

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

/* Procesamiento */

.aviso-procesando {
  font-size: 12px;
  font-weight: 600;
  color: #ad812e;
}

/* Mensajes */

.aviso-mensaje-exito {
  background: #e3f3e8;
  color: #28754c;
  padding: 14px;
  border-radius: 6px;
  font-size: 13px;
}

.aviso-mensaje-error {
  background: #fce5e5;
  color: #b43d3d;
  padding: 14px;
  border-radius: 6px;
  font-size: 13px;
}

#mensajeAvisos:empty {
  display: none;
}

@media (max-width: 600px) {
  .aviso-acciones {
    flex-direction: column;
    align-items: stretch;
  }

  .aviso-btn {
    width: 100%;
    padding: 12px;
  }
}
/* ======================================
   CALOVA - GALERÍA ADMINISTRATIVA
====================================== */

.admin-galeria {
  grid-column: 1 / -1;
  min-width: 0;

  margin: 15px 0;
  padding: 20px;

  background: #faf7f2;
  border: 1px solid #e5ddd2;
  border-radius: 10px;
}

.admin-galeria h3 {
  margin: 0 0 10px;
  font-size: 17px;
  color: var(--ink);
}

.admin-galeria-descripcion {
  font-size: 13px;
  color: #766b60;
  line-height: 1.6;
  margin-bottom: 20px;
}

/* Distribución de fotografías */

.admin-galeria-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

/* Espacios disponibles */

.admin-foto-vacia {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  aspect-ratio: 1 / 1;
  gap: 8px;
  padding: 12px;

  background: #fff;
  border: 1px dashed #c7b9a9;
  border-radius: 8px;

  text-align: center;
  color: #766b60;
}

.admin-foto-vacia:first-child {
  border-color: var(--gold);
}

.admin-foto-icono {
  font-size: 32px;
  font-weight: 300;
  color: var(--gold);
}

.admin-foto-vacia strong {
  font-size: 13px;
}

.admin-foto-vacia small {
  font-size: 11px;
}

/* Fotografías cargadas */

.admin-foto-card {
  min-width: 0;
  overflow: hidden;

  background: white;
  border: 1px solid #e5ddd2;
  border-radius: 8px;
}

.admin-foto-card.principal {
  border: 2px solid var(--gold);
}

.admin-foto-card img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;

  object-fit: contain;
  background: #f1ebe3;
}

.admin-foto-info {
  padding: 10px;
}

.admin-foto-info strong {
  display: block;
  font-size: 12px;
  margin-bottom: 10px;
}

/* Acciones de cada fotografía */

.admin-foto-acciones {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.admin-foto-acciones button {
  flex: 1;

  padding: 8px;
  background: white;

  border: 1px solid #d7ccc0;
  border-radius: 5px;

  font-size: 12px;
}

.admin-foto-acciones button:hover:not(:disabled) {
  background: #eee6db;
}

.admin-foto-acciones button:disabled,
#agregarFotos:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

/* Contador y botón de carga */

.admin-galeria-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;

  gap: 12px;
  margin-top: 18px;
}

#contadorFotos {
  font-size: 12px;
  color: #766b60;
  font-weight: 600;
}

#agregarFotos {
  font-size: 12px;
  border-radius: 5px;
}

.admin-galeria-ayuda {
  display: block;
  margin-top: 12px;

  font-size: 11px;
  color: #766b60;
  line-height: 1.6;
}

#mensajeGaleria {
  font-size: 13px;
  line-height: 1.5;
  margin-bottom: 0;
}

#mensajeGaleria:empty {
  display: none;
}

#mensajeGaleria.error {
  color: #b43d3d;
}

#mensajeGaleria.exito {
  color: #28754c;
}

/* Adaptación para celulares */

@media (max-width: 550px) {
  .admin-galeria {
    padding: 12px;
  }

  .admin-galeria-grid {
    gap: 8px;
  }

  .admin-galeria-footer {
    flex-direction: column;
    align-items: stretch;
  }

  #agregarFotos {
    width: 100%;
  }

  .admin-foto-acciones button {
    min-height: 40px;
  }
}
/* ======================================
   CALOVA - ACCIONES DE FOTOGRAFÍAS
====================================== */

.admin-foto-acciones {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.admin-foto-acciones button {
  min-width: 0;
  min-height: 36px;
  padding: 8px 4px;
  overflow-wrap: anywhere;
}

.admin-foto-acciones .admin-foto-eliminar {
  color: #b43d3d;
  border-color: #e6bcbc;
}

.admin-foto-acciones .admin-foto-eliminar:hover:not(:disabled) {
  background: #fce5e5;
}

.admin-foto-acciones .admin-foto-principal {
  grid-column: 1 / -1;

  background: #eee6db;
  color: #705943;
  border-color: #c7b9a9;

  font-weight: 600;
}

.admin-foto-acciones .admin-foto-principal:hover:not(:disabled) {
  background: #e3d8cb;
}

.admin-foto-acciones button:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

@media (max-width: 550px) {
  .admin-foto-acciones button {
    min-height: 44px;
    font-size: 11px;
  }
}

/* ======================================
   CALOVA - GALERÍA PÚBLICA DE PRODUCTOS
====================================== */

.product-detail-image,
.product-detail-info {
  min-width: 0;
}

.detail-gallery {
  width: 100%;
  min-width: 0;
}

/* Fotografía principal */

.detail-gallery-main {
  position: relative;

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

  width: 100%;
  aspect-ratio: 1 / 1;

  background: #f5f0e9;
  border: 1px solid #e5ddd2;
  border-radius: 10px;

  overflow: hidden;
}

#detailImage {
  display: block;

  width: 100%;
  height: 100%;

  object-fit: contain;
}

/* Flechas de navegación */

.detail-gallery-arrow {
  position: absolute;
  top: 50%;

  transform: translateY(-50%);

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

  width: 42px;
  height: 42px;

  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);

  border: 1px solid #e5ddd2;
  border-radius: 50%;

  font-size: 18px;
  cursor: pointer;

  box-shadow: 0 2px 10px #0001;

  transition: background 0.2s;
}

.detail-gallery-prev {
  left: 12px;
}

.detail-gallery-next {
  right: 12px;
}

.detail-gallery-arrow:hover:not(:disabled) {
  background: var(--sand);
}

/* Botón de ampliación */

.detail-gallery-zoom {
  position: absolute;
  right: 12px;
  bottom: 12px;

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

  width: 42px;
  height: 42px;

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

  border: 1px solid #e5ddd2;
  border-radius: 50%;

  font-size: 18px;
  cursor: pointer;
}

.detail-gallery-zoom:hover:not(:disabled) {
  background: var(--sand);
}

/* Contador de fotografías */

.detail-gallery-counter {
  margin: 12px 0;

  text-align: center;
  font-size: 12px;
  color: #766b60;
}

/* Miniaturas */

.detail-gallery-thumbnails {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));

  gap: 10px;
  margin-top: 12px;
}

.detail-gallery-thumbnail {
  display: block;

  width: 100%;
  min-width: 0;
  aspect-ratio: 1 / 1;

  padding: 3px;

  background: white;

  border: 2px solid #e5ddd2;
  border-radius: 7px;

  overflow: hidden;
  cursor: pointer;

  transition: border-color 0.2s;
}

.detail-gallery-thumbnail img {
  display: block;

  width: 100%;
  height: 100%;

  object-fit: contain;

  background: #f5f0e9;
  border-radius: 4px;
}

.detail-gallery-thumbnail:hover {
  border-color: #c7b9a9;
}

.detail-gallery-thumbnail.activa {
  border-color: var(--gold);
}

/* Accesibilidad */

.detail-gallery button:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.detail-gallery button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

/* Adaptación para celulares */

@media (max-width: 768px) {
  .detail-gallery-main {
    max-width: 420px;
    margin: 0 auto;
  }

  .detail-gallery-thumbnails {
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
    gap: 8px;
  }

  .detail-gallery-arrow,
  .detail-gallery-zoom {
    width: 44px;
    height: 44px;
  }

  .detail-gallery-prev {
    left: 8px;
  }

  .detail-gallery-next {
    right: 8px;
  }

  .detail-gallery-zoom {
    right: 8px;
    bottom: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .detail-gallery button {
    transition: none;
  }
}
/* ======================================
   CALOVA - NAVEGACIÓN TÁCTIL DE GALERÍA
====================================== */

.detail-gallery-main {
  touch-action: pan-y pinch-zoom;

  user-select: none;
  -webkit-user-select: none;
}

#detailImage {
  -webkit-user-drag: none;
  user-select: none;
}

/* Evitar selección accidental de miniaturas */

.detail-gallery-thumbnail img {
  -webkit-user-drag: none;
  user-select: none;
}

/* Respuesta visual al presionar las flechas */

.detail-gallery-arrow:active:not(:disabled) {
  background: #e8dfd2;
  transform: translateY(-50%) scale(0.94);
}

/* Evitar animaciones si el usuario las deshabilitó */

@media (prefers-reduced-motion: reduce) {
  .detail-gallery-arrow:active:not(:disabled) {
    transform: translateY(-50%);
  }
}
/* ======================================
   CALOVA - VISOR AMPLIADO DE FOTOGRAFÍAS
====================================== */

.visor-fotos {
  position: fixed;
  inset: 0;

  width: 100%;
  height: 100%;

  max-width: none;
  max-height: none;

  margin: 0;
  padding: 0;

  border: none;

  background: rgba(15, 15, 15, 0.98);
  color: white;

  overflow: hidden;

  box-sizing: border-box;
}

.visor-fotos:not([open]) {
  display: none;
}

.visor-fotos::backdrop {
  background: rgba(0, 0, 0, 0.9);
}

/* Contenedor general */

.visor-contenido {
  display: grid;

  grid-template-rows: auto minmax(0, 1fr) auto;

  width: 100%;
  height: 100%;

  max-width: 1600px;

  margin: 0 auto;

  padding: 16px 24px;

  box-sizing: border-box;
}

/* Encabezado */

.visor-header {
  display: flex;

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

  gap: 16px;

  padding-bottom: 12px;
}

#visorTitulo {
  margin: 0;

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

  color: white;

  overflow-wrap: anywhere;
}

/* Botón de cierre */

.visor-cerrar {
  display: flex;

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

  flex-shrink: 0;

  width: 44px;
  height: 44px;

  border: 1px solid #ffffff40;
  border-radius: 50%;

  background: #ffffff15;
  color: white;

  font-size: 30px;
  cursor: pointer;
}

.visor-cerrar:hover {
  background: #ffffff30;
}

/* Fotografía ampliada */

.visor-superficie {
  position: relative;

  display: flex;

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

  min-width: 0;
  min-height: 0;

  overflow: hidden;

  touch-action: pan-y pinch-zoom;

  user-select: none;
  -webkit-user-select: none;
}

#visorImagen {
  display: block;

  width: auto;
  height: auto;

  max-width: 100%;
  max-height: 100%;

  object-fit: contain;

  border-radius: 5px;

  -webkit-user-drag: none;
  user-select: none;
}

/* Flechas de navegación */

.visor-flecha {
  position: absolute;

  top: 50%;

  transform: translateY(-50%);

  display: flex;

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

  width: 48px;
  height: 48px;

  background: rgba(0, 0, 0, 0.65);
  color: white;

  border: 1px solid #ffffff50;
  border-radius: 50%;

  font-size: 20px;
  cursor: pointer;
}

.visor-anterior {
  left: 12px;
}

.visor-siguiente {
  right: 12px;
}

.visor-flecha:hover:not(:disabled) {
  background: rgba(70, 70, 70, 0.9);
}

/* Contador y marca */

.visor-footer {
  display: flex;

  flex-direction: column;
  align-items: center;

  gap: 8px;

  padding-top: 12px;
}

#visorContador {
  margin: 0;

  font-size: 13px;
  color: #eeeeee;
}

.visor-marca {
  font-size: 11px;

  letter-spacing: 4px;

  color: #c7b9a9;
}

/* Accesibilidad */

.visor-fotos button:focus-visible {
  outline: 2px solid #d6bc85;
  outline-offset: 3px;
}

#detailImage.ampliable {
  cursor: zoom-in;
}

/* Adaptación para celulares */

@media (max-width: 768px) {
  .visor-contenido {
    padding: 12px;
  }

  #visorTitulo {
    font-size: 15px;
  }

  .visor-flecha {
    width: 44px;
    height: 44px;

    font-size: 17px;
  }

  .visor-anterior {
    left: 4px;
  }

  .visor-siguiente {
    right: 4px;
  }

  .visor-footer {
    padding-bottom: env(safe-area-inset-bottom);
  }
}
/* ======================================
   CALOVA - FORMATO DE DESCRIPCIONES
====================================== */

#detailDescription {
  white-space: pre-line;
  overflow-wrap: anywhere;
  line-height: 1.7;
  font-size: 15px;
  color: #51463c;
  margin: 18px 0 24px;
}

.product-info .description {
  white-space: normal;
  overflow-wrap: anywhere;
  line-height: 1.5;

  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;

  overflow: hidden;
  text-overflow: ellipsis;

  height: 4.5em;
  min-height: 4.5em;
}
/* Adaptación para celulares */

@media (max-width: 768px) {
  #detailDescription {
    font-size: 14px;
    line-height: 1.65;
  }
}
/* ======================================
   CALOVA - UNIFORMIDAD DEL CATÁLOGO
====================================== */

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

.product-info {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

.product-info h3 {
  min-height: 2.4em;
  line-height: 1.2;
}

.product-info .price {
  margin-top: auto;
  padding-top: 15px;
}
/* ======================================
   CALOVA - ESTADOS DE CARGA DE IMÁGENES
====================================== */

.calova-imagen {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  flex-shrink: 0;
  overflow: hidden;
  background: #f1ebe3;
  cursor: pointer;
}

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

/* Fotografía pendiente de carga */

.calova-imagen.cargando {
  background: linear-gradient(110deg, #e9e1d7 8%, #f8f4ef 18%, #e9e1d7 33%);

  background-size: 200% 100%;

  animation: calovaSkeleton 1.6s linear infinite;
}

.calova-imagen.cargando img {
  opacity: 0;
}

@keyframes calovaSkeleton {
  to {
    background-position-x: -200%;
  }
}

/* Fotografía cargada correctamente */

.calova-imagen.cargada img {
  opacity: 1;
  transition: opacity 0.25s ease;
}

/* Fotografía no disponible */

.calova-imagen.fallida {
  background: #f1ebe3;
}

.calova-imagen-alternativa {
  position: absolute;
  inset: 0;

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

  gap: 8px;
  padding: 12px;

  text-align: center;
  color: #8c735b;
}

.calova-imagen-icono {
  font-size: 42px;
  line-height: 1;
  font-weight: 300;
}

.calova-imagen-marca {
  font-family: Georgia, serif;
  font-size: 17px;
  letter-spacing: 4px;
  font-weight: 400;
}

.calova-imagen-mensaje {
  font-size: 11px;
  letter-spacing: 0.5px;
}

.calova-imagen [hidden] {
  display: none !important;
}

/* Accesibilidad: respetar movimiento reducido */

@media (prefers-reduced-motion: reduce) {
  .calova-imagen.cargando {
    animation: none;
  }

  .calova-imagen.cargada img {
    transition: none;
  }
}
/* ======================================
   CALOVA - ESTADOS DE IMÁGENES DE GALERÍA
====================================== */

.calova-estado-galeria {
  display: block;
  position: relative;
  min-width: 0;
  overflow: hidden;
}

.calova-estado-galeria.estado-detalle {
  width: 100%;
  aspect-ratio: 1 / 1;
}

.calova-estado-galeria.estado-detalle img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Miniaturas */

.calova-estado-galeria.estado-miniatura {
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;
}

.calova-estado-galeria.estado-miniatura img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Visor ampliado */

.calova-estado-galeria.estado-visor {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  max-height: 100%;
}

.calova-estado-galeria.estado-visor.cargando,
.calova-estado-galeria.estado-visor.fallida {
  width: min(70vw, 70vh, 700px);
  aspect-ratio: 1 / 1;
}

/* Estado de carga */

.calova-estado-galeria.cargando {
  background: linear-gradient(110deg, #e9e1d7 8%, #f8f4ef 18%, #e9e1d7 33%);

  background-size: 200% 100%;
  animation: calovaSkeleton 1.6s linear infinite;
}

.calova-estado-galeria.cargando img,
.calova-estado-galeria.fallida img {
  opacity: 0;
}

/* Estado correcto */

.calova-estado-galeria.cargada img {
  opacity: 1;
}

/* Estado de error */

.calova-estado-galeria.fallida {
  background: #f1ebe3;
}

.calova-estado-galeria .calova-imagen-alternativa {
  pointer-events: none;
}

.calova-estado-galeria [hidden] {
  display: none !important;
}

/* Alternativa compacta para miniaturas */

.estado-miniatura .calova-imagen-alternativa {
  padding: 2px;
  gap: 0;
}

.estado-miniatura .calova-imagen-icono {
  font-size: 25px;
}

.estado-miniatura .calova-imagen-marca,
.estado-miniatura .calova-imagen-mensaje {
  display: none;
}

/* Adaptar los estados al visor oscuro */

.estado-visor.cargando {
  background: linear-gradient(110deg, #282521 8%, #403a33 18%, #282521 33%);

  background-size: 200% 100%;
}

.estado-visor.fallida {
  background: #282521;
}

.estado-visor .calova-imagen-alternativa {
  color: #d6c2a7;
}

/* Accesibilidad */

@media (prefers-reduced-motion: reduce) {
  .calova-estado-galeria.cargando {
    animation: none;
  }
}
/* ======================================
   CALOVA - ESTADOS DE IMÁGENES DEL CARRITO
====================================== */

.calova-estado-galeria.estado-carrito {
  position: relative;

  width: 85px;
  height: 100px;

  flex: 0 0 85px;

  overflow: hidden;
  background-color: #f1ebe3;
}

.cart-row .estado-carrito img {
  display: block;

  width: 100%;
  height: 100%;

  object-fit: cover;
}

/* Alternativa visual compacta */

.estado-carrito .calova-imagen-alternativa {
  padding: 4px;
  gap: 4px;

  pointer-events: none;
}

.estado-carrito .calova-imagen-icono {
  font-size: 27px;
  line-height: 1;
}

.estado-carrito .calova-imagen-marca {
  font-size: 10px;
  letter-spacing: 1.5px;
}

.estado-carrito .calova-imagen-mensaje {
  font-size: 9px;
  letter-spacing: 0;
}

/* Adaptación para celulares pequeños */

@media (max-width: 480px) {
  .calova-estado-galeria.estado-carrito {
    width: 70px;
    height: 85px;

    flex-basis: 70px;
  }

  .estado-carrito .calova-imagen-icono {
    font-size: 23px;
  }

  .estado-carrito .calova-imagen-marca {
    font-size: 9px;
    letter-spacing: 1px;
  }
}
/* ======================================
   CALOVA - CATÁLOGO RESPONSIVE
====================================== */

.products {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.products .product {
  min-width: 0;
}

.products .product-info {
  min-width: 0;
  overflow-wrap: anywhere;
}

.products .calova-imagen {
  width: 100%;
  aspect-ratio: 1 / 1;
}

.products .add,
.products .stock-notify-btn {
  min-height: 44px;
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
  line-height: 1.4;
}

/* Tablets */

@media (min-width: 768px) and (max-width: 1023px) {
  .products {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
  }

  .products .product-info {
    padding: 15px;
  }

  .products .product h3 {
    font-size: 21px;
  }
}

/* Celulares */

@media (max-width: 767px) {
  .products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .products .product-info {
    padding: 12px;
  }

  .products .product h3 {
    font-size: 18px;
    line-height: 1.25;
    min-height: 2.5em;
  }

  .products .description {
    font-size: 12px;
    line-height: 1.5;
  }

  .products .price {
    font-size: 17px;
  }

  .products .eyebrow {
    font-size: 10px;
    letter-spacing: 1px;
  }

  .products .add,
  .products .stock-notify-btn {
    font-size: 10px;
    padding: 10px 6px;
    letter-spacing: 0.5px;
  }
}

/* Celulares muy pequeños */

@media (max-width: 359px) {
  .products {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  .products .product-info {
    padding: 16px;
  }

  .products .product h3 {
    font-size: 21px;
    min-height: auto;
  }

  .products .description {
    font-size: 13px;
  }

  .products .add,
  .products .stock-notify-btn {
    font-size: 12px;
  }
}
/* ======================================
   CALOVA - DETALLE Y GALERÍA RESPONSIVE
====================================== */

/* Controles táctiles */

.product-modal-close {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 44px;
  height: 44px;

  border-radius: 50%;
  background: rgba(255, 255, 255, 0.96);
}

.detail-quantity button {
  min-width: 44px;
  min-height: 44px;
}

#detailAddCart,
#detailWhatsApp,
#detailStockNotify {
  min-height: 44px;
  max-width: 100%;

  white-space: normal;
  overflow-wrap: anywhere;
}

.product-detail-info {
  min-width: 0;
  overflow-wrap: anywhere;
}

/* Evitar desplazamiento hacia la página de fondo */

.product-modal-content {
  box-sizing: border-box;
  overscroll-behavior-y: contain;
  max-height: 90vh;
  max-height: 90dvh;
}

/* Celulares y tablets pequeñas */

@media (max-width: 768px) {
  .product-modal {
    padding: 12px;
  }

  .product-modal-content {
    width: 100%;
    max-width: 560px;

    max-height: calc(100vh - 24px);
    max-height: calc(100dvh - 24px);

    padding: 56px 16px 20px;

    border-radius: 12px;
    overflow-y: auto;
  }

  .product-modal-close {
    top: 6px;
    right: 8px;
  }

  .product-detail {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
  }

  .product-detail-info h2 {
    font-size: 26px;
    line-height: 1.25;
    margin: 10px 0 16px;
  }

  .product-detail-info p {
    font-size: 14px;
    line-height: 1.6;
  }

  .detail-prices {
    margin: 20px 0;
  }

  .detail-prices h3 {
    font-size: 25px;
  }

  .detail-quantity {
    flex-wrap: wrap;
    gap: 12px;
  }

  .detail-gallery-main {
    width: 100%;
    max-width: 420px;

    aspect-ratio: 1 / 1;
    margin: 0 auto;
  }

  .detail-gallery-thumbnails {
    width: 100%;
    max-width: 420px;

    grid-template-columns: repeat(4, minmax(0, 1fr));

    gap: 8px;
  }

  .detail-gallery-thumbnail {
    min-height: 44px;
  }

  .detail-gallery-arrow,
  .detail-gallery-zoom {
    width: 44px;
    height: 44px;
    z-index: 1;
  }

  .detail-gallery-counter {
    font-size: 13px;
  }
}

/* Celulares muy pequeños */

@media (max-width: 359px) {
  .product-modal {
    padding: 6px;
  }

  .product-modal-content {
    padding: 56px 12px 16px;

    max-height: calc(100vh - 12px);
    max-height: calc(100dvh - 12px);
  }

  .product-detail-info h2 {
    font-size: 23px;
  }

  .detail-gallery-thumbnails {
    gap: 5px;
  }
}
/* ======================================
   CALOVA - VISOR RESPONSIVE
====================================== */

.visor-fotos {
  height: 100vh;
  height: 100dvh;
}

.visor-contenido {
  min-width: 0;
  min-height: 0;
}

.visor-superficie {
  min-width: 0;
  min-height: 0;
}

.calova-estado-galeria.estado-visor {
  min-width: 0;
  min-height: 0;

  max-width: 100%;
  max-height: 100%;
}

.estado-visor #visorImagen {
  max-width: 100%;
  max-height: 100%;

  object-fit: contain;
}

.visor-flecha,
.visor-cerrar {
  min-width: 44px;
  min-height: 44px;
}

.visor-flecha {
  z-index: 1;
}

/* Visor en celulares */

@media (max-width: 768px) {
  .visor-contenido {
    padding: 12px;

    padding-top: max(12px, env(safe-area-inset-top));

    padding-bottom: max(12px, env(safe-area-inset-bottom));

    padding-left: max(12px, env(safe-area-inset-left));

    padding-right: max(12px, env(safe-area-inset-right));
  }

  .visor-header {
    gap: 10px;
    padding-bottom: 8px;
  }

  #visorTitulo {
    font-size: 16px;
    line-height: 1.3;
  }

  .visor-flecha {
    width: 44px;
    height: 44px;
  }

  .calova-estado-galeria.estado-visor.cargando,
  .calova-estado-galeria.estado-visor.fallida {
    width: min(70vw, 65vh, 700px);
    width: min(70vw, 65dvh, 700px);
  }
}

/* Celulares en posición horizontal */

@media (orientation: landscape) and (max-height: 500px) {
  .product-modal {
    padding: 6px;
  }

  .product-modal-content {
    max-height: calc(100vh - 12px);
    max-height: calc(100dvh - 12px);
  }

  .visor-contenido {
    padding: 6px 12px;
  }

  .visor-header {
    padding-bottom: 4px;
  }

  #visorTitulo {
    font-size: 14px;
  }

  .calova-estado-galeria.estado-visor.cargando,
  .calova-estado-galeria.estado-visor.fallida {
    width: min(60vw, 55vh);
    width: min(60vw, 55dvh);
  }
}
/* ======================================
   CALOVA - CARRITO RESPONSIVE
====================================== */

.cart {
  box-sizing: border-box;

  width: min(480px, 100vw);

  height: 100vh;
  height: 100dvh;

  bottom: auto;

  min-height: 0;

  z-index: 10000;

  overscroll-behavior: contain;
}

/* Fondo del carrito */

.shade {
  z-index: 9999;
}

/* Encabezado */

.cart-head {
  flex-shrink: 0;
  gap: 12px;
}

.cart-head h2 {
  min-width: 0;
  overflow-wrap: anywhere;
}

.cart-head .icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;

  min-width: 44px;
  min-height: 44px;

  flex-shrink: 0;

  border-radius: 50%;
}

/* Listado de productos */

.cart-items {
  flex: 1 1 auto;

  min-height: 0;
  min-width: 0;

  overflow-y: auto;

  overscroll-behavior-y: contain;
}

/* Productos individuales */

.cart-row {
  min-width: 0;
  align-items: flex-start;
}

.cart-row-info {
  min-width: 0;

  overflow-wrap: anywhere;

  line-height: 1.5;
}

/* Controles de cantidad */

.cart-row .qty {
  flex-wrap: wrap;
  gap: 8px;
}

.cart-row .qty button {
  min-width: 44px;
  min-height: 44px;

  box-sizing: border-box;

  font-size: 16px;
}

.cart-row .qty .remove {
  min-height: 44px;

  font-size: 12px;
  padding: 8px;

  margin-left: auto;
}

.cart-row .qty button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

/* Mantener las notificaciones visibles */

.toast {
  z-index: 10002;

  max-width: calc(100vw - 24px);

  box-sizing: border-box;

  overflow-wrap: anywhere;
}
/* ======================================
   CALOVA - CHECKOUT RESPONSIVE
====================================== */

.cart .checkout {
  flex: 0 1 auto;

  min-width: 0;
  min-height: 0;

  box-sizing: border-box;

  max-height: 62vh;
  max-height: 62dvh;

  overflow-y: auto;

  overscroll-behavior-y: contain;
}

.cart .checkout label {
  overflow-wrap: anywhere;
}

.cart .checkout input,
.cart .checkout select,
.cart .checkout textarea {
  box-sizing: border-box;

  width: 100%;
  max-width: 100%;

  min-height: 44px;
}

.cart .checkout textarea {
  min-height: 80px;

  resize: vertical;
}

/* Importes */

.cart .totals > div {
  align-items: baseline;

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

.cart .totals > div > * {
  min-width: 0;
  overflow-wrap: anywhere;
}

.cart .totals .grand {
  font-size: 22px;
  font-weight: 600;
}

/* Botón de finalizar pedido */

.cart .checkout .wide {
  width: 100%;
  min-height: 48px;

  padding: 14px 12px;

  white-space: normal;
  overflow-wrap: anywhere;

  line-height: 1.5;
}

.cart .checkout small {
  font-size: 12px;
  line-height: 1.6;
}

/* Indicadores de foco */

.cart button:focus-visible,
.cart input:focus-visible,
.cart select:focus-visible,
.cart textarea:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}
/* ======================================
   CALOVA - CARRITO EN CELULARES
====================================== */

@media (max-width: 480px) {
  .cart {
    width: 100%;
    max-width: 100%;
  }

  .cart-head {
    padding: 12px 16px;

    padding-top: max(12px, env(safe-area-inset-top));
  }

  .cart-head h2 {
    font-size: 24px;
  }

  .cart-items {
    padding: 10px 16px;
  }

  .cart-row {
    gap: 12px;
    padding: 14px 0;
  }

  .cart-row-info {
    font-size: 14px;
    gap: 6px;
  }

  .cart-row .qty {
    gap: 6px;
  }

  .cart-row .qty .remove {
    font-size: 12px;
  }

  .cart .checkout {
    padding: 14px 16px 18px;

    padding-bottom: max(18px, env(safe-area-inset-bottom));

    max-height: 58vh;
    max-height: 58dvh;
  }

  .cart .checkout label {
    font-size: 13px;
    margin: 10px 0;
  }

  .cart .checkout input,
  .cart .checkout select,
  .cart .checkout textarea {
    font-size: 16px;
  }

  .cart .totals {
    margin-top: 12px;
  }

  .cart .totals > div {
    font-size: 14px;
  }

  .cart .totals .grand {
    font-size: 21px;
  }

  .cart .checkout .wide {
    font-size: 12px;
    letter-spacing: 0.5px;
  }
}

/* Celulares muy pequeños */

@media (max-width: 359px) {
  .cart-head {
    padding-left: 12px;
    padding-right: 12px;
  }

  .cart-items {
    padding-left: 12px;
    padding-right: 12px;
  }

  .cart-row {
    gap: 8px;
  }

  .cart-row-info {
    font-size: 13px;
  }

  .cart-row .qty .remove {
    margin-left: 0;
  }

  .cart .checkout {
    padding-left: 12px;
    padding-right: 12px;
  }

  .cart .totals .grand {
    font-size: 19px;
  }
}

/* Celulares en posición horizontal */

@media (orientation: landscape) and (max-height: 500px) {
  .cart-head {
    padding: 6px 16px;
  }

  .cart-head h2 {
    font-size: 21px;
  }

  .cart-items {
    padding-top: 6px;
    padding-bottom: 6px;
  }

  .cart .checkout {
    max-height: 50vh;
    max-height: 50dvh;

    padding: 10px 16px;
  }
}

/* Preferencia de movimiento reducido */

@media (prefers-reduced-motion: reduce) {
  .cart {
    transition: none;
  }
}
/* ======================================
   CALOVA - ACCESIBILIDAD VISUAL
====================================== */

:root {
  --gold-text: #806044;
  --muted-text: #6b6056;
  --focus-color: #70533b;
  --focus-light: #ffffff;
}

/* Textos secundarios */

.eyebrow {
  color: var(--gold-text);
}

.section-head > p,
.product-info .description,
.cart-row-info span,
.cart .checkout small,
.cart .empty {
  color: var(--muted-text);
}

/* Descripción del detalle */

.product-detail-info .description {
  color: var(--muted-text);
}

/* Alternativa de fotografías dañadas */

.calova-imagen-alternativa {
  color: var(--gold-text);
}

/* Conservar contraste en el visor oscuro */

.estado-visor .calova-imagen-alternativa {
  color: #d6c2a7;
}

/* Texto seleccionado en formularios */

::selection {
  background: #70533b;
  color: #ffffff;
}
/* ======================================
   CALOVA - FOCO DE TECLADO
====================================== */

body
  :is(
    a[href],
    button,
    input,
    select,
    textarea,
    summary,
    [tabindex]
  ):focus-visible {
  outline: 3px solid var(--focus-color);
  outline-offset: 3px;

  box-shadow: 0 0 0 3px var(--focus-light);
}

/* Sobrescribir indicadores anteriores */

.cart button:focus-visible,
.cart input:focus-visible,
.cart select:focus-visible,
.cart textarea:focus-visible,
.detail-gallery button:focus-visible {
  outline: 3px solid var(--focus-color);
  outline-offset: 3px;

  box-shadow: 0 0 0 3px var(--focus-light);
}

/* Miniaturas: foco dentro del borde */

.detail-gallery-thumbnail:focus-visible {
  outline: 3px solid var(--focus-color);
  outline-offset: -3px;
}

/* Visor oscuro */

.visor-fotos :is(button, a[href], [tabindex]):focus-visible {
  outline: 3px solid #ffffff;
  outline-offset: 3px;

  box-shadow: 0 0 0 3px #292521;
}

/* Separación al navegar hacia elementos */

.products :focus-visible,
.cart :focus-visible,
.product-modal :focus-visible {
  scroll-margin: 12px;
}
/* ======================================
   CALOVA - ESTADOS DE SELECCIÓN
====================================== */

/* Categoría seleccionada */

.filters button.active {
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* Fotografía seleccionada */

.detail-gallery-thumbnail.activa {
  border-color: var(--focus-color);

  box-shadow: inset 0 0 0 2px var(--focus-color);
}

/* Diferenciar selección de foco */

.detail-gallery-thumbnail.activa:focus-visible {
  outline: 3px dashed var(--focus-color);
  outline-offset: -5px;
}

/* Botones deshabilitados */

button:disabled {
  cursor: not-allowed;
}
/* ======================================
   CALOVA - MOVIMIENTO REDUCIDO
====================================== */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto !important;
  }

  .cart,
  .product-modal,
  .product,
  .product img,
  .detail-gallery button,
  .visor-fotos,
  .visor-fotos button,
  .whatsapp-flotante,
  .toast {
    transition: none !important;
  }

  .calova-imagen.cargando,
  .calova-estado-galeria.cargando {
    animation: none !important;
  }
}
/* ======================================
   CALOVA - ALTO CONTRASTE DEL SISTEMA
====================================== */

@media (forced-colors: active) {
  body :is(a[href], button, input, select, textarea, [tabindex]):focus-visible {
    outline: 3px solid Highlight !important;
    outline-offset: 3px;

    box-shadow: none !important;
  }

  .filters button.active {
    border: 2px solid Highlight;
    text-decoration: underline;
  }

  .detail-gallery-thumbnail.activa {
    border: 3px solid Highlight;
  }

  .calova-imagen-alternativa {
    border: 1px solid CanvasText;
  }
}
/* ======================================
   CALOVA - CATÁLOGO ACCESIBLE POR TECLADO
====================================== */

button.calova-imagen {
  appearance: none;
  -webkit-appearance: none;

  display: block;

  width: 100%;
  aspect-ratio: 1 / 1;

  padding: 0;
  margin: 0;
  border: 0;

  border-radius: 0;

  font: inherit;
  color: inherit;
  text-align: inherit;

  cursor: pointer;
}

/* Indicador de foco dentro de la fotografía */

.products button.calova-imagen:focus-visible {
  outline: 3px solid var(--focus-color);
  outline-offset: -5px;

  box-shadow: none;
}

/* Contraste adicional sobre cualquier fotografía */

.products button.calova-imagen:focus-visible::after {
  content: "";

  position: absolute;
  inset: 2px;

  border: 2px solid #ffffff;

  pointer-events: none;
}

/* Compatibilidad con alto contraste */

@media (forced-colors: active) {
  .products button.calova-imagen:focus-visible {
    outline: 3px solid Highlight !important;
    outline-offset: -4px;
  }

  .products button.calova-imagen:focus-visible::after {
    display: none;
  }
}
/* ======================================
   CALOVA - CONTENIDO PARA LECTORES
   DE PANTALLA
====================================== */

.calova-solo-lector {
  position: absolute !important;

  width: 1px !important;
  height: 1px !important;

  padding: 0 !important;
  margin: -1px !important;

  overflow: hidden !important;

  clip: rect(0, 0, 0, 0) !important;
  clip-path: inset(50%) !important;

  white-space: nowrap !important;

  border: 0 !important;
}
/* =====================================
   ACCESIBILIDAD - LEGIBILIDAD DE MARCA
===================================== */

.brand span {
  font-size: 12px;
}
/* ======================================
   CALOVA - ADMINISTRACIÓN DEL BANNER
====================================== */

#panelBanner {
  min-width: 0;
}

/* Encabezado */

.banner-admin-encabezado {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.banner-admin-descripcion {
  color: #594e44;
  font-size: 14px;
  line-height: 1.6;
}

.banner-admin-estado {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 6px;
  background: #eee6db;
  color: #51463c;
  font-size: 13px;
  font-weight: 600;
}

.banner-admin-estado.activo {
  background: #e3f3e8;
  color: #24633f;
}

.banner-admin-estado.inactivo {
  background: #eee;
  color: #555;
}

/* Configuración */

.banner-admin-configuracion {
  margin: 24px 0;
  padding: 20px;
  background: #faf7f2;
  border: 1px solid #e5ddd2;
  border-radius: 10px;
}

#panelBanner .banner-admin-activacion {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}

#panelBanner #bannerActivo {
  display: block;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin: 0;
  padding: 0;
  accent-color: #705943;
}

.banner-admin-ayuda {
  color: #594e44;
  font-size: 13px;
  line-height: 1.6;
}

/* Galería */

.banner-admin-galeria {
  padding: 20px;
  background: #faf7f2;
  border: 1px solid #e5ddd2;
  border-radius: 10px;
}

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

.banner-admin-galeria-header h3 {
  margin: 0;
  font-size: 17px;
}

#contadorFotosBanner {
  font-size: 13px;
  color: #594e44;
  font-weight: 600;
}

.banner-admin-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

/* Espacios disponibles */

.banner-admin-foto-vacia {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  aspect-ratio: 16 / 9;
  min-width: 0;
  padding: 12px;
  background: #fff;
  border: 1px dashed #b7a99c;
  border-radius: 8px;
  text-align: center;
  color: #594e44;
}

.banner-admin-foto-vacia > span {
  font-size: 32px;
  color: #806044;
  line-height: 1;
}

.banner-admin-foto-vacia strong {
  font-size: 14px;
}

.banner-admin-foto-vacia small {
  font-size: 12px;
}

/* Fotografías cargadas */

.banner-admin-foto-card {
  min-width: 0;
  overflow: hidden;
  background: white;
  border: 1px solid #d7ccc0;
  border-radius: 8px;
}

.banner-admin-foto-card.principal {
  border: 2px solid #806044;
}

.banner-admin-foto-card img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  background: #f1ebe3;
}

.banner-admin-foto-info {
  padding: 14px;
}

.banner-admin-foto-info strong {
  display: block;
  margin-bottom: 12px;
  font-size: 13px;
}

/* Acciones de fotografías */

.banner-admin-foto-acciones {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.banner-admin-foto-acciones button {
  min-width: 0;
  min-height: 44px;
  padding: 8px;
  border: 1px solid #d7ccc0;
  border-radius: 5px;
  background: white;
  font-size: 12px;
  overflow-wrap: anywhere;
}

.banner-admin-foto-acciones button:hover:not(:disabled) {
  background: #eee6db;
}

.banner-admin-foto-acciones .eliminar {
  color: #a33;
  border-color: #e6bcbc;
}

#agregarFotosBanner {
  margin-top: 20px;
  min-height: 44px;
  border-radius: 5px;
}

/* Guardado y cancelación */

.banner-admin-acciones {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.banner-admin-acciones button {
  flex: 1;
  min-height: 44px;
  margin: 0;
  border-radius: 5px;
}

#panelBanner button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

/* Mensajes */

.banner-admin-cambios {
  padding: 12px;
  background: #fff5e5;
  color: #785317;
  border: 1px solid #ead5b8;
  border-radius: 6px;
  font-size: 13px;
}

.banner-admin-mensaje {
  font-size: 14px;
  line-height: 1.6;
}

.banner-admin-mensaje:empty {
  display: none;
}

.banner-admin-mensaje.error {
  padding: 14px;
  background: #fff3f3;
  color: #a33;
  border-radius: 6px;
}

.banner-admin-mensaje.exito {
  padding: 14px;
  background: #e3f3e8;
  color: #24633f;
  border-radius: 6px;
}

/* Accesibilidad */

#panelBanner button:focus-visible,
#panelBanner input:focus-visible {
  outline: 3px solid #70533b;
  outline-offset: 3px;
}

/* Adaptación para celulares */

@media (max-width: 600px) {
  #panelBanner {
    padding: 16px;
  }

  .banner-admin-configuracion,
  .banner-admin-galeria {
    padding: 12px;
  }

  .banner-admin-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  .banner-admin-acciones {
    flex-direction: column;
  }

  .banner-admin-acciones button,
  #agregarFotosBanner {
    width: 100%;
  }
}

/* CALOVA - BANNER PÚBLICO DINÁMICO */
.hero {
  position: relative;
  isolation: isolate;
  background-color: #f4ece1;
}
.banner-publico-fotos {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  pointer-events: none;
}
.banner-publico-foto {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  transition: opacity 800ms ease;
}
.banner-publico-foto.activa {
  opacity: 1;
}
.hero.banner-dinamico {
  background: #f4ece1;
}
.hero.banner-dinamico::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    #f4ece1 0%,
    rgba(244, 236, 225, 0.97) 28%,
    rgba(244, 236, 225, 0.88) 45%,
    rgba(244, 236, 225, 0.12) 72%,
    transparent 100%
  );
}
.hero.banner-dinamico .hero-inner {
  padding-block: 40px 90px;
}
.hero h1 em {
  color: #70533b;
}
.banner-publico-controles {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 4px;
  border-radius: 30px;
  background: #faf7f2;
  color: #292521;
  max-width: calc(100% - 16px);
}
.banner-publico-indicadores {
  display: flex;
  gap: 0;
}
.banner-publico-controles button {
  min-width: 44px;
  min-height: 44px;
  border: 1px solid transparent;
  border-radius: 24px;
  background: #faf7f2;
  color: #292521;
  font-size: 13px;
  padding: 4px 8px;
}
.banner-publico-indicadores button {
  padding: 0;
  display: grid;
  place-items: center;
}
.banner-publico-indicadores button::after {
  content: "";
  width: 10px;
  height: 10px;
  border: 2px solid #70533b;
  border-radius: 50%;
}
.banner-publico-indicadores button[aria-pressed="true"]::after {
  background: #70533b;
}
.banner-publico-controles button:hover:not(:disabled) {
  background: #e9dfd2;
}
.banner-publico-controles button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
@media (max-width: 767px) {
  .hero.banner-dinamico {
    min-height: 500px;
    align-items: end;
  }
  .hero.banner-dinamico::before {
    background: linear-gradient(
      0deg,
      #f4ece1 0%,
      rgba(244, 236, 225, 0.98) 47%,
      rgba(244, 236, 225, 0.9) 62%,
      transparent 90%
    );
  }
  .hero.banner-dinamico .hero-inner {
    margin: auto auto 0;
    padding-top: 180px;
    padding-bottom: 90px;
  }
  .hero h1 {
    font-size: clamp(34px, 8vw, 52px);
  }
  .banner-publico-controles {
    gap: 0;
  }
  .banner-publico-controles button {
    padding-inline: 4px;
  }
}
@media (max-width: 359px) {
  .banner-publico-controles {
    flex-wrap: wrap;
    width: max-content;
    border-radius: 12px;
  }
  .hero.banner-dinamico .hero-inner {
    padding-bottom: 125px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .banner-publico-foto {
    transition: none;
  }
}
@media (forced-colors: active) {
  .banner-publico-indicadores button[aria-pressed="true"]::after {
    background: Highlight;
    forced-color-adjust: none;
  }
}

/* ======================================
   CALOVA - FOOTER PRINCIPAL
====================================== */

.calova-footer {
  display: block;
  background: #292521;
  color: #f5f0e9;
  padding: 60px 5% 25px;
  font-size: 14px;
  letter-spacing: normal;
}

.calova-footer-contenido {
  max-width: 1200px;
  margin: 0 auto;

  display: grid;
  grid-template-columns: 1.3fr 0.9fr 1.2fr 1fr;
  gap: 30px;

  padding-bottom: 40px;
}

.calova-footer-logo {
  display: inline-block;
  font-family: Georgia, serif;
  font-size: 32px;
  letter-spacing: 6px;
  color: #f5f0e9;
  text-decoration: none;
}

.calova-footer-logo span {
  display: block;
  text-align: center;
  font-family: "DM Sans", Arial, sans-serif;
  font-size: 12px;
  letter-spacing: 4px;
  color: #d4b69b;
  margin-top: 5px;
}

.calova-footer-marca p {
  color: #d4c9bd;
  line-height: 1.8;
  margin: 8px 0;
}

.calova-footer-marca .calova-footer-eslogan {
  font-family: Georgia, serif;
  font-size: 19px;
  font-style: italic;
  color: #f5f0e9;
  margin-top: 22px;
}

.calova-footer-columna {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}

.calova-footer-columna h2 {
  color: #d4b69b;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin: 5px 0 10px;
}

.calova-footer-columna a,
.calova-footer-columna p {
  color: #e5d9cc;
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
}

.calova-footer-columna a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  transition: color 0.2s ease;
}

.calova-footer-columna a:hover {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.calova-footer a:focus-visible {
  outline: 2px solid #d4b69b;
  outline-offset: 5px;
  border-radius: 2px;
}

.calova-footer-inferior {
  max-width: 1200px;
  margin: 0 auto;

  border-top: 1px solid #554a40;
  padding-top: 24px;

  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.calova-footer-inferior p {
  color: #d4c9bd;
  font-size: 12px;
  line-height: 1.6;
  margin: 0;
}

.calova-footer-inferior .calova-footer-firma {
  color: #d4b69b;
  font-style: italic;
}

/* Tablets */

@media (max-width: 900px) {
  .calova-footer-contenido {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }

  .calova-footer-marca {
    grid-column: 1 / -1;
  }
}

/* Celulares */

@media (max-width: 550px) {
  .calova-footer {
    padding: 40px 20px 25px;
  }

  .calova-footer-contenido {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .calova-footer-marca {
    grid-column: auto;
  }

  .calova-footer-inferior {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }
}
/* ======================================
   CALOVA - PANEL DE ARREPENTIMIENTOS
====================================== */

.arp-descripcion {
  font-size: 14px;
  color: #766b60;
  line-height: 1.6;
}

.arp-indicadores {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 15px;
  margin: 25px 0;
}

.arp-indicador {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px;
  background: #faf7f2;
  border: 1px solid #e5ddd2;
  border-radius: 10px;
}

.arp-indicador span {
  font-size: 13px;
  color: #766b60;
}

.arp-indicador strong {
  font-size: 28px;
}

#arpPendientes {
  color: #956a20;
}

#arpEnGestion {
  color: #345d89;
}

#arpResueltas {
  color: #28754c;
}

#contadorArrepentimientos {
  display: inline-block;
  padding: 3px 8px;
  margin-left: 5px;
  border-radius: 20px;
  background: #956a20;
  color: #fff;
  font-size: 12px;
}

#contadorArrepentimientos[hidden] {
  display: none;
}

.arp-filtros {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 15px;
  align-items: end;
  padding: 20px;
  margin: 20px 0;
  background: #faf7f2;
  border: 1px solid #e5ddd2;
  border-radius: 10px;
}

.arp-filtros label {
  margin: 0;
  min-width: 0;
  font-weight: 600;
}

.arp-filtros input,
.arp-filtros select {
  min-width: 0;
  height: 44px;
}

.arp-filtros button {
  min-height: 44px;
  border-radius: 5px;
}

.arp-listado {
  max-height: 650px;
  overflow-y: auto;
  padding-right: 8px;
  overscroll-behavior: contain;
}

.arp-solicitud {
  padding: 20px;
  margin-bottom: 15px;
  border: 1px solid #e5ddd2;
  border-radius: 10px;
  background: #fff;
  overflow-wrap: anywhere;
}

.arp-cabecera {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.arp-cabecera h3 {
  font-size: 17px;
  margin: 0;
}

.arp-solicitud p {
  font-size: 13px;
  line-height: 1.6;
  margin: 8px 0;
}

.arp-estado {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
}

.arp-estado[data-estado="PENDIENTE"] {
  background: #fff1d6;
  color: #805a1b;
}

.arp-estado[data-estado="EN_GESTION"] {
  background: #e6eff9;
  color: #345d89;
}

.arp-estado[data-estado="RESUELTA"] {
  background: #e3f3e8;
  color: #28754c;
}

.arp-detalle {
  margin-top: 15px;
  padding: 15px;
  border-top: 1px solid #e5ddd2;
  background: #faf7f2;
  border-radius: 6px;
}

.arp-detalle summary {
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  padding: 8px 0;
}

.arp-detalle p {
  white-space: pre-wrap;
}

.arp-correo {
  padding: 10px;
  margin: 8px 0;
  background: #faf7f2;
  border-radius: 5px;
}

#arpMensaje {
  font-size: 13px;
  color: #28754c;
}

#arpMensaje.arp-error {
  color: #a12828;
}

#arpCantidadResultados {
  font-size: 13px;
  color: #766b60;
}

@media (max-width: 900px) {
  .arp-indicadores,
  .arp-filtros {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 550px) {
  .arp-filtros {
    grid-template-columns: minmax(0, 1fr);
    padding: 15px;
  }

  .arp-indicador {
    padding: 14px;
  }

  .arp-indicador strong {
    font-size: 23px;
  }

  .arp-solicitud {
    padding: 15px;
  }

  .arp-listado {
    padding-right: 3px;
  }
}
/* ======================================
   CALOVA - GESTIÓN DE ARREPENTIMIENTOS
====================================== */

.arp-antiguedad {
  font-size: 13px;
  font-weight: 600;
  color: #766b60;
}

.arp-antiguedad-alerta {
  color: #95601b;
  background: #fff1d6;
  padding: 8px 12px;
  border-radius: 5px;
}

.arp-gestion {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 20px;
  padding: 20px;
  border: 1px solid #e5ddd2;
  border-radius: 8px;
  background: #fff;
}

.arp-gestion h4 {
  font-size: 16px;
  margin: 0 0 10px;
}

.arp-gestion label {
  font-size: 14px;
  font-weight: 600;
  margin: 0;
}

.arp-gestion select,
.arp-gestion textarea {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  font: inherit;
  padding: 12px;
  border: 1px solid #b9aa99;
  border-radius: 5px;
  background: #faf8f5;
}

.arp-gestion select {
  min-height: 44px;
}

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

.arp-gestion select:focus-visible,
.arp-gestion textarea:focus-visible,
.arp-gestion button:focus-visible,
.arp-detalle summary:focus-visible {
  outline: 2px solid #705943;
  outline-offset: 3px;
}

.arp-contador-caracteres {
  text-align: right;
  font-size: 12px;
  color: #766b60;
}

.arp-gestion button {
  width: 100%;
  min-height: 44px;
  margin-top: 5px;
}

.arp-gestion button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.arp-mensaje-gestion {
  font-size: 13px;
  color: #28754c;
  overflow-wrap: anywhere;
}

.arp-mensaje-gestion.arp-error {
  color: #a12828;
}

@media (max-width: 550px) {
  .arp-gestion {
    padding: 12px;
  }

  .arp-gestion select,
  .arp-gestion textarea {
    font-size: 16px;
  }
}
/* ======================================
   CALOVA - REINTENTOS DE CORREOS
====================================== */

.arp-reintento-contenedor {
  margin-top: 12px;
}

.arp-reintentar {
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid #b9aa99;
  border-radius: 5px;
  font-size: 13px;
  cursor: pointer;
}

.arp-reintentar:hover:not(:disabled) {
  background: #eee6db;
}

.arp-reintentar:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.arp-reintentar:focus-visible {
  outline: 2px solid #705943;
  outline-offset: 3px;
}

.arp-reintento-contenedor .arp-error {
  color: #a12828;
  font-size: 13px;
}

@media (max-width: 550px) {
  .arp-reintentar {
    width: 100%;
  }
}
/* ======================================
   CALOVA - ADMINISTRACIÓN DE ENVÍOS
====================================== */

.envios-introduccion {
  color: #594e44;
  font-size: 14px;
  line-height: 1.6;
}

.envios-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 760px;
  margin-top: 25px;
}

.envios-form > label {
  font-size: 14px;
  font-weight: 600;
  margin: 0;
}

.envios-form > input {
  width: 100%;
  min-height: 44px;
  box-sizing: border-box;
  padding: 12px;
  border: 1px solid #b9aa99;
  border-radius: 6px;
  background: #faf8f5;
  font: inherit;
}

.envios-form input[readonly] {
  background: #eee8df;
  color: #594e44;
}

.envios-form .envios-checkbox {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: #faf8f5;
  border: 1px solid #e5ddd2;
  border-radius: 6px;
  cursor: pointer;
}

.envios-checkbox input {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  accent-color: #705943;
}

.envios-form small {
  font-size: 13px;
  color: #594e44;
  line-height: 1.6;
}

.envios-resumen {
  padding: 20px;
  background: #f5f1eb;
  border: 1px solid #e5ddd2;
  border-radius: 8px;
}

.envios-resumen h3 {
  font-size: 16px;
  margin: 0 0 14px;
}

.envios-resumen p {
  font-size: 14px;
  line-height: 1.6;
  margin: 8px 0;
  color: #594e44;
}

#enviosResumenPromocion {
  font-weight: 700;
  color: #302922;
}

.envios-acciones {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.envios-acciones button {
  min-height: 44px;
  flex: 1 1 160px;
}

.envios-acciones button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.envios-form input:focus-visible,
.envios-form button:focus-visible {
  outline: 2px solid #705943;
  outline-offset: 3px;
}

.envios-mensaje {
  font-size: 14px;
  color: #28754c;
  overflow-wrap: anywhere;
}

.envios-mensaje.envios-error {
  color: #a12828;
}

@media (max-width: 550px) {
  .envios-form > input {
    font-size: 16px;
  }

  .envios-resumen {
    padding: 15px;
  }

  .envios-acciones {
    flex-direction: column;
  }

  .envios-acciones button {
    width: 100%;
    flex: auto;
  }
}
/* ======================================
   CALOVA - PROGRESO DE ENVÍO GRATUITO
====================================== */

.envio-gratis-carrito {
  flex-shrink: 0;
  margin: 0 20px 12px;
  padding: 14px;
  background: #faf7f2;
  border: 1px solid #e5ddd2;
  border-radius: 8px;
}

#envioGratisMensaje {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
  color: #51463c;
  text-align: center;
}

#envioGratisProgreso {
  display: block;
  width: 100%;
  height: 8px;
  border: none;
  border-radius: 10px;
  overflow: hidden;
  appearance: none;
  background: #e5ddd2;
}

#envioGratisProgreso::-webkit-progress-bar {
  background: #e5ddd2;
  border-radius: 10px;
}

#envioGratisProgreso::-webkit-progress-value {
  background: #ad8664;
  border-radius: 10px;
  transition: width 0.3s ease;
}

#envioGratisProgreso::-moz-progress-bar {
  background: #ad8664;
  border-radius: 10px;
}

.envio-gratis-importes {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: 8px;
  font-size: 11px;
  color: #766b60;
}

.envio-gratis-carrito.alcanzado {
  background: #f0f7f1;
  border-color: #cde2d2;
}

.envio-gratis-carrito.alcanzado #envioGratisMensaje {
  color: #28754c;
}

.envio-gratis-carrito.alcanzado #envioGratisProgreso::-webkit-progress-value {
  background: #39734c;
}

.envio-gratis-carrito.alcanzado #envioGratisProgreso::-moz-progress-bar {
  background: #39734c;
}

@media (max-width: 550px) {
  .envio-gratis-carrito {
    margin: 0 12px 8px;
    padding: 10px;
  }

  #envioGratisMensaje {
    font-size: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  #envioGratisProgreso::-webkit-progress-value {
    transition: none;
  }
}
/* ======================================
   CALOVA - FORMA DE ENTREGA
====================================== */

.checkout-entrega {
  min-width: 0;
  margin: 18px 0;
  padding: 14px;

  background: #faf7f2;
  border: 1px solid #e5ddd2;
  border-radius: 8px;
}

.checkout-entrega legend {
  padding: 0 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}

.checkout .entrega-opcion {
  display: flex;
  align-items: center;
  gap: 10px;

  min-height: 44px;
  margin: 4px 0;

  cursor: pointer;
}

.checkout .entrega-opcion input {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin: 0;

  accent-color: #705943;
}

#codigoPostal {
  min-height: 44px;
  font-size: 16px;
  text-transform: uppercase;
  border-radius: 5px;
}

.entrega-ayuda {
  margin: 8px 0;
  color: #766b60;
  font-size: 12px;
  line-height: 1.6;
}

.entrega-error {
  margin: 8px 0;
  color: #a33;
  font-size: 12px;
  line-height: 1.5;
}

.checkout-entrega input:focus-visible {
  outline: 2px solid #705943;
  outline-offset: 2px;
}

@media (max-width: 550px) {
  .checkout-entrega {
    padding: 10px;
  }
}
/* ======================================
   CALOVA - CÓDIGO POSTAL INVÁLIDO
====================================== */

#codigoPostal[aria-invalid="true"] {
  border-color: #a33;
  background: #fff7f7;
}

#codigoPostal[aria-invalid="true"]:focus-visible {
  outline: 2px solid #a33;
  outline-offset: 2px;
}

#codigoPostalError {
  overflow-wrap: anywhere;
}
/* ======================================
   CALOVA - RESUMEN DE ENVÍO
====================================== */

#filaCostoEnvio {
  align-items: center;
}

#costoEnvio {
  font-weight: 600;
}

#costoEnvio[data-tipo="GRATIS"],
#costoEnvio[data-tipo="RETIRO"] {
  color: #39734c;
}

#costoEnvio[data-tipo="A_COTIZAR"] {
  color: #705943;
}

.resumen-envio {
  margin: 12px 0;
  padding: 12px;

  background: #faf7f2;
  border: 1px solid #e5ddd2;
  border-radius: 6px;

  color: #655d55;
  font-size: 12px;
  line-height: 1.6;
}

.resumen-envio[data-tipo="GRATIS"] {
  background: #f0f7f1;
  border-color: #cde2d2;
  color: #39734c;
}

.totals .grand {
  align-items: center;
  gap: 12px;
}

#etiquetaTotal {
  min-width: 0;
}

#total {
  flex-shrink: 0;
}

@media (max-width: 550px) {
  .resumen-envio {
    padding: 10px;
    font-size: 12px;
  }

  #etiquetaTotal {
    font-size: 16px;
  }
}
/* ======================================
   CALOVA - DESCRIPCIÓN DE COLECCIÓN
====================================== */

.coleccion-descripcion-seo {
  max-width: 620px;
  margin: 10px 0 0;

  font-size: 14px;
  line-height: 1.7;
  color: #655d55;
}

@media (max-width: 600px) {
  .coleccion-descripcion-seo {
    font-size: 13px;
    line-height: 1.6;
  }
}
/* ======================================
   CALOVA - ORDENAMIENTO DE PRODUCTOS
====================================== */

.orden-productos-introduccion,
.orden-productos-ayuda {
  font-size: 14px;
  line-height: 1.6;
  color: #594e44;
}

.orden-productos-resumen {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin: 24px 0 16px;
}

.orden-productos-resumen strong {
  font-size: 14px;
  color: #594e44;
}

.orden-productos-lista {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.orden-productos-fila {
  display: grid;
  grid-template-columns: 36px 72px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 14px;
  background: #faf8f5;
  border: 1px solid #e5ddd2;
  border-radius: 8px;
}

.orden-productos-posicion {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  background: #eee6db;
  border-radius: 50%;
  color: #594e44;
  font-size: 14px;
  font-weight: 700;
}

.orden-productos-foto {
  width: 72px;
  height: 72px;
  border-radius: 6px;
  background: #eee6db;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.orden-productos-foto img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.orden-productos-foto small {
  font-size: 11px;
  color: #594e44;
}

.orden-productos-info {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
  overflow-wrap: anywhere;
}

.orden-productos-info strong {
  font-size: 14px;
  color: #302922;
}

.orden-productos-info small {
  font-size: 12px;
  color: #65594d;
}

.orden-productos-estado {
  font-size: 11px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 4px;
}

.orden-productos-estado.publicado {
  background: #e6efe5;
  color: #315b35;
}

.orden-productos-estado.archivado {
  background: #eee6db;
  color: #65594d;
}

.orden-productos-controles {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.orden-productos-controles button {
  min-width: 44px;
  min-height: 44px;
  padding: 8px 12px;
  font-size: 14px;
  margin: 0;
}

.orden-productos-acciones {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.orden-productos-acciones button {
  flex: 1 1 160px;
  min-height: 44px;
}

#panelOrdenProductos button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

#panelOrdenProductos button:focus-visible,
.orden-productos-fila:focus-visible {
  outline: 2px solid #705943;
  outline-offset: 3px;
}

.orden-productos-cambios {
  margin-top: 18px;
  font-size: 13px;
  font-weight: 600;
  color: #8a591f;
}

.orden-productos-mensaje {
  min-height: 20px;
  margin-top: 14px;
  font-size: 13px;
  color: #315b35;
}

.orden-productos-mensaje.orden-productos-error {
  color: #a12828;
}

.orden-productos-vacio {
  padding: 25px;
  text-align: center;
  background: #faf8f5;
  color: #594e44;
  border-radius: 6px;
}

/* Adaptación a celulares */

@media (max-width: 650px) {
  .orden-productos-fila {
    grid-template-columns: 28px 58px minmax(0, 1fr);
    gap: 10px;
    padding: 12px;
  }

  .orden-productos-posicion {
    width: 28px;
    height: 28px;
    font-size: 12px;
  }

  .orden-productos-foto {
    width: 58px;
    height: 58px;
  }

  .orden-productos-controles {
    grid-column: 2 / -1;
  }

  .orden-productos-controles button {
    flex: 1;
  }

  .orden-productos-info strong {
    font-size: 13px;
  }

  .orden-productos-resumen button {
    width: 100%;
  }
}
/* ======================================
   CALOVA - DRAG & DROP DE PRODUCTOS
====================================== */

.orden-productos-fila {
  position: relative;

  grid-template-columns: 32px 36px 72px minmax(0, 1fr) auto;
}

.orden-productos-agarre {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 32px;
  min-height: 44px;

  border-radius: 5px;

  color: #8b7966;
  font-size: 25px;
  line-height: 1;

  cursor: grab;
  user-select: none;

  transition:
    background-color 0.15s ease,
    color 0.15s ease;
}

.orden-productos-agarre:hover {
  background: #eee6db;
  color: #594634;
}

.orden-productos-agarre:active {
  cursor: grabbing;
}

.orden-productos-agarre.orden-agarre-deshabilitado {
  opacity: 0.35;
  cursor: not-allowed;
}

.orden-productos-fila.orden-arrastrando {
  opacity: 0.4;
  background: #eee6db;
  border-style: dashed;
}

/* Indicador de inserción superior */

.orden-productos-fila.orden-drop-antes::before {
  content: "";

  position: absolute;

  top: -6px;
  left: 0;
  right: 0;

  height: 3px;

  background: #398451;
  border-radius: 3px;

  pointer-events: none;
  z-index: 2;
}

/* Indicador de inserción inferior */

.orden-productos-fila.orden-drop-despues::after {
  content: "";

  position: absolute;

  bottom: -6px;
  left: 0;
  right: 0;

  height: 3px;

  background: #398451;
  border-radius: 3px;

  pointer-events: none;
  z-index: 2;
}

/* Celulares: conservar los botones */

@media (max-width: 650px), (hover: none) {
  .orden-productos-agarre {
    display: none;
  }

  .orden-productos-fila {
    grid-template-columns: 28px 58px minmax(0, 1fr);
  }

  .orden-productos-controles {
    grid-column: 2 / -1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .orden-productos-agarre {
    transition: none;
  }
}
