 :root {
    --mas-color-existencias: #586f8d;
    --mas-color-prox: #b7ed57;
    --mas-color-cotizador: #d00;
    --mas-color-cantidades: #586f8d;
    --mas-color-precios: #ffea8c;
}

.mas-hidden {
    display: none;
}

.tabla-precios-escalonados {
    border: none !important;
    width: 100%;
    margin-bottom: 1em;
    max-width: 500px;
    padding: 0px;
}

.tabla-precios-escalonados th, .tabla-precios-escalonados td  {
    font-size: small;
    padding: 5px !important;
    text-align: center;
    font-weight: 600;
    border: 1px solid #fff;
    border-bottom: none;
}

.tabla-precios-escalonados th {
    color: white;
    background-color: var(--mas-color-cantidades);
}

.tabla-precios-escalonados td {
    border-radius: 0 0 3px 3px;
    background-color: var(--mas-color-precios);
}

/* Estilo específico para el th "Escalado de precios" */
.tabla-precios-escalonados th.escalado-precios {
    padding: 0;
    border-radius: 3px 3px 0 0;
    border-block-start: 0 !important;
}

.gif360-image {
    width: 100%;
    height: auto;
    cursor: pointer;
    margin-bottom: 2em;
}

.gif360-image img {
    box-shadow: 0 0 30px 0 rgba(0, 0, 0, .15);
    -webkit-box-shadow: 0 0 30px 0 rgba(0, 0, 0, .15);
}

/* Estilos para el popup modal */
.gif360-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8);
}

.gif360-modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
}

.gif360-modal-content iframe {
    width: 975px;
    height: 600px;
    border: none;
    display: block;
}

.gif360-close {
    position: absolute;
    top: 10px;
    right: 25px;
    color: #aaa;
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
}

.gif360-close:hover,
.gif360-close:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
}

/* Media query para dispositivos móviles */
@media (max-width: 768px) {
    .gif360-image {
        width: 100%;
    }

    .tabla-precios-escalonados {
        width: 100%;
    }

    .cotizador-impresion {
        max-width: 100% !important;
        justify-content: space-around;
    }

    .gif360-modal-content {
        width: 90%;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    .gif360-modal-content iframe {
        zoom: 0.4;
        height: 90vh;
    }
}

/* Estilos para la tabla de existencias */
.existencias-container {
    margin-bottom: 1em;
    max-width: 500px;
    padding: 0px;
    width: 100%;
}

#tabla-existencias {
    margin-top: 0;
    border: 1px solid lightgrey;
}

.tabla-existencias {
    width: 100%;
    border-collapse: collapse;
    font-size: small;
    margin: 0;
}

.tabla-existencias th, .tabla-existencias td {
    border: none !important;
    padding: 1px;
    text-align: center;
}

.tabla-existencias th {
    font-weight: bold;
}

.mas-existencias-btn {
    font-size: small !important;
    padding: 5px !important;
    width: 100% !important;
    text-align: left !important;
    color: white !important;
    border: 1px !important;
    border-radius: 3px !important;
    background-color: var(--mas-color-existencias) !important;
}

.tabla-existencias .mas-prox-btn {
    font-size: small;
    padding: 0px 5px;
    color: unset;
    border-color: unset;
    width: 75%;
    background-color: var(--mas-color-prox);
}

.tabla-existencias tr.odd-row {
  background-color: #fff;
}

.tabla-existencias tr.even-row {
  background-color: #f4f4f4;
}

.tabla-existencias tr.llegadas-detalle {
  background-color: #fafafa;
}

.color-cell {
  padding: 0;
}

.color-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 2em;
}

.llegadas-detalle {
    display: none;
}

.angle {
    margin-left: .5em;
    transition: transform 0.3s;
    float: right;
}

.angle.open {
    transform: rotate(180deg);
}

/* Estilos para el Cotizador de impresión */
.cotizador-impresion {
    color: white;
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    align-items: center;
    max-width: 500px;
    padding: 0px;
    border-radius: 3px;
    cursor: pointer;
    margin-bottom: 1em;
    background-color: var(--mas-color-cotizador);
}

.cotizador-impresion img {
    padding: 5px 1em;
}

#boton-cotizador {
    font-size: small;
    background-color: unset;
    color: unset;
    border: none;
    margin: 0;
    padding: 0;
    text-align: center;
    font-weight: 700;
}

/* Estilos para el modal "Cotizador de Impresión" */
.cotizador-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8);
}

.cotizador-modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    height: 90%;
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    padding: 20px;
}

.cotizador-close {
    position: absolute;
    top: 10px;
    right: 25px;
    color: #aaa;
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
}

.cotizador-close:hover,
.cotizador-close:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
}

.cotizador-sections {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
    max-height: 80%;
    overflow-y: auto;
}

.cotizador-section {
    flex: 1;
    margin: 0 1em;
    max-width: 20%;
}

.cotizador-section:nth-child(2) {
    max-width: 15%;
}

.cotizador-section:last-child {
    max-width: none;
}

/* .cotizador-section-content {
    overflow: auto;
    height: 70vh;
} */

.cotizador-section-title {
    padding: 10px;
    border-bottom: 2px solid var(--wmmb-color-principal-cotizador);
    font-weight: 600;
    text-align: left;
    color: var(--wmmb-color-principal-cotizador);
    font-size: initial;
}

.cotizador-product-image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto 10px;
}

.cantidad-wrapper {
    display: flex;
    justify-content: center;
}

#cantidad-cotizador {
    border: 1px solid var(--wmmb-color-principal-cotizador);
    border-radius: 5px 0 0 5px;
    padding: 5px;
    width: 40%;
    font-weight: 700;
    margin: 0;
}

#aplicar-cantidad {
    border: 1px solid var(--wmmb-color-principal-cotizador);
    background-color: var(--wmmb-color-principal-cotizador);
    color: #fff;
    border-radius: 0px 5px 5px 0px;
    padding: 5px 20px;
    cursor: pointer;
}

#aplicar-cantidad:hover {
    background-color: color-mix(in srgb, var(--wmmb-color-principal-cotizador), #000 20%);
}

.area-marcaje {
    padding: 0.5em 1em 0.5em 1em;
    color: var(--wmmb-color-principal-cotizador);
    display: flex;
    flex-direction: column;
    align-items: center;
    border-bottom: 2px solid;
}

.area-marcaje:hover, .area-marcaje.active {
    background: color-mix(in srgb, var(--wmmb-color-principal-cotizador), #fff 90%);
    cursor: pointer;
}

.area-marcaje-title {
    min-width: max-content;
}

.area-marcaje-content {
    text-align: center;
}

.area-marcaje p {
    margin: 0 0 10px;
    font-size: 14px;
    font-weight: 600;
}

.area-marcaje-img {
    max-width: 100%;
    height: auto;
    border: 1px solid #ddd;
    border-radius: 5px;
}

@media (min-width: 769px) {
    .slider {
        display: grid;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        grid-auto-flow: column;
        grid-auto-columns: 100%;
        grid-template-rows: repeat(2, auto);
        gap: 0;
    }

    .cotizador-section:nth-child(2) .area-marcaje {
        width: 100%;
        scroll-snap-align: start;
        box-sizing: border-box;
    }

    .slider-dots {
        display: none;
    }

    .slider-dots .dot {
        display: inline-block;
        width: 10px;
        height: 10px;
        margin: 0 5px;
        background-color: #bbb;
        border-radius: 50%;
        cursor: pointer;
    }

    .slider-dots .dot.active {
        background-color: var(--wmmb-color-principal-cotizador);
    }
}

.tecnica-color-detalle,
.medida-impresion {
    display: none;
}

.tecnica-color-container .tecnica-color-detalle,
.tecnica-color-container .medida-impresion {
    display: flex;
}

.tecnica-color-container {
    color: var(--wmmb-color-principal-cotizador);
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: color-mix(in srgb, var(--wmmb-color-principal-cotizador), #fff 90%);
    margin: 1em 1em 0 1em;
}

.tecnica-color {
    background-color: color-mix(in srgb, var(--wmmb-color-principal-cotizador), #fff 60%);
    padding: 5px;
    color: var(--wmmb-color-principal-cotizador) !important;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    font-size: 14px !important;
    line-height: normal !important;
    font-weight: 700;
}

.tecnica-color label, .tecnica-color input {
    cursor: pointer;
}

.tecnica-color label {
    color: var(--wmmb-color-principal-cotizador) !important;
    font-size: 14px !important;
    line-height: normal !important;
    margin-left: 5px;
    width: 100%;
}

.tecnica-color-detalle {
    color: var(--wmmb-color-principal-cotizador);
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    padding: 0 5px;
}

.tecnica-nombre {
    flex: 1;
    padding-right: 10px;
    min-width: 60%;
}

.tecnica-colores {
    flex: 1;
}

.tecnica-colores select, .tecnica-nombre select {
    width: 100%;
    font-size: 12px;
    line-height: normal;
    height: auto;
    margin-bottom: 0px;
    padding: 1px;
    color: var(--wmmb-color-principal-cotizador);
    border: 1px solid var(--wmmb-color-principal-cotizador) !important;
}

.cotizacion-producto .tecnica-table th {
    background-color: color-mix(in srgb, var(--wmmb-color-principal-cotizador), #fff 60%);
}

.cotizacion-producto .tecnica-table th {
    border-top: 0;
}

.medida-impresion {
    display: flex;
    align-items: center;
    font-size: 12px;
    color: var(--wmmb-color-principal-cotizador);
    padding: 0 5px 5px;
    flex-direction: column;
    gap: 5px;
    line-height: normal;
}

.medida-impresion-label label {
    color: var(--wmmb-color-principal-cotizador);
    font-size: 12px;
}

.medida-impresion-inputs {
    display: flex;
    align-items: center;
}

.medida-impresion input {
    color: var(--wmmb-color-principal-cotizador) !important;
    margin: 0 5px;
    padding: 0 5px !important;
    border: 1px solid var(--wmmb-color-principal-cotizador) !important;
    border-radius: 5px;
    font-size: 12px !important;
    height: auto !important;
    line-height: normal;
}

.cotizacion-nodata {
    margin-top: 2em;
    padding: 10px;
    color: var(--wmmb-color-principal-cotizador);
    font-size: 14px;
}
.cotizador-leadtime {
    margin: 1em 0;
    padding: 5px;
    color: var(--wmmb-color-principal-cotizador);
    font-size: 14px;
    border-left: 3px solid var(--wmmb-color-principal-cotizador);
    background: color-mix(in srgb, var(--wmmb-color-principal-cotizador), #fff 92%);
}

/* Estilos para la tabla de cotización de producto */
#tabla-cotizacion-producto, .tecnica-table {
    width: 100%;
    border-collapse: collapse;
    font-size: small;
    margin: 0;
}

#tabla-cotizacion-producto th, .tecnica-table th {
    text-align: center;
    padding: 8px;
    border: 1px solid #ddd;
}

#tabla-cotizacion-producto td, .tecnica-table td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: right;
}

#tabla-cotizacion-producto th:first-child, #tabla-cotizacion-producto td:first-child, .tecnica-table th:first-child, .tecnica-table td:first-child {
    text-align: left;
}

#tabla-cotizacion-producto th {
    background-color: var(--wmmb-color-principal-cotizador);
    color: white;
    font-weight: bold;
}

#tabla-cotizacion-total {
    background-color: var(--wmmb-color-total-cotizador);
    color: white;
    border-collapse: collapse;
    font-weight: 600;
    width: 100%;
    font-size: initial;
}

#tabla-cotizacion-total td {
    border: 1px solid var(--wmmb-color-total-cotizador);
    background-color: var(--wmmb-color-total-cotizador);
    color: white;
    text-align: right;
}

#continuar-btn, #volver-cotizador {
    background-color: black;
    color: #fff;
    padding: 5px 8px;
    cursor: pointer;
    font-size: small;
    font-weight: 600;
    border: 0;
}

#continuar-btn:hover, #volver-cotizador:hover {
    background-color: color-mix(in srgb, var(--wmmb-color-principal-cotizador), #000 20%);
    font-size: large;
}

.resumen-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
}

.resumen-modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 20px;
    border: 1px solid #888;
    border-radius: 10px;
    width: 80%;
}

.resumen-close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.resumen-close:hover,
.resumen-close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.resumen-row {
    display: flex;
    justify-content: space-between;
}

.resumen-content, .resumen-ficheros-row {
    width: 48%;
}

.resumen-ficheros, .resumen-ficheros input {
    font-size: small !important;
}

.resumen-ficheros p {
    font-weight: 600;
    color: white;
    background-color: var(--wmmb-color-principal-cotizador);
    padding: 5px;
}

.resumen-ficheros div {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 10px;
}

.resumen-ficheros label {
    font-weight: 600;
    color: var(--wmmb-color-principal-cotizador);
}

.resumen-ficheros-actions {
    margin-top: 3em;
}

#enviar-carrito {
    background-color: var(--wmmb-color-total-cotizador);
    color: #fff;
    padding: 5px 8px;
    cursor: pointer;
    font-size: small;
    font-weight: 600;
    border: 0;
}

#enviar-carrito:hover {
    background-color: color-mix(in srgb, var(--wmmb-color-total-cotizador), #000 20%);
    font-size: large;
}

@media (max-width: 768px) {
    .tabla-existencias .mostrar-llegadas {
        width: 100%;
    }

    #tabla-cotizacion-producto, .tecnica-table {
        font-size: xx-small;
    }

    .cotizador-modal-content {
        overflow: auto;
    }

    .cotizador-sections {
        display: flex;
        margin-top: 0;
        flex-direction: column;
        gap: 2em;
    }

    .cotizador-section {
        max-width: 100% !important;
    }

    .cotizador-section:last-child {
        margin: 0;
    }

    .cotizador-section-content {
        height: auto;
    }

    .cotizador-section:nth-child(2) .area-marcaje {
        flex: 0 0 100%;
        scroll-snap-align: center;
    }

    .slider {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
    }

    .area-marcaje {
        flex: 0 0 100%;
        scroll-snap-align: start;
        padding: 1em;
        box-sizing: border-box;
    }

    .slider-dots {
        text-align: center;
        padding: 10px 0;
    }

    .slider-dots .dot {
        display: inline-block;
        width: 10px;
        height: 10px;
        margin: 0 5px;
        background-color: #bbb;
        border-radius: 50%;
        cursor: pointer;
    }

    .slider-dots .dot.active {
        background-color: var(--wmmb-color-principal-cotizador);
    }

    .resumen-modal-content {
        width: 90%;
    }

    .resumen-row {
        display: flex;
        flex-direction: column;
    }

    .resumen-content, .resumen-ficheros-row {
        width: 100%;
    }

    .resumen-ficheros {
        margin-top: 1em;
    }

    .resumen-ficheros label {
        margin-top: 1em;
    }

    .resumen-ficheros-actions {
        display: flex;
        flex-direction: column;
        gap: 1em;
    }
}