* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.wrap {
    margin: auto;
    width: 90%;
    max-width: 1900px;
}

.wrap p {
    font-size: 18px;
}

header {
    width: 100%;
    position: fixed;
}

.header-top {
    width: 100%;
    max-width: 1800px;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 10;
    pointer-events: none;
    /* Let clicks pass through to nav if needed, but we'll align it better */
}

.header-top h1 {

    font-size: 60px;
    color: white;
}


.index-top {
    width: 100%;
    max-width: 1800px;
    position: absolute;
}

header nav ul li span {
    margin-right: 10px;
}

header nav ul li a:hover {
    background: #273642;
}

header nav ul li a {
    color: #EAE4E5;
    padding: 20px;
    display: block;
    text-decoration: none;
    font-family: "Anonymous Pro";
}

header nav ul li {
    float: right;
}

header nav ul img {
    padding: 0;
    float: right;
    width: 50px;
    height: 50px;
    margin: auto;
    position: relative;
}

header nav ul {
    overflow: hidden;
    list-style: none;
}

header nav {
    background-color: rgba(39, 73, 88, 0.9);
    box-shadow: 0px 0px 6px 0px rgba(0, 0, 0, 0.22);
    position: relative;
}

/* Estilo para el contenedor */
.dropdown {
    position: relative;
    display: inline-block;
    margin-left: 20px;
    pointer-events: auto;
}

/* Estilo del botón */
.dropdown-button {
    background-color: #007BFF;
    color: white;
    padding: 10px 20px;
    font-size: 16px;
    border: none;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.dropdown-button:hover {
    background-color: #0056b3;
}


.menu_btn a,
.menu_btn {
    display: none;
}

.logo img {
    width: 12%;
    height: auto;
    margin-top: 5px;
    margin-left: 10px;
    box-shadow: 0px 0px 6px 0px rgba(0, 0, 0, 0.28);
}

.navegacion {
    width: 90%;
    max-width: 1000px;
    margin: 10px auto;
    padding: 12px 0;
    margin-top: 4%;
    pointer-events: none;
}

.index_navegacion {
    width: 90%;
    max-width: 1000px;
    margin: auto;
    padding: 12px 0;
    margin-top: 4%;
}

input[type="search"] {
    display: inline-block;
    padding: 8px 15px;
    border: 1px solid #ccc;
    margin-top: 7%;
    border-radius: 20px;
    font-family: "Anonymous Pro";
    background-color: rgba(255, 255, 255, 0.8);
    width: 200px;
    outline: none;
    transition: width 0.3s ease;
    pointer-events: auto;
}

input[type="search"]:focus {
    width: 250px;
    background-color: #fff;
}

.search {
    width: 35%;
    max-width: 1000px;
    margin: auto;
    background: #fff;
    padding: 0 10px 5px;
    max-height: 85%;
    overflow-x: hidden;
    display: none;
    font-family: "Anonymous Pro";

}

.search-table {
    margin-top: 10%;
    width: 100%;
}

tbody tr td {
    width: 100%;
}

tbody tr td a {
    text-decoration: none;
    font-size: 18px;
    color: #737373;
    display: block;
    width: 100%;
    height: 100%;
    padding: 20px 0 20px 20px;
    border: none;
}


tr td a:hover {
    border: 1px solid #378FD9;
}

.search::-webkit-scrollbar {
    background: transparent;

}

.search::-webkit-scrollbar-thumb {
    background: #C1C1C1;
}

.dataTables_length,
.dataTables_filter,
.dataTables_info,
.dataTables_paginate {
    display: none;
}

.videosPromo img {
    margin-top: 7%;
}


header {
    position: relative;
}

.sdoParrafo h4 {
    text-align: justify;
    font-family: "Anonymous Pro";
}

.sdoParrafo h4 {
    margin-top: 1%;
    text-align: justify;
    font-family: "Anonymous Pro";
}

@media screen and (max-width: 800px) {
    header nav {
        width: 100%;
        height: 100%;
        left: -100%;

        position: fixed;
    }

    header nav ul {
        margin-top: 60%;

    }

    header nav ul li {
        display: block;
        float: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    }


    .menu_btn {
        display: block;
        width: 100%;
        background: #e2e2e2;
    }

    .menu_btn .boton {
        display: block;
        padding: 25px;
        background-color: rgba(39, 73, 88, 0.9);
        text-decoration: none;
        color: #EAE4E5;
        font-weight: bold;
        font-size: 25px;
        font-family: "Anonymous Pro";
    }

    .menu_btn span {
        float: right;
        font-size: 38px;
    }

    .slider ul {
        display: flex;
        padding: 0;
        width: 400%;
        animation: cambio 20s infinite;
    }

    .wrap a {
        font-size: 58%;
    }

    nav img {
        width: 10px;
        height: 10px;
        box-shadow: 0px 0px 6px 0px rgba(0, 0, 0, 0.28);
    }

    .videosPromo img {
        margin-top: 20%;
    }

    /*index-------------------*/

    .products-list_index {

        display: block;
        width: 25%;
        height: auto;
        margin-top: 26%;
        margin-left: none;
        justify-content: space-between;
        /* Espacio entre imágenes (puedes cambiarlo a `center` o `flex-start`) */
        align-items: center;
        /* Alinea verticalmente si las imágenes tienen diferentes alturas */
        gap: 0px;
        /* Espaciado entre imágenes */
        opacity: 0.6;
        /* Transparencia: 0 es completamente transparente, 1 es completamente opaco */
    }

    .products-list .products-item_index {
        box-shadow: 0 0 6px rgba(0, 0, 0, 0.22);
        display: flex;
        flex-direction: column;
        align-items: center;
        font-family: "Anonymous Pro";
        padding: 0%;
    }

    .products-item_index iframe {
        max-width: 800px;
        /* Limita el tamaño máximo del video */
        aspect-ratio: 16 / 9;
        /* Mantiene la relación de aspecto 16:9 */
    }


    /*------------------------*/


    .products-list {

        flex-direction: column;
        display: flex;
        width: auto;
        height: auto;
        font-family: "Anonymous Pro";
        font-size: 5%;
        align-items: center;
        /* Alinea verticalmente si las imágenes tienen diferentes alturas */
        gap: 1px;
        /* Espaciado entre imágenes */
        /*opacity: 0.7;  Transparencia: 0 es completamente transparente, 1 es completamente opaco */
        position: static;
    }

    .products-list p {

        font-family: "Anonymous Pro";
        font-size: 15px;
    }

    .products-list h2 {

        font-family: "Anonymous Pro";
        font-size: 15px;
    }

    .products-list h1 {

        font-family: "Anonymous Pro";
        font-size: 15px;
    }

    .products-list li {

        font-family: "Anonymous Pro";
        font-size: 15px;
    }


    .products-list .products-item {
        margin: 0%;
        margin-left: 1%;
        width: 77%;
        margin-bottom: 2%;
        display: flex;
        flex-direction: column;
        font-family: "Anonymous Pro";
    }


    .products-list .products-item img,
    .products-item img {
        width: 100%;
        height: auto;
        position: static;
    }

    .products-list .products-item a {
        position: static;
        display: block;
        width: 100%;
        padding: 20px 0;
        color: grey;
        text-align: center;
        text-decoration: none;
        font-size: 30px;
    }



    /* Estilo para el contenedor */
    .dropdown {
        position: relative;
        display: inline-block;
        margin: 2px;
    }

    /* Estilo del botón */
    .dropdown-button {
        background-color: #007BFF;
        color: white;
        padding: 4% 3%;
        font-size: 11px;
        border: none;
        cursor: pointer;
        border-radius: 2px;
        transition: background-color 0.3s ease;
    }

    .dropdown-button:hover {
        background-color: #0056b3;
    }

    /* Estilo del menú */
    .dropdown-menu {
        display: none;
        /* Oculto por defecto */
        position: absolute;
        background-color: white;
        min-width: 160px;
        box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.2);
        z-index: 1;
        padding: 0;
        margin: 0;
        list-style: none;
        border-radius: 5px;
        overflow: hidden;
    }

    /* Estilo para los elementos de la lista */
    .dropdown-menu li {
        border-bottom: 1px solid #ddd;
    }

    .dropdown-menu li:last-child {
        border-bottom: none;
    }

    .dropdown-menu li a {
        color: black;
        padding: 10px 15px;
        text-decoration: none;
        display: block;
        transition: background-color 0.3s ease;
    }

    .dropdown-menu li a:hover {
        background-color: #f1f1f1;
    }

    /* Mostrar el menú cuando se active */
    .dropdown.active .dropdown-menu {
        display: block;
    }

    .header-top h1 {
        margin-top: 4%;
        margin-right: 20%;
        font-size: 20px;
        color: white;
    }

    .category_list {
        width: 100px;
        font-size: 100%;
    }

    .logo_imge img {
        width: 70px;
        margin-left: 20px;
    }

    .wrap .index_navegacion {
        position: absolute;
        margin-top: -40%;
    }

    .index_navegacion h2 {
        margin-top: 0%;
        margin-left: 5%;
        margin-right: 35%;
        font-size: 25px;
        color: white;
        font-family: "Anonymous Pro";
        text-align: left;
    }

    .dropdown {
        margin-top: 0%;
        margin-left: 5%;
    }


    .products-item .escudo img {
        width: 55%;
        margin-left: 20%;
        height: auto;
        position: static;
    }

    .products-list {
        display: flex;
        padding: 1%;
        margin-left: auto;
        margin-right: auto;
        justify-content: center;
        /* Centra horizontalmente */
        align-items: center;
        /* Centra verticalmente */
        position: static;
    }

    .staticImg {
        display: flex;
        padding: 0;
        width: 0%;
        margin-top: 0%;
        animation: cambio 80s infinite;
    }


    .centraImg img {
        width: 100%;
        margin-left: 0%;
        margin-right: auto;
    }

    .sdoParrafo h4 {
        text-align: justify;
        font-family: "Anonymous Pro";
    }

    .sdoParrafo h4 {
        margin-top: 1%;
        text-align: justify;
        font-family: "Anonymous Pro";
    }

    .sdoParrafo p {
        margin-top: 1%;
        text-align: justify;
        font-family: "Anonymous Pro";
        margin-left: 2%;
        margin-left: 2%;
    }

    .search-table {
        margin-top: 60%;
        width: 100%;
    }
}


/* Investigators Section Grid */
.profiles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding: 20px;
    width: 95%;
    margin: 40px auto;
    align-items: stretch;
}

.profile {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
    border-top: 6px solid #274958;
    height: 100%;
}

.profile:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.profile img {
    width: 160px;
    height: 160px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 25px;
    border: 4px solid #f0f0f0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.profile-content {
    display: flex;
    flex-direction: column;
    width: 100%;
    flex-grow: 1;
}

.profile h1 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #274958;
    text-align: center;
    margin-bottom: 25px;
    font-family: 'Fira Sans Condensed', sans-serif;
    min-height: 2.8em;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.profile-details {
    list-style: none;
    padding: 0;
    width: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.profile-details li {
    font-size: 0.82rem;
    color: #555;
    line-height: 1.5;
    font-family: 'Parkinsans', sans-serif;
    display: flex;
    flex-direction: column;
    border-bottom: 1px solid #f5f5f5;
    padding-bottom: 10px;
}

.profile-details li:last-child {
    border-bottom: none;
}

.profile-details li strong {
    color: #274958;
    font-size: 0.72rem;
    text-transform: uppercase;
    margin-bottom: 5px;
    letter-spacing: 0.8px;
    font-weight: 800;
}

.profile-details li span {
    display: block;
    min-height: 1.2em;
}

/* Container for text blocks */
.content-container {
    width: 85%;
    max-width: 1100px;
    margin: 50px auto;
    padding: 30px;
    background: #fdfdfd;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.03);
}

.content-container p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
}

/* Responsive Overrides (Cleaning up) */
@media screen and (max-width: 800px) {
    .profiles-grid {
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
        gap: 20px;
        width: 98%;
    }

    .profile {
        padding: 20px 15px;
    }

    .profile img {
        width: 140px;
        height: 140px;
    }

    .content-container {
        width: 95%;
        padding: 20px;
    }
}

@media screen and (max-width: 480px) {
    .profiles-grid {
        grid-template-columns: 1fr;
    }
}