/* ==========================================================
   ARBOL DE CATEGORÍAS — STYLE PRO v2
   ========================================================== */

/* CONTENEDOR */
.medical-tree{
    list-style:none;
    margin:0;
    padding:0;
}

/* TODOS LOS LI */
.medical-tree li{
    position:relative;
    margin:12px 0;
    padding:0;
}

/* ==========================================================
   SUBNIVELES
   ========================================================== */

.medical-tree ul{
    list-style:none;
    margin:12px 0 0 34px;
    padding-left:36px;
    position:relative;
}

/* línea vertical */
.medical-tree ul:before{
    content:"";
    position:absolute;
    left:0;
    top:0;
    bottom:10px;
    width:2px;
    background:#dbe7f6;
}

/* línea horizontal */
.medical-tree ul li:before{
    content:"";
    position:absolute;
    left:-36px;
    top:22px;
    width:28px;
    height:2px;
    background:#dbe7f6;
}

/* ==========================================================
   LINKS
   ========================================================== */

.medical-tree a{
    display:flex;
    align-items:center;
    width:100%;
    box-sizing:border-box;

    text-decoration:none !important;
    color:inherit !important;

    padding:13px 18px;

    border-radius:12px;

    border:1px solid rgba(0,0,0,.06);

    transition:
        background .25s,
        box-shadow .25s,
        transform .25s,
        border-color .25s;
}

/* ==========================================================
   ICONO
   ========================================================== */

.medical-tree a:before{
    font-family:"Font Awesome 6 Free";
    font-weight:900;
    content:"\f0f8";     /* maletín médico */
    margin-right:12px;
    opacity:.75;
    font-size:15px;
}

/* ==========================================================
   FLECHA
   ========================================================== */

.medical-tree a:after{
    content:"›";
    margin-left:auto;
    font-size:22px;
    opacity:.45;
    transition:.25s;
}

/* ==========================================================
   NIVEL 1
   ========================================================== */

.medical-tree > li > a{

    background:#0d3b8e;

    color:#fff !important;

    font-weight:600;

    box-shadow:0 8px 20px rgba(13,59,142,.18);

    border:none;
}

/* ==========================================================
   NIVEL 2
   ========================================================== */

.medical-tree > li > ul > li > a{

    background:#edf4ff;

    color:#0d3b8e !important;

    font-weight:600;

    border-left:5px solid #0d3b8e;
}

/* ==========================================================
   NIVEL 3
   ========================================================== */

.medical-tree > li > ul > li > ul > li > a{

    background:#fafcff;

    color:#34495e !important;

    border-left:5px solid #7ea6df;

    font-size:15px;
}

/* ==========================================================
   HOVER
   ========================================================== */

.medical-tree a:hover{

    transform:translateX(6px);

    box-shadow:0 10px 22px rgba(0,0,0,.10);

    text-decoration:none !important;
}

.medical-tree a:hover:after{

    transform:translateX(5px);

    opacity:1;
}

/* Hover nivel 1 */

.medical-tree > li > a:hover{

    background:#0b2f6d;
}

/* Hover nivel 2 */

.medical-tree > li > ul > li > a:hover{

    background:#dfeeff;
}

/* Hover nivel 3 */

.medical-tree > li > ul > li > ul > li > a:hover{

    background:#eef5ff;
}

/* ==========================================================
   RESPONSIVE
   ========================================================== */

@media (max-width:768px){

    .medical-tree a{

        padding:12px 14px;

        font-size:15px;
    }

    .medical-tree a:after{

        font-size:18px;
    }

}