.saas-dashboard {
    padding: 20px;
    background: #f4f6f9;
    font-family: 'Segoe UI', sans-serif;
}

/* CARD BASE */


.plan-info h2 {
    margin: 0;
    font-size: 24px;
}

.plan-extra span {
    display: block;
    font-size: 14px;
    color: #666;
}

/* MÉTRICAS */
.cards-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
}

.metric h4 {
    margin-bottom: 5px;
    color: #888;
}

.metric p {
    font-size: 22px;
    font-weight: bold;
}

.metric.warning {
    border-left: 5px solid #f39c12;
}

.metric.primary {
    border-left: 5px solid #006696;
}

.metric.success {
    border-left: 5px solid #2ecc71;
}

.metric.danger {
    border-left: 5px solid #e74c3c;
}

/* PROGRESO */
.progress-card {
    text-align: center;
}


/* CICLO */
.ciclo-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    text-align: center;
}

.ciclo-info span {
    font-size: 13px;
    color: #777;
}

.estado {
    font-weight: bold;
}

.estado.activo {
    color: #2ecc71;
}

.estado.vencido {
    color: #e74c3c;
}

/* ALERTAS */
.alerta {
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 10px;
    font-weight: 500;
}

.alerta.warning {
    background: #fff3cd;
    color: #856404;
}

.alerta.danger {
    background: #f8d7da;
    color: #721c24;
}

.alerta.info {
    background: #d1ecf1;
    color: #0c5460;
}



.progress-bar {
    width: 100%;
    height: 18px;
    background: #e5e7eb;
    border-radius: 50px;
    overflow: hidden;
    margin-top: 10px;
         background: transparent !important;
}

.progress-fill {
    height: 100%;
    width: 0%;
    border-radius: 50px;
    transition: all .4s ease;

     background: transparent !important;
}

/* colores */

.progress-fill.normal {
    background: linear-gradient(90deg, #10b981, #34d399) !important;
}

.progress-fill.warning {
    background: linear-gradient(90deg, #f59e0b, #fbbf24) !important;
}

.progress-fill.danger {
    background: linear-gradient(90deg, #ef4444, #f87171) !important;
}



.plan-card {
    color: white;
    border-radius: 18px;
    padding: 25px;
    position: relative;
    overflow: hidden;
}

/* efecto glass */
.plan-card::before {
    content: "";
    position: absolute;
    top: -40px;
    right: -40px;
    width: 120px;
    height: 120px;
    background: rgba(255,255,255,.12);
    border-radius: 50%;
}




/* ======================================== */
/* PLANES DISPONIBLES */
/* ======================================== */

.planes-disponibles {
    margin-top: 30px;
}

.planes-header {
    margin-bottom: 20px;
}

.planes-header h3 {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    color: #111827;
}

.planes-header p {
    margin-top: 5px;
    color: #6b7280;
}

/* GRID */

.planes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
}

/* MINI CARD */

.mini-plan-card {
    position: relative;
    overflow: hidden;

    color: white;
    border-radius: 18px;

    padding: 18px;

    transition: all .3s ease;
    cursor: pointer;
}

.mini-plan-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0,0,0,.15);
}

/* efecto glass */

.mini-plan-card::before {
    content: "";

    position: absolute;

    width: 90px;
    height: 90px;

    top: -25px;
    right: -25px;

    border-radius: 50%;

    background: rgba(255,255,255,.12);
}

/* TOP */

.mini-plan-top h4 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
}

.mini-plan-top span {
    display: block;
    margin-top: 5px;
    font-size: 14px;
    opacity: .9;
}

/* BODY */

.mini-plan-body {
    margin-top: 18px;
}

.mini-plan-body p {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
}

.mini-plan-body small {
    display: block;
    margin-top: 6px;
    opacity: .85;
}



/* ======================================== */
/* COLORES DE TEXTO DINÁMICOS */
/* ======================================== */

.texto-claro {
    color: white;
}

.texto-oscuro {
    color: #111827;
}

/* textos secundarios */

.texto-oscuro .plan-extra span,
.texto-oscuro p {
    color: #374151;
}

.texto-claro .plan-extra span,
.texto-claro p {
    color: rgba(255,255,255,.95);
}



/* =========================================
CARD
========================================= */
.consumo-card {
    border: 1px solid #edf0f4;
    border-radius: 14px;
    padding: 16px;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .04);
}

/* =========================================
HEADER
========================================= */
.consumo-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.consumo-header h5 {
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
}

.consumo-header small {
    color: #7b8794;
    font-size: 12px;
}

.badge-year {
    background: #f4f6f9;
    color: #34495e;
    font-size: 12px;
    padding: 6px 10px;
    border-radius: 8px;
    font-weight: 600;
}

/* =========================================
STATS
========================================= */
.consumo-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 16px;
}

.stat-box {
    background: #f8fafc;
    border-radius: 10px;
    padding: 10px;
    text-align: center;
}

.stat-box span {
    display: block;
    font-size: 11px;
    color: #7b8794;
    margin-bottom: 3px;
}

.stat-box h6 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: #2c3e50;
}

/* =========================================
CHART
========================================= */
.chart-container {
    background: #fff;
    border-radius: 10px;
    padding: 6px;
}

/* =========================================
TABLA
========================================= */
.consumo-table {
    font-size: 12px;
}

.consumo-table thead th {
    background: #f8fafc;
    border: none;
    color: #5c6773;
    font-weight: 600;
    font-size: 11px;
}

.consumo-table tbody td {
    vertical-align: middle;
    border-color: #f1f3f5;
}


.mini-plan-upgrade{

    margin-top:15px;
    padding:10px;
    border-radius:10px;
    background:rgba(255,255,255,0.18);
    font-size:13px;
    font-weight:500;
    backdrop-filter: blur(5px);

}

.mini-plan-actual{

    margin-top:15px;
    padding:10px;
    border-radius:10px;
    background:rgba(0,0,0,0.15);
    font-size:13px;
    font-weight:700;
    text-align:center;

}


.badge-movimiento{

    display:inline-flex;
    align-items:center;
    justify-content:center;

    min-width:160px;
    height:34px;

    padding:0 14px;

    border-radius:10px;

    font-size:12px;
    font-weight:600;

    letter-spacing:.3px;

    text-align:center;

    box-shadow:0 2px 6px rgba(0,0,0,.08);
}


/*
=========================================
ICONOS
=========================================
*/

.badge-movimiento i{

    font-size:11px;
}


/*
=========================================
ALTA
=========================================
*/

.badge-alta{

    background:#0d6efd;
    color:#fff;
}


/*
=========================================
RENOVACIÓN
=========================================
*/

.badge-renovacion{

    background:#198754;
    color:#fff;
}


/*
=========================================
UPGRADE
=========================================
*/

.badge-upgrade{

    background:#0dcaf0;
    color:#fff;
}


/*
=========================================
DOWNGRADE
=========================================
*/

.badge-downgrade{

    background:#ffc107;
    color:#212529;
}






.card-saas{
 border-radius: 14px;
    padding:24px;
    background:#fff;
    margin-bottom: 1px;

        box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}



.saldo-header{
    margin-bottom:15px;
}

.saldo-title{
    font-size:15px;
    font-weight:600;
    color:#6b7280;
}

.saldo-title i{
    margin-right:6px;
}

.saldo-body h3{
    font-size:36px;
    font-weight:700;
    margin-bottom:5px;
    color:#dc2626;
}

.saldo-label{
    font-size:14px;
    color:#6b7280;
    margin-bottom:20px;
}

.saldo-extra{
    display:flex;
    justify-content:space-between;
    align-items:center;
    font-size:14px;
    border-top:1px solid #e5e7eb;
    padding-top:12px;
}


.saldo-fecha-limite,
.saldo-dias-restantes {

    display: flex;
    align-items: center;
    gap: 10px;

    font-size: 14px;
    color: #6c757d;

    margin-top: 10px;

}

.saldo-fecha-limite i,
.saldo-dias-restantes i {

    font-size: 15px;

}