/* Header */
.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    background-color: white;
    border-bottom: 1px solid #ccc;
}

.main-header .logo img {
    width: 150px;
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
}

.main-nav a {
    text-decoration: none;
    color: #333;
    font-weight: bold;
    padding: 10px;
}

.main-nav a:hover {
    color: red;
}

.dropdown {
    position: relative;
}

/* Dropdown Menu */
.dropdown-content {
    display: none;
    position: absolute;
    background-color: white;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    list-style: none;
    min-width: 160px;
    z-index: 1;
}

.dropdown-content li {
    border-bottom: 1px solid #ccc;
}

.dropdown-content li a {
    color: #333;
    padding: 10px;
    display: block;
    text-align: left;
}

.dropdown-content li a:hover {
    background-color: #f1f1f1;
}

.dropdown:hover .dropdown-content {
    display: block;
}

/* Evita que los submenús se muestren incorrectamente */
.dropdown-content {
    top: 100%;
    left: 0;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.dropdown:hover .dropdown-content {
    opacity: 1;
}

/* Social media icons */
.social-icons a {
    margin-left: 15px;
}

.social-icons img {
    width: 24px;
}


/* Footer */
.inicio-footer {
    display: flex;
    justify-content: space-between;
    padding: 20px;
    background-color: #D50000; /* UPC red corporate color */
    color: white;
    margin-top: 20px;
}

.footer-section h3 {
    margin-bottom: 10px;
}

.footer-section p {
    margin-bottom: 5px;
}

.footer-section a {
    color: white;
}

.logo-footer img {
    width: 100px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .inicio-footer {
        flex-direction: column;
        align-items: center;
    }

    .footer-section {
        margin-bottom: 20px;
    }
}

.main-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* Ocupa al menos el 100% de la altura de la ventana */
}

/* Para eliminar el subrayado y mantener el color blanco */
.inicio-footer a {
    color: white;
    text-decoration: none;
}

.inicio-footer a:hover {
    color: #b3b3b3; /* Cambia el color de los enlaces cuando se pase el cursor por encima */
}