/* Estilos para el footer del sitio */
.site-footer {
    background-color: var(--primary-color);
    color: rgba(255, 255, 255, 0.8);
    position: relative;
}

/* Parte superior del footer */
.footer-top {
    padding: 70px 0 40px;
    position: relative;
    overflow: hidden;
}

/* Elementos decorativos */
.footer-top:before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    z-index: 1;
}

.footer-top:after {
    content: '';
    position: absolute;
    bottom: -150px;
    left: -150px;
    width: 350px;
    height: 350px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    z-index: 1;
}

.footer-top .container {
    position: relative;
    z-index: 2;
}

/* Grid de columnas */
.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 40px;
}

/* Estilos comunes para columnas */
.footer-column {
    display: flex;
    flex-direction: column;
}

/* Título de columna */
.footer-title {
    color: #ffffff;
    font-size: 1.2rem;
    margin: 0 0 25px;
    font-weight: 600;
    position: relative;
    padding-bottom: 12px;
}

.footer-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background-color: var(--secondary-color);
}

/* Columna de información */
.footer-logo {
    margin-bottom: 20px;
}

.footer-logo img {
    max-height: max-content;
    width: auto;
}

.footer-description {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 25px;
}

/* Redes sociales */
.footer-social {
    display: flex;
    gap: 15px;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: #ffffff;
    transition: all 0.3s ease;
}

.footer-social a:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
}

/* Menús de enlaces */
.footer-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-menu li {
    margin-bottom: 12px;
}

.footer-menu a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    position: relative;
    padding-left: 15px;
}

.footer-menu a:before {
    content: '›';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--secondary-color);
    transition: all 0.3s ease;
}

.footer-menu a:hover {
    color: #ffffff;
    transform: translateX(5px);
}

.footer-menu a:hover:before {
    color: #ffffff;
}

/* Lista de contacto */
.contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.contact-list li {
    display: flex;
    margin-bottom: 15px;
    align-items: flex-start;
}

.contact-list i {
    color: var(--secondary-color);
    margin-right: 15px;
    margin-top: 5px;
    font-size: 1rem;
}

.contact-list span {
    flex: 1;
    line-height: 1.5;
}

.contact-list a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-list a:hover {
    color: #ffffff;
}

/* Parte inferior del footer */
.footer-bottom {
    background-color: rgba(0, 0, 0, 0.2);
    padding: 20px 0;
    font-size: 0.9rem;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.copyright p {
    margin: 0;
}

.footer-legal {
    display: flex;
    gap: 20px;
}

.footer-legal a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-legal a:hover {
    color: #ffffff;
}

/* Botón de volver arriba */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    background-color: var(--secondary-color);
    color: #ffffff;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 99;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--accent-color);
    transform: translateY(-5px);
}

/* Estilos responsivos */
@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
    
    .footer-info {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .footer-top {
        padding: 50px 0 30px;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .footer-legal {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-info {
        grid-column: span 1;
    }
    
    .footer-social {
        justify-content: center;
    }
    
    .footer-title {
        text-align: center;
    }
    
    .footer-title:after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer-description {
        text-align: center;
    }
    
    .footer-menu a {
        display: block;
        text-align: center;
        padding-left: 0;
    }
    
    .footer-menu a:before {
        display: none;
    }
    
    .contact-list li {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .contact-list i {
        margin-right: 0;
        margin-bottom: 5px;
    }
    
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
    }
}
