/* ============================================
   CONTENEDOR GENERAL
============================================ */
.bazan-ruta-wrapper {
    padding: 0px;
    margin-top: 20px;
}


/*=============================================
   LLAVES DISPONIBLES O EN USO
=============================================*/

    /* ============================
    TARJETA PRINCIPAL
    ============================ */
    .card-mis-llaves {
    background: #ffffff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);

    /* 🔥 IMPORTANTE: ahora ocupa el ancho completo del contenedor */
    width: 100%;
    max-width: none;

    font-family: system-ui, -apple-system, sans-serif;
    color: #2c3e50;
    }

    /* ============================
    CABECERA
    ============================ */
    .card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    }

    .header-icon {
    font-size: 1.6rem;
    }

    .card-header h3 {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 700;
    color: #1e293b;
    }

    .descripcion {
    font-size: 0.92rem;
    color: #64748b;
    line-height: 1.5;
    margin: 0 0 20px 0;
    }

    /* ============================
    BADGE GAMIFICADO
    ============================ */
    .llaves-badge-container {
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 14px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    }

    .llaves-slots {
    display: flex;
    gap: 12px;
    }

    .key-slot {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    transition: transform 0.2s ease;
    }

    /* Disponible */
    .key-slot.disponible {
    background: #fef9c3;
    border: 2px solid #facc15;
    box-shadow: 0 2px 8px rgba(250, 204, 21, 0.3);
    filter: drop-shadow(0 0 2px rgba(234, 179, 8, 0.4));
    }

    /* Usada */
    .key-slot.usada {
    background: #f1f5f9;
    border: 2px dashed #cbd5e1;
    filter: grayscale(100%);
    opacity: 0.45;
    }

    .llaves-counter {
    font-size: 0.95rem;
    color: #475569;
    }

    .llaves-counter strong {
    color: #d97706;
    font-weight: 700;
    }

    /* ============================
    LLAVES EN USO
    ============================ */
    .en-uso-box {
    background: #fff;
    border-left: 3px solid #94a3b8;
    padding: 10px 0 10px 14px;
    }

    .en-uso-title {
    display: block;
    font-size: 0.88rem;
    color: #64748b;
    margin-bottom: 8px;
    }

    .en-uso-list {
    list-style: none;
    padding: 0;
    margin: 0;
    }

    .en-uso-list li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.92rem;
    font-weight: 600;
    color: #334155;
    }

    .dot {
    width: 6px;
    height: 6px;
    background-color: #64748b;
    border-radius: 50%;
    }


/* ============================================
   CONTENEDOR LISTA DE TARJETAS
============================================ */
.bazan-ruta-carpetas-lista {
    padding: 20px;
}

/* 📱 En móviles: padding 0 */
@media (max-width: 768px) {
    .bazan-ruta-carpetas-lista {
        padding: 0;
    }
}

/* ============================================
   TARJETAS GRANDES (solo para las 3 secciones)
============================================ */
.bazan-ruta-tarjeta {
    background: #fff;
    border-radius: 14px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.bazan-ruta-tarjeta-contenido {
    display: block;
}

/* ============================================
   TITULOS Y TEXTOS
============================================ */
.bazan-ruta-titulo {
    margin-bottom: 15px;
    font-size: 24px;
    font-weight: 600;
    color: #0A2A43;
}

.bazan-ruta-texto {
    margin-bottom: 20px;
    color: #4a5a67;
    font-size: 16px;
}

.bazan-ruta-empty {
    color: #777;
    font-style: italic;
}

/* ============================================
   LISTAS
============================================ */
.bazan-ruta-tarjeta ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* ============================================
   LLAVES (libres y usadas)
============================================ */
.bazan-ruta-llave {
    padding: 10px 12px;
    border-radius: 6px;
    margin-bottom: 8px;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Llave libre */
.bazan-ruta-llave.libre {
    background: #e8f7ff;
    border: 1px solid #b6e6ff;
    color: #007fa2;
}

/* Llave usada */
.bazan-ruta-llave.usada {
    background: #f0f0f0;
    border: 1px solid #d0d0d0;
    color: #555;
}

.bazan-ruta-llave-icono-usada {
    filter: grayscale(1) brightness(0.6);
    font-size: 18px;
}


/* ============================================
   TEMAS ARCADE — LISTA CON BORDE LATERAL
============================================ */

.bazan-ruta-carpeta-item {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 12px;

    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-left-width: 5px;
    border-radius: 10px;

    padding: 16px 20px;
    margin-bottom: 12px;

    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
    box-sizing: border-box;
}

/* ICONO + NOMBRE + SECUNDARIO */
.bazan-ruta-carpeta-info {
    display: flex;
    align-items: center;
    gap: 14px;
}

.bazan-ruta-carpeta-icono {
    font-size: 22px;
}

.bazan-ruta-carpeta-nombre {
    font-weight: 700;
    color: #0a2a43;
    font-size: 16px;
}

.bazan-ruta-carpeta-secundario {
    font-size: 13px;
    margin-top: 2px;
    color: #64748b;
}

/* BADGE */
.bazan-ruta-carpeta-badge {
    font-size: 12px;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;

    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* SUPERADO → verde */
.bazan-ruta-carpeta-item.superado {
    border-left-color: #10b981;
}
.bazan-ruta-carpeta-item.superado .bazan-ruta-carpeta-badge {
    background-color: #d1fae5;
    color: #047857;
}

/* DESBLOQUEADO → azul brillante elemental */
.bazan-ruta-carpeta-item.desbloqueado,
.bazan-ruta-carpeta-item.desbloqueada {
    border-left-color: #007fa2; /* azul brillante */
    border-left-width: 5px;     /* borde grueso */
    border-top: 1.5px solid #007fa2;
    border-right: 1.5px solid #007fa2;
    border-bottom: 1.5px solid #007fa2;
}

.bazan-ruta-carpeta-item.desbloqueado .bazan-ruta-carpeta-secundario,
.bazan-ruta-carpeta-item.desbloqueada .bazan-ruta-carpeta-secundario {
    color: #007fa2;
    font-weight: 500;
}

.bazan-ruta-carpeta-item.desbloqueado .bazan-ruta-carpeta-badge,
.bazan-ruta-carpeta-item.desbloqueada .bazan-ruta-carpeta-badge {
    background-color: #e0f2fe;
    color: #007fa2;
    border: 1px solid #bae6fd;
}

/* BLOQUEADO → gris */
.bazan-ruta-carpeta-item.bloqueado,
.bazan-ruta-carpeta-item.bloqueada {
    background: #f8fafc;
    border-left-color: #94a3b8;
}

.bazan-ruta-carpeta-item.bloqueado .bazan-ruta-carpeta-secundario,
.bazan-ruta-carpeta-item.bloqueada .bazan-ruta-carpeta-secundario {
    color: #94a3b8;
}

/* Botón azul */
.bazan-ruta-desbloquear-btn {
    background-color: #007fa2; /* Turquesa corporativo */
    color: #ffffff;
    border: none;
    padding: 9px 18px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 13.5px;
    cursor: pointer;

    display: inline-flex;
    align-items: center;
    gap: 6px;

    /* Sombra base */
    box-shadow: 0 2px 4px rgba(0, 127, 162, 0.2);

    /* Efectos */
    transition:
        background 0.2s ease,
        transform 0.15s ease,
        box-shadow 0.15s ease;
}

.bazan-ruta-desbloquear-btn:hover {
    background-color: #005f78; /* Turquesa más oscuro → contraste perfecto */
    transform: translateY(-2px); /* Efecto de levantarse */
    box-shadow: 0 4px 10px rgba(0, 127, 162, 0.35); /* Sombra más profunda */
}


/* ============================================
   PROGRESO — TIMELINE VERTICAL
============================================ */

.bazan-ruta-progreso-timeline {
    position: relative;
    padding-left: 32px;
}

/* Línea vertical */
.bazan-ruta-progreso-line {
    position: absolute;
    left: 16px;
    top: 10px;
    bottom: 10px;
    width: 3px;
    background: linear-gradient(180deg, #10b981 0%, #007fa2 100%);
    border-radius: 2px;
}

/* Lista */
.bazan-ruta-progreso-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Item */
.bazan-ruta-progreso-item {
    position: relative;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
}

/* Número del peldaño */
.bazan-ruta-progreso-step {
    position: absolute;
    left: -28px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: #10b981;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: bold;
    border: 3px solid #ffffff;
    box-shadow: 0 0 0 2px #10b981;
}

.bazan-ruta-progreso-step.ultimo {
    background-color: #007fa2;
    box-shadow: 0 0 0 2px #007fa2;
}

/* Tarjeta */
.bazan-ruta-progreso-card {
    flex: 1;
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-left: 8px;
}

.bazan-ruta-progreso-card.ultimo {
    background-color: #ffffff;
    border: 1.5px solid #007fa2;
    box-shadow: 0 2px 8px rgba(0, 127, 162, 0.08);
}

/* Nombre del tema */
.bazan-ruta-progreso-nombre {
    font-weight: 700;
    color: #0a2a43;
    font-size: 15px;
}

/* Badge */
.bazan-ruta-progreso-badge {
    color: #10b981;
    font-size: 12px;
    font-weight: 700;
    background-color: #d1fae5;
    padding: 3px 10px;
    border-radius: 12px;
}

.bazan-ruta-progreso-badge.ultimo {
    background-color: #e0f2fe;
    color: #007fa2;
}
