/* footer.css */

.footer {
    background: linear-gradient(to bottom, #fafafa, #f5f5f5);
    padding: 3rem 0 1.5rem;
    position: relative;
    margin-top: 4rem;
}

.footer::before {
    content: '';
    position: absolute;
    top: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg,
        transparent,
        rgba(26, 35, 126, 0.1) 20%,
        rgba(26, 35, 126, 0.2) 50%,
        rgba(26, 35, 126, 0.1) 80%,
        transparent
    );
}

.footer-content {
    max-width: 900px; /* Reducido para mejor proporción con 2 columnas */
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr; /* Cambiado a 2 columnas */
    gap: 4rem; /* Aumentado para mejor separación */
    justify-content: center;
}

.footer-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center; /* Centrar contenido */
    text-align: center; /* Centrar texto */
}

.footer-title {
    color: #1a237e;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%; /* Centrar línea */
    transform: translateX(-50%);
    width: 2rem;
    height: 2px;
    background: linear-gradient(90deg, transparent, #1a237e, transparent); /* Gradiente centrado */
    transition: width 0.3s ease;
}

.footer-section:hover .footer-title::after {
    width: 3rem;
}

.footer-description {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
    max-width: 400px; /* Limitar ancho para mejor legibilidad */
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: #666;
    text-decoration: none;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    transition: all 0.2s ease;
    padding: 0.3rem 0.5rem;
}

.footer-links a:hover {
    color: #1a237e;
    transform: translateX(5px);
}

.footer-links a::before {
    content: '›';
    opacity: 0;
    margin-right: 0.5rem;
    transform: translateX(-5px);
    transition: all 0.2s ease;
}

.footer-links a:hover::before {
    opacity: 1;
    transform: translateX(0);
}

.footer-bottom {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    text-align: center;
    position: relative;
}

.footer-bottom::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 200px; /* Ancho fijo para el separador */
    height: 1px;
    background: linear-gradient(90deg, 
        transparent,
        rgba(26, 35, 126, 0.1),
        transparent
    );
}

.footer-logo {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1a237e;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
    display: inline-block;
}

.copyright {
    color: #666;
    font-size: 0.85rem;
    margin: 0.5rem 0;
}

.license {
    color: #999;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.license a {
    color: #1a237e;
    text-decoration: none;
    transition: color 0.2s ease;
}

.license a:hover {
    color: #0d47a1;
}

/* Ajustes responsive */
@media (max-width: 768px) {
    .footer {
        padding: 2rem 0 1rem;
    }

    .footer-content {
        grid-template-columns: 1fr; /* Una columna en móvil */
        gap: 2rem;
    }

    .footer-section {
        padding: 0 1rem;
    }
}