@font-face {
    font-family: 'Roboto';
    src: url('./Roboto-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Poppins';
    src: url('../fonts/Poppins-Medium.woff2') format('woff2'),
         url('../fonts/Poppins-Medium.woff') format('woff');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Poppins';
    src: url('../fonts/Poppins-SemiBold.woff2') format('woff2'),
         url('../fonts/Poppins-SemiBold.woff') format('woff');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

:root {
  --bg: #f4f6fb;
  --surface: #ffffff;
  --surface-alt: #eef3ff;
  --text: #1c2430;
  --muted: #5f6b7a;
  --pantone: #007BFF;
  --brand: var(--pantone);
  --brand-dark: #0069d9;
  --accent: #f3b21b;
  --ring: rgba(28, 109, 232, 0.18);
  --shadow-sm: 0 6px 14px rgba(15, 23, 42, 0.08);
  --shadow-md: 0 18px 38px rgba(15, 23, 42, 0.12);
}

body {
font-family: 'Poppins', 'Roboto', sans-serif;
background-color: var(--bg);
background-image: radial-gradient(circle at top, rgba(28, 109, 232, 0.08), transparent 45%),
                  radial-gradient(circle at 15% 30%, rgba(243, 178, 27, 0.12), transparent 40%);
color: var(--text);
line-height: 1.55;
letter-spacing: 0.1px;
top: 0px !important;
opacity: 0;
transition: opacity 0.6s ease-in-out;
}

body.loaded {
opacity: 1;
}

/* Base UI polish */
.modal-content {
  border-radius: 16px;
  border: none;
  box-shadow: var(--shadow-md);
  background: var(--surface);
}

.modal-header {
  border-bottom: 1px solid #e6ecf7;
  background: var(--surface);
}

.modal-body {
  background: var(--surface);
}

.cotizacion-resumen-extra {
  margin-top: 10px;
  display: grid;
  gap: 4px;
  font-size: 12px;
  color: var(--muted);
}

.cotizacion-resumen-extra strong {
  color: var(--text);
  font-weight: 600;
}

.modal.fade .modal-dialog {
  transform: translateY(18px) scale(0.98);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.modal.show .modal-dialog {
  transform: translateY(0) scale(1);
}

.view-fade {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.view-fade.view-fade--in {
  opacity: 1;
  transform: translateY(0);
}

.icon-inline {
  display: inline-block;
  width: 1em;
  height: 1em;
  margin-right: 0.35em;
  vertical-align: -0.15em;
  flex-shrink: 0;
}

.icon-inline--lg {
  width: 1.2em;
  height: 1.2em;
}

.table thead th,
.tabla thead th {
  background: var(--pantone);
  color: #fff;
  border-color: var(--pantone);
}

.tabla thead th svg,
.table thead th svg {
  color: #fff;
}

.th-icon {
  width: 1.6rem;
  height: 1.6rem;
}

.th-icon--note {
  width: 1.35rem;
  height: 1.35rem;
}

.th-icon--qty,
.th-icon--act {
  width: 2rem;
  height: 2rem;
}

.btn-add .btn-icon svg,
.btn-cancel .btn-icon svg {
  width: 1.15em;
  height: 1.15em;
}

.form-control {
  border-radius: 12px;
  border: 1px solid #d9deea;
  background: var(--surface);
  box-shadow: inset 0 1px 1px rgba(15, 23, 42, 0.04);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.form-control:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--ring);
  transform: translateY(-1px);
}

.btn {
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.88rem;
  padding: 0.45rem 0.9rem;
  line-height: 1.2;
  letter-spacing: 0.1px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--brand);
  border: none;
  box-shadow: 0 8px 18px rgba(0, 123, 255, 0.25);
}

.btn-primary:hover {
  background: var(--brand-dark);
  box-shadow: 0 12px 24px rgba(0, 123, 255, 0.28);
}

.btn-outline-primary {
  border-color: var(--brand);
  color: var(--brand);
}

.btn-outline-primary:hover {
  background: var(--surface-alt);
  color: var(--brand-dark);
}

.btn-sm,
.btn-mini {
  font-size: 0.82rem;
  padding: 0.35rem 0.7rem;
}

.card,
.card-body,
.list-group-item {
  border-radius: 14px;
}

.card {
  border: 1px solid #e5ecf8;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.btn-icon {
  display: inline-flex;
  align-items: center;
  margin-right: 0;
  background-color: transparent;
}

.btn-icon svg {
  width: 0.95em;
  height: 0.95em;
}

.btn-add .btn-icon svg,
.btn-cancel .btn-icon svg {
  width: 1.1em;
  height: 1.1em;
}

.cotizacion-resumen {
  background: var(--surface-alt);
  border-radius: 12px;
  border: 1px solid #d9e3f7;
}

.carrito-lista-wrap {
  max-width: 1460px;
  min-height: calc(100vh - 170px);
  display: flex;
  flex-direction: column;
}

.carrito-lista-table {
  min-width: 1180px;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 0;
  background: #ffffff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
}

.carrito-lista-table th,
.carrito-lista-table td {
  vertical-align: middle !important;
}

.carrito-lista-table thead th {
  padding: 0.8rem 0.7rem;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-transform: none;
  position: sticky;
  top: 0;
  z-index: 2;
}

.carrito-lista-table tbody td {
  padding: 0.7rem 0.7rem;
  font-size: 0.84rem;
  line-height: 1.35;
  background: #fbfcff;
  border-top: 1px solid #e8edf5;
}

.carrito-lista-table tbody td strong {
  font-size: 0.84rem;
  font-weight: 600;
}

.carrito-row-editable {
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.carrito-row-editable:hover td {
  background: #f2f6fc;
}

.carrito-lista-table .img-thumbnail {
  width: 74px !important;
  height: 74px !important;
  padding: 0.2rem;
  border-radius: 8px;
}

.carrito-lista-table textarea.form-control {
  min-width: 0 !important;
  min-height: 72px;
  padding: 0.5rem 0.6rem;
  font-size: 0.82rem;
  line-height: 1.3;
}

.carrito-lista-table .btn {
  min-width: 44px;
  padding: 0.42rem 0.55rem;
}

.carrito-lista-wrap .lista_pedidos {
  cursor: default;
  flex: 1 1 auto;
  min-height: calc(100vh - 320px);
  height: auto;
  overflow-y: auto;
  padding-right: 6px;
}

.carrito-lista-wrap .table-responsive {
  border-radius: 14px;
}

.carrito-summary-row {
  margin-top: 14px !important;
  padding-top: 14px !important;
}

.carrito-summary-actions {
  display: flex;
  gap: 10px;
}

.btn-finish-order {
  background: #2f9e44 !important;
  border-color: #2f9e44 !important;
  color: #ffffff !important;
  box-shadow: 0 8px 18px rgba(47, 158, 68, 0.18);
}

.btn-finish-order:hover,
.btn-finish-order:focus {
  background: #27863a !important;
  border-color: #27863a !important;
  color: #ffffff !important;
}

.carrito-summary-totals {
  display: flex;
  align-items: center;
}

.carrito-subtotal-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 8px 12px;
  border-radius: 999px;
  background: #eef3fb;
  border: 1px solid #dbe3f0;
  color: #27405f;
  font-size: 0.82rem;
  font-weight: 600;
}

.carrito-subtotal-badge__label {
  opacity: 0.78;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.7rem;
}

.carrito-subtotal-badge__value {
  color: #102a4c;
  font-weight: 700;
}

.favoritos-modal-dialog {
  max-width: 760px;
}

#modal_carrito.fade .modal-dialog,
#modal_favoritos.fade .modal-dialog,
#cotizacionModal.fade .modal-dialog,
#modal_pedidos.fade .modal-dialog {
  opacity: 0;
  transform: translateY(14px) scale(0.985);
  transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.22s ease;
}

#modal_carrito.show .modal-dialog,
#modal_favoritos.show .modal-dialog,
#cotizacionModal.show .modal-dialog,
#modal_pedidos.show .modal-dialog {
  opacity: 1;
  transform: translateY(0) scale(1);
}

#modal_favoritos .modal-header {
  padding: 0.9rem 1.2rem;
}

#modal_favoritos .modal-title {
  font-size: 0.98rem;
  font-weight: 700;
}

#modal_favoritos .modal-body {
  padding: 0.7rem 1rem 0.9rem;
}

.favorito-item {
  gap: 12px;
  padding-top: 0.7rem !important;
  padding-bottom: 0.7rem !important;
}

.favorito-item__img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 8px;
  flex: 0 0 64px;
}

.favorito-item__body {
  min-width: 0;
}

.favorito-item__sku,
.favorito-item__desc {
  font-size: 0.82rem;
  line-height: 1.35;
}

.favorito-item__sku {
  color: var(--text);
}

.favorito-item__desc {
  color: var(--text);
}

.favorito-item__actions {
  flex: 0 0 auto;
}

.favorito-item__delete {
  min-width: 40px;
  padding: 0.42rem 0.55rem;
}

.carrito-lista-table th:nth-child(1),
.carrito-lista-table td:nth-child(1) {
  width: 100px;
}

.carrito-lista-table th:nth-child(2),
.carrito-lista-table td:nth-child(2) {
  width: 46%;
}

.carrito-lista-table th:nth-child(3),
.carrito-lista-table td:nth-child(3),
.carrito-lista-table th:nth-child(4),
.carrito-lista-table td:nth-child(4),
.carrito-lista-table th:nth-child(5),
.carrito-lista-table td:nth-child(5) {
  width: 92px;
}

.carrito-lista-table th:nth-child(6),
.carrito-lista-table td:nth-child(6) {
  width: 260px;
}

.carrito-lista-table th:nth-child(7),
.carrito-lista-table td:nth-child(7) {
  width: 110px;
}

.cart-col-qty {
  text-align: center;
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
}

.cotizacion-resumen .cotizacion-producto-text {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: var(--cotizacion-line-clamp, 8);
  overflow: hidden;
  text-overflow: ellipsis;
}

.cotizacion-resumen--sin-precio .cotizacion-producto-text {
  overflow: hidden !important;
}

.cotizacion-resumen--sin-precio #cotizacion_imagen {
  width: 96px;
  height: 96px;
}

.icon-inline {
  width: 0.95em;
  height: 0.95em;
  margin-right: 0.35rem;
  vertical-align: -0.2em;
  color: var(--brand);
}

.small .icon-inline {
  width: 1.1em;
  height: 1.1em;
}

.icon-title {
  width: 1.2em;
  height: 1.2em;
}

.icon-inline path,
.icon-inline circle,
.icon-inline rect,
.icon-inline line,
.icon-inline polyline {
  stroke: currentColor;
}

.upload-hint {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-weight: 500;
  text-align: center;
}

.upload-hint__icon svg {
  width: 54px;
  height: 54px;
  color: var(--brand);
  opacity: 0.8;
}

.upload-hint__text {
  max-width: 260px;
  font-size: 0.95rem;
}

.swal2-icon.swal2-icon--custom {
  border-color: transparent !important;
  background: var(--surface-alt);
  display: flex !important;
  align-items: center;
  justify-content: center;
}

.swal2-icon--custom svg {
  width: 2.4rem;
  height: 2.4rem;
  color: var(--brand);
}

.swal2-title,
.swal2-html-container {
  font-family: 'Poppins', 'Roboto', sans-serif;
}

@media (max-width: 992px) {
  .inner-box {
    width: 100%;
    margin-top: 24px;
  }
  .upload-area,
  .upload-area2 {
    min-height: 260px;
    padding: 16px;
  }
  .preview,
  .preview2 {
    min-height: 240px;
  }
  .preview img,
  .preview2 img {
    min-height: 220px;
  }
}

@media (max-width: 576px) {
  .botones {
    flex-wrap: wrap;
  }
  .me-gusta,
  .ver-mas {
    flex: 1 1 100%;
  }

  #div_articulos {
    margin-top: calc(var(--header-offset, 120px) - clamp(18px, 4vw, 32px));
  }

  #articulos_int > .col-lg-2 {
    flex: 0 0 50%;
    max-width: 50%;
    padding-left: clamp(2px, 1.2vw, 6px);
    padding-right: clamp(2px, 1.2vw, 6px);
  }

  #div_articulos {
    padding-left: clamp(2px, 1.2vw, 8px);
    padding-right: clamp(2px, 1.2vw, 8px);
  }

  .fy23-search-card .card-precio,
  .fy23-search-card .card-codigo {
    font-size: 0.78rem;
  }

  .fy23-search-card .card-precio span {
    font-size: 0.9rem !important;
    white-space: nowrap;
  }

  .fy23-search-card .card-codigo {
    white-space: nowrap;
  }

  .fy23-search-card .card-codigo span {
    font-size: 0.78rem !important;
  }

  #div_articulos {
    padding-bottom: 0;
  }

  #articulos_int {
    padding-bottom: 0;
  }

  .articulos-spacer {
    min-height: 16px;
  }
}
h1 { font-size: 1.3rem !important; }
h2 { font-size: 0.8rem !important; }
h1, h2, h3, h4, h5 {
  font-weight: 600;
  color: var(--text);
}

label {
  font-weight: 500;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

a {
  color: var(--brand);
  text-decoration: none;
}

a:hover {
  color: var(--brand-dark);
}
table{ width:100%; }


/* Bloquear scroll del body cuando el visor está abierto */
body.lb-lock { overflow: hidden; }

#cotizadorBody { min-height:380px !important; }
#modal_carrito #cotizadorBody { min-height:0 !important; }

/* Capa oscura */
.lb-overlay{
  position:fixed; inset:0; display:none;
  background:rgba(0,0,0,.65);
  z-index: 9999;
}

/* Panel centrado con sombra */
.lb-panel{
  position:absolute; left:50%; top:50%;
  transform:translate(-50%,-50%);
  background:#fff; border-radius:12px;
  box-shadow:0 20px 60px rgba(0,0,0,.35);
  max-width: calc(100vw - 96px);
  max-height: calc(100vh - 96px);
  padding:16px; overflow:hidden;
}

/* Imagen contenida 100% del panel sin desbordar */
.lb-panel img{
  display:block;
  max-width: calc(100vw - 128px);
  max-height: calc(100vh - 128px);
  width:auto; height:auto;
  object-fit: contain;
  margin:0 auto;
}

/* Botón cerrar: grande, contrastado y fijo en esquina */
.lb-close{
  position:absolute; top:8px; right:12px;
  width:40px; height:40px; line-height:36px;
  border:none; border-radius:50%;
  background:#000; color:#fff; font-size:26px;
  opacity:.9; cursor:pointer;
}
.lb-close:hover{ opacity:1; }

/* Animación sutil */
.lb-overlay.show{ animation: lb-fade .12s ease-out; }
@keyframes lb-fade { from{opacity:0} to{opacity:1} }


.lineas-carrito {
  margin-top: 10px;
  border: 1px solid #ccc;
  padding: 5px;
  max-height: 150px;
  overflow-y: auto;
}

.linea-item {
  display: flex;
  justify-content: space-between;
  margin-bottom: 4px;
  align-items: center;
  font-size: 14px;
}

.linea-input {
  margin-right: 5px;
  padding: 4px;
  width: 45%;
}

.btn-mini {
  padding: 4px 10px;
  background-color: #28a745;
  color: white;
  border: none;
  cursor: pointer;
  font-size: 13px;
  border-radius: 3px;
}

.btn-mini:hover {
  background-color: #218838;
}

.btn-delete {
  color: red;
  cursor: pointer;
  font-weight: bold;
}





.row{ margin-right:0!important; margin-left:0!important;}
.mb-4 { margin-bottom: .75rem !important; }

.container-fluid{ padding-right:0 !important; padding-left:0 !important; }
.filtrosOriginales {
  position: sticky;
  top: 120px;
  max-height: calc(100vh - 132px);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 0 12px 14px;
}

.filtrosOriginales::-webkit-scrollbar {
  display: none;
}
.upload-area { min-height: 50px; border: 2px dashed #ddd; border-radius: 8px; padding: 20px; text-align: center; background: #fafafa; cursor: pointer; }
.upload-area.dragover { border-color: #007BFF; background: #e6f7ff; }
.preview { margin-top: 5px; text-align: center; }
.preview img { max-width: 180px; }

.upload-area2 { min-height: 50px; border: 2px dashed #ddd; border-radius: 8px; padding: 20px; text-align: center; background: #fafafa; cursor: pointer; }
.upload-area2.dragover { border-color: #007BFF; background: #e6f7ff; }
.preview2 { margin-top: 5px; text-align: center; }
.preview2 img { max-width: 180px; }

.recomendados { padding: 25px; position: sticky; top: 177px; background: #f8f9fa; border-radius: 10px; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); max-height: 80vh; overflow-y: scroll; scrollbar-width: none; -ms-overflow-style: none; }

.header { background-color:#fff;  }
.iconS { color: #FFFFFF; font-size: 16px; margin: 0 10px; cursor: pointer;  }
.iconN { color: #092759; font-size: 16px; margin: 0 10px; cursor: pointer;  }
.icon-text {  margin-left: 3px; font-size: 16px; } 
.icon-text:hover{ color: #e9dd26;  }

.logo1 { width:35%; margin-left:20px;  margin-top:10px; margin-bottom: 10px; }
.logo2 { width:35%; margin-right:20px; margin-top:10px; margin-bottom: 10px; }

.container-search { padding-top: 20px; }
.custom-input-group { border:solid 1px #dbdbdb; border-radius: 30px;  overflow: hidden;  box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1);    }
.custom-input { border: none;  outline: none;  border-radius: 30px;  box-shadow: none; height:40px !important;   }

.btn { margin-top: 0 !important; }
.container-iconos{ padding-right:20px; margin-top:20px; }
.icon { color: #FFFFFF; font-size: 16px; margin: 0 3px; cursor: pointer;  }
.iconR { color: #FFFFFF; font-size: 16px; margin: 0 3px; cursor: pointer;  }
.iconR:hover{ color: #e9dd26;  }


.navbar{ padding:0 !important; }
.navbar-nav .dropdown-menu {  width: 100vw;  left: 0 !important;  right: 0;  top: 100%;  display: none; position: relative;  }

.dropdown-menu .row {  width: 100%;  }
.dropdown-menu .col {  padding: 15px;  border-right: 1px solid #ddd;  }
.dropdown-menu .col:last-child {  border-right: none;  }
.dropdown-menu a {  display: block; color: #333; padding: 2px 5px; }

.dropdown, .dropleft, .dropright, .dropup { position: unset !important; }
.dropdown-menu { display: none;  }
.dropdown-menu.show {  display: flex; padding-left: 25px; padding-bottom:25px; }

.contenido_central { padding-top:160px; padding-bottom: 0px; background-color:#FFFFFF;  }
.articulos{ padding:15px; }
.articulos-int{ margin-left: 10px !important; }

@media (min-width: 992px) {
  .articulos-int{ margin-left: 24px !important; }
}
.search-card-e-title{ font-size: .8rem; min-height: 33px; font-weight: bold; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; text-overflow: ellipsis; word-wrap: break-word; }

.detalles{ padding-top:10px; }
.detalles-int{ margin-left: 15px !important; }

.carrito{ padding-top:0px; min-height: 85vh; }
.detalles-int{ margin-left: 15px !important; }


.card { border:1px solid #9e9e9e; box-shadow: 0 4px 6px rgba(0, 0, 0, 0.4); border-radius:10px;  }
.card-body{ padding: 0.5rem;  }
.cimg-top{ border-radius: 10px 10px 0 0; width: 71%; height: 168px; object-fit: cover; object-position: center; margin:auto }
.fy23-search-card .card-precio{
  min-height: 26px;
  line-height: 1.2;
  display:flex;
  align-items:center;
  margin-bottom: 6px;
}
.fy23-search-card .card-precio span{
  line-height: 1.2;
}

.botones {
  width: 90%;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  flex-wrap: nowrap;
}
.me-gusta,
.ver-mas {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  font-size: 0.82rem;
  border-radius: 10px;
  border: 1px solid transparent;
  cursor: pointer;
  flex: 1 1 0;
  min-width: 0;
  white-space: nowrap;
  justify-content: center;
}
.me-gusta {
  background-color: #ffffff;
  color: var(--pantone);
  border-color: var(--pantone);
}
.me-gusta:hover {
  background-color: var(--pantone);
  color: #ffffff;
}
.ver-mas  {
  background-color: var(--pantone);
  color: #ffffff;
  border-color: var(--pantone);
}
.ver-mas:hover {
  background-color: var(--brand-dark);
  border-color: var(--brand-dark);
}
.me-gusta .btn-icon,
.ver-mas .btn-icon {
  margin-right: 0;
}
.me-gusta .btn-icon svg,
.ver-mas .btn-icon svg {
  width: 1.15em;
  height: 1.15em;
}

@media (min-width: 992px) {
  .botones {
    width: 100%;
    gap: 4px;
  }
  .me-gusta,
  .ver-mas {
    font-size: 0.76rem;
    padding: 6px 8px;
  }
}


.orden-toggle {
  padding: 12px 0;
}

.orden-toggle__title {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #0b2d60;
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.orden-toggle__icon {
  display: inline-flex;
  width: 16px;
  height: 16px;
  color: #0b2d60;
  flex: 0 0 auto;
}

.orden-toggle__icon svg {
  width: 100%;
  height: 100%;
}

.orden-toggle__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  column-gap: 8px;
}

.orden-toggle__option {
  color: #7b879b;
  font-size: 0.75rem;
  line-height: 1.15;
  min-width: 0;
  text-align: center;
  transition: color 0.2s ease;
  word-break: break-word;
}

.orden-toggle__option.is-active {
  color: #0b2d60;
  font-weight: 700;
}

.orden-switch {
  position: relative;
  display: inline-block;
  width: 46px;
  height: 24px;
}

.orden-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.orden-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #0b2d60;
  transition: 0.2s ease;
  border-radius: 999px;
}

.orden-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  top: 3px;
  background-color: #ffffff;
  transition: 0.2s ease;
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(11, 45, 96, 0.2);
}

.orden-switch input:checked + .orden-slider:before {
  transform: translateX(22px);
}

.orden-switch input:focus + .orden-slider {
  box-shadow: 0 0 0 3px rgba(11, 45, 96, 0.15);
}

.filtro-title {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #0b2d60;
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 6px;
  flex-wrap: wrap;
}

.filtro-title__icon {
  display: inline-flex;
  width: 16px;
  height: 16px;
  color: #0b2d60;
  flex: 0 0 auto;
}

.filtro-title__icon svg {
  width: 100%;
  height: 100%;
}

.filtro-input {
  border-radius: 12px;
  border: 1px solid #d7e0f0;
  padding: 10px 12px;
  font-weight: 600;
  color: #0b2d60;
}

.filtro-input::placeholder {
  color: #8b97ab;
}

.filtro-input:focus {
  border-color: #0b2d60;
  box-shadow: 0 0 0 3px rgba(11, 45, 96, 0.12);
}

.filtro-collapsible__toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
}

.filtro-collapsible__label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.filtro-collapsible__chevron {
  display: inline-flex;
  width: 18px;
  height: 18px;
  color: #0b2d60;
  transition: transform 0.2s ease;
}

.filtro-collapsible__chevron svg {
  width: 100%;
  height: 100%;
}

#Ffecha.is-open .filtro-collapsible__chevron,
#Fcolores.is-open .filtro-collapsible__chevron,
#Fmateriales.is-open .filtro-collapsible__chevron {
  transform: rotate(180deg);
}

.filtro-collapsible__body {
  margin-top: 8px;
}

.filtro-checklist {
  display: grid;
  gap: 2px;
}

.filtro-checklist__item {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 6px 2px;
  border: 0;
  border-bottom: 1px solid #e3e9f4;
  border-radius: 0;
  background: transparent;
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease;
}

.filtro-checklist__item:hover {
  background: rgba(11, 45, 96, 0.04);
}

.filtro-checklist__checkbox {
  width: 14px;
  height: 14px;
  accent-color: #0b2d60;
}

.filtro-checklist__text {
  min-width: 0;
  color: #0b2d60;
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.15;
}

#Fmateriales {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #d9e1ef;
}

.filtro-checklist__count {
  color: #7f8ca6;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0;
  min-width: 0;
  background: transparent;
  border-radius: 0;
}

.filtros-title {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #0b2d60;
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: 14px;
  text-transform: none;
  letter-spacing: 0.2px;
}

.filtros-title__icon {
  display: inline-flex;
  width: 18px;
  height: 18px;
  color: #0b2d60;
  flex: 0 0 auto;
}

.filtros-title__icon svg {
  width: 100%;
  height: 100%;
}

.filtrosOriginales > hr:first-of-type {
  display: none;
}

.modal-close-float {
  position: absolute;
  top: -12px;
  right: -12px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid #e1e6f0;
  background: #ffffff;
  color: #0b2d60;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.18);
  padding: 0;
  z-index: 2;
}

.modal-close-float svg {
  width: 20px;
  height: 20px;
}

.modal-close-float:hover {
  color: #0b2d60;
  background: #f3f6fb;
}

.modal-close-float--image {
  top: -10px;
  right: -10px;
}

#modal_img .modal-content {
  position: relative;
  border-radius: 18px;
  background: #ffffff;
  overflow: visible;
}

#modal_img .modal-body {
  padding: 16px;
  border-radius: 16px;
}

#modal_img .detailsm-container {
  border-radius: 16px;
}

#modal_img .upload-area,
#modal_img .preview-wrapper,
#modal_img .preview {
  border-radius: 14px;
}

#modal_img .upload-area {
  border-color: #c9d4e7;
  background: #f3f6fb;
  position: relative;
}

#modal_img .upload-area .upload-hint {
  position: absolute;
  inset: 0;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 8px;
  text-align: center;
  pointer-events: none;
}

#modal_img .modal-close-float {
  width: 42px;
  height: 42px;
  top: -12px;
  right: -3px;
  background: #dc3545;
  color: #ffffff;
  border: 2px solid #ffffff;
  box-shadow: 0 10px 20px rgba(220, 53, 69, 0.35);
}

#modal_img .modal-close-float svg {
  width: 22px;
  height: 22px;
}

#modal_img .modal-close-float:hover {
  background: #c82333;
  color: #ffffff;
}

#modalFiltros .modal-header {
  align-items: center;
  overflow: visible;
  min-height: 8px;
}

#modalFiltros .modal-header--compact {
  padding: 0;
  border-bottom: 0;
}

#modalFiltros .modal-close-light {
  color: #ffffff;
}

#modalFiltros .modal-body {
  padding-top: 10px;
}

.modal .modal-dialog {
  overflow: visible;
}

.modal .modal-content {
  position: relative;
  overflow: visible;
}

.modal .close {
  position: absolute;
  top: -17px;
  right: -17px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 2px solid #ffffff;
  background: #dc3545;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  opacity: 1;
  box-shadow: 0 10px 20px rgba(220, 53, 69, 0.35);
  z-index: 5;
  text-shadow: none;
}

.modal .close span {
  font-size: 24px;
  line-height: 1;
  color: inherit;
}

.modal .close:hover {
  background: #c82333;
  color: #ffffff;
}

.modal .close:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.35);
}

.filtro-actions {
  align-items: stretch;
  gap: 10px;
}

.filtro-actions .btn-filter {
  flex: 1 1 0;
  min-width: 120px;
  justify-content: center;
}

.btn-filter {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 0.85rem;
  font-weight: 700;
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn-filter i {
  font-size: 0.9em;
}

.btn-filter__icon {
  display: inline-flex;
  width: 18px;
  height: 18px;
}

.btn-filter__icon svg {
  width: 100%;
  height: 100%;
}

.btn-filter--primary {
  background: #0d6efd;
  color: #ffffff;
  box-shadow: 0 8px 16px rgba(13, 110, 253, 0.25);
}

.btn-filter--primary:hover {
  background: #0b5ed7;
  transform: translateY(-1px);
  box-shadow: 0 10px 18px rgba(13, 110, 253, 0.3);
}

.btn-filter--secondary {
  background: #ffe3b3;
  color: #7a4a00;
  border-color: #ffc875;
  box-shadow: none;
}

.btn-filter--secondary:hover {
  background: #ffd38a;
  color: #7a4a00;
}

.irs--flat .irs-line {
  background: #d7e0f0;
  border-radius: 999px;
}

.irs--flat .irs-bar,
.irs--flat .irs-bar--single {
  background: #0b2d60;
  border-radius: 999px;
}

.irs--flat .irs-handle > i:first-child {
  background: #ffffff;
  border: 3px solid #0b2d60;
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(11, 45, 96, 0.25);
}

.irs--flat .irs-from,
.irs--flat .irs-to,
.irs--flat .irs-single {
  background: #0b2d60;
  color: #ffffff;
  border-radius: 999px;
  padding: 2px 6px;
  font-size: 11px;
  font-weight: 700;
}

.irs--flat .irs-from:before,
.irs--flat .irs-to:before,
.irs--flat .irs-single:before {
  border-top-color: #0b2d60;
}

@media (max-width: 420px) {
  .orden-toggle__row {
    grid-template-columns: 1fr;
    row-gap: 6px;
  }

  .orden-switch {
    margin: 0 auto;
  }
}

#modalFiltros .orden-toggle__row {
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  row-gap: 0;
}

#modalFiltros .orden-switch {
  margin: 0;
}

@media (max-width: 420px) {
  #modalFiltros .orden-toggle__row {
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  }
}

button#toggleOrden {
  background-color: #007bff;
  color: #FFFFFF;
  border-radius: 5px;
  transition: background-color 0.3s;
  font-size: 16px;
}

button#toggleOrden:hover {
  background-color: #0056b3;
}

input[type="range"] {  -webkit-appearance: none;  width: 100%;  height: 8px;  background: #ddd;  border-radius: 5px;  outline: none;  transition: background 0.3s; }
input[type="range"]:hover {  background: #007bff; }
input[type="range"]::-webkit-slider-thumb {  -webkit-appearance: none;  width: 20px;  height: 20px;  background: #007bff;  border-radius: 50%;  cursor: pointer; }
input[type="range"]::-moz-range-thumb {  width: 20px;  height: 20px;  background: #007bff;  border-radius: 50%;  cursor: pointer; }

#precio-seleccionado {  font-weight: bold;  color: #007bff;  font-size: 18px;  }
label {  font-size: 16px;  color: #555;  }

.form-checa-label{ width: 100%; text-align: center; font-weight:bolder; padding:10px; opacity:.8; border-radius: 15px; margin-top: 15px;}
.form-checa-label:hover{  background-color: #ff6600; opacity:1;  }

/*   esto es el contenido del pie de pagina   */
.ladire{ font-size:1rem; font-weight:bold; margin-left:5% !important; margin-right: 5% !important; }
.lainfo{ font-size:1rem; width:75%; margin:auto; text-align:center; padding:10px; }
.copy{ font-size:1rem; font-weight:bold; opacity:.8; }

.footer-mobile { position: fixed; bottom: 0; width: 100%; background: #fff; box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1); padding: 10px 0; z-index: 1000; }
.footer-icon { display: flex; flex-direction: column; align-items: center; text-decoration: none; color: #555; font-size: 14px; }
.footer-icon i {  font-size: 18px; margin-bottom: 4px; }
.footer-icon:hover { color: #007bff; }

.titulo { font-size:1.2rem; font-weight:bolder; text-align:center; padding-top:15px; padding-bottom:10px;  }
.titulo_precio { font-size:1.1rem; font-weight:bolder; }
.precio{ margin-top:10px; padding:15px; margin-bottom: 15px !important; margin-right: 20px; }
.atributos { padding:15px; margin-right:20px; }
.att-title{ display:none;  }

.xleft{ background-color: #dedede; text-align: left; font-size: .8rem; width: 28%; display: inline-block; padding:5px; margin:2px; border-radius: 5px; vertical-align: top;   }
.xright{ margin-left: 15px; text-align: left; font-size: .8rem; width: 68%; display: inline-block; padding:5px; margin:2px; vertical-align: top; }

.quality{ width: 65%; display:inline-block; vertical-align:top; opacity: .8; font-size: 1rem; font-weight: bolder; }
.price {  width: 33%; display:inline-block; vertical-align:top; font-size: 1.1rem; font-weight: bolder; padding-left:25px;  }

.separador1{ width: 101%; background-color:#FFFFFF; min-height:10px; }
.carousel1{ padding-top:10px; padding-bottom:10px;  }

.attribute-list {  max-height: 300px;  overflow: hidden; transition: max-height 0.3s ease;   }
.attribute-list.expanded {  max-height: none;  }

.carrusel-btn {
display:none;
position: absolute;
background-color: rgba(0, 0, 0, 0.5);
color: #FFFFFF;
border: none;
padding: 10px;
cursor: pointer;
z-index: 10;
font-size: 24px;
border-radius: 50%;
top: 50%;
transform: translateY(-50%);
}

.carrusel-btn.izquierda { left: 5px; }
.carrusel-btn.derecha { right: 5px; }
.thumbnail {  width: 70px;  height: 70px;  border-radius: 10px;  cursor: pointer;  border: 2px solid #ccc;  transition: border-color 0.3s ease, filter 0.3s ease;  object-fit: cover;  }
.carousel-inner .carousel-item img { width: 78% !important; margin:auto !important; height: 533px; object-fit: cover; border-radius: 10px; }
.entrega { text-align:center; }

.lista_pedidos{ cursor:pointer; height: 68vh; min-height: 68vh; overflow-y: auto;}


.flag-btn { cursor: pointer; filter: grayscale(100%); margin-left:5px; border:solid 1px #FFFFFF; border-radius: 3px;
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.5); /* Sombra sutil */
  transition: box-shadow 0.2s ease;
}
.flag-btn:hover {
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.7);
}

#google_translate_element {  display: none !important;   }
.goog-te-banner-frame {    display: none !important;  }
#goog-gt-vt { display:none; }
.goog-te-gadget { display: none !important;  }
.goog-tooltip { display: none !important;  }
.goog-tooltip:hover { display: none !important;  }
.goog-te-balloon-frame { display: none !important;  }
.skiptranslate { display:none !important; }

.goog-text-highlight {
  background-color: transparent !important;
  background: none !important;
  box-shadow: none !important;
  color: inherit !important;
}

#contenedor_colores,
#contenedor_materiales {
  max-height: 200px;   /* Ajusta este valor a lo que se vea bien con tu diseño */
  overflow-y: auto;
  padding-right: 8px; /* Para evitar que el scroll tape el contenido */
}

.fy23-search-card{
background-color: #FFFFFF;
color: #000;
text-decoration: none;
border-radius: 10px;
margin-top: 0;
margin-bottom: 0 !important;
line-height: 1.3;
font-size: 12px;
border:solid 1px #b1b1b1;
align-items: stretch;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
flex-grow: 1;
cursor:pointer;
display: flex; 
flex-direction: column;
height: 100%;
}

.fy23-search-card .fy23-search-media{
  position: relative;
  background: transparent;
  border: none;
  border-radius: 10px;
  margin: 8px 8px 6px;
  padding: 6px;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.fy23-search-card .cimg-top{
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
  border-radius: 8px;
  margin: 0;
}

.fy23-search-card .search-card-fav{
  position: absolute;
  right: 6px;
  top: 6px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6b6b6b;
  padding: 0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

.fy23-search-card .search-card-fav:hover{
  color: #092759;
  border-color: #b5b5b5;
}

.fy23-search-card .search-card-fav svg{
  width: 32px;
  height: 32px;
}

.fy23-search-card .card-body{
  padding: 3px 8px 8px;
  display: flex;
  flex-direction: column;
  gap: 0;
  flex: 0 0 auto;
}

.fy23-search-card .card-body::after{
  content: none;
}

.fy23-search-card .search-card-e-title{
  font-size: .75rem;
  min-height: 1.3em;
  margin-bottom: 0;
  line-height: 1.15;
}

.fy23-search-card .card-precio{
  margin: 0;
  font-size: .72rem;
  line-height: 1.05;
}

.fy23-search-card .card-codigo{
  margin: 0;
  font-size: .66rem;
  line-height: 1.05;
}

.fy23-search-card .search-card-select{
  margin-top: 4px;
  padding: 2px 10px;
  font-size: .64rem;
  border-radius: 9px;
  width: 70%;
  align-self: center;
  justify-content: center;
  background-color: #092759;
  color: #fff;
  border: none;
  line-height: 1;
  flex: 0 0 auto;
}

.fy23-search-card .search-card-select-icon{
  width: 18px;
  height: 18px;
  display: block;
  filter: brightness(0) invert(1);
}

.ver-mas .btn-icon{
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: url('../images/iconos/seleccion.svg') center / contain no-repeat;
}

.ver-mas .btn-icon > *{
  display: none;
}

.fy23-search-card .ver-mas .btn-icon{
  width: 25px;
  height: 25px;
}

.organic-list {  display: grid;  grid-template-columns: repeat(5, 1fr);  gap: 5px; overflow: visible; grid-auto-flow: dense;}
.organic-list.horizontal { 
display: flex !important;
flex-wrap: nowrap !important; /* No permitir que los elementos se vayan a otra fila */
overflow-x: auto !important; /* Agregar scroll horizontal si es necesario */
overflow-y: hidden !important;
gap: 5px !important;
padding-bottom: 18px !important;
}

.organic_unificado.horizontal { 
display: flex !important;
flex-wrap: nowrap !important; /* No permitir que los elementos se vayan a otra fila */
overflow-x: auto !important; /* Agregar scroll horizontal si es necesario */
overflow-y: hidden !important;
gap: 5px !important;
padding-bottom: 18px !important;
}

.img-search-offer-list{ display: grid;  grid-template-columns: repeat(5, 1fr);  gap: 5px; overflow: visible; grid-auto-flow: dense;}
.img-search-offer-list.horizontal{ 
display: flex !important;
flex-wrap: nowrap !important; /* No permitir que los elementos se vayan a otra fila */
overflow-x: auto !important; /* Agregar scroll horizontal si es necesario */
overflow-y: hidden !important;
gap: 5px !important; /* Mantener el espacio entre los elementos */
padding-bottom: 18px !important;
}


.search-card-e-slider__img { width: 310px; height: 300px; object-fit: cover; object-position: center; border-radius: 15px; padding-top: 5px; padding-left: 5px;  }
.card-info { margin:15px; }
.search-card-m-sale-features{ display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 1; overflow: hidden; text-overflow: ellipsis; word-wrap: break-word;  }
.search-card-e-detail-wrapper{  line-height: 1.3 !important; font-size: .8rem; }
.search-card-e-title{ display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; text-overflow: ellipsis; word-wrap: break-word; }



.carrito_central { padding-top:10px; background-color:#FFFFFF; }


.custom-link { text-decoration: none; color: inherit;  cursor: pointer; }
.custom-link:hover { text-decoration: none; color: inherit; }

.contenido_inicial { width:100%; }

.card-footer span {  cursor: pointer;  font-size: 1.25rem; color: #6c757d; }
.card-footer span:hover {  color: #007bff; }



.modal-title-car {  background-color: #f8f9fa;  border-bottom: 1px solid #dee2e6;  padding: 10px;   }
.modal-title-car h4 {  font-size: 1.5rem;  color: #333;  margin: 0; }
.modal-body-car {  padding: 10px 16px; }
.carrito-container {  display: flex;  flex-direction: row;  align-items: flex-start;  gap: 22px; }
.left-section {  flex: 4; order: 2; }
.right-section {  flex: 6;  display: flex;  flex-direction: column;  gap: 8px; order: 1; }
#detalle_producto_carrusel { margin-bottom: 4px; }
#detalle_producto_carrusel hr { display:none !important; }
.preview-car {  width: 150px;  height: 150px; margin:auto; border-radius: 10px;  overflow: hidden; }
.preview-car img {  width: 100%;  height: 100%;  object-fit: cover; }
.quantity-label-car {  font-size: 1rem;  color: #555;  font-weight: bold; }
.quantity-input-car {  width: 100%;  padding: 10px;  font-size: 1rem;  border: 1px solid #ccc;  border-radius: 5px; }
.quantity-input-car:focus {  border-color: #007bff;  outline: none; }
.total-display-car {
  text-align: right;
  font-size: 1.2rem;
  font-weight: bold;
  color: #333;
  background: linear-gradient(90deg, rgba(0, 123, 255, 0.08), rgba(0, 123, 255, 0.02));
  border: 1px solid rgba(0, 123, 255, 0.2);
  border-radius: 12px;
  padding: 10px 14px;
  box-shadow: 0 10px 18px rgba(12, 40, 120, 0.08);
}
.button-container-car {  display: flex;  justify-content: space-between;  margin-top: 6px; }
.btn-cancel, .btn-add {  display: flex;  align-items: center;  justify-content: center;  padding: 10px 20px;  font-size: 1rem;  border: none;  border-radius: 5px;  cursor: pointer;  color: #FFFFFF;  transition: background-color 0.3s ease; }
.btn-cancel {  background-color: #dc3545; }
.btn-cancel:hover {  background-color: #b02a37; }
.btn-add {  background-color: #28a745; }
.btn-add:hover {  background-color: #218838; }
.btn-cancel i, .btn-add i {  margin-right: 5px; }

/* Modal cotizador: tipografia y escala visual consistentes */
#modal_carrito .modal-content {
  font-size: 13px;
  line-height: 1.28;
}
#modal_carrito .modal-title-car h4 {
  font-size: 0.98rem;
  letter-spacing: 0.01em;
}
#modal_carrito #detalle_producto_carrito,
#modal_carrito #cotizadorBody {
  font-size: 0.86rem;
}
#modal_carrito #SKUModal {
  font-size: 1rem;
}
#modal_carrito #titulo {
  font-size: 0.84rem;
  line-height: 1.3;
  display: block;
  overflow: visible;
  text-overflow: unset;
  max-height: none;
  margin-bottom: 0.45rem !important;
}
#modal_carrito #detalle_producto_carrito p {
  margin-bottom: 0.38rem !important;
}

/* Botones del modal mas compactos */
#modal_carrito .btn-add,
#modal_carrito .btn-cancel {
  padding: 7px 12px;
  font-size: 0.84rem;
  border-radius: 8px;
  min-height: 34px;
}
#modal_carrito .btn-add.is-loading {
  opacity: 0.78;
  pointer-events: none;
  filter: saturate(0.9);
}
#modal_carrito .btn-add.is-loading .spinner-border {
  margin-right: 6px;
}
#modal_carrito .btn-add .btn-icon,
#modal_carrito .btn-cancel .btn-icon {
  margin-right: 5px;
}
#modal_carrito .col-accion .btn {
  font-size: 0.74rem;
  padding: 0.2rem 0.44rem;
  border-radius: 8px;
  line-height: 1.1;
}

/* Headers y celdas de tablas dentro del modal */
#modal_carrito .table thead th,
#modal_carrito .tabla thead th {
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 0.24rem 0.3rem;
}
#modal_carrito .table tbody td,
#modal_carrito .tabla tbody td {
  font-size: 0.6rem;
  line-height: 1.18;
  padding: 0.2rem 0.26rem;
}
#modal_carrito .tabla .input-cantidad,
#modal_carrito .tabla .input-notas {
  font-size: 0.8rem;
  min-height: 30px;
  padding: 0.24rem 0.48rem;
}
#modal_carrito .th-icon {
  width: 1.1rem;
  height: 1.1rem;
}
#modal_carrito .th-icon--note,
#modal_carrito .th-icon--qty,
#modal_carrito .th-icon--act {
  width: 1.15rem;
  height: 1.15rem;
}
#modal_carrito #detalle_producto_carrusel #main_image {
  max-height: 260px !important;
}
#modal_carrito #detalle_producto_carrusel .mini-thumb {
  width: 46px !important;
  height: 46px !important;
  margin-bottom: 4px !important;
}
#modal_carrito #cotizadorBody {
  max-height: none;
  overflow: visible;
  padding-right: 0;
}
#modal_carrito #cotizadorBody .table-responsive.shadow {
  margin-bottom: 0.95rem !important;
}
#modal_carrito #cotizadorBody .small.text-muted {
  font-size: 9px !important;
  line-height: 1.15;
  margin-top: 0.35rem;
}
#modal_carrito #cotizadorBody .small.text-muted ul {
  margin: 0.1rem 0 0.25rem 0;
  padding-left: 0.95rem;
}
#modal_carrito #cotizadorBody .small.text-muted li {
  margin-bottom: 0.05rem;
}
#modal_carrito #cotizadorBody .small.text-muted em {
  display: block;
  margin-top: 0.12rem;
}

.disabled-btn { background-color: #ccc !important; color: #666 !important; border: 1px solid #999 !important; cursor: not-allowed !important; opacity: 0.6; }



.card-footer{ border: solid 1px: #ff6600 !important; border-radius:15px !important; }

.car_contador { font-size: 21px;  font-weight: bold;  color: #FFFFFF; text-shadow: 1px 1px 3px rgba(0, 0, 0, 1.4); }


@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.img-smooth {
    opacity: 0; /* Inicia invisible */
    animation: fadeIn 0.6s ease-in-out forwards;
}


.colores {
    display: flex;
    justify-content: center;
    padding: 16px;
    border-radius: 8px;
}

.colores > div {
    display: flex;
    gap: 16px; /* Espacio entre elementos */
}

.colores > div > div {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100px;
}

.colores img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 4px;
}

.colores div div {
    margin-top: 6px;
    font-size: 12px;
}



#modal_carrito .modal-dialog {
  width: 94vw !important;
  margin: 0.9rem auto;
}

#modal_carrito .left-section,
#modal_carrito .right-section {
  min-height: 320px;
}

#modal_carrito.modal-carrito--compact .modal-dialog {
  width: 90vw !important;
}



.main-container {
  min-height: 66vh;
  background-color: #FFFFFF;
  background-size: contain;  /* cambia cover por contain si quieres evitar recortes */
  background-repeat: no-repeat;
  background-position: center top;
  text-align: center;
  position: relative;
}

.inner-box {
  width: 25vw;
  min-height: 338px;
  height: auto;
  margin-top: 105px;
  background: linear-gradient(180deg, #f5f7fb, #ffffff);
  padding: 8px;
  display: inline-block;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #d9e3f7;
  box-shadow: var(--shadow-md);
}

.upload-area {
  min-height: 320px;
  border: 2px dashed #ddd;
  border-radius: 8px;
  padding: 20px;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  text-align: center;
  background: #FFFFFF;
  cursor: pointer;
  box-shadow: inset 0 0 0 1px rgba(28, 109, 232, 0.05), 0 12px 24px rgba(15, 23, 42, 0.08);
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  background-image: url('../images/categorias_logos/buscador.webp');
  background-size: 25%;
  background-repeat: no-repeat;
  background-position: center;
}

.upload-area.dragover {
  border-color: #007BFF;
  background: #e6f7ff;
  box-shadow: 0 16px 32px rgba(28, 109, 232, 0.15);
  transform: translateY(-2px);
}

.upload-area2 {
  min-height: 320px;
  border: 2px dashed #ddd;
  border-radius: 8px;
  padding: 20px;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  text-align: center;
  background: #FFFFFF;
  cursor: pointer;
  box-shadow: inset 0 0 0 1px rgba(28, 109, 232, 0.05), 0 12px 24px rgba(15, 23, 42, 0.08);
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;

  background-image: url('../images/categorias_logos/buscador.webp');
  background-size: 25%;
  background-repeat: no-repeat;
  background-position: center;
}

.upload-area2.dragover {
  border-color: #007BFF;
  background: #e6f7ff;
  box-shadow: 0 16px 32px rgba(28, 109, 232, 0.15);
  transform: translateY(-2px);
}

.preview {
  margin-top: -20px;
  text-align: center;
  max-width: 100%;
  overflow: hidden;
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.preview img {
  max-width: 100%;
  max-height: 290px;
  min-height: 290px;
  width: auto;
  height: auto;
  display: block;
  margin: 0 auto;
  object-fit: contain;
}

.preview2 {
  margin-top: -20px;
  text-align: center;
  max-width: 100%;
  overflow: hidden;
}

.preview2 img {
  max-width: 100%;
  max-height: 290px;
  min-height: 290px;
  width: auto;
  height: auto;
  display: block;
  margin: 0 auto;
  object-fit: contain;
}

.preview-wrapper {
  position: relative;
  min-height: 320px;
  width: 100%;
}

.preview2-wrapper {
  position: relative;
  min-height: 320px;
  width: 100%;
}

.preview2 {
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.search-loader-overlay {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.6);
  z-index: 2;
  pointer-events: none;
}

.tab-loading2 {
  margin-top: 10px;
  text-align: center;
  width: 100%;
  padding: 0 8px;
  box-sizing: border-box;
}

.modal-prep-overlay {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(8, 21, 52, 0.18);
  backdrop-filter: blur(2px);
  z-index: 2100;
}

.modal-prep-overlay__card {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 180px;
  padding: 12px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 12px 28px rgba(6, 19, 48, 0.18);
  color: #0b2d60;
  font-size: 0.92rem;
  font-weight: 600;
}

.modal-prep-overlay__spinner {
  color: #0b2d60;
  width: 1rem;
  height: 1rem;
}

.modal-prep-overlay__text {
  line-height: 1;
}

.home-search-only--compact {
  transform: translateY(-34px);
}

@media (max-width: 768px) {
  .home-search-only--compact {
    transform: translateY(-20px);
  }
}

.tab-loading1 {
  margin-top: 10px;
  text-align: center;
  width: 100%;
  padding: 0 8px;
  box-sizing: border-box;
}

.search-loader__text {
  margin: 0;
  padding: 6px 12px;
  max-width: 100%;
  font-size: 0.95rem;
  color: #2f2f2f;
  text-align: center;
  white-space: normal;
  overflow: visible;
  text-overflow: unset;
  word-break: break-word;
  line-height: 1.2;
  box-sizing: border-box;
}

#modal_img .tab-loading1 {
  width: 100%;
  max-width: 100%;
}

#modal_img .tab-loading1 .search-loader__text {
  display: inline-block;
  width: auto;
  max-width: 100%;
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: clip !important;
  word-break: break-word;
  box-sizing: border-box;
}

#div_inicial .tab-loading2 {
  width: 100%;
  max-width: 100%;
}

#div_inicial .tab-loading2 .search-loader__text {
  display: inline-block;
  width: auto;
  max-width: 100%;
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: clip !important;
  word-break: break-word;
  box-sizing: border-box;
}

.search-loader {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 10px 0 4px;
}

.search-loader__icon {
  width: 64px;
  height: 64px;
  animation: search-spin 2.4s linear infinite;
}

.search-loader__ring {
  fill: none;
  stroke: #007BFF;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-dasharray: 72 40;
  animation: search-dash 1.6s ease-in-out infinite;
}

.search-loader__handle {
  stroke: #007BFF;
  stroke-width: 5;
  stroke-linecap: round;
}

.search-loader__glow {
  fill: rgba(0, 123, 255, 0.25);
  transform-origin: 26px 26px;
  animation: search-pulse 1.4s ease-in-out infinite;
}


@keyframes search-spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes search-dash {
  0% { stroke-dashoffset: 0; opacity: 0.8; }
  50% { stroke-dashoffset: 60; opacity: 1; }
  100% { stroke-dashoffset: 120; opacity: 0.8; }
}

@keyframes search-pulse {
  0% { transform: scale(0.8); opacity: 0.2; }
  50% { transform: scale(1.1); opacity: 0.5; }
  100% { transform: scale(0.8); opacity: 0.2; }
}

@media (prefers-reduced-motion: reduce) {
  .search-loader__icon,
  .search-loader__ring,
  .search-loader__glow {
    animation: none;
  }
}



.total-display-car {
  display: flex;
  justify-content: start;
  align-items: center;
  gap: 30px; /* 🎯 separación entre bloques */
  font-size: 16px;
  font-weight: bold;
  margin-top: 10px;
  padding: 6px 12px;
  border-top: 1px solid #ccc;
}

.info-articulos {
  color: #555;
}

.info-total {
  color: #000;
}

.iconsredondos {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    cursor:pointer;
    padding-bottom: 50px;
}

.icon-item {
    position: relative;
    margin: 10px;
    display: inline-block;
    border-radius: 50%;
    border: solid 1px;
    overflow: hidden;
    width: 150px;
    height: 150px;
    transition: background-color 0.3s;
    text-align: center;
    justify-content: center;
}

.icon-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s;
}

.category-name {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #FFFFFF;
    font-size: 18px;
    font-weight: bold;
    opacity: 0;
    transition: opacity 0.3s;
}


.icon-item:hover .category-name {
    opacity: 1;
}

.icon-item:hover img {
    opacity: 0.3;
}

/* Distribución proporcional */
.col-cantidad {
  width: 15%;
  max-width: 150px;
}

.col-notas {
  width: 80%;
}

.col-accion {
  width: 5%;
  max-width: 60px;
}

/* Ajuste de inputs */
.input-cantidad,
.input-notas {
  width: 100%;
  padding: 4px 6px;
  font-size: 14px;
}

.marcas { background-color: gray;  cursor:pointer; }
.marcas img { width: 99%;  height: 150px; object-fit: cover; }



.menu-vertical .dropdown-menu.show {
display: flex !important;
flex-direction: column !important;
padding-left: 5px !important;
padding-right: 5px !important;
align-items: stretch; /* opcional: para que ocupen todo el ancho */
}





#modalCamara .modal-dialog {
max-width: 70vw;       /* Ocupa casi todo el ancho de pantalla */
width: 70vw;
margin: 0 auto;
}

#modalCamara .modal-content {
  height: 100%;
  border-radius: 10px;
  overflow: hidden;
  background-color: #000; /* O blanco si prefieres */
}

#modalCamara .modal-body.modal-camara-body {
  position: relative;
  height: 100%;
  padding: 0;
}

#modalCamara video {
  height: 100%;
  width: 100%;
  object-fit: cover;
  display: block;
}

/* Círculo más grande */
.overlay-circulo {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  z-index: 10;
  pointer-events: none;
}
.overlay-circulo::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 35vw;
  height: 35vw;
  border: 3px solid rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  box-shadow: 0 0 20px rgba(0,0,0,0.4);
}

/* Botón tipo icono flotante arriba izquierda */
#btn-capturar {
  position: absolute;
  top: 10px;
  left: 15px;
  z-index: 20;
  background-color: rgba(0, 0, 0, 0.4);
  color: #FFFFFF;
  border: none;
  padding: 8px 10px;
  font-size: 18px;
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.3s;
}
#btn-capturar:hover {
  background-color: rgba(0, 0, 0, 0.7);
}






.card.duplicado {
  position: relative;
}

.card.duplicado::before {
  content: "DUPLICADO";
  position: absolute;
  top: 50;
  right: 0;
  background: crimson;
  color: #FFFFFF;
  font-size: 10px;
  padding: 3px 6px;
  font-weight: bold;
  transform: rotate(45deg);
  transform-origin: top right;
  z-index: 10;
}








@media (max-width: 768px) {
.navbar-collapse {    max-height: 80vh; overflow-y: auto; }
.navbar-nav{ text-align:left;  }
.navbar-nav .nav-link { padding-left:10px; }

.mb-1{ font-size: 0.7rem !important; line-height:.8rem;  }
.row { margin-right:0px; margin-left:0px; }
.container-search { padding-top:5px; padding-left:5px; padding-right: 5px; padding-bottom: 10px; }
.container-iconos{ padding-right:0px; margin-top:5px; }
.logo1{ width:70%; margin-left:0px; margin-top: 10px;}
.logo2{ width:70%; margin-right:35px; }

.container-central { width:100% !important; }
.contenido_central { padding-top:190px; padding-bottom: 0px; background-color:#FFFFFF; }
#div_inicial { padding-top:10px; }
.articulos{ padding-top:10px; }
.articulos-int{ margin-right: 0px !important; height: 60vh; min-height: 60vh; }
.detalles{ padding-top:0px; }
.detalles-int{ margin-left: 0px !important; }

.cimg-top{ border-radius: 10px 10px 0 0; width: 65%; height: 212px; object-fit: cover; object-position: center; margin:auto }

.botones {  width: 99%;  display: flex; justify-content: center; align-items: center; gap: 6px; flex-wrap: wrap; }
.me-gusta,
.ver-mas {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  font-size: 0.82rem;
  border-radius: 10px;
  border: 1px solid transparent;
  cursor: pointer;
}
.me-gusta {
  background-color: #ffffff;
  color: var(--pantone);
  border-color: var(--pantone);
}
.me-gusta:hover {
  background-color: var(--pantone);
  color: #ffffff;
}
.ver-mas  {
  background-color: var(--pantone);
  color: #ffffff;
  border-color: var(--pantone);
}
.ver-mas:hover {
  background-color: var(--brand-dark);
  border-color: var(--brand-dark);
}

/*   esto es el contenido del pie de pagina   */
.ladire{ font-size:.7rem; font-weight:bold;  text-align: center; margin-right: 0 !important; }
.lainfo{ font-size:.7rem; width:95%; margin:auto; text-align:center; padding:10px; }
.copy{ font-size:.6rem;  }

.left-section{ max-width: 100%; order: 1; }
.right-section{ order: 2; }
#cotizadorBody{ min-height:0px !important; max-width: 100%; }

.total-display-car { flex-direction:column; flex-wrap: nowrap; }

.carrito{ padding-top:0px; }

.carrito-container{ flex-direction:column; }


.carrito-central{ width: 100%; margin:auto; margin-top:161px; }
.organic-list {  display: grid; grid-template-columns: repeat(1, 1fr); gap: 5px; overflow: visible; }
.img-search-offer-list{ display: grid; grid-template-columns: repeat(1, 1fr); gap: 5px; overflow: visible;  }
.search-card-e-slider__img { width: 99%; height: 368px; object-fit: cover; object-position: center; border-radius: 15px; padding-top: 5px; padding-left: 5px;  }
.detalle_central { padding-top:15px;  }
.carousel-inner .carousel-item img { width: 100% !important; margin:auto !important; height: 420px; object-fit: cover; }
.thumbnail { width: 40px !important; height: 40px !important; border-radius: 5px !important; cursor: pointer; border: 2px solid #ccc; transition: border-color 0.3s ease, filter 0.3s ease; object-fit: cover;  }
.titulo { font-size:1rem; font-weight:bolder; text-align:center; padding-bottom:10px; width:90%; margin:auto; line-height:1.3rem;  }
.precio{ margin-right:0px; }
.atributos { margin-right:0px; }
.quality{ width: 45%; display:inline-block; vertical-align:top; opacity: .8; font-size: 0.9rem; font-weight: bolder; }
.price {  width: 45%; display:inline-block; vertical-align:top; font-size: 1rem; font-weight: bolder; padding-left:25px;  }
.entrega{ font-size:.7rem; text-align: center; }


.organic-list.horizontal { 
display: flex !important;
flex-wrap: nowrap !important; /* No permitir que los elementos se vayan a otra fila */
overflow-x: auto !important; /* Agregar scroll horizontal si es necesario */
overflow-y: hidden !important; /* Agregar scroll horizontal si es necesario */
gap: 5px !important;
flex-direction: row !important;
padding-bottom: 18px !important;
}


.organic_unificado.horizontal { 
display: flex !important;
flex-wrap: nowrap !important; /* No permitir que los elementos se vayan a otra fila */
overflow-x: auto !important; /* Agregar scroll horizontal si es necesario */
overflow-y: hidden !important; /* Agregar scroll horizontal si es necesario */
gap: 5px !important;
flex-direction: row !important;
padding-bottom: 18px !important;
}

.img-search-offer-list.horizontal{ 
display: flex !important;
flex-wrap: nowrap !important; /* No permitir que los elementos se vayan a otra fila */
overflow-x: auto !important; /* Agregar scroll horizontal si es necesario */
overflow-y: hidden !important; /* Agregar scroll horizontal si es necesario */
gap: 5px !important; /* Mantener el espacio entre los elementos */
flex-direction: row !important;
padding-bottom: 18px !important;
}

.search-card-e-slider__img { width: 99%; height: 380px !important; object-fit: cover; object-position: center; border-radius: 15px; padding-top: 5px; padding-left: 1px;  }

.search-card-e-slider__img.mini { width: 99%; height: 95px !important; object-fit: cover; object-position: center; border-radius: 15px; padding-top: 0px; padding-left: 1px;  }
.gallery-card-info__sales.mini{ display:none !important; }

.main-container {
min-height: 50vh;
background-color: #FFFFFF;
background-image: url('../images/baner/baner.png');
background-size: cover;
background-position: top;
text-align: center;
position: relative;
}

.inner-box {
width: 80vw;
height: 345px;
margin-top: 45px;
background-color: #e5e5e5;
padding: 8px;
display: inline-block;
border-radius: 8px;
}

.icon-item {
    position: relative;
    margin: 10px;
    display: inline-block;
    border-radius: 50%;
    border: solid 1px;
    overflow: hidden;
    width: 120px;
    height: 120px;
    transition: background-color 0.3s;
    text-align: center;
    justify-content: center;
}

.flag-btn { cursor: pointer;  width: 27px; height: 17px; filter: grayscale(100%); }

}

/* Modal carrito: fecha debajo de tabla + separador + totales con espacio */
.car-fecha-row{
  display:flex;
  align-items:center;
  gap: 10px;
  margin-top: 4px;
}
.car-fecha-row .form-control{
  max-width: 280px;
}
.car-separador{
  width: 100%;
  height: 1px;
  background: #d7d7d7;
  margin: 10px 0 6px;
}
#add_total.total-display-car{
  display:flex;
  justify-content:center;
  align-items:center;
  gap: 28px;
  flex-wrap:wrap;
}
#add_total.total-display-car .info-articulos,
#add_total.total-display-car .info-precio,
#add_total.total-display-car .info-total{
  min-width: 0;
  display:inline-flex;
  align-items:center;
  gap: 5px;
  text-align:center;
  white-space:nowrap;
  font-size: 0.84rem;
}
@media (max-width: 768px){
  .modal-body-car{
    padding-left: 10px;
    padding-right: 10px;
  }
  .car-fecha-row{
    flex-direction:column;
    align-items:flex-start;
  }
  .car-fecha-row .form-control{
    max-width: 100%;
  }
  #modal_carrito #cotizadorBody {
    max-height: none;
    overflow: visible;
    padding-right: 0;
  }
  #add_total.total-display-car{
    justify-content:center;
    gap: 12px;
  }
}
  .articulos-int {
    margin-left: 0 !important;
  }
