/* Página de compra: complementos nuevos (detalles.comp.js). Mismo tema oscuro que detalles.v2.css, con los colores del
 * promotor (--cc-1, --cc-2). Los botones redefinen todo lo que pone perfil.css a cualquier <button> (fondo, ancho, margen) */

#tarjetasDatos select.opciones.dtc-oculto {
    display: none !important;
}

.dtc-caja {
    margin: 14px 0 6px;
    padding: 12px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
    text-align: left;
    font-family: 'Rubik', sans-serif;
}

.dtc-tit {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 4px 10px;
    margin-bottom: 10px;
    color: #ececec;
    font-weight: 600;
    font-size: 14px;
    line-height: 1.3;
}

.dtc-tit small {
    color: #8d8d8d;
    font-weight: 400;
    font-size: 11.5px;
}

.dtc-lista {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.dtc-op,
.dtc-of {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 10px 10px 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: border-color .15s, background .15s;
}

.dtc-op.dtc-op-on,
.dtc-of.dtc-op-on {
    border-color: var(--cc-1, #1ef8ff);
    background: rgba(30, 248, 255, 0.06);
}

.dtc-op-dest {
    border-style: dashed;
}

.dtc-op-txt {
    flex: 1 1 auto;
    min-width: 0;
}

.dtc-op-nom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 8px;
    color: #f1f1f1;
    font-weight: 600;
    font-size: 14px;
    line-height: 1.3;
    overflow-wrap: anywhere;
}

.dtc-op-pre {
    margin-top: 2px;
    color: #bdbdbd;
    font-size: 13px;
    line-height: 1.35;
}

.dtc-op-pre small {
    color: #8d8d8d;
    font-size: 11px;
}

.dtc-op-desc {
    margin-top: 3px;
    color: #9fd8de;
    font-size: 12px;
    line-height: 1.35;
}

.dtc-etq {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 2px 8px 2px 6px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--cc-1, #1ef8ff), var(--cc-2, #20a6ff));
    color: #06232a;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: .02em;
    text-transform: uppercase;
    line-height: 1.5;
    white-space: nowrap;
}

.dtc-etq .material-symbols-outlined {
    font-size: 13px;
}

.dtc-stock {
    display: inline-block;
    margin-left: 4px;
    color: #ffc266;
    font-size: 11.5px;
    font-weight: 600;
}

.dtc-stock.dtc-agotado {
    color: #ff8a8a;
}

.dtc-sub {
    margin-top: 10px;
    color: #cfcfcf;
    font-size: 12.5px;
}

.dtc-sub b {
    color: #fff;
}

.dtc-sub small {
    color: #8d8d8d;
}

/* Botones (añadir / unidades) */
.dtc-caja .dtc-bt,
.dtc-ofertas .dtc-bt {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    width: auto !important;
    min-width: 36px;
    height: 36px;
    margin: 0 !important;
    padding: 0 12px !important;
    border: 1px solid rgba(255, 255, 255, 0.14) !important;
    border-radius: 999px !important;
    background: rgba(255, 255, 255, 0.06) !important;
    color: #f1f1f1 !important;
    font-family: 'Rubik', sans-serif !important;
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
    opacity: 1;
    box-shadow: none !important;
}

.dtc-caja .dtc-bt .material-symbols-outlined,
.dtc-ofertas .dtc-bt .material-symbols-outlined {
    font-size: 18px;
}

.dtc-caja .dtc-bt:hover:not([disabled]),
.dtc-ofertas .dtc-bt:hover:not([disabled]) {
    border-color: var(--cc-1, #1ef8ff) !important;
}

.dtc-caja .dtc-bt:focus-visible,
.dtc-ofertas .dtc-bt:focus-visible {
    outline: 2px solid var(--cc-1, #1ef8ff);
    outline-offset: 2px;
}

.dtc-caja .dtc-bt[disabled],
.dtc-ofertas .dtc-bt[disabled] {
    opacity: .4;
    cursor: not-allowed;
}

.dtc-caja .dtc-toggle.dtc-puesto,
.dtc-ofertas .dtc-of-add {
    border-color: transparent !important;
    background: linear-gradient(90deg, var(--cc-1, #1ef8ff), var(--cc-2, #20a6ff)) !important;
    color: #06232a !important;
}

.dtc-uds {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex: 0 0 auto;
}

.dtc-caja .dtc-uds .dtc-bt,
.dtc-ofertas .dtc-uds .dtc-bt {
    width: 36px !important;
    padding: 0 !important;
}

.dtc-num {
    min-width: 18px;
    color: #fff;
    font-weight: 700;
    font-size: 15px;
    text-align: center;
}

/* Ofertas destacadas en el resumen, justo antes de pagar */
.dtc-ofertas {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 14px 0 12px;
    padding: 12px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(30, 248, 255, 0.08), rgba(32, 166, 255, 0.04));
    border: 1px solid rgba(30, 248, 255, 0.22);
    text-align: left;
    font-family: 'Rubik', sans-serif;
}

.dtc-of-cab {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #fff;
    font-size: 14px;
}

.dtc-of-cab .material-symbols-outlined {
    color: var(--cc-1, #1ef8ff);
    font-size: 19px;
}

.dtc-of .dtc-etq {
    margin-bottom: 4px;
}

.dtc-of-reparto {
    display: block;
    color: #8d8d8d;
    font-size: 11px;
}

@media (max-width: 380px) {
    .dtc-op,
    .dtc-of {
        flex-wrap: wrap;
    }

    .dtc-op .dtc-uds,
    .dtc-op .dtc-toggle,
    .dtc-of .dtc-uds,
    .dtc-of .dtc-toggle {
        margin-left: auto !important;
    }
}
