/*HEADER*/
header {
    background: url(../images/Top-100.png) no-repeat;
    color: white;
    padding: 10px;
    text-align: center;
    background-size: cover;
    background-position: left;
    margin-bottom: 20px;
}

@media (min-width: 700px) {
    header {
        background-position: right;
    }
}

.header-container {
    display: flex;
    flex-direction: column;
}

.header-row {
    display: flex;
    align-items: center;
    justify-content: space-around;
    flex-direction: column;
}

.header-links a {
    display: block;
}

.m-none {
    display: none;
}

@media (min-width: 700px) {
    .header-row {
        flex-direction: row;
    }

    .header-links a {
        display: inline-block;
    }

    .m-none {
        display: unset;
    }

    .link-2 {
        margin-left: 5px;
    }
}

header a {
    color: white;
    text-decoration: none;
}

img#top100 {
    max-width: 567px;
    width: 100%;
}

.header-row2 {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    max-width: 999px;
    margin: 80px 100px;
}

@media (min-width: 700px) {

    .link-1,
    .link-2,
    .link-3,
    .link-4 {
        margin: 0 40px;
    }

    .link-1 {
        margin-left: 0px;
        margin-right: 5px;
    }

    .link-2 {
        margin-left: 5px;
    }

    .link-4 {
        margin-right: 0px;
    }
}

div#slogan {
    font-size: 16px;
    margin-top: 30px;
    max-width: 340px;
    text-align: left;
}

/*END HEADER*/

/*SEARCH BAR */
#search-container {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    margin-bottom: 30px;
    padding: 15px;
}

h1 {
    margin-bottom: 10px;
    margin-top: 10px;
}

.filters {
    text-align: center;
}

@media (min-width: 700px) {
    #search-container {
        flex-direction: row;
        justify-content: center;
    }

    .filters {
        text-align: left;
    }
}

.search-input {
    appearance: none;
    -moz-appearance: none;
    -webkit-appearance: none;
    background: #f3f3f3;
    border: none;
    border-radius: 50px;
    padding: 10px;
    color: #818181;
    min-width: 150px;
    max-width: 300px;
    margin: 0 10px;
    font-size: 15px;
}

.search-viewall {
    appearance: none;
    -moz-appearance: none;
    -webkit-appearance: none;
    background: #041d72;
    color: white;
    border: none;
    border-radius: 50px;
    padding: 10px 50px;
    font-size: 15px;
}

div#pagination {
    display: flex;
}

#pagination button {
    color: #041D72;
    border: solid #041D72 1px;
    margin: 5px;
    text-align: center;
    width: 47px;
    height: 47px;
    border-radius: 50%;
    line-height: 40px;
}

#pagination .active-page {
    background: #041D72;
    color: white;
}

#icon-container {
    margin: 15px auto;
    width: 100%;
    max-width: 1100px;
    padding: 15px;
}

.iconitem {
    display: inline-block;
    margin-right: 20px;
    margin-bottom: 10px;
    color: gray;
    font-size: 14px;
}

/* END SEARCH BAR */

/*TABLE*/
#table-container,
h1 {
    margin: auto;
    width: 100%;
    max-width: 1100px;

}

#table-header.table-row {
    padding: unset;
}

.table-row {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: stretch;
    border-bottom: solid 1px #041d72;
    padding: 10px 0;
}

h1 {
    color: #041D72;
    font-size: 42px;
}


.medico.table-cell {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    flex-wrap: wrap;
}

.medico {
    width: 100%;
}

.especialidad {
    width: 100%;
    text-align: center;
}

.numeros {
    width: 50%;
    display: flex;
    flex-direction: column;
    text-align: center;
    align-items: center;
}

.datos {
    width: 50%;
    display: flex;
    flex-direction: column;
    text-align: center;
}

#table-header .datos {
    width: 100%;
}



.instagram,
.tiktok,
.youtube {
    width: 15%;
    text-align: center;
}

.comunidad {
    width: 55%;
}



#table-header {
    text-align: center;
}

#table-header .table-cell {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

#table-header .medico,
#table-header .especialidad {
    background: #041D72;
    color: white;
    padding: 10px;
}



#table-header .instagram,
#table-header .tiktok,
#table-header .youtube {
    background: black;
    color: white;
    padding: 10px;
    writing-mode: sideways-lr;
    text-align: end;
}

#table-header .instagram {
    background: #9233BC;
    background: -webkit-linear-gradient(180deg, rgba(146, 51, 188, 1) 0%, rgba(255, 110, 96, 1) 100%);
    background: -moz-linear-gradient(180deg, rgba(146, 51, 188, 1) 0%, rgba(255, 110, 96, 1) 100%);
    background: linear-gradient(180deg, rgba(146, 51, 188, 1) 0%, rgba(255, 110, 96, 1) 100%);
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#9233BC", endColorstr="#FF6E60", GradientType=0);
}

#table-header .youtube {
    background: #FF0606;
}

#table-header .comunidad {
    background: #7C73E9;
    color: white;
    padding: 10px;
}


.num {
    font-size: 40px;
    color: #041D72;
}

.icons {
    padding-top: 17px;
}

.name {
    font-size: 23px;
    color: #818181;
    padding-top: 13px;
    width: 100%;
}

.especialidad {
    font-size: 16px;
    color: #818181;
    padding-top: 18px;
}

.instagram,
.tiktok,
.youtube {
    font-size: 16px;
    color: #818181;
    padding-top: 18px;
}

.comunidad {
    font-size: 15px;
    color: #041D72;
    padding-top: 18px;
    text-align: center;
    font-weight: bold;
}

.nickname {
    color: #7c70e7;
}

.inactivo {
    filter: grayscale(1);
    opacity: .5;
}

@media (min-width: 700px) {
    .table-row {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        align-items: stretch;
        border-bottom: none;
    }

    .numeros {
        display: flex;
        flex-direction: row;
        align-items: unset;
        width: 30%;
    }

    .datos {
        width: 70%;
        display: flex;
        flex-direction: row;
    }

    .especialidad {
        width: 30%;
        text-align: center;
    }

    .medico.table-cell {
        flex-wrap: nowrap;

    }

    .medico {
        width: 70%;
    }

    .instagram,
    .tiktok,
    .youtube {
        width: 30%;
        text-align: center;
    }

    .comunidad {
        width: 40%;
    }

    .num {
        width: 15%;
    }

    .icons {
        width: 35%;
        text-align: left;

    }

    .name {
        width: 50%;
        text-align: left;
    }

    #table-header .medico {
        width: 70%;
    }

    #table-header .especialidad {
        width: 30%;
    }

}

@media (min-width: 1000px) {
    .datos {
        width: 96%;
    }
}

@media (max-width: 700px) {

    #table-header .numeros,
    #table-header .especialidad {
        display: none;
    }
}

/*END TABLE*/
#iframe {
    width: 100vw;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 2000;
}

#metodologyContent {
    background: white;
}

#closeMetodology {
    position: fixed;
    right: 30px;
    top: 10px;
    background: #2D135E;
    color: #fff;
    z-index: 2000;
    display: block;
    padding: 10px 16px;
    border-radius: 50%;
    cursor: pointer;
}

#metodologyContent {
    background: white;
    font-family: sans-serif;
    color: #030348;
    margin: 30px;
}

body.modal-open .private {
    filter: blur(15px);
}

@media (max-width: 700px) {

    .instagram:before {
        content: url(../images/ig.png);
        margin-right: 10px;
    }

    .tiktok:before {
        content: url(../images/tt.png);
        margin-right: 10px;
    }

    .youtube:before {
        content: url(../images/yt.png);
        margin-right: 10px;
    }

    .comunidad:before {
        content: "Comunidad acumulada: ";
        margin-right: 10px;
        font-size: 13px;
    }

    .tiktok.table-cell,
    .instagram.table-cell,
    .youtube.table-cell {
        display: flex;
        align-items: center;
    }
}

#metodology {
    cursor: pointer;
}

/*FOOTER*/
footer {
    color: #CCCCFF;
    font-size: 16px;
    font-weight: lighter;
    text-transform: uppercase;
    background-color: #6043d3;
    font-weight: 500;
}

footer a {
    color: white;
    text-decoration: none;

}

/*END FOOTER*/
.contenedor-imagen {
    position: relative;
    display: inline-block;
    /* O display: block; si quieres que ocupe todo el ancho */
    text-align: center;
    /* Opcional, si quieres centrar el texto dentro del contenedor */

}

.texto-sobre-imagen {
    display: none;
    position: absolute;
    top: 10px;
    /* Distancia desde la parte superior */
    left: 10px;
    /* Distancia desde la izquierda */
    color: white;
    /* Para que se vea el texto sobre la imagen */
    background-color: rgba(0, 0, 0, 0.5);
    /* Fondo semitransparente para mejorar legibilidad */
    padding: 5px;
    font-weight: bold;
}

.contenedor-imagen:hover+.texto-sobre-imagen {
    display: block;
    /* Muestra el div al pasar el mouse sobre .trigger */
}

.colicon {
    width: 20px;
    display: inline-block;
}

#h1-container {
    margin: 40px 0;
    padding: 15px;
}