/* ---- Login ---- */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
}
.login-card {
  background: #fff;
  width: 90%;
  max-width: 450px;
  border-radius: 10px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
  text-align: center;
}
.login-logo {
  padding: 32px 16px;
}
.login-logo img {
  width: auto;
  max-width: 200px;
  margin: 0 auto;
  display: block;
}
.login-input {
  display: block;
  width: 85%;
  margin: 5px auto;
  padding: 16px 32px;
  text-align: center;
  font-size: 1rem;
  color: #0d0d0d;
  background: #f6f6f6;
  border: 2px solid #f6f6f6;
  border-radius: 5px;
  outline: none;
  transition: background-color 0.5s, border-color 0.5s;
}
.login-input:focus {
  background: #fff;
  border-bottom: 2px solid #438998;
}
.login-submit {
  display: inline-block;
  margin: 5px 20px 40px;
  padding: 16px 80px;
  font-size: 13px;
  text-transform: uppercase;
  color: #858585;
  background: #f3f4f6;
  border: none;
  border-radius: 1.5rem;
  box-shadow: 3px 3px 7px 1px rgba(0, 0, 0, 0.35);
  cursor: pointer;
  transition: background-color 0.2s, transform 0.1s;
}
.login-submit:hover {
  background: #e5e7eb;
}
.login-submit:active {
  transform: scale(0.95);
}

/* ---- Layout global ---- */
:root {
  --site-max-width: 1280px;
}
.site-body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
}
.site-footer {
  margin-top: auto;
  border-top: 1px solid #f7f7f7;
}
.site-footer-inner {
  max-width: var(--site-max-width);
  margin: 0 auto;
  padding: 12px 16px;
  text-align: center;
  font-size: 0.875rem;
  color: #8f8f8f;
}

/* ---- Botón volver arriba ---- */
.btn-subir {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 9000;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 9999px;
  background: #438998;
  color: #fff;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(67, 137, 152, 0.45);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease, background-color 0.2s;
}
.btn-subir.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.btn-subir:hover {
  background: #2a5862;
}
.btn-subir:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(67, 137, 152, 0.35);
}

/* ---- DataTables Pagination (botones redondos) ---- */
.dataTables_wrapper {
  position: relative;
}

.dataTables_wrapper .dataTables_processing {
  display: none !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button,
.dataTables_wrapper .dataTables_paginate .paginate_button a,
a.fg-button.ui-button.ui-state-default {
  display: inline-block !important;
  min-width: auto !important;
  padding: 5px 12px !important;
  margin: 2px !important;
  border-radius: 1.5rem !important;
  border: 1px solid #e0e0e0 !important;
  background: #fff !important;
  background-color: #fff !important;
  background-image: none !important;
  color: #858585 !important;
  cursor: pointer;
  font-size: 0.85rem;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
  text-decoration: none !important;
  box-shadow: 3px 3px 7px 1px rgba(0, 0, 0, 0.35) !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button:hover,
.dataTables_wrapper .dataTables_paginate .paginate_button:active,
a.fg-button.ui-button.ui-state-default:hover {
  background: #f7f7f7 !important;
  background-color: #f7f7f7 !important;
  background-image: none !important;
  color: #438998 !important;
  border: 1px solid #438998 !important;
  box-shadow: 3px 3px 7px 1px rgba(0, 0, 0, 0.35) !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current,
.dataTables_wrapper .dataTables_paginate .paginate_button.current:hover {
  background: #438998 !important;
  background-color: #438998 !important;
  background-image: none !important;
  color: #fff !important;
  border: 1px solid #438998 !important;
  font-weight: 600;
  box-shadow: 2px 2px 6px rgba(67, 137, 152, 0.4) !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.disabled,
.dataTables_wrapper .dataTables_paginate .paginate_button.disabled:hover,
.dataTables_wrapper .dataTables_paginate .paginate_button.disabled:active,
.dataTables_wrapper .dataTables_paginate .paginate_button.previous.disabled,
.dataTables_wrapper .dataTables_paginate .paginate_button.next.disabled {
  color: #bbb !important;
  cursor: default !important;
  border: 1px solid #e0e0e0 !important;
  background: #fff !important;
  background-color: #fff !important;
  background-image: none !important;
  box-shadow: 2px 2px 5px 1px rgba(0, 0, 0, 0.15) !important;
}


/*::. Nuevo diseño 2023.::*/
body {
  /*COLORS*/
  --white: #f4f4f4;
  --cream: #f7f7f7;
  --dcream: #f3f3f3;
  --beige: #fff;
  --terracotta: #B9816D;
  --dterracotta: #885444;
  --peach: #80808054;
  --orange: #BF835A;
  --green: #2a5862;
  --dgreen: #2C3834;

  /*FONTS*/
  --mono: 'Montserrat';
  --display: 'Montserrat';
}

.product-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.product-card > a {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  height: 100%;
  color: inherit;
}
.product-card__media {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  background: #fff;
}
.product-card__media img {
  width: 100%;
  height: auto;
  display: block;
}
.product-card__footer {
  flex: 0 0 auto;
  box-sizing: border-box;
  min-height: 4.25rem;
  padding: 0.75rem 1rem 1rem;
  border-top: 1px solid #e5e7eb;
  background: #fff;
}
.product-card__title {
  margin: 0 0 0.25rem;
  font-size: 1rem;
  line-height: 1.25rem;
  font-weight: 600;
  color: #343A40;
}
.product-card__desc {
  margin: 0;
  font-size: 0.75rem;
  line-height: 1rem;
  color: #858585;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-card img {
  transition: transform 0.3s ease;
}
.product-card:hover img {
  transform: scale(1.03);
}

/* ---- Tienda: scroll infinito y loader ---- */
.tienda-pager {
  min-height: 4rem;
}
.tienda-pager--exhausted:not(.is-loading) {
  display: none;
}
.tienda-loader {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.125rem;
  padding: 0.5rem 1rem 1rem;
  animation: tienda-loader-in 0.35s ease;
}
.tienda-loader.hidden {
  display: none;
}
.tienda-loader__visual {
  position: relative;
  width: 2.75rem;
  height: 2.75rem;
}
.tienda-loader__ring {
  position: absolute;
  inset: 0;
  border: 1.5px solid #e8e8e8;
  border-top-color: #438998;
  border-radius: 50%;
  animation: tienda-loader-spin 1.1s cubic-bezier(0.5, 0.1, 0.3, 1) infinite;
}
.tienda-loader__ring--inner {
  inset: 0.375rem;
  border-width: 1px;
  border-top-color: transparent;
  border-right-color: #343A40;
  animation-duration: 0.85s;
  animation-direction: reverse;
}
.tienda-loader__text {
  margin: 0;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #858585;
  animation: tienda-loader-pulse 1.8s ease-in-out infinite;
}
@keyframes tienda-loader-spin {
  to { transform: rotate(360deg); }
}
@keyframes tienda-loader-pulse {
  0%, 100% { opacity: 0.35; }
  50% { opacity: 1; }
}
@keyframes tienda-loader-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
#tienda.is-loading {
  opacity: 0.72;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.card-product {
  background: #fff;
  border: 1px solid #efefef;
  border-radius: 8px;
  box-shadow: rgba(136, 165, 191, 0.3) 4px 4px 14px 0px;
  overflow: hidden;
  cursor: pointer;
  transition: background-color 0.25s, box-shadow 0.25s;
}
.card-product:hover {
  background-color: #f7f7f7;
  box-shadow: rgba(136, 165, 191, 0.55) 6px 6px 20px 0px;
}
.card-product a {
  display: block;
  text-decoration: none;
  color: inherit;
}
.card-img {
  overflow: hidden;
  text-align: center;
  background: #fff;
}
.card-img img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s ease;
}
.card-product:hover .card-img img {
  transform: scale(1.03);
}
.card-body {
  padding: 12px 16px 16px;
  border-top: 1px solid #f0f0f0;
}
.card-titulo {
  font-size: 1rem;
  color: var(--green);
  font-weight: 600;
  margin: 0 0 4px 0;
}
.card-body p {
  font-size: 12px;
  color: #858585;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/*::. FICHA TÉCNICA DEL PRODUCTO.::*/
.card {
  box-shadow: 0 6px 6px rgba(#000, 0.3);
  transition: 200ms;
  background: #fff;

  .card__title {
    display: flex;
    align-items: center;
    padding: 30px 40px;

    h3 {
      flex: 0 1 200px;
      text-align: right;
      margin: 0;
      color: #252525;
      font-family: sans-serif;
      font-weight: 600;
      font-size: 15px;
      text-transform: uppercase;
    }

    .icon {
      flex: 1 0 10px;
      background: var(--green);
      color: #fff;
      padding: 10px 10px;
      transition: 200ms;

      >a {
        color: #fff;
      }

      &:hover {
        background: #252525;
      }
    }
  }

  .card__body {
    padding: 0 40px;
    margin-bottom: 25px;
    /*display: flex;
      flex-flow: row no-wrap;
      margin-bottom: 25px;
      
      > .half{
        box-sizing: border-box;
        padding: 0 15px;
        flex: 1 0 100%;
      }*/

    .featured_text {
      h1 {
        margin: 0;
        padding: 0;
        font-weight: 800;
        font-family: "Montserrat", sans-serif;
        font-size: 30px;
        line-height: 50px;
        color: #181e28;
      }

      p {
        margin: 0;
        padding: 0;

        &.sub {
          font-family: "Montserrat", sans-serif;
          font-size: 13px;
          text-transform: uppercase;
          color: #686e77;
          font-weight: 300;
          margin-bottom: 5px;
        }

        &.price {
          font-family: "Fjalla One", sans-serif;
          color: #252525;
          font-size: 26px;
        }
      }
    }

    .image {
      padding-top: 15px;
      width: 100%;

      img {
        display: block;
        max-width: 100%;
        height: auto;
      }
    }

    .description {
      margin-bottom: 25px;

      p {
        margin: 0;
        font-family: "Open Sans", sans-serif;
        font-weight: 300;
        line-height: 27px;
        font-size: 16px;
        color: #555;
      }
    }

    span.stock {
      font-family: "Montserrat", sans-serif;
      font-weight: 600;
      color: #a1cc16;
    }

    .reviews {
      .stars {
        display: inline-block;
        list-style: none;
        padding: 0;

        >li {
          display: inline-block;

          .fa {
            color: #f7c01b;
          }
        }
      }

      >span {
        font-family: "Open Sans", sans-serif;
        font-size: 14px;
        margin-left: 5px;
        color: #555;
      }
    }

    button {
      cursor: pointer;
      border: 1px solid var(--green);
      padding: 14px 30px;
      color: #fff;
      background: var(--green);
      font-family: "Open Sans", sans-serif;
      font-size: 16px;
      transition: 200ms;

      &:hover {
        background: #fff;
        color: var(--green);
      }
    }
  }

  .card__footer {
    padding: 30px 40px;
    display: flex;
    flex-flow: row no-wrap;
    align-items: center;
    position: relative;

    &::before {
      content: "";
      position: absolute;
      display: block;
      top: 0;
      left: 40px;
      width: calc(100% - 40px);
      height: 3px;
      background: var(--green);
      background: linear-gradient(to right, var(--green) 0%, var(--green) 20%, #ddd 20%, #ddd 100%);
    }

    .recommend {
      flex: 1 0 10px;

      p {
        margin: 0;
        font-family: "Montserrat", sans-serif;
        text-transform: uppercase;
        font-weight: 600;
        font-size: 14px;
        color: #555;
      }

      h3 {
        margin: 0;
        font-size: 20px;
        font-family: "Montserrat", sans-serif;
        font-weight: 600;
        text-transform: uppercase;
        color: var(--green);
        ;
      }
    }

    .action {
      button {
        cursor: pointer;
        border: 1px solid var(--green);
        padding: 14px 30px;
        color: #fff;
        background: var(--green);
        font-family: "Open Sans", sans-serif;
        font-size: 16px;
        transition: 200ms;

        &:hover {
          background: #fff;
          color: var(--green);
        }
      }
    }
  }
}


/*::..Scroll.::*/
/* Works on Firefox */
#fotosIzquierda * {
  scrollbar-width: thin;
  scrollbar-color: var(--green) var(--cream);
}

/* Works on Chrome, Edge, and Safari */
#fotosIzquierda::-webkit-scrollbar {
  width: 12px;
}

#fotosIzquierda::-webkit-scrollbar-track {
  background: var(--cream);
  border-radius: 20px;
}

#fotosIzquierda::-webkit-scrollbar-thumb {
  background-color: var(--green);
  border-radius: 20px;
  border: 3px solid var(--cream);
}

/*--::.COLORES - FICHA TÉCNICA.::--*/
#colores {
  align-items: flex-end;
  overflow: visible;
}
#color {
  overflow: visible;
}
#colores .textura {
  width: 68px !important;
  height: 68px !important;
  max-width: 68px !important;
  max-height: 68px !important;
  flex-shrink: 0 !important;
  cursor: pointer;
  border-radius: 10px;
  overflow: hidden !important;
  border: 3px solid #fff;
  box-shadow: 0 0 0 1px #e0e0e0;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, width 0.25s, height 0.25s;
  display: inline-block !important;
  position: relative;
  z-index: 1;
  transform-origin: center bottom;
}
#colores .textura img {
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  object-fit: cover !important;
  display: block !important;
  pointer-events: none;
}
#colores .textura.texturab.no-active {
  border-color: #fff;
}
#colores .textura.texturab.active {
  width: 108px !important;
  height: 108px !important;
  max-width: 108px !important;
  max-height: 108px !important;
  border-color: #000;
  box-shadow: 0 0 0 2px #000;
  z-index: 2;
}
#colores .textura.texturab.no-active:hover {
  transform: scale(2);
  z-index: 30;
  overflow: visible !important;
  border-color: var(--green);
  box-shadow: 0 0 0 2px var(--green);
}
#colores .textura.texturab.active:hover {
  transform: none;
  z-index: 2;
  border-color: #000;
  box-shadow: 0 0 0 2px #000;
}

#colores .textura.texturab .texturatexto {
  padding: 3px;
  border-radius: 10px;
  border: 2px solid ;
  font-size: 12px;
  width: 55px;
  height: 55px;
  display: block;
  margin: auto;
  pointer-events: none;
}

/* ---- Tabla de Tallas ---- */
.tablaTallas {
  overflow-x: auto;
  margin-top: 8px;
  margin-bottom: 16px;
}
#tallas {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
#tallas th,
#tallas td {
  padding: 6px 10px;
  text-align: center;
  border: 1px solid #e0e0e0;
}
#tallas thead {
  background-color: #f7f7f7;
}
#tallas thead th {
  font-weight: 600;
  color: #343A40;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
#tallas tbody td {
  background-color: #fff;
  color: #343A40;
}
#tallas tbody tr:hover td {
  background-color: #f7f7f7;
}
#tallas input[type="number"],
#tallas input[type="text"] {
  width: 60px;
  text-align: center;
  padding: 3px 4px;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  font-size: 13px;
}

/* Works on Chrome, Edge, and Safari */
.tablaTallas::-webkit-scrollbar {
  width: 12px;
}

.tablaTallas::-webkit-scrollbar-track {
  background: var(--cream);
  border-radius: 20px;
}

.tablaTallas::-webkit-scrollbar-thumb {
  background-color: var(--green);
  border-radius: 20px;
  border: 3px solid var(--cream);
}

#tratamiento img.w-6 {
  width: 40px;
  height: 40px;
}

button.boton-pedido,
button.boton-pedido-success,
button.boton-pedido-secondary,
button.boton-pedido-danger {
    cursor: pointer;
    padding: 8px 20px;
    font-family: "Open Sans", sans-serif;
    font-size: 14px;
    transition: 200ms;
    border-radius: 32px;
    white-space: nowrap;
}

button.boton-pedido {
    border: 1px solid var(--green);
    color: #fff;
    background: var(--green);
}
button.boton-pedido:hover {
    background: #fff;
    color: var(--green);
}

button.boton-pedido-success {
    border: 1px solid #2a5862;
    color: #fff;
    background: #2a5862;
}
button.boton-pedido-success:hover {
    background: #fff;
    color: #2a5862;
}

button.boton-pedido-secondary {
    border: 1px solid #e0e0e0;
    color: #858585;
    background: #f7f7f7;
}
button.boton-pedido-secondary:hover {
    background: #438998;
    color: #fff;
    border-color: #438998;
}

button.boton-pedido-danger {
    border: 1px solid #c0392b;
    color: #fff;
    background: #c0392b;
}
button.boton-pedido-danger:hover {
    background: #fff;
    color: #c0392b;
}

button.boton-pedido:disabled,
button.boton-pedido-success:disabled,
button.boton-pedido-secondary:disabled,
button.boton-pedido-danger:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ---- Cesta / pedido: bloques (grid escritorio + columna móvil) ---- */
.pedido-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  grid-template-rows: auto auto;
  gap: 1.25rem 1.5rem;
  margin-top: 2rem;
  align-items: start;
}
.pedido-bloque-comentarios {
  grid-column: 1;
  grid-row: 1 / span 2;
  min-width: 0;
}
.pedido-bloque-totales {
  grid-column: 2;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.35rem;
  min-width: 10rem;
}
.pedido-bloque-totales .pedido-total-importe {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
  white-space: nowrap;
}
.pedido-bloque-finalizar {
  grid-column: 3;
  grid-row: 1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}
.pedido-bloque-acciones {
  grid-column: 2 / span 2;
  grid-row: 2;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 0.5rem;
}
.pedido-cesta-page .pedido-btn-formulario {
  width: auto;
}

@media (max-width: 767px) {
  .pedido-footer {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    gap: 1rem;
  }
  .pedido-bloque-comentarios,
  .pedido-bloque-totales,
  .pedido-bloque-finalizar,
  .pedido-bloque-acciones {
    grid-column: 1;
    grid-row: auto;
  }
  .pedido-bloque-totales {
    width: 50%;
    max-width: 50%;
    min-width: 0;
  }
  .pedido-bloque-finalizar {
    width: 100%;
    justify-content: stretch;
  }
  .pedido-bloque-finalizar .boton-pedido-success {
    display: flex;
    width: 100%;
    justify-content: center;
  }
  .pedido-cesta-page .pedido-btn-formulario {
    display: flex;
    width: 100%;
    justify-content: center;
  }
  .pedido-bloque-acciones {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }
  .pedido-bloque-acciones .boton-pedido-secondary,
  .pedido-bloque-acciones .boton-pedido-danger {
    display: flex;
    width: 100%;
    justify-content: center;
  }
}

/* ---- Tablas de pedido ---- */
table.pedido {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
table.pedido th,
table.pedido td {
  padding: 8px 12px;
  text-align: center;
  border: 1px solid #e0e0e0;
}
table.pedido thead th,
table.pedido th {
  background-color: #f7f7f7;
  font-weight: 600;
  color: #343A40;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
table.pedido tbody td,
table.pedido td {
  background-color: #fff;
  color: #343A40;
}
table.pedido tbody tr:hover td,
table.pedido tr:hover td {
  background-color: #f7f7f7;
}
table.pedido img {
  width: 50px;
  height: auto;
  margin: 0 auto;
}
table.pedido input[type="number"] {
  width: 60px;
  text-align: center;
  padding: 3px 4px;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  font-size: 13px;
}
#cliente td {
  font-size: 14px;
}
#clientes tbody tr {
  cursor: pointer;
}
#clientes tbody tr:hover td {
  background-color: #eef6f8;
}

table.pedido a {
  color: #438998;
  text-decoration: none;
  transition: color 0.2s;
}
table.pedido a:hover {
  color: #343A40;
}
table.pedido .estado-caducado {
  color: #c0392b;
}

/* ---- Temporadas (lista botones) ---- */
.temporadas-list {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.btn-temporada {
  width: 100%;
  max-width: 384px;
  padding: 12px 32px;
  background: #f7f7f7;
  color: #343A40;
  font-size: 14px;
  letter-spacing: 0.04em;
  border-radius: 9999px;
  border: 1px solid #e0e0e0;
  cursor: pointer;
  transition: background-color 0.3s, color 0.3s, border-color 0.3s;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}
.btn-temporada:hover {
  background: #438998;
  color: #fff;
  border-color: #438998;
}
.page-cuerpo {
  max-width: var(--site-max-width);
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

/* Layout uniforme (histopedidos / clientes) */
.page-layout {
  max-width: var(--site-max-width);
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  margin-top: 2rem;
  padding: 0.75rem 1rem 2.5rem;
  box-sizing: border-box;
}
.page-bienvenida {
  font-size: 0.875rem;
  line-height: 1.25rem;
  color: #858585;
  margin: 0 0 0.25rem;
}
.page-titulo {
  font-size: 1.5rem;
  line-height: 2rem;
  font-weight: 600;
  color: #343A40;
  margin: 0 0 1rem;
}
.page-titulo--center {
  text-align: center;
  font-weight: 300;
  letter-spacing: 0.1em;
}
.page-sep {
  border: none;
  border-top: 1px solid #e5e7eb;
  margin: 0 0 1rem;
}

.page-titulo-temporadas {
  font-size: 1.5rem;
  line-height: 2rem;
  font-weight: 300;
  letter-spacing: 0.1em;
  color: #343A40;
  margin: 0 0 2rem;
  text-align: center;
}

/* ---- Artículos destacados: barra filtros ---- */
.articulos-filtros {
  background: #f7f7f7;
  padding: 12px 16px;
  margin-bottom: 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 16px 24px;
}
.articulos-filtros-col {
  flex: 1 1 calc(50% - 12px);
  min-width: 260px;
}
.articulos-filtros-col label {
  display: block;
  font-size: 13px;
  color: #343A40;
  margin-bottom: 4px;
}
.articulos-filtros-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.articulos-filtros-row select,
.articulos-filtros-row input[type="file"] {
  flex: 1;
  min-width: 0;
  padding: 6px 10px;
  font-size: 13px;
  color: #343A40;
  background: #fff;
  border: 1px solid #d1d5db;
  border-radius: 4px;
}
.articulos-filtros-upload {
  padding-top: 18px;
}
.articulos-filtros-row--sm {
  max-width: 420px;
}
.boton-filtro {
  flex-shrink: 0;
  padding: 6px 14px;
  font-size: 13px;
  color: #343A40;
  background: #fff;
  border: 1px solid #343A40;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
}
.boton-filtro:hover {
  background: #343A40;
  color: #fff;
}

/* ---- DataTables toolbar (sin Bootstrap) ---- */
.dataTables_wrapper .dataTables_length {
  float: left;
  margin-bottom: 12px;
  display: inline-flex;
  align-items: center;
  min-height: 34px;
}
.dataTables_wrapper .dataTables_length label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  white-space: nowrap;
  font-size: 13px;
  color: #858585;
}
.dataTables_wrapper .dt-buttons {
  float: left;
  margin: 0 0 12px 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
}
.dataTables_wrapper .dataTables_filter {
  float: right;
  margin-bottom: 12px;
  text-align: right;
  display: inline-flex;
  align-items: center;
  min-height: 34px;
}
.dataTables_wrapper .dataTables_filter label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  font-size: 13px;
  color: #858585;
}
.dataTables_wrapper .dataTables_filter input {
  margin-left: 6px;
  padding: 4px 8px;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  font-size: 13px;
}
.dataTables_wrapper .dataTables_length select {
  margin: 0 4px;
  padding: 4px 8px;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  font-size: 13px;
}
.dataTables_wrapper > table,
.dataTables_wrapper > .dataTables_scroll {
  clear: both;
}
.dataTables_wrapper::after {
  content: "";
  display: block;
  clear: both;
}
.dt-buttons .dt-button.boton-excel-dt,
button.dt-button.boton-excel-dt,
.boton-excel-dt {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 34px !important;
  height: 34px !important;
  padding: 0 !important;
  background: #28a745 !important;
  background-image: none !important;
  color: #fff !important;
  border: none !important;
  border-radius: 4px !important;
  cursor: pointer;
  font-size: 16px;
  box-shadow: none !important;
  transition: background-color 0.2s;
}
.dt-buttons .dt-button.boton-excel-dt:hover,
button.dt-button.boton-excel-dt:hover,
.boton-excel-dt:hover {
  background: #218838 !important;
  background-image: none !important;
  color: #fff !important;
  border: none !important;
}
.dt-buttons .dt-button.boton-pdf-dt,
button.dt-button.boton-pdf-dt,
.boton-pdf-dt {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 34px !important;
  height: 34px !important;
  padding: 0 !important;
  background: #dc3545 !important;
  background-image: none !important;
  color: #fff !important;
  border: none !important;
  border-radius: 4px !important;
  cursor: pointer;
  font-size: 16px;
  margin-left: 6px;
  box-shadow: none !important;
  transition: background-color 0.2s;
}
.dt-buttons .dt-button.boton-pdf-dt:hover,
button.dt-button.boton-pdf-dt:hover,
.boton-pdf-dt:hover {
  background: #c82333 !important;
  background-image: none !important;
  color: #fff !important;
  border: none !important;
}
.busqueda-logs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}
.busqueda-logs select {
  padding: 6px 10px;
  font-size: 13px;
  color: #343A40;
  background: #fff;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  min-width: 180px;
}
.boton-busqueda {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  border: 1px solid #438998;
  border-radius: 4px;
  color: #438998;
  background: #fff;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
}
.boton-busqueda:hover {
  background: #438998;
  color: #fff;
}

/* ---- Admin: barra pestañas + tablas anchas ---- */
.admin-nav-inner {
  max-width: min(var(--site-max-width), 95vw);
  margin: 0 auto;
  padding: 0 1rem;
}
.page-cuerpo.admin-tabla-page,
.page-cuerpo.gestion-imagenes-page,
.page-cuerpo.registros-usuarios-page,
.page-layout.admin-tabla-page,
.page-layout.gestion-imagenes-page,
.page-layout.registros-usuarios-page {
  max-width: min(var(--site-max-width), 95vw);
  width: 100%;
}
.admin-tabla-page,
.gestion-imagenes-page {
  max-width: min(var(--site-max-width), 95vw);
  width: 100%;
}
.admin-tabla-cabecera {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}
.admin-tabla-cabecera h2 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 600;
  color: #343A40;
}
.admin-tabla-page hr.admin-tabla-sep {
  border: none;
  border-top: 1px solid #e5e7eb;
  margin: 0 0 16px;
}
.admin-tabla-page table.pedido,
.admin-tabla-page table.dataTable,
.gestion-imagenes-page table.pedido,
.gestion-imagenes-page table.dataTable {
  width: 100% !important;
  min-width: 100%;
  table-layout: auto;
}
.admin-tabla-page .dataTables_wrapper,
.gestion-imagenes-page .dataTables_wrapper {
  width: 100%;
  max-width: 100%;
}
/* Pedido + DataTables: sin rayas por defecto de DT, solo estilos pedido */
table.dataTable.pedido tbody tr.odd > *,
table.dataTable.pedido tbody tr.even > * {
  box-shadow: none !important;
}
table.dataTable.pedido tbody tr.odd td,
table.dataTable.pedido tbody tr.even td {
  background-color: #fff !important;
}
table.dataTable.pedido tbody tr:hover td {
  background-color: #f7f7f7 !important;
}
table.dataTable.pedido thead th,
table.dataTable.pedido tbody td {
  box-sizing: border-box;
}
.dataTables_wrapper .dt-buttons:empty {
  display: none !important;
}
.admin-tabla-acciones {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

/* ---- Gestión de imágenes: tabla más ancha ---- */
.gestion-imagenes-page .dataTables_wrapper {
  width: 100%;
}
.gestion-imagenes-page table#gestion_imagenes {
  width: 100% !important;
  table-layout: fixed;
}
.gestion-imagenes-page table#gestion_imagenes td {
  word-break: break-word;
  vertical-align: top;
  padding: 10px 16px;
}

/* ---- Botones admin ---- */
.boton-admin {
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 6px;
  border: 1px solid #e0e0e0;
  background: #f7f7f7;
  color: #858585;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.boton-admin:hover {
  border-color: #438998;
  color: #438998;
  background: #fff;
}
.boton-admin-edit:hover {
  border-color: #d4a017;
  color: #d4a017;
  background: #fffbf0;
}
.boton-admin-delete:hover {
  border-color: #c0392b;
  color: #c0392b;
  background: #fff5f5;
}
.boton-admin-save:hover {
  border-color: #2a5862;
  color: #2a5862;
  background: #f0f9fa;
}
.boton-admin-link {
  display: inline-block;
  padding: 8px 20px;
  border-radius: 32px;
  border: 1px solid #343A40;
  color: #343A40;
  background: #fff;
  text-decoration: none;
  font-size: 14px;
  transition: all 0.2s;
}
.boton-admin-link:hover {
  background: #343A40;
  color: #fff;
}
@media (max-width: 800px) {
  .card-product {
    width: 90%;
    margin: 5px auto !important;
    box-shadow: rgba(136, 165, 191, 0.48) 6px 2px 16px 0px, rgba(255, 255, 255, 0.8) -6px -2px 16px 0px;
  }
}

/* ---- Header móvil: reservar espacio al botón hamburguesa ---- */
@media (max-width: 1023px) {
  header nav {
    min-height: 2.75rem;
  }
}

/* ---- Responsive móvil: tablas admin, filtros y navegación ---- */
@media (max-width: 767px) {
  html,
  body.site-body {
    overflow-x: hidden;
    max-width: 100%;
  }

  #cuerpo {
    width: 100% !important;
    max-width: 100% !important;
    float: none;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
  }

  #cuerpo .overflow-x-auto {
    max-width: 100%;
    -webkit-overflow-scrolling: touch;
  }

  header nav {
    min-height: 2.75rem;
    padding-top: 0.75rem !important;
    padding-bottom: 0.75rem !important;
  }

  #nav-toggle {
    z-index: 40;
  }

  #nav-menu.nav-open {
    max-height: min(80vh, 520px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .page-layout,
  .page-cuerpo.admin-tabla-page,
  .page-layout.admin-tabla-page,
  .page-layout.gestion-imagenes-page,
  .page-layout.registros-usuarios-page,
  .admin-tabla-page,
  .gestion-imagenes-page {
    max-width: 100%;
    width: 100%;
    margin-top: 1rem;
    padding: 0.5rem 0.75rem 1.5rem;
  }

  .page-bienvenida {
    font-size: 0.8125rem;
    line-height: 1.35;
    word-break: break-word;
  }

  .page-titulo,
  .admin-tabla-cabecera h2 {
    font-size: 1.25rem;
    line-height: 1.5rem;
  }

  .busqueda-logs {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
  }
  .busqueda-logs select {
    width: 100%;
    flex: 1 1 100%;
    min-width: 0;
  }
  .busqueda-logs .boton-busqueda {
    flex: 0 0 auto;
    align-self: auto;
  }

  .articulos-filtros {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 12px;
  }
  .articulos-filtros-col {
    flex: 1 1 100%;
    min-width: 0;
    width: 100%;
  }
  .articulos-filtros-row,
  .articulos-filtros-row--sm {
    flex-direction: column;
    align-items: stretch;
    max-width: none;
    width: 100%;
  }
  .articulos-filtros-row select,
  .articulos-filtros-row input[type="file"],
  .articulos-filtros-upload {
    width: 100%;
    padding-top: 0;
  }
  .articulos-filtros .boton-filtro {
    width: 100%;
  }

  .dataTables_wrapper .dataTables_length,
  .dataTables_wrapper .dt-buttons {
    float: left !important;
    display: inline-flex !important;
    align-items: center;
    width: auto !important;
    margin: 0 0 12px 0 !important;
    text-align: left;
  }
  .dataTables_wrapper .dt-buttons {
    margin-left: 12px !important;
  }
  .dataTables_wrapper .dataTables_filter {
    float: none !important;
    clear: both;
    display: flex;
    align-items: center;
    width: 100%;
    margin: 0 0 10px 0 !important;
    text-align: left;
  }
  .dataTables_wrapper .dataTables_filter label,
  .dataTables_wrapper .dataTables_length label {
    width: 100%;
    flex-wrap: wrap;
  }
  .dataTables_wrapper .dataTables_filter input {
    flex: 1 1 auto;
    width: 100% !important;
    max-width: 100%;
    min-width: 0;
    margin-left: 0 !important;
    box-sizing: border-box;
  }
  .dataTables_wrapper .dataTables_length select {
    max-width: 100%;
  }

  .page-layout .dataTables_wrapper,
  .admin-tabla-page .dataTables_wrapper,
  .gestion-imagenes-page .dataTables_wrapper {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .page-layout table.pedido,
  .page-layout table.dataTable,
  .admin-tabla-page table.pedido,
  .admin-tabla-page table.dataTable,
  .gestion-imagenes-page table.pedido,
  .gestion-imagenes-page table.dataTable {
    width: max-content !important;
    min-width: 100%;
  }

  table.pedido th,
  table.pedido td {
    padding: 6px 8px;
    font-size: 11px;
    white-space: nowrap;
  }

  .gestion-imagenes-page table#gestion_imagenes {
    table-layout: auto;
  }
  .gestion-imagenes-page table#gestion_imagenes td {
    white-space: normal;
    word-break: break-word;
  }

  .dataTables_wrapper .dataTables_info,
  .dataTables_wrapper .dataTables_paginate {
    float: none !important;
    width: 100%;
    text-align: center;
    margin-top: 10px;
  }
  .dataTables_wrapper .dataTables_paginate {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px;
  }

  .admin-tabla-acciones {
    flex-wrap: wrap;
    gap: 6px;
  }

  .btn-subir {
    right: 0.75rem;
    bottom: 0.75rem;
    width: 40px;
    height: 40px;
  }
}

/* ---- Editar imágenes ---- */
.editar-page {
  max-width: var(--site-max-width);
  margin: 2rem auto;
  padding: 0 1rem 2.5rem;
}
.editar-titulo {
  font-size: 1.25rem;
  font-weight: 600;
  color: #343A40;
  margin-bottom: 1.5rem;
}
.editar-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.editar-grid-col {
  flex: 1 1 calc(50% - 12px);
  min-width: 300px;
}
.editar-card {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 16px;
  height: 100%;
}
.editar-card h5 {
  font-size: 1.05rem;
  font-weight: 600;
  color: #343A40;
  margin: 0 0 12px;
}
.editar-img-portada {
  max-width: 500px;
  width: 100%;
  display: block;
  margin: 0 auto;
  border-radius: 6px;
}
.editar-mini-img {
  height: 70px;
  width: auto;
}
.editar-acciones {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
  justify-content: center;
}
.editar-orden-btns {
  display: inline-flex;
  gap: 4px;
  margin-left: 6px;
  vertical-align: middle;
}
.editar-file-input {
  display: none;
}
table.editar-imagenes {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
table.editar-imagenes th,
table.editar-imagenes td {
  padding: 8px;
  border: 1px solid #e0e0e0;
  text-align: center;
  vertical-align: middle;
}
table.editar-imagenes th {
  background: #f7f7f7;
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
}
.boton-img {
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 4px;
  border: 1px solid;
  background: #fff;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  text-decoration: none;
}
.boton-img-upload {
  border-color: #28a745;
  color: #28a745;
}
.boton-img-upload:hover {
  background: #28a745;
  color: #fff;
}
.boton-img-portada {
  border-color: #343A40;
  color: #343A40;
}
.boton-img-portada-active {
  border-color: #d4a017;
  background: #fffbf0;
  color: #d4a017;
}
.boton-img-delete {
  border-color: #dc3545;
  color: #dc3545;
}
.boton-img-delete:hover {
  background: #dc3545;
  color: #fff;
}
.boton-img-orden {
  border-color: #438998;
  color: #438998;
  padding: 2px 6px;
}
.boton-img-orden:hover {
  background: #438998;
  color: #fff;
}
.boton-img-regenerar {
  border-color: #d4a017;
  color: #d4a017;
  font-size: 11px;
  padding: 4px 8px;
  margin-top: 4px;
}
.boton-img-regenerar:hover {
  background: #fffbf0;
}
.editar-tallas-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: flex-start;
  margin-top: 8px;
}
.editar-tallas-content {
  flex: 1 1 70%;
  min-width: 200px;
}
.editar-tallas-content img {
  max-width: 100%;
  border-radius: 6px;
  margin-top: 8px;
}
.editar-tallas-actions {
  flex: 0 0 auto;
}