/*--------------------------------------------------------------
# Footer Styles
--------------------------------------------------------------*/

.footer {
    color: var(--default-color);
    background: var(--surface-color);
    font-size: 14px;
    padding: 60px 0 30px 0;
    position: relative;
}

.footer .footer-top {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.footer .row {
    justify-content: flex-start;
    text-align: left;
    display: grid;
    grid-template-columns: 35% 20% 20% 25%;
    gap: 30px;
}

.footer .footer-about,
.footer .footer-links {
    margin-bottom: 15px;
    padding: 0 5px;
}

.footer .footer-about {
    width: 100%;
}

@media (max-width: 767px) {
    .footer .row {
        grid-template-columns: 1fr;
    }
}

.footer .footer-about .logo {
    line-height: 0;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.footer .footer-about .logo span {
    font-size: 24px;
    font-weight: 700;
    color: var(--heading-color);
}

.footer .footer-about p {
    font-size: 14px;
    margin-bottom: 0;
    line-height: 24px;
    color: var(--default-color);
    text-align: left;
}

.footer .social-links {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-top: 10px;
}

.footer .social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--default-color);
    font-size: 16px;
    color: var(--default-color);
    opacity: 0.8;
    margin: 0 5px;
    transition: 0.3s;
}

.footer .social-links a:hover {
    color: #fff;
    border-color: #fff;
}

.footer h4 {
    font-size: 16px;
    font-weight: bold;
    position: relative;
    padding-bottom: 12px;
    color: var(--heading-color);
    margin-bottom: 20px;
    text-align: left;
    white-space: nowrap;
    letter-spacing: 2px ;
}

.footer h4::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background: var(--accent-color);
}

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

.footer .footer-links ul i {
    padding-right: 2px;
    color: var(--accent-color);
    font-size: 12px;
    line-height: 0;
}

.footer .footer-links ul li {
    padding: 10px 0;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    line-height: 1;
}

.footer .footer-links ul li:first-child {
    padding-top: 0;
}

.footer .footer-links ul a {
    color: var(--default-color);
    opacity: 0.8;
    display: inline-block;
    line-height: 1;
    text-decoration: none;
    transition: 0.3s;
    font-size: 14px;
}

.footer .footer-links ul a:hover {
    color: var(--accent-color);
    opacity: 1;
}

.footer .footer-contact p {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-bottom: 8px;
    color: var(--default-color);
    opacity: 0.8;
    line-height: 1;
    text-align: left;
    font-size: 14px;
}

.footer .footer-contact p i {
    padding-right: 10px;
    font-size: 16px;
    color: var(--accent-color);
}

.footer .copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid var(--default-color);
    opacity: 0.1;
}

.footer .copyright p {
    margin-bottom: 0;
    color: var(--default-color);
    opacity: 0.8;
}

.footer .credits {
    padding-top: 10px;
    text-align: center;
    font-size: 13px;
    color: var(--default-color);
    opacity: 0.7;
}

.footer .credits a {
    color: var(--accent-color);
    text-decoration: none;
}

.footer .credits a:hover {
    text-decoration: underline;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .footer {
        padding: 40px 0 20px 0;
    }

    .footer .footer-info .logo span {
        font-size: 24px;
    }

    .footer .footer-info p {
        font-size: 14px;
    }

    .footer h4 {
        font-size: 15px;
    }

    .footer .social-links a {
        width: 36px;
        height: 36px;
        font-size: 14px;
        margin-right: 8px;
    }
}

@media (max-width: 576px) {
    .footer {
        padding: 30px 0 15px 0;
    }

    .footer .footer-info {
        margin-bottom: 20px;
        text-align: center;
    }

    .footer .footer-info .logo {
        justify-content: center;
        margin-bottom: 15px;
    }

    .footer .footer-info .logo span {
        font-size: 20px;
    }

    .footer .footer-info p {
        font-size: 13px;
    }

    .footer .social-links {
        justify-content: center;
    }

    .footer h4 {
        font-size: 14px;
        text-align: center;
    }

    .footer h4::before {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer .footer-links ul li {
        justify-content: center;
    }

    .footer .footer-contact p {
        justify-content: center;
    }
}

/* Footer links hover effects */
.footer .footer-links ul a::after {
    content: '';
    display: block;
    width: 0;
    height: 1px;
    background: var(--accent-color);
    transition: width 0.3s ease;
}

.footer .footer-links ul a:hover::after {
    width: 100%;
}

/* Service links specific styling */
.footer .footer-links ul li a[href*="clientes.grupoipr.com"],
.footer .footer-links ul li a[href*="360.grupoipr.com"],
.footer .footer-links ul li a[href*="plataformateleformacion.com"],
.footer .footer-links ul li a[href*="usuarios.iprprevencion.es"] {
    font-weight: 500;
}

.footer .footer-links ul li a[href*="clientes.grupoipr.com"]:hover,
.footer .footer-links ul li a[href*="360.grupoipr.com"]:hover,
.footer .footer-links ul li a[href*="plataformateleformacion.com"]:hover,
.footer .footer-links ul li a[href*="usuarios.iprprevencion.es"]:hover {
    color: var(--accent-color);
}

/* Evitar saltos de línea en la columna Legal */
.footer .footer-links ul li a {
    white-space: nowrap;
}
