@font-face {
  font-family: 'SuperGroteskC';
  src: url('../fonts/supergroteskc/SuperGroteskC-BdLF.woff');
}

@font-face {
  font-family: 'SuperGroteskC-2';
  src: url('../fonts/supergroteskc/SuperGroteskC-Med.woff');
}

body {
  font-family: 'Lato', sans-serif;
}

h1 { font-family: "SuperGroteskC-BdLF", arial; font-size: 40px; text-transform: uppercase; color: #212833; }
h2 { font-family: "SuperGroteskC-BdLF", arial; font-size: 28px; text-transform: uppercase; color: #212833; word-wrap: break-word; }
h3 { font-family: "SuperGroteskC-BdLF", arial; font-size: 20px; text-transform: uppercase; color: #212833; }
h1.lato { font-family: "Lato", sans-serif; font-size: 40px; text-transform: uppercase; color: #212833; }
h2.lato { font-family: "Lato", sans-serif; font-size: 28px; text-transform: uppercase; color: #212833; }
h3.lato { font-family: "Lato", sans-serif; font-size: 20px; text-transform: uppercase; color: #212833; }

.fw-300 { font-weight: 300; }
.fw-400 { font-weight: 400; }
.fw-600 { font-weight: 600; }
.fw-700 { font-weight: 700; }
.fw-800 { font-weight: 800; }
.text-normal { text-transform: none !important; }
.text-uppercase { text-transform: uppercase !important; }
.text-lato { font-family: "Lato", sans-serif !important; }

p { font-family: "Lato", sans-serif; font-weight: 300; }
.marginB-30 { margin-bottom: 30px; }
.marginB-40 { margin-bottom: 40px; }

.btn {
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 2px;
  border: none;
  border-radius: 50px;
  padding: 10px 22px;
  color: white !important;
}
.btn.btn-primary {
  background-color: #0EABEC;
  border: 1px solid #0EABEC;
}
.btn.btn-primary:hover {
  background-color: #1193ca;
  border: 1px solid #1193ca;
  color: white;
}
.btn.btn-default {
  color: #212833 !important;
  border: 1px solid #212833;
}
.btn.btn-default:hover {
  background-color: #212833;
  border: 1px solid #212833;
  color: white !important;
}
.btn.btn-link {
  background-color: initial;
  color: #212833 !important;
  border: none;
  text-decoration: underline;
  white-space: inherit;
}

::-moz-selection { color: white; background: #212833; }
::selection { color: white; background: #212833; }

.containerGeneral-seguimiento {
  font-family: 'Lato', sans-serif;
}
.containerGeneral-seguimiento .ingreso-nSeguimiento {
  background: #00307b;
  background: -moz-linear-gradient(45deg, #00307b 0%, #0eabec 100%);
  background: -webkit-linear-gradient(45deg, #00307b 0%, #0eabec 100%);
  background: linear-gradient(45deg, #00307b 0%, #0eabec 100%);
  color: white;
  padding: 20px 0;
}
.containerGeneral-seguimiento .ingreso-nSeguimiento p,
.containerGeneral-seguimiento .ingreso-nSeguimiento h1,
.containerGeneral-seguimiento .ingreso-nSeguimiento h3 {
  color: white;
}
.containerGeneral-seguimiento .ingreso-nSeguimiento input {
  border-radius: 50px;
  box-shadow: none;
  padding: 25px 0;
  transition: 0.2s all;
}
.containerGeneral-seguimiento .ingreso-nSeguimiento .input-busqueda-content #respuesta {
  color: white;
  border-radius: 3px;
  font-size: 10px;
  padding: 7px 0;
  position: absolute;
  color: #ff4949;
  bottom: 2px;
  padding: 0;
  text-align: center;
  width: 100%;
  letter-spacing: 0.5px;
}
.containerGeneral-seguimiento .ingreso-nSeguimiento .input-busqueda-content {
  padding: 1px;
  position: relative;
  z-index: 1;
  border-radius: 50px;
  overflow: hidden;
  margin-bottom: 10px;
}
.containerGeneral-seguimiento input[type=number]::-webkit-inner-spin-button,
.containerGeneral-seguimiento input[type=number]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.containerGeneral-seguimiento input[type=number] {
  font-family: Courier New, Courier, Lucida Sans Typewriter, Lucida Typewriter, monospace;
  text-align: center;
  font-size: 30px;
  border: none;
}

.containerGeneral-seguimiento .estadosPedidos {
  margin: 30px 0;
  padding: 0 !important;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}
.containerGeneral-seguimiento .estadosPedidos .fechaPedido {
  text-transform: uppercase;
  font-size: 12px;
  text-align: center;
}
.containerGeneral-seguimiento .estadosPedidos li {
  position: relative;
  list-style: none;
  padding: 0;
  padding-top: 50px;
  text-align: center;
  align-self: flex-start;
  flex-grow: 1;
  flex-shrink: 1;
  flex-basis: 0;
  max-width: 180px;
}
.containerGeneral-seguimiento .estadosPedidos li .fw-700 {
  display: block;
  max-width: 160px;
  word-wrap: break-word;
  white-space: normal;
  margin: 0 auto;
}
.containerGeneral-seguimiento .estadosPedidos li p small {
  max-width: 160px;
  word-wrap: break-word;
  white-space: normal;
  display: inline-block;
}
.containerGeneral-seguimiento .estadosPedidos li:before {
  content: "\f00c";
  font: normal normal normal 11px/1 FontAwesome;
  text-rendering: auto;
  -webkit-font-smoothing: antialiased;
  color: white;
  text-align: center;
  width: 30px;
  height: 30px;
  border-radius: 50px;
  background: #00adf2;
  position: absolute;
  border: 3px solid white;
  z-index: 1;
  line-height: 26px;
  left: 50%;
  top: 0;
  margin-left: -15px;
}
.containerGeneral-seguimiento .estadosPedidos li:last-child:before {
  background: #FFD41B;
  animation: pulse 2s infinite;
  border-radius: 50%;
  content: "\f192";
}
.containerGeneral-seguimiento .estadosPedidos li.delivered:last-child:before {
  background: #03c99b;
  content: "\f00c";
  animation: none;
}
.containerGeneral-seguimiento .estadosPedidos li.anomalous:last-child:before {
  background: #ffab17;
  content: "\f12a";
  animation: none;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(204, 169, 44, 0.4); }
  70% { box-shadow: 0 0 0 10px rgba(204, 169, 44, 0); }
  100% { box-shadow: 0 0 0 0 rgba(204, 169, 44, 0); }
}

.containerGeneral-seguimiento .estadosPedidos li:after {
  content: '';
  border-top: 2px solid #00adf2;
  position: absolute;
  height: 100%;
  top: 16px;
  left: 50%;
  width: 100%;
}
.containerGeneral-seguimiento .estadosPedidos li:nth-last-child(-n+2):after {
  border-top: 2px dashed #ccc;
}
.containerGeneral-seguimiento .estadosPedidos li:last-child:after {
  display: none !important;
  border-top: none !important;
}
.containerGeneral-seguimiento .estadosPedidos li.delivered:nth-last-child(-n+2):after {
  border-top: 2px solid #00adf2 !important;
  display: block !important;
  left: -50%;
}
.containerGeneral-seguimiento .estadosPedidos li.info-step:before {
  background: #FFD41B;
}
.containerGeneral-seguimiento .estadosPedidos li.info-step:after {
  border-top-color: #FFD41B;
}
.containerGeneral-seguimiento .estadosPedidos li.info-step-end:after {
  display: none !important;
}
.containerGeneral-seguimiento .estadosPedidos li.branch-split:before {
  background: #0eabec;
  content: "\f0c1";
  font-size: 14px;
  line-height: 28px;
}
.containerGeneral-seguimiento .estadosPedidos li.branch-split:after {
  border-top-color: #0eabec;
}

.containerGeneral-seguimiento .cont-nSeguimiento {
  text-align: center;
  color: white;
  padding: 20px 0;
}
.containerGeneral-seguimiento .cont-nSeguimiento h3 {
  color: white;
  font-family: Courier New, Courier, Lucida Sans Typewriter, Lucida Typewriter, monospace;
  font-size: 45px;
  margin: 0;
}
.containerGeneral-seguimiento .cont-nSeguimiento label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.multi-bulto-container {
  margin-top: 20px;
}
.bulto-branches {
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin-top: 30px;
}
.bulto-branch {
  width: 100%;
  background: #f9f9f9;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 20px;
}
.bulto-producto-info {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid #e0e0e0;
}
.bulto-producto-info .bulto-imagen {
  width: 64px;
  height: 64px;
  object-fit: contain;
  flex-shrink: 0;
  border-radius: 4px;
  background: #fff;
}
.bulto-producto-info .bulto-imagen.placeholder {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.4;
  background: #eee;
  border-radius: 4px;
  flex-shrink: 0;
}
.bulto-producto-texto {
  flex: 1;
  min-width: 0;
}
.bulto-producto-texto .paquete-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #0eabec;
  font-weight: 700;
  margin-bottom: 4px;
}
.bulto-producto-texto .producto-nombre {
  font-size: 15px;
  font-weight: 600;
  color: #212833;
  margin-bottom: 2px;
  word-wrap: break-word;
  white-space: normal;
}
.bulto-producto-texto .producto-sku {
  font-size: 11px;
  color: #888;
  margin-bottom: 2px;
}
.bulto-producto-texto .bulto-cli {
  font-size: 11px;
  color: #888;
}
.bulto-producto-texto .bulto-qty {
  font-size: 11px;
  color: #888;
}
.bulto-branch .bulto-timeline {
  margin: 0 !important;
  padding: 0 !important;
}
.bulto-branch .bulto-timeline li {
  padding-top: 36px;
}
.bulto-branch .bulto-timeline li:before {
  width: 24px;
  height: 24px;
  line-height: 20px;
  font-size: 10px;
  margin-left: -12px;
}
.bulto-branch .bulto-timeline li:after {
  top: 13px;
}
.bulto-branch .estadosPedidos.bulto-timeline li:last-child:before {
  background: #FFD41B;
  animation: pulse 2s infinite;
  content: "\f192";
}
.bulto-branch .estadosPedidos.bulto-timeline li.delivered:last-child:before {
  background: #03c99b;
  content: "\f00c";
  animation: none;
}
.bulto-branch .estadosPedidos.bulto-timeline li.anomalous:last-child:before {
  background: #ffab17;
  content: "\f12a";
  animation: none;
}
.bulto-branch .bulto-timeline li:last-child:after {
  display: none !important;
}
.bulto-branch .bulto-timeline li.delivered:nth-last-child(-n+2):after {
  border-top: 2px solid #00adf2 !important;
  display: block !important;
  left: -50%;
}
.bulto-branch .sin-tracking {
  text-align: center;
  color: #999;
  font-style: italic;
  padding: 20px 0;
  font-size: 13px;
}

.single-bulto-card {
  margin-top: 24px;
  background: #f9f9f9;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 20px;
}
.single-bulto-card .bulto-producto-info {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.single-bulto-card .bulto-imagen {
  width: 64px;
  height: 64px;
  object-fit: contain;
  flex-shrink: 0;
  border-radius: 4px;
  background: #fff;
}
.single-bulto-card .bulto-imagen.placeholder {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.4;
  background: #eee;
  border-radius: 4px;
  flex-shrink: 0;
}
.single-bulto-card .paquete-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #0eabec;
  font-weight: 700;
  margin-bottom: 4px;
}
.single-bulto-card .producto-nombre {
  font-size: 15px;
  font-weight: 600;
  color: #212833;
  word-wrap: break-word;
  white-space: normal;
  margin-bottom: 2px;
}
.single-bulto-card .producto-sku {
  font-size: 11px;
  color: #888;
  margin-top: 2px;
}
.single-bulto-card .bulto-cli {
  font-size: 11px;
  color: #888;
  margin-top: 2px;
}

@media (max-width: 960px) {
  .containerGeneral-seguimiento .cont-nSeguimiento {
    padding: 0;
  }
  .bulto-branch {
    overflow: hidden;
    padding: 12px;
  }
  .bulto-producto-info {
    gap: 10px;
    width: 100%;
  }
  .bulto-producto-info .bulto-imagen {
    width: 48px;
    height: 48px;
  }
  .bulto-producto-info .bulto-imagen.placeholder {
    width: 48px;
    height: 48px;
  }
  .bulto-producto-texto {
    min-width: 0;
    max-width: 100%;
  }
  .bulto-producto-texto .producto-nombre {
    overflow-wrap: break-word;
    word-wrap: break-word;
    hyphens: auto;
  }
  .containerGeneral-seguimiento .estadosPedidos {
    padding: 30px 10px 0 10px;
    float: left;
    width: 100%;
    display: initial;
  }
  .containerGeneral-seguimiento .estadosPedidos li {
    padding-left: 40px;
    padding-bottom: 25px;
    text-align: left;
    padding-top: 0;
    max-width: none;
  }
  .containerGeneral-seguimiento .estadosPedidos li .fw-700 {
    max-width: none;
    text-align: left;
  }
  .containerGeneral-seguimiento .estadosPedidos li p small {
    max-width: none;
  }
  .containerGeneral-seguimiento .estadosPedidos li:before {
    left: 15px;
  }
  .containerGeneral-seguimiento .estadosPedidos li:after {
    border-left: 2px solid #00adf2;
    border-top: none;
    height: 100%;
    top: 16px;
    left: 14px;
  }
  .containerGeneral-seguimiento .estadosPedidos li:nth-last-child(-n+2):after {
    border-left: 2px dashed #ccc;
    border-top: none;
  }
  .containerGeneral-seguimiento .estadosPedidos li.delivered:nth-last-child(-n+2):after {
    border-left: 2px solid #03adf2 !important;
    border-top: none !important;
    top: -96%;
    left: 14px;
  }
  .containerGeneral-seguimiento .estadosPedidos li.info-step:after {
    border-left-color: #FFD41B;
    border-top-color: transparent;
  }
  .containerGeneral-seguimiento .estadosPedidos .fechaPedido {
    text-align: right;
    padding-left: 0;
  }

  .bulto-branches {
    flex-direction: column;
    align-items: stretch;
  }
  .bulto-branch {
    min-width: auto;
    max-width: none;
  }
  .bulto-branch .bulto-timeline {
    padding: 10px 0 0 0 !important;
    float: left;
    width: 100%;
    display: initial;
  }
  .bulto-branch .bulto-timeline li {
    padding-left: 40px;
    padding-bottom: 20px;
    text-align: left;
    padding-top: 0;
    max-width: none;
  }
  .bulto-branch .bulto-timeline li:before {
    left: 15px;
  }
  .bulto-branch .bulto-timeline li:after {
    border-left: 2px solid #00adf2;
    border-top: none;
    height: 100%;
    top: 16px;
    left: 14px;
  }
  .bulto-branch .bulto-timeline li:nth-last-child(-n+2):after {
    border-left: 2px dashed #ccc;
    border-top: none;
  }
  .bulto-branch .bulto-timeline li:last-child:after {
    display: none !important;
  }

  /* Multi-fulfillment timeline responsive */
  .fulfillment-card .fulfillment-timeline {
    padding: 10px 0 0 0 !important;
    float: left;
    width: 100%;
    display: initial;
  }
  .fulfillment-card .fulfillment-timeline li {
    padding-left: 40px;
    padding-bottom: 20px;
    text-align: left;
    padding-top: 0;
    max-width: none;
  }
  .fulfillment-card .fulfillment-timeline li:before {
    left: 15px;
  }
  .fulfillment-card .fulfillment-timeline li:after {
    border-left: 2px solid #00adf2;
    border-top: none;
    height: 100%;
    top: 16px;
    left: 14px;
  }
  .fulfillment-card .fulfillment-timeline li:nth-last-child(-n+2):after {
    border-left: 2px dashed #ccc;
    border-top: none;
  }
  .fulfillment-card .fulfillment-timeline li:last-child:after {
    display: none !important;
  }
}

/* ============================================
   Multi-Fulfillment Card Styles
   ============================================ */

#multi-fulfillment-container {
  margin-top: 20px;
}

.fulfillment-card {
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 24px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.fulfillment-header {
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid #e0e0e0;
}

.fulfillment-header-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.fulfillment-badge {
  display: inline-block;
  background: #0eabec;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 4px 10px;
  border-radius: 4px;
}

.fulfillment-id {
  font-size: 12px;
  color: #aaa;
  font-family: 'Courier New', Courier, monospace;
  display: block;
  margin-top: 2px;
}

.fulfillment-origen {
  font-size: 13px;
  color: #555;
  margin-bottom: 4px;
}

.fulfillment-origen i {
  margin-right: 6px;
  color: #0eabec;
}

.fulfillment-promise {
  font-size: 12px;
  color: #888;
}

.fulfillment-promise .promise-label {
  font-weight: 600;
}

.fulfillment-promise .promise-date {
  font-family: 'Courier New', Courier, monospace;
  color: #212833;
}

/* Section titles */
.fulfillment-section-title {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #212833;
  margin: 16px 0 12px 0;
  padding-bottom: 6px;
  border-bottom: 1px solid #f0f0f0;
}

.fulfillment-products {
  margin-bottom: 8px;
}

.fulfillment-products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
}

.fulfillment-product-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: #f9f9f9;
  border-radius: 6px;
  padding: 10px;
}

.fulfillment-product-item .product-thumb {
  width: 64px;
  height: 64px;
  object-fit: contain;
  flex-shrink: 0;
  border-radius: 4px;
  background: #fff;
}

.fulfillment-product-item .product-thumb.placeholder {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #eee;
  border-radius: 4px;
  opacity: 0.4;
  flex-shrink: 0;
}

.fulfillment-product-item .product-details {
  flex: 1;
  min-width: 0;
}

.fulfillment-product-item .product-name {
  font-size: 14px;
  font-weight: 600;
  color: #212833;
  margin-bottom: 2px;
  word-wrap: break-word;
}

.fulfillment-product-item .product-sku {
  font-size: 11px;
  color: #888;
  margin-bottom: 4px;
}

.fulfillment-product-item .product-unidades-badge {
  display: inline-block;
  background: #e8f4fd;
  color: #0eabec;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 10px;
}

/* Bultos dentro de fulfillment */
.fulfillment-bultos {
  margin-bottom: 8px;
}

.fulfillment-bultos-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 8px;
}

.fulfillment-bulto-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2px 12px;
  font-size: 12px;
  padding: 10px;
  background: #fafafa;
  border-radius: 6px;
  border: 1px solid #eee;
}

.fulfillment-bulto-item .bulto-detail-label {
  color: #888;
  font-weight: 600;
}

.fulfillment-bulto-item .bulto-detail-value {
  color: #333;
  font-family: 'Courier New', Courier, monospace;
  word-break: break-all;
}

/* Timeline dentro de fulfillment cards */
.fulfillment-card .fulfillment-timeline {
  margin: 0 !important;
  padding: 0 !important;
}

.fulfillment-card .fulfillment-timeline li {
  padding-top: 36px;
}

.fulfillment-card .fulfillment-timeline li:before {
  width: 24px;
  height: 24px;
  line-height: 20px;
  font-size: 10px;
  margin-left: -12px;
}

.fulfillment-card .fulfillment-timeline li:after {
  top: 13px;
}

.fulfillment-card .estadosPedidos.fulfillment-timeline li:last-child:before {
  background: #FFD41B;
  animation: pulse 2s infinite;
  content: "\f192";
}

.fulfillment-card .estadosPedidos.fulfillment-timeline li.delivered:last-child:before {
  background: #03c99b;
  content: "\f00c";
  animation: none;
}

.fulfillment-card .estadosPedidos.fulfillment-timeline li.anomalous:last-child:before {
  background: #ffab17;
  content: "\f12a";
  animation: none;
}

.fulfillment-card .fulfillment-timeline li:last-child:after {
  display: none !important;
}

.fulfillment-card .fulfillment-timeline li.delivered:nth-last-child(-n+2):after {
  border-top: 2px solid #00adf2 !important;
  display: block !important;
  left: -50%;
}

/* Sin tracking dentro de fulfillment */
.fulfillment-card .sin-tracking {
  text-align: center;
  color: #999;
  font-style: italic;
  padding: 20px 0;
  font-size: 13px;
}

/* Responsive: mobile (< 768px) for fulfillment cards */
@media (max-width: 768px) {
  .fulfillment-card {
    padding: 12px;
  }

  .fulfillment-header-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .fulfillment-products-grid {
    grid-template-columns: 1fr;
  }

  .fulfillment-bultos-list {
    grid-template-columns: 1fr;
  }

  .fulfillment-product-item {
    padding: 8px;
  }
}
