/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
}

/* BARRA NEGRA SUPERIOR */
.topbar {
    background: #000;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 40px;
}

.topbar a {
    margin-left: 15px;
}

.topbar img {
    height: 30px;
    opacity: 0.8;
    transition: 0.2s;
}

.topbar img:hover {
    opacity: 1;
}

/* HEADER BLANCO */
.main-header {
    background: white;
    padding: 2px 5vw;
    display: flex;
    justify-content: space-between; 
    align-items: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    width: 100%;
}

/* LOGO A LA IZQUIERDA */
.logo {
    flex: 0 0 auto;
    position: relative;
    top: -40px;
    z-index: 2; 
}

.logo img {
    height: 140px;
}

/* ICONOS DE NAVEGACIÓN A LA DERECHA */
.nav-icons {
    flex: 1 1 70%;
    display: flex;
    gap: 20px;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.nav-icons a {
    display: flex;
    flex-direction: column-reverse; 
    align-items: center;
    text-decoration: none;
    color: #222;
    font-size: 14px;
    width: 150px;
}

.nav-icons a img {
    width: 65px;
    height: 65px;
    transition: 0.2s;
}

.nav-icons a img:hover {
    transform: scale(1.1);
}

.nav-icons a span {
    display: block;
    width: 100%;
    text-align: center;
    margin-bottom: 5px;
    white-space: nowrap;
    font-size: 20px;
}

/* FOOTER */
footer {
    margin-top: 60px;
    font-family: Arial, sans-serif;
}

/* Parte superior blanca */
.footer-top {
    background: #fff;
    padding: 40px;
    text-align: center;
}

.footer-top img {
    max-width: 1320px;
    width: 100%;
    height: auto;
}

.footer-bottom {
    background: #222;
    color: white;
    display: flex;
    justify-content: center; 
    flex-wrap: wrap; 
    padding: 40px 5%; 
    gap: 5%; 
    align-items: flex-start; 
}

.footer-bottom .footer-col {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start; 
    flex: 0 0 auto;
    min-width: 200px;
    padding-left: 5px; 
}

.footer-bottom h4 {
    margin-bottom: 9%;
    font-size: 24px;
}

.footer-bottom ul {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
    margin-left: 15px;
}

.footer-bottom ul li {
    margin-bottom: 15px;
}

.footer-bottom ul li a {
    color: #fff;
    text-decoration: none;
    transition: 0.2s;
}

.footer-bottom ul li a:hover {
    text-decoration: underline;
}

.footer-bottom .footer-col.img-col {
    flex: 1 1 300px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-left: 0;
    min-width: 0;
}

.footer-bottom .footer-col.img-col img {
    width: 100%;
    max-width: 280px;
    height: auto;
    display: block;
}


/* MEDIA QUERIES RESPONSIVE */
@media (max-width: 1024px) {
    .main-header {
        padding: 10px 5vw;
    }

    .logo img {
        height: 120px;
    }

    .nav-icons a {
        width: 120px;
        font-size: 16px;
    }

    .nav-icons a img {
        width: 55px;
        height: 55px;
    }
}

@media (max-width: 768px) {
    .main-header {
        flex-direction: column;
        align-items: center;
        padding: 10px 5vw;
    }

    .logo {
        top: -20px;
        margin-bottom: 10px;
    }

    .logo img {
        height: 100px;
    }

    .nav-icons {
        width: 100%;
        justify-content: center;
        gap: 12px;
    }
    .nav-icons a {
        width: 80px;
    }
    
    .nav-icons a span {
        font-size: 12px;
    }

    .nav-icons a img {
        width: 50px;
        height: 50px;
    }
      .footer-top{
        padding: 30px 15px;
    }

    .footer-bottom {
        padding: 30px 20px;
        gap: 30px;
        flex-direction: column;
        align-items: center;
    }

    .footer-bottom .footer-col {
        width: 100%;
        min-width: 0;
        align-items: center;
        text-align: center;
        padding-left: 0;
        margin-bottom: 0;
    }

    .footer-bottom ul {
        margin-left: 0;
    }

    .footer-bottom .footer-col.img-col {
        width: 100%;
    }

    .footer-bottom .footer-col.img-col img {
        width: 70%;
        max-width: 220px;
    }
}

@media (max-width: 480px) {
    .logo img {
        height: 80px;
    }

    .nav-icons {
        gap: 10px;
    }

    .nav-icons a {
        width: 80px;
        font-size: 12px;
    }

    .nav-icons a img {
        width: 40px;
        height: 40px;
    }
    
    .topbar {
        padding-right: 10px;
        justify-content: center;
    }

    .topbar a {
        margin-left: 10px;
    }
}

@media (max-width: 768px) {
    .footer-bottom {
        padding: 20px 2%;
        gap: 10%;
    }

    .footer-bottom .footer-col {
        min-width: 100%;
        align-items: center;
        padding-left: 0;
        margin-bottom: 20px;
        text-align: center;
    }

    .footer-bottom ul {
        margin-left: 0;
    }

    .footer-bottom .footer-col.img-col img {
        width: 60%;
    }
}