@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;700&display=swap');

.tarjeta-estado {
    background: #ffffff;
    color: #2c3e50;
    border-radius: 12px;
    padding: 18px;
    max-width: 360px;
    font-family: 'Nunito', sans-serif;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    margin: 20px auto;
    font-size: 18px;
    border: 1px solid #eee;
    transition: 0.3s ease all;
}

.fila-estado {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
    font-weight: 700;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.85);
    box-shadow: 0 0 0 2px rgba(0,0,0,0.12);
    flex: 0 0 12px;
}

.detalle-fecha {
    margin: 6px 0 12px;
    line-height: 1.5;
}

.barra {
    width: 100%;
    height: 12px;
    background: rgba(0,0,0,0.08);
    border-radius: 999px;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.06);
}

.barra-inner {
    height: 100%;
    background: linear-gradient(90deg, #8ec5fc, #25D366);
    transition: width 0.4s ease;
}

.tarjeta-estado small {
    display: block;
    margin-top: 10px;
    opacity: 0.85;
    font-size: 12px;
    text-align: center;
}

.state-activa { background: #00b4d8 !important; color: #ffffff !important; }
.state-por-vencer { background: #ffcc00 !important; color: #000000 !important; }
.state-vencida { background: #e74c3c !important; color: #ffffff !important; }
.state-free .dot { background: #7f8c8d; border-color: rgba(0,0,0,0.25); }
.state-activa .dot { background: #25D366; }
.state-por-vencer .dot { background: #ffcc00; }
.state-vencida .dot { background: #e74c3c; }

.btn-renovar {
    display: inline-block;
    background: #fff;
    color: #e74c3c;
    font-weight: bold;
    padding: 6px 10px;
    border-radius: 6px;
    text-decoration: none;
    transition: 0.2s;
}

.btn-renovar:hover {
    background: #f1f1f1;
}

.barra-inner {
  position: relative;
  overflow: hidden;
}

.barra-inner::after {
  content: "";
  position: absolute;
  top: 0;
  left: -50%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.6), transparent);
  animation: brillo-progreso 2s linear infinite;
}

@keyframes brillo-progreso {
  0% { left: -50%; }
  100% { left: 100%; }
}

/* ============================
   PLAN ACTIVO / BADGES PRO
   ============================ */

.plan-info {
    margin-top: 8px;
    font-size: 15px;
    line-height: 1.4;
}

.plan-label {
    display: inline-block;
    font-weight: 700;
    margin-right: 6px;
}


/* Mensaje contextual */
.plan-msg {
    display: block;
    margin-top: 6px;
    font-size: 13px;
    opacity: 0.9;
}

