/* Estilo de Cuerpo Principal*/
body {
    margin: 0;
    font-family: Arial, sans-serif;
}

/* Header Tecnm*/
.header {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap; 
    background-color: white;
    padding: 10px 20px;
    border-bottom: 2px;
}

.logo-container {
    display: flex;
    align-items: center;
    margin-right: 20px;
    flex-shrink: 0; 
}

.plecaGob, .plecaTecnm {
    height: 50px;
    width: auto;
    max-width: 100%; 
}

.separador {
    width: 2px;
    height: 50px;
    background-color: #CFB084;
    margin: 0 10px;
}

a:focus, a:active, img:focus, img:active {
    outline: none;
}

a:hover {
  color: white; 
  text-decoration: none;
}

/* Menú */
.menu {
    background-color: #274372;
    color: white;
    position: sticky;
    width: 100%;
    z-index: 999;
    top: 50px; 
}

.menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.4rem 1rem;
}

.menu-toggle {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    display: none;
    cursor: pointer;
}

.menu-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.menu-list li {
    position: relative;
}

.menu-list a {
    text-decoration: none;
    color: white;
    padding: 0.5rem 1rem;
    display: block;
}

.menu-item-login {
    margin-left: auto; 
    display: flex;
    align-items: center;
}

.menu-item-login img {
    height: 50px;  
    width: auto;   
    margin-left: 0.5rem; 
    transition: transform 0.3s ease; 
}

.menu-item-login img:hover {
    transform: scale(1.1); 
}

.menu-item-login {
    margin-left: auto;
}

/*  Footer */
.m-footer {
    padding: 70px 0;
    display: flex;
    justify-content: space-evenly;
    background-color: #274372;
    }

.m-footer ul {
    list-style: none;
}

.m-footer h1 {
    font-size: 22px;
    line-height: 117%;
    color: #ffffff;
    margin-bottom: 10px;
    font-weight: 500;
}

.m-footer ul li a {
    color: #ffffffcc;
    text-decoration: none;
}

footer {
    background-color: #274372;
    border-top: 1px solid #ffffff;
    font-size: 17px;
    padding: 15px 5px;
    color: #ffffff;
    text-align: center;
}

footer a {
    text-decoration: none;
    color: #ffffff;
}

.logoinfo p {
    color: #6EB981;
    font-size: 17px;
    margin-top: 5px;
}

.contact-details {
    margin-top: 20px;
}

.contact-details li {
    list-style: none;
    margin: 10px 0;
}

.contact-details li a {
    text-decoration: none;
    color: #f1f1f1;
}

.contact-details .fa {
    color: #f1f1f1;
    margin-right: 10px;
}

.sociallogos {
    padding: 20px 0;
}

.sociallogos .logobox a {
    padding: 0 10px;
    text-decoration: none;
    color: #ffffff;
    font-size: 22px;
}

.com ul li {
    padding: 5px 0;
}

.b_privacidad {
    background-color: #2b4a7b;
    color: #fff;
    border: none;
    padding: 10px 60px;
    cursor: pointer;
    font-size: 12px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.user-menu-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background-color: #274372;
    list-style: none;
    margin: 0;
    padding: 8px 0;              /* Más espacio arriba y abajo */
    min-width: 180px;            /* Más ancho para que no se vea apretado */
    border-radius: 0 0 8px 8px; /* Más redondeo para suavizar */
    box-shadow: 0 4px 12px rgba(0,0,0,0.25); /* Sombra un poco más marcada */
    z-index: 1000;
}

.user-menu-dropdown li a {
    display: block;
    padding: 12px 20px;          /* Más padding para área clic grande */
    color: white;
    text-decoration: none;
    font-size: 1rem;             /* Texto un poco más grande */
    font-weight: 500;
    letter-spacing: 0.03em;      /* Para mejorar lectura */
    transition: background-color 0.3s ease;
}

.user-menu-dropdown li a:hover {
    background-color: #1e3560;
}

#user-menu-button:focus,
#user-menu-button:active,
#user-menu-button:focus-visible {
    outline: none !important;
    box-shadow: none !important;
    border: none !important;
}

.menu-list li.dropdown {
  position: relative;
  display: inline-block;
}

.menu-list li.dropdown .dropbtn {
    cursor: pointer;
    color: white;
    text-decoration: none;
    padding: 10px 15px;
    display: inline-block;
}

.menu-list li.dropdown .dropdown-content {
    display: none;
    position: absolute;
    background-color: #2b4a7b;
    min-width: 150px;
    box-shadow: 0px 8px 16px rgba(0,0,0,0.2);
    z-index: 1;
    border-radius: 5px;
    list-style: none; /* aquí quitamos los puntos */
    margin: 0;
    padding: 0;
}

.menu-list li.dropdown .dropdown-content li {
    list-style: none; /* también por si acaso */
}

.menu-list li.dropdown .dropdown-content li a {
    color: white;
    padding: 10px 15px;
    text-decoration: none;
    display: block;
}

.menu-list li.dropdown:hover .dropdown-content {
    display: block;
}

.menu-list li.dropdown .dropdown-content li a:hover {
    background-color: #1e3659;
}

/* Responsivo Footer */
@media only screen and (max-width: 749px) {
    .m-footer {
        padding: 20px;
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .info {
        padding: 20px 0;
    }
}

@media (max-width: 480px) {
    .main-footer {
        grid-template-columns: 1fr;
    }

    .sociallogos {
        padding: 20px 0;
    }

    .com {
        padding: 20px 0;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .menu-list {
        display: none;
        flex-direction: column;
    }

    .menu-list.active {
        display: flex;
    }
}

@media (max-width: 768px) {
    .header {
        justify-content: center; 
    }

    .logo-container {
        margin-right: 10px; 
    }

    .plecaGob, .plecaTecnm {
        height: 40px; 
    }

    .separador {
        height: 40px;
    }
}

@media (max-width: 480px) {
    .header {
        flex-direction: column;
        align-items: center; 
        padding: 10px;
    }

    .logo-container {
        margin-bottom: 10px; 
    }

    .separador {
        display: none; 
    }
}