:root {
    --naranja: #D85918;
    --azul: #1E3461;
    --blanco: #ffffff;
    --grisClaro: #cacacad5;
    --color-primario: #1a1a2e;
    --color-secundario: #16213e;
    --color-acento: #0f3460;
}

* {
    box-sizing: border-box;
}

body {
    font-family: Arial, Helvetica, sans-serif;  
    margin: 0;
    padding: 0;
    background-color: white;
    -webkit-overflow-scrolling: touch;
    overflow-x: hidden;
}

header {
    background-color: #ffffff;
    padding: 1em;
    position: sticky;
    top: 0;
    box-shadow: 0 2px 6px var(--naranja);
    z-index: 999;
}

nav {
    background-color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    padding: 0.5em 2em;
    gap: 2em;
    margin: 0;
    padding-top: 0%;
    border: none;
}

.logo {
    background-color: transparent;
    height: 5em;
    width: 8em;
    object-fit: cover;
    justify-content: center;
    align-items: center;
}

.login a{
    background-color: white;
    justify-content: center;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5em;
    margin-left: 2em;
    margin: 0;
    padding-top: 0%;
    border: none;
    text-decoration: none;
    color: #D85918!important;
    font-weight: bold;
    padding: 0.5em 1em;
    transition: all 0.18s ease;
    position: relative;
}
.login a:hover {
    background-color: #D85918;
    color: white!important;
    font-size: 1.2em;
    border-radius: 15px;
    margin-top: 2%;
    position: end;
}

#btn-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #D85918;
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 1.5em;
    display: none;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 999;
}

.nav-links {
    background-color: white;
    justify-content: center;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5em;
    margin-left: 2em;
    margin: 0;
    padding-top: 0%;
    border: none;
    
}
.nav-links a {
    text-decoration: none;
    color: black;
    font-weight: bold;
    padding: 0.5em 1em;
    transition: all 0.18s ease;
    position: relative;
}
.nav-links a:hover {
    background-color: var(--naranja);
    color: white;
    font-size: 1.1em;
    border-radius: 15px;
    position: end;
    
}
.dropdown {
    position: relative;
    top: 5px;
    margin-top: -1%;
    padding-top: -10px;
}
.dropdown-content {
    display: none;
    position: absolute;
    top: 140%;
    left: 0;
    background-color: white;
    min-width: 300px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    z-index: 999;
    border-end-end-radius: 15px;
    border-end-start-radius: 15px;
}

.dropdown-content a {
    display: block;
    padding: 0.75em 1em;
    text-decoration: none;
    color: black;
    transition: all 0.2s;
}
.dropdown-content a:hover {
    background-color: #D85918;
    color: white;
    border-radius: 15px;
}
.dropdown:hover .dropdown-content {
    display: block;
}
/* Contenedor del submenú */
.dropdown-submenu {
    position: relative;
}
/* Oculto por defecto */
.dropdown-subcontent {
    display: none;
    position: absolute;
    top: 0;
    left: 100%;
    background-color: white;
    min-width: 250px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    border-radius: 15px;
    z-index: 999;
}
/* Mostrar submenú al hacer hover en el padre */
.dropdown-submenu:hover .dropdown-subcontent {
    display: block;
}
/* Ocultar botón en pantallas grandes */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 2em;
    color: var(--naranja);
    cursor: pointer;
}

/* Mostrar menú como columna en móviles */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
        margin-left: auto;
    }

    nav, .top-bar {
        align-items: flex-start;
    }

    .nav-links {
        display: none;              /* oculto por defecto */
        flex-direction: column;
        align-items: center;
        width: 100%;
        background-color: white;
        text-align: center;
        padding: 1em 0;
        gap: 1em;
    }

    .nav-links.show {
        display: flex;
    }

    .login {
        flex-direction: column;
        align-items: center;
        width: 100%;
        gap: 1em;
        display: flex;
    }

    .login a {
        width: 100%;
        padding: 1em;
        text-align: center;
        border-bottom: 1px solid var(--grisClaro);
    }

    .login a:hover {
        background-color: var(--naranja);
        color: white;
        font-size: 1em;
        border-radius: 0;
    }

    /* Oculta completamente los submenús en móviles */
    .dropdown-content,
    .dropdown-subcontent,
    .dropdown-submenu {
        display: none !important;
        visibility: hidden;
        height: 0;
        overflow: hidden;
        padding: 0;
        margin: 0;
    }

    /* Si quieres mostrar solo el primer nivel de menú (Plataformas) */
    .nav-menu > .dropdown > a {
        display: block;
    }

    .top-bar {
        flex-direction: column;
        align-items: center;
    }

    .social-login-container {
        flex-direction: column;
        align-items: center;
    }
}

.logo-final {
    text-align: center;
    padding: 0.1em 0;
}

.logo-final img {
    height: 320px;
    width: 410px;
}
.social-icons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1em;
}

.social-icons a {
    text-decoration: none;
    color: var(--blanco);
    font-size: 1.8em;
    transition: transform 0.3s ease;
}

.social-icons a:hover {
    transform: scale(1.15);
}
footer {
    background-color: #D85918;
    color: white;
    padding: 1em;
    text-align: center;
}

footer .social-icons {
    margin-top: 1em;
    justify-content: center;
    display: flex;
}

a {
    text-decoration: none;
    color: inherit;
}

.btn-logout {
background-color: white;
justify-content: center;
align-items: center;
flex-wrap: wrap;
gap: 1.5em;
margin-left: 2em;
margin: 0;
padding-top: 0%;
border: none;
text-decoration: none;
color: black;
font-weight: bold;
padding: 0.5em 1em;
transition: all 0.18s ease;
position: relative;
}

.usuario-logueado {
    display: flex;
    align-items: center;
    gap: 0.8em;
}

.usuario-nombre {
    font-weight: bold;
    color: #000000;
    font-size: 1em;
    text-transform: capitalize;
}
.btn-logout {
    background-color: white;
    color: #D85918;
    font-weight: bold;
    padding: 0.4em 0.9em;
    border: 2px solid #D85918;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9em;
}
.btn-logout:hover {
    background-color: #D85918;
    color: white;
}
.btn-logout {
    background-color: white;
    color: #D85918;
    font-weight: bold;
    padding: 0.4em 0.9em;
    border: 2px solid #D85918;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease; /* importante para animar suavemente */
    font-size: 0.9em;
}

/* Al pasar el mouse */
.btn-logout:hover {
    background-color: #D85918;
    color: white;
    transform: scale(1.1); /* agranda un 10% */
} 

h1 {
    color: var(--color-primario);
    margin: 1em;
    text-align: center;
    text-transform: uppercase;
}

.titulo {
    font-size: 18px;
    margin: 5px 0;
    color: #0077cc;
    text-decoration: none;
}

.sesion-info {
background-color: #eee;
padding: 0.4rem 0.8rem;
border-radius: 5px;
font-size: 0.9rem;
}

/* Filtros */
.filtros {
display: flex;
flex-wrap: wrap;
gap: 0.5rem;
margin-bottom: 1.5rem;
}

.filtros input,
.filtros select,
.filtros button {
padding: 0.5rem;
font-size: 1rem;
}

.filtros button {
background-color: #ff8c00;
border: none;
color: white;
cursor: pointer;
border-radius: 5px;
transition: background 0.3s;
}

.filtros button:hover {
background-color: #e67600;
}

.investigacion {
border-bottom: 1px solid #ccc;
padding: 1em;
display: flex;
align-items: center;
gap: 10px;
}
.investigacion i {
font-size: 24px;
color: #555;
}
.investigacion a {
font-size: 18px;
font-weight: bold;
color: #0056b3;
text-decoration: none;
}
.investigacion .fecha {
font-size: 14px;
color: #777;
margin-left: auto;
}
.filtros {
margin-bottom: 1em;
align-items: center;
justify-content: center;
margin: 0.5em;
}
.filtros input, .filtros select {
padding: 0.5em;
margin-right: 0.5em;
}
