: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;
}

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: 3.5em;
    width: 10em;
    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;
}
/* Opcional: indicar que tiene submenú con una flecha */
.dropdown-submenu > a::after {
    content: " ▸";
    float: right;
}
/* 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;
}

/* Redes sociales */
.social-sidebar {
    position: fixed;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    background-color: rgba(30, 52, 97, 0.9);
    padding: 0.6rem;
    border-radius: 12px 0 0 12px;
    z-index: 1000;
}

.social-sidebar a {
    display: block;
    margin: 0.5rem 0;
    color: white;
    font-size: 1.4rem;
    text-align: center;
    transition: transform 0.3s;
}

.social-sidebar a:hover {
    transform: scale(1.2);
}

.carousel {
    position: relative;
    width: 100%;
    max-width: 900px;
    height: 400px;
    margin: 2em auto;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}



.profesor {
    background-color: var(--azul);
    color: white;
    display: flex;
    flex-wrap: wrap;
    align-items: center; /* ← Esto centra verticalmente los hijos */
    justify-content: center;
    padding: 3em 2.1em;
    gap: 1em;
    font-size: 1.4em;
    text-align: left;
    flex-direction: row;
}

.profesor h2 {
    text-align: center;
}
.profesor p {
    text-align: justify;
}
.video-container {
width: 600px;
height: 340px;
overflow: hidden;
margin: 0 auto;
border-radius: 8px; /* Opcional: esquinas redondeadas */
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3); /* Opcional: sombra elegante */
background-color: black;
}
.video-ajustado {
width: 100%;
height: 100%;
object-fit: cover;
border: none;
outline: none;
display: block;
}
.video-container {
    width: 45%;
    min-width: 300px;
}

.profesor-info {
    width: 45%;
    min-width: 300px;
}

.contenedor-boton {
    width: 100%;
    text-align: center;
}
.boton-conocerme {
    display: inline-block;
    margin-top: 1.2em;
    padding: 0.6em 1.4em;
    background-color: #D85918;
    color: white;
    border-radius: 8px;
    font-weight: bold;
    font-size: 0.9em;
    text-decoration: none;
    transition: all 0.3s ease;
}
.boton-conocerme:hover {
    background-color: white;
    color: #D85918;
}
@media (max-width: 768px) {
.profesor {
    flex-direction: column;
    align-items: center;
}

.video-container,
.profesor-info {
    width: 100%;
}
}


.noticias {
    background-color: white;
    padding: 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* Flexible */
    gap: 1.5em;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}
.noticias p {
    text-align: justify;
}

.noticia {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    background: white;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    aspect-ratio: 4 / 3;
}

.noticia img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.noticia:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 2;
}

.noticia .titulo {
    position: absolute;
    bottom: 0;
    width: 100%;
    background: rgba(0,0,0,0.6);
    color: white;
    padding: 0.5rem;
    text-align: center;
    font-weight: bold;
    z-index: 1;
}

.noticia .info-hover {
    position: absolute;
    top: 0;
    left: 0; /* que cubra toda la tarjeta */
    width: 100%;
    height: 100%;
    background: rgba(30,52,97,0.95);
    color: white;
    padding: 1rem;
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    transition: all 0.3s ease;
    z-index: 2;
    border-radius: 12px; /* opcional: redondeado */
}

.noticia:hover img {
    transform: scale(1.05);
}

.noticia:hover .titulo {
    display: none;
}

.noticia:hover .info-hover {
    display: flex;
}

.noticia.destacada {
    grid-column: span 2;
    grid-row: span 2;
}

.mas-noticias {
    display: flex;
    justify-content: center;
    margin: 2em 0;
}

.mas-noticias button {
    background-color: #D85918;
    color: white;
    padding: 1em 2em;
    font-size: 1.2em;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

/* RESPONSIVE: ≤768px → todo en columna */
@media (max-width: 768px) {
    .noticias {
        grid-template-columns: 1fr;
    }

    .noticia.destacada {
        grid-column: auto;
        grid-row: auto;
    }
}



.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% */
} 