﻿
/* RESPONSIVE */


/********  XL  *******/
@media screen and (min-width:1600px) {

    #iconosArbol {
        top: 58px;
        position: absolute;
        margin-top: -20px;
        right: 30px;
        display: flex;
        flex-direction: row;
        justify-content: flex-start;
        align-items: center;
        gap: 32px;
    }

        #iconosArbol .accion {
            display: flex;
            flex-direction: row;
            align-items: center;
            cursor: pointer;
            padding: 0;
            z-index: 20;
        }

            #iconosArbol .accion:hover .textoAccion {
                color: #f024bb;
            }

        #iconosArbol .iconoArbol {
            width: 32px;
            height: 32px;
            margin-right: 5px;
            vertical-align: middle;
            display: inline-block;
        }

        #iconosArbol .textoAccion {
            font-size: 16px;
            vertical-align: middle;
            margin: 0;
            padding: 0;
            line-height: 32px;
            display: inline-block;
        }

    #arbol {
        margin: 0px auto;
        margin-top: 40px;
        overflow-y: scroll;
        padding-top: 25px;
        padding-bottom: 20px;
    }

    .leyendaDatos {
        font-size: 12px;
        line-height: 14px;
        height: 40px;
        overflow-y: hidden;
    }

    .linAscenD {
        width: 27px;
        height: 64px;
        top: -14px;
        left: -2.5px;
    }

    .linAscenC {
        width: 26.55px;
        height: 64px;
        top: -14px;
        left: 92px;
    }

    .linVertical {
        width: 2px;
        height: 1px;
        top: 146px;
        left: 117.5px;
    }

    .arcada {
        height: 27px;
        width: 110px;
        top: 122px;
        left: 62px;
    }

    #extraArbol {
        position: absolute;
        top: 0px;
        left: 0px;
        z-index: 20;
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    .fotoArbol {
        position: absolute;
        width: 145px;
        height: 145px;
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;
        margin-left: 15px;
       /* border: 1px solid red;*/
    }

        .fotoArbol img {
            max-width: 100%;
            max-height: 100%;
            width: auto;
            height: auto;
            display: block;
            object-fit: contain;
        }

        .fotoArbol:empty {
            display: none !important;
        }

    #fotoArbol {
        display: none;
    }

    #tituloLemaFamilia {
        position: absolute;
        top: 220px;
        left: 400px;
        text-align: center;
    }

        #tituloLemaFamilia .titulo {
            font-size: 20px;
            font-weight: bold;
        }

        #tituloLemaFamilia .lema {
            font-size: 12px;
            font-weight: normal;
        }

    .miembro[ft-data-tipomiembro="0"]::after {
        top: -6px; /* ajustar según diseño */
        right: 94px; /* ajustar según diseño */
        width: 32px;
        height: 32px;
        background-size: contain;
        z-index: 10;
    }
}


/********  L  *******/
@media screen and (min-width:950px)and (max-width:1600px) {

    #iconosArbol {
        top: 58px;
        position: absolute;
        margin-top: -20px;
        right: 30px;
        display: flex;
        flex-direction: row;
        justify-content: flex-start;
        align-items: center;
        gap: 32px;
    }

    #iconosArbol .accion {
        display: flex;
        flex-direction: row;
        align-items: center;
        cursor: pointer;
        padding: 0;
        z-index: 20;
    }

    #iconosArbol .accion:hover .textoAccion {
        color: #f024bb;
    }

    #iconosArbol .iconoArbol {
        width: 32px;
        height: 32px;
        margin-right: 5px;
        vertical-align: middle;
        display: inline-block;
    }

    #iconosArbol .textoAccion {
        font-size: 16px;
        vertical-align: middle;
        margin: 0;
        padding: 0;
        line-height: 32px;
        display: inline-block;
    }

    #arbol {
        margin: 0px auto;
        margin-top: 40px;
        overflow-y: scroll;
        padding-top: 25px;
        padding-bottom: 20px;
    }

    .leyendaDatos {
        font-size: 12px;
        line-height: 14px;
        height: 40px;
        overflow-y: hidden;
    }

    .linAscenD {
        width: 27px;
        height: 64px;
        top: -14px;
        left: -2.5px;
    }

    .linAscenC {
        width: 26.55px;
        height: 64px;
        top: -14px;
        left: 92px;
    }

    .linVertical {
        width: 2px;
        height: 1px;
        top: 146px;
        left: 117.5px;
    }

    .arcada {
        height: 27px;
        width: 110px;
        top: 122px;
        left: 62px;
    }

    #extraArbol {
        position: absolute;
        top: 0px;
        left: 0px;
        z-index: 20;
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    .fotoArbol {
        position: absolute;
        width: 145px;
        height: 145px;
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;
        margin-left: 15px;
       /* border: 1px solid red;*/
    }

        .fotoArbol img {
            max-width: 100%;
            max-height: 100%;
            width: auto;
            height: auto;
            display: block;
            object-fit: contain;
        }

        .fotoArbol:empty {
            display: none !important;
        }

    #fotoArbol {
        display: none;
    }

    #tituloLemaFamilia{
        position:absolute;
        top:220px;
        left:400px;
        text-align:center;
    }

    #tituloLemaFamilia .titulo{
        
        font-size: 20px;
        font-weight: bold;
    }
    #tituloLemaFamilia .lema{
        
       
        font-size: 12px;
        font-weight: normal;
    }

    .miembro[ft-data-tipomiembro="0"]::after {
        top: -6px; /* ajustar según diseño */
        right: 94px; /* ajustar según diseño */
        width: 32px;
        height: 32px;
        background-size: contain;
        z-index: 10;
    }

}

/********  M  *******/
@media screen and (min-width:650px)and (max-width:950px) {

    #iconosArbol {
        top: 58px;
        position: absolute;
        margin-top: -10px;
        right: 30px;
        display: flex;
        flex-direction: row;
        justify-content: flex-start;
        align-items: center;
        gap: 32px;
    }

        #iconosArbol .accion {
            display: flex;
            flex-direction: row;
            align-items: center;
            cursor: pointer;
            padding: 0;
            z-index: 20;
        }

            #iconosArbol .accion:hover .textoAccion {
                color: #f024bb;
            }

        #iconosArbol .iconoArbol {
            width: 32px;
            height: 32px;
            margin-right: 5px;
            vertical-align: middle;
            display: inline-block;
            margin-bottom: 0;
            align-self: center;
        }

        #iconosArbol .textoAccion {
            font-size: 16px;
            vertical-align: middle;
            margin: 0;
            padding: 0;
            line-height: 32px;
            display: inline-block;
            align-self: center;
        }



    .leyendaDatos {
        font-size: 14px;
        height: 40px;
        overflow-y: hidden;
    }

    #arbol {

        margin: 0px auto;
        margin-top: 40px;
        overflow-y: scroll;
        padding-top: 25px;
        padding-bottom: 20px;
       /* border:1px solid red;*/
    }

    .iconoArbol {
        cursor: pointer;
        margin-bottom: 0;
    }


    .linAscenD {
        width: 27px;
        height: 64px;
        top: -14px;
        left: -2.5px;
    }

    .linAscenC {
        width: 26.55px;
        height: 64px;
        top: -14px;
        left: 92px;
    }


    .linVertical {
        width: 2px;
        height: 1px;
        top: 146px;
        left: 117.5px;
    }

    .arcada {
        height: 27px;
        width: 110px;
        top: 122px;
        left: 62px;
    }

    #extraArbol {
        position: absolute;
        top: 0px;
        left: 0px;
        z-index: 20;
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    .fotoArbol {
        position: absolute;
        width: 145px;
        height: 145px;
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;
        margin-left: 15px;
        /*border: 1px solid red;*/
    }

        .fotoArbol img {
            max-width: 100%;
            max-height: 100%;
            width: auto;
            height: auto;
            display: block;
            object-fit: contain;
        }

        .fotoArbol:empty {
            display: none !important;
        }

    #fotoArbol {
        display: none;
    }

    #tituloLemaFamilia {
        position: absolute;
        top: 220px;
        left: 400px;
        text-align: center;
    }

        #tituloLemaFamilia .titulo {
            font-size: 20px;
            font-weight: bold;
        }

        #tituloLemaFamilia .lema {
            font-size: 12px;
            font-weight: normal;
        }

    .miembro[ft-data-tipomiembro="0"]::after {
        top: -6px; /* ajustar según diseño */
        right: 94px; /* ajustar según diseño */
        width: 32px;
        height: 32px;
        background-size: contain;
        z-index: 10;
    }



}


/********  S  *******/
@media screen and (min-width:500px)and (max-width:650px) {

    #iconosArbol {
        width: 96%;
        height: 50px;
        position: fixed;
        bottom: 10px;
        z-index: 1000;
        display: flex;
        padding: 1rem;
        padding-bottom: calc(1rem + env(safe-area-inset-bottom));
        border-top: 1px solid #ddd; /* para separarlo del contenido */
        justify-content: center;
        align-items: center;
        background-color: #eff8e0;
        gap: 32px;
        /* border:1px solid red;*/
    }

   
        #iconosArbol .accion {
            display: flex;
            flex-direction: row;
            align-items: center;
            cursor: pointer;
            padding: 0;
            z-index: 20;
        }

            #iconosArbol .accion:hover .textoAccion {
                color: #f024bb;
            }

        #iconosArbol .iconoArbol {
            width: 32px;
            height: 32px;
            margin-right: 5px;
            vertical-align: middle;
            display: inline-block;
            /* Solución: elimina margin-bottom y usa align-self para centrar verticalmente */
            margin-bottom: 0;
            align-self: center;
        }

        #iconosArbol .textoAccion {
            font-size: 16px;
            vertical-align: middle;
            margin: 0;
            padding: 0;
            line-height: 32px;
            display: inline-block;
            /* Solución: asegúrate de que esté centrado verticalmente */
            align-self: center;
        }



    .leyendaDatos {
        /* font-size: 110%;*/
        /* font-weight: 200;*/
        font-size: 14px;
        height: 40px;
        overflow-y: hidden;
    }

    #arbol {
        /* margin-top: 150px;*/
        overflow-y: scroll;
        padding-top: 25px;
        padding-bottom: 20px;
       /*  border:1px solid red;*/
    }

    #ventanaArbol {
        /* border:1px solid blue;*/
    }

    #cuerpoVentanaArbol {
        margin-top: 0px;
    }


    .linAscenD {
        width: 27px;
        height: 60px;
        top: -10px;
        left: -2.5px;
    }

    .linAscenC {
        width: 26.55px;
        height: 60px;
        top: -10px;
        left: 92px;
    }


    .linVertical {
        width: 2px;
        height: 1px;
        top: 150px;
        left: 117.5px;
    }

    .arcada {
        height: 27px;
        width: 110px;
        top: 130px;
        left: 62px;
    }

    #tituloLemaFamilia {
        position: absolute;
        top: 220px;
        left: 400px;
        text-align: center;
    }

        #tituloLemaFamilia .titulo {
            font-size: 20px;
            font-weight: bold;
        }

        #tituloLemaFamilia .lema {
            font-size: 12px;
            font-weight: normal;
        }


    #containerVentanaArbol {
        overflow: hidden;
    }

    #extraArbol {
        position: absolute;
        top: 0px;
        left: 0px;
        /* width: 200px;*/
        z-index: 20;
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    .fotoArbol {
        position: absolute;
        width: 120px;
        height: 120px;
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;
        background-color: #f3f3f3;
        margin-left: 15px;
        /*border: 1px solid red;*/
    }

        .fotoArbol img {
            max-width: 100%;
            max-height: 100%;
            width: auto;
            height: auto;
            display: block;
            object-fit: contain;
        }

        .fotoArbol:empty {
            display: none !important;
        }

    #fotoArbol {
        display: none;
    }

    .miembro[ft-data-tipomiembro="0"]::after {
        top: -6px; /* ajustar según diseño */
        right: 94px; /* ajustar según diseño */
        width: 32px;
        height: 32px;
        background-size: contain;
        z-index: 10;
    }
}


/********  XS  *******/
@media screen and (max-width:500px) {


    #iconosArbol {
        width: 490px;
        height: 75px;
        position: fixed;
        bottom: 10px;
        z-index: 1000;
        display: flex;
        padding: 1rem;
        padding-bottom: calc(1rem + env(safe-area-inset-bottom));
        border-top: 1px solid #ddd;
        justify-content: center;
        align-items: center;
        background-color: #eff8e0;
        gap: 32px;
        /* border:1px solid red;*/
    }

   
    #iconosArbol .accion {
        display: flex;
        flex-direction: row;
        align-items: center;
        cursor: pointer;
        padding: 0;
        z-index: 20;
    }

        #iconosArbol .accion:hover .textoAccion {
            color: #f024bb;
        }

    #iconosArbol .iconoArbol {
        width: 32px;
        height: 32px;
        margin-right: 5px;
        vertical-align: middle;
        display: inline-block;
        /* Solución: elimina margin-bottom y usa align-self para centrar verticalmente */
        margin-bottom: 0;
        align-self: center;
    }

        #iconosArbol .textoAccion {
            font-size: 16px;
            vertical-align: middle;
            margin: 0;
            padding: 0;
            line-height: 32px;
            display: inline-block;
            /* Solución: asegúrate de que esté centrado verticalmente */
            align-self: center;
        }



    .leyendaDatos {
        /* font-size: 110%;*/
        /* font-weight: 200;*/
        font-size: 14px;
        height: 40px;
        overflow-y: hidden;
    }

    #arbol {
        /* margin-top: 150px;*/
        overflow-y: scroll;
        padding-top: 25px;
        padding-bottom: 20px;
         /*border:1px solid red;*/
    }

    #ventanaArbol {
        /* border:1px solid blue;*/
    }

    #cuerpoVentanaArbol {
        margin-top: 0px;
    }


    .linAscenD {
        width: 27px;
        height: 60px;
        top: -10px;
        left: -2.5px;
    }

    .linAscenC {
        width: 26.55px;
        height: 60px;
        top: -10px;
        left: 92px;
    }


    .linVertical {
        width: 2px;
        height: 1px;
        top: 150px;
        left: 117.5px;
    }

    .arcada {
        height: 27px;
        width: 110px;
        top: 130px;
        left: 62px;
    }

  

    #tituloLemaFamilia {
        position: absolute;
        top: 220px;
        left: 400px;
        text-align:center;
    }

        #tituloLemaFamilia .titulo {
            font-size: 20px;
            font-weight: bold;
        }

        #tituloLemaFamilia .lema {
            font-size: 16px;
            font-weight: normal;
        }


        #containerVentanaArbol{

            overflow:hidden;


        }

    #extraArbol {
        
        position: absolute;
        top: 0px;
        left: 0px;
       /* width: 200px;*/
        z-index: 20;
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    .fotoArbol {
        position:absolute;
        width: 120px;
        height: 120px;
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;
       /* background-color: #f3f3f3;*/
        margin-left: 15px;
       /* border: 1px solid red;*/
    }

        .fotoArbol img {
            max-width: 100%;
            max-height: 100%;
            width: auto;
            height: auto;
            display: block;
            object-fit: contain;
        }

        .fotoArbol:empty {
            display: none !important;
        }

    #fotoArbol{

        display:none;
    }

    .miembro[ft-data-tipomiembro="0"]::after {
        top: -10px; /* ajustar según diseño */
        right: 84px; /* ajustar según diseño */
        width: 32px;
        height: 32px;
        background-size: contain;
        z-index: 10;
    }
}

/* FIN MEDIA QUERIES*/
/*******************************************************************/








#imgFavorito {
    /*right: 40px;
    
    top: 145px;*/
}

/*   #imgFavorito:hover {
        width: 52px;
    }
*/
#imgCompartir {
    /* right: 40px;
   
    top: 62px;*/
}

/*   #imgCompartir:hover {
        width: 52px;
    }*/


.iconoArbol {
    /* position: absolute;*/

    z-index: 10;
    /* width: 50px;
*/
    /*width: 40px;*/
}

/*  .iconoArbol:hover {
        width: 42px;
    }*/


#iconosArbol {
   /* z-index: 11;*/
    /* width: 50px;
    right: 40px;
    top: 62px;*/
    /* border:1px solid red;*/
}




/******************************************************************/
/***********************************   ARBOL   ********************/
/******************************************************************/
#arbol {
    /*border: 0.5px solid red;*/
    position: relative;
}

#cuerpoVentanaArbol {
    /*margin-left:0px;
    margin-right:0px;*/
}



#ventanaArbol .loading {
    /* border:1px solid red;*/
    width: 640px;
    width: 50%;
    height: 600px;
    position: absolute;
    z-index: 1000;
    background-color: white;
    text-align: center;
    display: none;
    margin-top: -5px;
    margin-left: -10px;
}

#ventanaArbol .error {
    /* border:1px solid red;*/
    width: 640px;
    width: 50%;
    height: 600px;
    position: absolute;
    z-index: 900;
    background-color: white;
    text-align: center;
    display: none;
    margin-top: -5px;
    margin-left: -10px;
}

#textoErrorArbol {
    background-color: #eff8e0;
    width: 400px;
    margin: 0 auto;
    padding: 20px;
    margin-top: 100px;
}


#bErrorArbol {
    height: 30px;
    float: none;
    position: relative;
    margin: 0 auto;
    padding-top: 5px;
    margin-top: 20px;
}











/******************************************************************/
/***********************************   RAMA  ********************/
/******************************************************************/


.rama {
    /*border:1px solid green;*/
    margin: 0;
    display: none;
}


/******************************************************************/
/***********************************   SECCION  ********************/
/******************************************************************/



/*  NUEVO  */

.seccion {
    position: relative;
    width: 240px;
    height: 150px;
    /*Sin Flechas: */
    /*height:110px;*/
    /*border:1px solid blue;*/
    display: inline-block;
    margin: 0;
}

.comunSeccion {
    /*border:1px solid red;*/
    position: absolute;
    top: -18px;
    top: -5px;
}

#seccion {
}

.miembro {
    position: relative;
    padding: 0px;
    /*display:inline-block;
    width:48%;*/
    /*border: 1px solid red;*/
    height: 105px;
    padding-top: 15px;
}

/*.cajaMiembro{
    width:100%;
}

.cajaFlecha{
    height:15px;
    
}
.cajaMain {
    height: 105px;
}*/
/*.cajaArco {
    height: 15px;
}*/

.circuloMiembro {
    position: relative;
    margin: 0 auto;
    width: 70px;
    height: 70px;
    border-radius: 35px;
    overflow: hidden;
    border: 2px solid #82a542;
    /*border-width:2px;*/
    /*border: 3px solid #808080;*/
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2;
    box-shadow: 2px -2px 2px 2px #eff8e0;
    box-shadow: 2px -2px 100px 10px #eff8e0;
    box-shadow: 2px -2px 100px 10px #82a542;
}

.imgMiembro {
    position: relative;
    width: 70px;
    height: 70px;
    z-index: 2;
    object-fit: cover;
    cursor: pointer;
    /*box-shadow:3px 3px 5px 5px black inset;*/
}

    .imgMiembro:hover {
        width: 72px;
        height: 72px;
    }



.leyendaDatos {
    left: -10px;
    color: #0377aa;
    text-align: center;
}


.flecha {
    position: absolute;
    /*width: 30px;
    height: 30px;
    top: -17px;
    left: 45px;*/
    width: 22px;
    height: 22px;
    top: -5px;
    left: 50px;
    z-index: 10;
}

    .flecha:hover {
        top: -8px;
        left: 48px;
    }


    .flecha img {
        width: 32px;
        margin-top: -10px;
        opacity: 0.3;
    }

        .flecha img:hover {
            width: 34px;
            margin-top: -10px;
            opacity: 1.0;
            cursor: pointer;
        }

.oreja {
    width: 22px;
    height: 22px;
    border-radius: 11px;
    /*border:1px solid red;*/
    /*background-color: #82a542;*/
    border: 8px solid #82a542;
    cursor: pointer;
    position: absolute;
    top: 6px;
    left: 80px;
    opacity: 0.3;
    display: none;


}

    .oreja:hover {
        opacity: 1.0;
        width: 22px;
        height: 22px;
        border-radius: 11px;
    }


.miembro::after {
    content: "";
    position: absolute;
    top: 0px; /* ajustar para alinear con el círculo */
    right: 85px; /* ajustar según diseño */
    width: 26px;
    height: 26px;
    /* background-image: url("../Images/support/corona.png");*/
    background-image: var(--after-bg, url("../Images/support/corona.png"));
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    pointer-events: none;
    z-index: 10;
}

/* Corona: posición especial cuando ft-data-tipomiembro="0" */


.miembro.corona-hidden::after {
    content: none;
}



.textoRelacion {
    position: absolute;
    width: 100px;
    height: 20px;
    top: 15px;
    left: 70px;
    background-color: white;
    font-size: 90%;
    color: #0377aa;
    z-index: 3;
    border: 1px solid #7596a5;
    padding-top: 3px;
    text-align: center;
    display: none;
}


.logoRelacion {
    position: absolute;
    width: 30px;
    height: 30px;
    top: 40px;
    left: 105px;
}

    .logoRelacion img {
        width: 30px;
        opacity: 0.5;
    }

        .logoRelacion img:hover {
            width: 32px;
            opacity: 0.9;
        }

.linHorizontal {
    position: absolute;
    width: 84px;
    height: 2px;
    top: 50px;
    left: -60px;
    background-color: #996666;
}



.linAscenD {
    position: absolute;
    border: 2px solid #996666;
    border-top: none;
    border-right: none;
    border-radius: 0 0 0 20px;
    /* width: 27px;
    height: 64px;
    top: -14px;
    left: -2.5px;
   */
}

.linAscenC {
    position: absolute;
    border: 2px solid #996666;
    border-top: none;
    border-left: none;
    border-radius: 0 0 20px 0;
    /*  width: 26.55px;
    height: 64px;
    top: -14px;
    left: 92px;*/
}


.linVertical {
    position: absolute;
    background-color: #996666;
    /*width: 2px;
    height: 1px;
    top: 146px;
    left: 117.5px;*/
}

.arcada {
    position: absolute;
    overflow: hidden;
    /*  height: 27px;
    width: 110px;
    top: 122px;
    left: 62px;*/
}



    .arcada img {
        width: 110px;
    }
