/* ============================================================
   Imprimeideas - Conversión Total
   Tema: Azul (#00a8e8) — distinto al rosa de Stampaideas
   ============================================================ */

/* ── CUOTAS ── */
.imprime-cuotas {
    margin: 14px 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.imprime-cuotas__bloque {
    border: 2px solid #0086ba;
    border-radius: 12px;
    padding: 16px 18px;
    background: #eaf6fb;
    box-shadow: 0 2px 8px rgba(0,134,186,.15);
    transition: all .2s ease;
}

.imprime-cuotas__bloque:hover {
    box-shadow: 0 4px 14px rgba(0,134,186,.22);
    transform: translateY(-1px);
}

.imprime-cuotas__bloque--vp {
    background: #e7fbed;
    border-color: #15803d;
    box-shadow: 0 2px 8px rgba(21,128,61,.15);
}

.imprime-cuotas__bloque--vp:hover {
    box-shadow: 0 4px 14px rgba(21,128,61,.22);
}

.imprime-cuotas__header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.imprime-cuotas__logo {
    font-size: 11px;
    font-weight: 800;
    padding: 4px 11px;
    border-radius: 20px;
    letter-spacing: .03em;
    text-transform: none;
    box-shadow: 0 1px 3px rgba(0,0,0,.18);
}

.imprime-cuotas__logo--mp {
    background: #0086ba;
    color: #fff;
}

.imprime-cuotas__logo--vp {
    background: #15803d;
    color: #fff;
}

.imprime-cuotas__tipo {
    font-size: 12.5px;
    color: #1e293b;
    font-weight: 600;
}

.imprime-cuotas__filas {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.imprime-cuotas__fila {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    border: 1.5px solid #0086ba;
    border-radius: 8px;
    padding: 9px 14px;
    flex: 1 1 130px;
    min-width: 130px;
    box-shadow: 0 1px 3px rgba(0,134,186,.08);
}

.imprime-cuotas__bloque--vp .imprime-cuotas__fila {
    border-color: #15803d;
    box-shadow: 0 1px 3px rgba(21,128,61,.08);
}

.imprime-cuotas__n {
    font-size: 19px;
    font-weight: 800;
    color: #0086ba;
    min-width: 30px;
}

.imprime-cuotas__bloque--vp .imprime-cuotas__n {
    color: #15803d;
}

.imprime-cuotas__valor {
    font-size: 13px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.3;
}

.imprime-cuotas__nota {
    font-size: 11.5px;
    color: #475569;
    margin: 10px 0 0;
    line-height: 1.55;
    font-weight: 500;
}

.imprime-cuotas__nota span {
    color: #64748b !important;
    font-weight: 400;
}

/* Checkout / carrito: un poco más compacto pero manteniendo presencia */
.imprime-cuotas--checkout,
.imprime-cuotas--carrito {
    margin: 12px 0 0;
}

.imprime-cuotas--checkout .imprime-cuotas__bloque,
.imprime-cuotas--carrito .imprime-cuotas__bloque {
    padding: 12px 16px;
}

/* ── PRECIO POR METROS ── */
.imprime-metros {
    margin: 14px 0;
}

.imprime-metros__tabla {
    border: 1px solid #e5e7eb;
    border-left: 3px solid #00a8e8;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    margin-bottom: 10px;
}

.imprime-metros__tabla-titulo {
    background: #f8fafc;
    color: #374151;
    font-size: 12px;
    font-weight: 700;
    padding: 8px 14px;
    letter-spacing: .04em;
    text-transform: uppercase;
    border-bottom: 1px solid #e5e7eb;
}

.imprime-metros__tabla-filas {
    display: flex;
    flex-direction: column;
}

.imprime-metros__tramo {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 9px 14px;
    border-top: 1px solid #f3f4f6;
    font-size: 13px;
    color: #6b7280;
    transition: background .15s;
}

.imprime-metros__tramo:first-child {
    border-top: none;
}

.imprime-metros__tramo--activo {
    background: #f0f9ff;
    color: #0369a1;
    font-weight: 600;
}

.imprime-metros__tramo--mejor {
    background: #f0fdf4;
}

.imprime-metros__tramo-precio {
    font-weight: 700;
    color: #374151;
    font-size: 14px;
}

.imprime-metros__tramo--activo .imprime-metros__tramo-precio {
    color: #0369a1;
}

.imprime-metros__tramo--mejor .imprime-metros__tramo-precio {
    color: #15803d;
}

.imprime-metros__tramo-badge {
    background: #dcfce7;
    color: #15803d;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 20px;
    margin-left: 8px;
    letter-spacing: .03em;
}

/* Badge de ahorro dinámico — incentivo al siguiente tramo */
.imprime-metros__ahorro {
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    border-left: 3px solid #00a8e8;
    border-radius: 8px;
    color: #0369a1;
    padding: 10px 14px;
    font-size: 13px;
    line-height: 1.6;
    margin-top: 8px;
    animation: imprime-fade-in .25s ease;
}

/* Badge cuando ya está en el mejor precio — verde */
.imprime-metros__ahorro.imprime-mejor {
    background: #f0fdf4;
    border-color: #bbf7d0;
    border-left-color: #16a34a;
    color: #15803d;
}

.imprime-metros__ahorro strong {
    font-weight: 700;
}

@keyframes imprime-fade-in {
    from { opacity: 0; transform: translateY(-3px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── BADGES DE CONFIANZA ── */
.imprime-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 14px 0;
}

.imprime-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #f7fcff;
    border: 1.5px solid #e0f4fc;
    border-radius: 8px;
    padding: 7px 12px;
    font-size: 12px;
    color: #374151;
    font-weight: 500;
}

.imprime-badge--azul {
    background: #eff6ff;
    border-color: #bfdbfe;
    color: #1d4ed8;
}

.imprime-badge--verde {
    background: #f0fdf4;
    border-color: #bbf7d0;
    color: #15803d;
    font-weight: 700;
}

.imprime-badge__icon {
    font-size: 15px;
    line-height: 1;
}

/* ── URGENCIA DE STOCK ── */
.imprime-urgencia-roja {
    color: #dc2626 !important;
    font-weight: 700;
}

.imprime-urgencia-naranja {
    color: #d97706 !important;
    font-weight: 600;
}

/* ── AVISO ENVÍO CARO ── */
.imprime-envio-caro-aviso {
    background: #fff7ed;
    border: 1px solid #fed7aa;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 13px;
    color: #92400e;
    line-height: 1.6;
    margin: 8px 0;
}

/* ── RESPONSIVE ── */
@media (max-width: 480px) {
    .imprime-cuotas__filas {
        flex-direction: column;
    }
    .imprime-cuotas__fila {
        flex: unset;
        min-width: unset;
    }
    .imprime-badges {
        flex-direction: column;
    }
}

/* ── Badge de % descuento en tabla de tramos ── */
.imprime-metros__tramo-badge-desc {
    background: #00a8e8;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 20px;
    letter-spacing: .03em;
}

.imprime-metros__tramo--mejor .imprime-metros__tramo-badge-desc {
    background: #16a34a;
}
