:root {
    --naranja: #D85918;
    --azul: #1E3461;
    --blanco: #ffffff;
    --grisClaro: #cacacad5;
    --color-primario: #1a1a2e;
    --color-secundario: #16213e;
    --color-acento: #0f3460;
}

* {
    box-sizing: border-box;
}
    
body {
    margin: 0;
    padding: 0;
    font-family: 'Montserrat', sans-serif;
    background-color: black;
    color: #333;
}

header {
background: linear-gradient(135deg, var(--color-secundario), var(--color-secundario));
color: white;
padding: 3em 1em;
text-align: center;
}

header h1 {
font-size: 2.8em;
margin-bottom: 0.4em;
}

header p {
font-size: 1.2em;
color: #ccc;
}


.logo {
    background-color: transparent;
    height: 3.5em;
    width: 10em;
    object-fit: cover;
    justify-content: center;
    align-items: center;
}
.login-btn {
    background-color: white;
    color: #D85918;
    padding: 0.6em 1.2em;
    font-weight: bold;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-size: 1em;
    text-decoration: none;
}
.social-login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 2em;
}
.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);
}

nav {
    position: sticky;
    top: 0px; 
    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;
    box-shadow: 0 2px 10px #94a9df;
}
.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 0.8em;
    transition: all 0.18s ease;
    position: relative;
}
.nav-links a:hover {
    background-color: var(--color-secundario);
    color: white;
    font-size: 1.08em;
    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: 1;
    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: var(--color-secundario);
    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: 1;
}
/* 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;
}

footer {
    background-color: var(--color-secundario);
    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: #D85918;
    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);
}

.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;
    font-weight: bold;
    padding: 0.5em 1em;
    transition: all 0.18s ease;
    position: relative;
}
.login a:hover {
    background-color: #D85918;
    color: white;
    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;
}



    /* Base styles para ocultar con transición */
    .dropdown-content,
    .dropdown-subcontent,
    .dropdown-subsubcontent {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0s linear 0.3s;
    }
    /* Mostrar en hover con transición */
    .dropdown:hover .dropdown-content {
    opacity: 1;
    visibility: visible;
    transition-delay: 0s;
    }
    .dropdown-submenu:hover .dropdown-subcontent {
    opacity: 1;
    visibility: visible;
    transition-delay: 0s;
    }
    .dropdown-subsubmenu:hover .dropdown-subsubcontent {
    opacity: 1;
    visibility: visible;
    transition-delay: 0s;
    }

.container {
display: flex;
flex-wrap: wrap;
max-width: 1200px;
margin: 3em auto;
background: white;
border-radius: 10px;
box-shadow: 0 6px 20px var(--color-secundario);
overflow: hidden;
}

.left-column{
flex: 1;
min-width: 300px;
padding: 2em;
}
.right-column {
flex: 1;
min-width: 300px;
padding: 2em;
background-color: #e9e9e9;
text-align: justify;
}

.left-column img {
width: 100%;
border-radius: 10px;
object-fit: cover;
}

.right-column a {
color: var(--color-destacado);
margin-bottom: 0.5em;
font-size: 2.28em;
display: flex;
justify-content: center;
text-decoration: none;
font-weight: bold;
}
.right-column h2 {
color: var(--color-destacado);
margin-bottom: 0.5em;
font-size: 2.28em;
display: flex;
justify-content: center;
text-decoration: none;
font-weight: bold;
text-align: center;
}
.right-column h3 {
color: var(--color-destacado);
font-size: 1.6em;
margin-bottom: 0.1em;
line-height: 1.7;
}
.right-column p {
font-size: 1.1em;
margin-bottom: 1.2em;
line-height: 1.7;
}
.right-column li {
font-size: 1.1em;
margin-bottom: 1.2em;
line-height: 1.7;
}
@media (max-width: 768px) {
.container {
flex-direction: column;
}

.left-column, .right-column {
padding: 1.5em;
}

header h1 {
font-size: 2em;
}
}

.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;
    margin-left: 15px;
}
.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.08); /* agranda un 10% */
} 

.logo {
    height: 3.5em;
    width: 10em;
    object-fit: cover;
    display: block;
}

.login {
    display: flex;
    align-items: center;
}

#btn-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: var(--color-secundario);
    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;
}

/* Submenús */
.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: var(--color-secundario);
    color: white;
    border-radius: 15px;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown-submenu {
    position: relative;
}

.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;
}

.dropdown-submenu:hover .dropdown-subcontent {
    display: block;
}

.dropdown-submenu > a::after {
    content: " ▸";
    float: right;
}

/* BOTÓN hamburguesa oculto en escritorio */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 2em;
    color: var(--naranja);
    cursor: pointer;
}

/* ====== MÓVIL (<=768px) ====== */
@media (max-width: 768px) {
    #mainNav {
        flex-direction:row; /* logo arriba, menú abajo */
        align-items: flex-start;
    }

    .menu-toggle {
        display: block;
        margin-left: auto;
    }

    .nav-links1,
    .login {
        flex-direction: column;
        align-items: center;
        width: 100%;
        gap: 1em;
    }

    .nav-links1 a,
    .login a {
        width: 100%;
        padding: 1em;
        text-align: center;
        border-bottom: 1px solid var(--grisClaro);
    }

    .nav-links1 a:hover {
        background-color: var(--color-secundario);
        color: white;
        font-size: 1em;
        border-radius: 0;
    }

    .login a:hover {
        background-color: var(--naranja);
        color: white;
        font-size: 1em;
        border-radius: 0;
    }

    /* Ocultar completamente submenús en móvil */
    .dropdown-content,
    .dropdown-subcontent,
    .dropdown-submenu {
        display: none !important;
        visibility: hidden;
        height: 0;
        overflow: hidden;
        padding: 0;
        margin: 0;
    }

    /* Por defecto oculto */
.nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    background-color: white;
    text-align: center;
    padding: 1em 0;
}

/* Al tener la clase "show", se muestra */
.nav-links.show {
    display: flex;
}



    nav, .top-bar {
        align-items: flex-start;
    }
    .nav-links {
        margin-left: 0;
    }
    .top-bar {
        flex-direction: column;
        align-items: center;
    }
    .social-login-container {
        flex-direction: column;
        align-items: center;
    }
}

